/*
 * Schnüffelnase Hauptnavigation
 * Ruhige, organische Kopfzeile mit klarem Buchungsweg.
 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 253, 249, .94);
    border-bottom: 1px solid rgba(91, 58, 42, .1);
    box-shadow: 0 10px 35px rgba(75, 48, 32, .07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-bar .site-header {
    top: 32px;
}

.site-header .inside-header {
    min-height: 84px;
    max-width: 1180px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header .inside-header::before {
    content: "Schnüffelnase";
    flex: 0 0 auto;
    color: #4a2f24;
    font-family: var(--sn-font-headline);
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
}

#site-navigation {
    flex: 1;
    background: transparent;
}

#site-navigation .inside-navigation {
    justify-content: flex-end;
}

#primary-menu > ul {
    align-items: center;
    gap: 4px;
}

#primary-menu > ul > li > a {
    position: relative;
    padding: 12px 14px;
    color: #493c35;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

#primary-menu > ul > li > a:hover,
#primary-menu > ul > li > a:focus-visible {
    color: #a7431d;
    background: #fff1e7;
    transform: translateY(-1px);
}

#primary-menu > ul > li.current-menu-item > a {
    color: #a7431d;
    background: #fff5ed;
}

#primary-menu > ul > li.current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 7px;
    height: 2px;
    border-radius: 2px;
    background: #ef7c2d;
}

/* Nur die wichtigen Hauptwege anzeigen; Rechtliches bleibt über den Footer erreichbar. */
#primary-menu > ul > li:not(#menu-item-73):not(#menu-item-74):not(#menu-item-208):not(#menu-item-218):not(#menu-item-221) {
    display: none;
}

/* Kennenlerntermin als eindeutiger Hauptweg. */
#primary-menu > ul > #menu-item-74 {
    order: 10;
}

#primary-menu > ul > #menu-item-74 > a {
    color: #fff;
    background: #ef7c2d;
    padding: 13px 20px;
    box-shadow: 0 8px 20px rgba(220, 94, 27, .22);
}

#primary-menu > ul > #menu-item-74 > a:hover,
#primary-menu > ul > #menu-item-74 > a:focus-visible {
    color: #fff;
    background: #cf5f20;
    transform: translateY(-2px);
}

#primary-menu > ul > #menu-item-74 > a::after {
    display: none;
}

.menu-toggle {
    color: #4a2f24;
    background: #fff1e7;
    border-radius: 999px;
    padding: 11px 14px;
}

@media (max-width: 768px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .site-header .inside-header {
        min-height: 70px;
        padding: 10px 18px;
        justify-content: space-between;
    }

    .site-header .inside-header::before {
        font-size: 1.55rem;
    }

    .mobile-menu-control-wrapper {
        margin-left: auto;
    }

    #site-navigation.toggled {
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        background: #fffdf9;
        border: 1px solid rgba(91, 58, 42, .1);
        border-radius: 0 0 22px 22px;
        box-shadow: 0 22px 38px rgba(75, 48, 32, .15);
        overflow: hidden;
    }

    #primary-menu > ul {
        padding: 10px;
        gap: 3px;
    }

    #primary-menu > ul > li,
    #primary-menu > ul > li > a {
        width: 100%;
    }

    #primary-menu > ul > li > a {
        padding: 13px 15px;
        border-radius: 12px;
    }

    #primary-menu > ul > #menu-item-74 > a {
        margin-top: 5px;
        text-align: center;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}