/* =========================================
   NAVIGATION – LICHTQUELLE DER HEILKRAFT
========================================= */


/* Header */

.site-header {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5.5vw;

    background-color: var(--paper);
    border-bottom: 1px solid var(--line-soft);

    position: sticky;
    top: 0;
    z-index: 100;
}


/* Logo */

.wordmark {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;

    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 0.78;
    letter-spacing: -0.06em;

    color: var(--green);
    text-decoration: none;
}

.wordmark em {
    font-size: 1rem;
}

.wordmark small {
    margin-top: 0.65rem;

    font-family: var(--font-body);
    font-size: 0.47rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
}


/* Desktop-Navigation */

.nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;

    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--green);
}


/* Kontakt-Button */

.nav .nav-contact {
    border: 1px solid var(--green);
    padding: 0.72rem 1rem;
}


/* Tastaturbedienung */

.site-header a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}


/* Mobiles Menü – zunächst ausgeblendet */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;

    border: none;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 1px;
    margin: 6px auto;

    background-color: var(--green);
}


/* =========================================
   TABLET & SMARTPHONE
========================================= */

@media (max-width: 1100px) {

    .site-header {
        height: auto;
        padding: 1rem 6vw;
        flex-wrap: wrap;
        position: static;
    }

    .nav {
        width: 100%;

        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;

        padding: 1.5rem 0 0;

        background-color: var(--paper);
    }

    .site-header--interactive {
        height: auto;
        min-height: 76px;
        padding: 0.5rem 6vw;
        flex-wrap: nowrap;
        position: sticky;
    }

    .site-header--interactive .menu-toggle {
        display: block;
    }

    .site-header--interactive .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1.5rem 6vw 2rem;

        max-height: calc(100vh - 100%);
        max-height: calc(100dvh - 100%);
        overflow-y: auto;

        background-color: var(--paper);
        border-bottom: 1px solid var(--beige);
    }

    .nav.nav--open {
        display: flex;
    }

    .nav a {
        padding: 0.5rem 0;
    }

    .nav .nav-contact {
        padding: 0.72rem 1rem;
    }

}


/* Tastatursprung zum Hauptinhalt */

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 101;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
    background-color: var(--paper);
    color: var(--green);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

#hauptinhalt {
    /* Wortmarke und Headerabstand benoetigen zusammen knapp 4rem plus Rahmen. */
    scroll-margin-top: max(92px, calc(4rem + 1px));
}
