/* Handwerker-Landingpage: vorhandene Website-Muster, ausschließlich seitenspezifisch. */

/* ---------- Container, Abstände und Typografie ---------- */

.handwerk-container {
    width: min(calc(100% - 3rem), 80rem);
    margin-inline: auto;
}

.handwerk-section {
    padding-block: clamp(5rem, 8vw, 7rem);
    background-color: var(--color-white);
}

.handwerk-section--soft {
    background-color: var(--color-bg);
}

.handwerk-section-heading {
    max-width: 48rem;
    margin-bottom: 3rem;
}

.handwerk-section-heading--wide {
    max-width: 60rem;
}

.handwerk-title {
    margin: 0;
    color: var(--color-dark-blue);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.handwerk-section-heading p,
.handwerk-copy p,
.handwerk-digital {
    margin: 1.5rem 0 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.handwerk-copy,
.handwerk-hero-content,
.handwerk-faq-list {
    min-width: 0;
}

.handwerk-section-action {
    margin-top: 2rem;
}

.handwerk-main section[id],
.handwerk-main h2[id] {
    scroll-margin-top: 6rem;
}

/* ---------- Aktionen: bestehende Button- und Linkgestaltung ---------- */

.handwerk-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.handwerk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 100%;
    min-height: 3.5rem;
    padding: 1rem 1.5rem;
    color: var(--color-white);
    background-color: var(--color-dark-blue);
    border: 1px solid var(--color-dark-blue);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.handwerk-button:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    transform: translateY(-2px);
}

.handwerk-button--light {
    color: var(--color-dark-blue);
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.handwerk-button--light:hover {
    color: var(--color-white);
    background-color: transparent;
    border-color: var(--color-white);
}

.handwerk-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    color: var(--color-blue);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: color 180ms ease;
}

.handwerk-link:hover {
    color: var(--color-dark-blue);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.handwerk-arrow {
    flex-shrink: 0;
    transition: transform 180ms ease;
}

.handwerk-button:hover .handwerk-arrow,
.handwerk-link:hover .handwerk-arrow {
    transform: translateX(0.25rem);
}

.handwerk-main a:focus-visible,
.handwerk-faq-item summary:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 4px;
    border-radius: 0.25rem;
}

.handwerk-hero a:focus-visible,
.handwerk-contact a:focus-visible {
    outline-color: var(--color-light-blue);
}

/* ---------- Hero ---------- */

.handwerk-hero {
    position: relative;
    color: var(--color-white);
    background-color: var(--color-dark-blue);
}

.handwerk-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    padding-top: clamp(5rem, 9vw, 8rem);
    padding-bottom: clamp(8rem, 12vw, 11rem);
}

.handwerk-hero-content {
    max-width: 39rem;
}

.handwerk-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    color: var(--color-light-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.handwerk-eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    flex-shrink: 0;
    background-color: currentColor;
}

.handwerk-hero-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.handwerk-hero-title span {
    color: var(--color-light-blue);
}

.handwerk-hero-description {
    max-width: 36rem;
    margin: 1.75rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.75;
}

.handwerk-hero .handwerk-link {
    color: rgba(255, 255, 255, 0.82);
}

.handwerk-hero .handwerk-link:hover {
    color: var(--color-white);
}

/* ---------- Browsermockup und Fiktiv-Kennzeichnung ---------- */

.handwerk-preview {
    min-width: 0;
    margin: 0;
}

.handwerk-browser {
    background-color: var(--color-dark-blue);
    border: 1px solid var(--color-border);
    border-radius: 0.9rem;
    box-shadow: 0 1rem 2.5rem rgba(21, 51, 73, 0.12);
    overflow: hidden;
}

.handwerk-preview--hero .handwerk-browser {
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    box-shadow: 0 2rem 4rem rgba(5, 20, 31, 0.28);
}

.handwerk-browser-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.handwerk-browser-dots {
    display: flex;
    gap: 0.35rem;
}

.handwerk-browser-dots span {
    width: 0.4rem;
    height: 0.4rem;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.handwerk-browser-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.65rem;
    line-height: 1.4;
}

.handwerk-browser-image {
    display: block;
    /* Originalformat bewahren, damit auch die Schrift in der Vorschau vollständig bleibt. */
    aspect-ratio: 1904 / 838;
    background-color: var(--color-surface);
}

.handwerk-browser-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.handwerk-preview figcaption {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.handwerk-preview--hero figcaption {
    color: rgba(255, 255, 255, 0.82);
}

/* ---------- Informationskarten und Branchen-Einleitung ---------- */

.handwerk-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.handwerk-card {
    min-width: 0;
    padding: 1.75rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0.9rem;
}

.handwerk-card h3,
.handwerk-process-item h3 {
    margin: 0;
    color: var(--color-dark-blue);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
}

.handwerk-card p,
.handwerk-process-item p {
    margin: 1rem 0 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.handwerk-branchen {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.handwerk-branchen li + li {
    margin-top: 0.5rem;
}

.handwerk-branchen strong {
    color: var(--color-dark-blue);
}

/* ---------- Persönliche Erfahrung ---------- */

.handwerk-person-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(4rem, 8vw, 8rem);
}

.handwerk-portrait {
    position: relative;
    width: min(100%, 23rem);
    margin-inline: auto;
}

.handwerk-portrait::before {
    content: "";
    position: absolute;
    inset: 0.5rem -0.5rem -0.5rem 0.5rem;
    background-color: var(--color-surface);
    border: 2px solid rgba(120, 154, 196, 0.35);
    border-radius: 1rem;
}

.handwerk-portrait img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 0.9rem;
}

/* ---------- Beispielprojekt ---------- */

.handwerk-project-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(3.5rem, 7vw, 7rem);
}

.handwerk-project-title {
    margin: 0;
    color: var(--color-dark-blue);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
}

/* ---------- Ablauf ---------- */

.handwerk-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.handwerk-process::before {
    content: "";
    position: absolute;
    top: 1.6rem;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background-color: var(--color-border);
}

.handwerk-process-item {
    position: relative;
    min-width: 0;
}

.handwerk-process-number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-blue);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.handwerk-digital {
    max-width: 48rem;
    margin-top: 3rem;
}

/* ---------- Kosten: kompakter Überblick statt Preistabellen-Kopie ---------- */

.handwerk-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "intro packages"
        "extras packages"
        "extras action";
    column-gap: 4rem;
}

.handwerk-price-intro {
    grid-area: intro;
}

.handwerk-price-extras {
    grid-area: extras;
    margin-top: 2rem;
}

.handwerk-price-info {
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.handwerk-price-info + .handwerk-price-info {
    margin-top: 1.75rem;
}

.handwerk-price-info h3 {
    margin: 0;
    color: var(--color-dark-blue);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.handwerk-price-info p {
    margin-top: 0.75rem;
}

.handwerk-price-panel {
    min-width: 0;
    padding: 2rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0.9rem;
}

/* Paketübersicht und Abschluss bilden am Desktop eine durchgehende Karte. */
.handwerk-price-packages {
    grid-area: packages;
    padding-bottom: 0;
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.handwerk-price-footer {
    grid-area: action;
    padding-top: 1.5rem;
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.handwerk-price-footer p {
    margin-top: 0;
}

.handwerk-price-footer .handwerk-section-action {
    margin-top: 1.5rem;
}

.handwerk-price-list {
    padding: 0;
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.75;
    list-style: none;
}

.handwerk-price-list li + li {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.handwerk-price-list strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark-blue);
    font-size: 1.05rem;
    line-height: 1.4;
}

/* ---------- Native FAQ ---------- */

.handwerk-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(4rem, 7vw, 6rem);
}

.handwerk-faq-item {
    border-bottom: 1px solid var(--color-border);
}

.handwerk-faq-item summary {
    position: relative;
    padding: 2rem 3.5rem 2rem 0;
    color: var(--color-dark-blue);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.handwerk-faq-item summary::-webkit-details-marker {
    display: none;
}

.handwerk-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--color-blue);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.handwerk-faq-item[open] summary::after {
    content: "−";
}

.handwerk-faq-item summary:hover {
    color: var(--color-blue);
}

.handwerk-faq-answer {
    padding: 0 3.5rem 2rem 0;
}

.handwerk-faq-answer p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* ---------- Abschluss ---------- */

.handwerk-contact {
    color: var(--color-white);
    background-color: var(--color-dark-blue);
    text-align: center;
}

.handwerk-contact-content {
    max-width: 52rem;
}

.handwerk-contact .handwerk-title {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.handwerk-contact p {
    max-width: 40rem;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.handwerk-contact .handwerk-contact-note {
    font-size: 0.9rem;
}

/* ---------- Bestehende responsive Muster ---------- */

/* Nur auf dieser Seite: Desktop-Navigation direkt oberhalb ihres Breakpoints einpassen. */
@media (min-width: 62.0625rem) and (max-width: 64rem) {
    .handwerk-seite .navigation-link {
        padding-inline: 0.75rem;
    }
}

@media (max-width: 68rem) {
    .handwerk-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 4rem;
    }

    .handwerk-hero .handwerk-preview {
        width: min(100%, 48rem);
    }
}

@media (max-width: 64rem) {
    .handwerk-project-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .handwerk-project-grid .handwerk-preview {
        width: min(100%, 48rem);
    }
}

@media (max-width: 62rem) {
    .handwerk-card-grid,
    .handwerk-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .handwerk-process {
        gap: 3.5rem 2rem;
    }

    .handwerk-process::before {
        display: none;
    }

    .handwerk-person-grid {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
        gap: 4rem;
    }

    .handwerk-faq-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .handwerk-price-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "packages"
            "extras"
            "action";
        gap: 2rem;
    }

    .handwerk-price-extras {
        margin-top: 0;
    }

    .handwerk-price-packages {
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0.9rem;
    }

    .handwerk-price-footer {
        padding: 0;
        background-color: transparent;
        border: 0;
        border-radius: 0;
    }
}

@media (max-width: 44rem) {
    .handwerk-person-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3.5rem;
    }

    .handwerk-portrait {
        width: min(85%, 22rem);
    }
}

@media (max-width: 42rem) {
    .handwerk-container {
        width: min(calc(100% - 2rem), 80rem);
    }

    .handwerk-section {
        padding-block: 4.5rem;
    }

    .handwerk-title {
        font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    }

    .handwerk-section-heading {
        margin-bottom: 2.5rem;
    }

    .handwerk-hero-grid {
        gap: 3rem;
        padding-top: 4rem;
        padding-bottom: 7rem;
    }

    .handwerk-hero-title {
        font-size: clamp(2.35rem, 10vw, 3.75rem);
    }

    .handwerk-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .handwerk-button {
        width: 100%;
    }

    .handwerk-actions .handwerk-link {
        align-self: flex-start;
    }

    .handwerk-browser-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .handwerk-browser-dots {
        display: none;
    }

    .handwerk-browser-label {
        text-align: center;
    }

    .handwerk-card-grid,
    .handwerk-process {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .handwerk-card {
        padding: 1.5rem;
    }

    .handwerk-process {
        gap: 2.5rem;
    }

    .handwerk-process-item {
        display: grid;
        grid-template-columns: 3.25rem minmax(0, 1fr);
        column-gap: 1.25rem;
    }

    .handwerk-process-number {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .handwerk-process-item h3,
    .handwerk-process-item p {
        grid-column: 2;
    }

    .handwerk-project-grid {
        gap: 2.25rem;
    }

    .handwerk-price-packages {
        padding: 1.5rem;
    }

    .handwerk-faq-item summary {
        padding-right: 3rem;
        font-size: 1.1rem;
    }

    .handwerk-faq-answer {
        padding-right: 0;
    }

    .handwerk-contact .handwerk-title {
        font-size: clamp(2rem, 7.5vw, 2.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .handwerk-button,
    .handwerk-link,
    .handwerk-arrow {
        transition: none;
    }

    .handwerk-button:hover,
    .handwerk-button:hover .handwerk-arrow,
    .handwerk-link:hover .handwerk-arrow {
        transform: none;
    }
}
