body > header:first-of-type {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    isolation: isolate;
    overflow: visible;
}

body > header:first-of-type .container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

body > header:first-of-type .logo-container {
    flex: 1 1 auto;
    min-width: 0;
    justify-self: start;
}

body > header:first-of-type .container-custom > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    margin-left: auto;
    justify-self: end;
    min-width: fit-content;
}

body > header:first-of-type nav {
    align-items: center;
    min-width: 0;
    justify-self: center;
    position: relative;
    z-index: 1001;
}

body > header:first-of-type .lang-switcher,
body > header:first-of-type #mobileMenuToggle {
    position: relative;
    z-index: 1001;
}

body > header:first-of-type .nav-link,
body > header:first-of-type .nav-link-icon,
body > header:first-of-type .lang-switcher button,
body > header:first-of-type .lang-mobile-btn,
body > header:first-of-type #mobileMenuToggle {
    min-width: 48px;
    min-height: 48px;
}

body > header:first-of-type .nav-link {
    position: relative;
    padding: 0.75rem 0.35rem;
    color: #475569;
    white-space: nowrap;
}

body > header:first-of-type .nav-link:hover,
body > header:first-of-type .nav-link.active {
    color: #0f172a;
}

body > header:first-of-type .nav-link-icon {
    color: #475569;
}

body > header:first-of-type .nav-link-icon:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body > header:first-of-type .lang-switcher {
    flex-shrink: 0;
}

body > header:first-of-type #mobileMenuToggle {
    align-items: center;
    justify-content: center;
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body > header:first-of-type #mobileMenuToggle:hover,
body > header:first-of-type #mobileMenuToggle:focus-visible {
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    outline: none;
}

body[data-menu-open="true"] > header:first-of-type #mobileMenuToggle {
    background: #eff6ff;
    border-color: #93c5fd;
}

body > header:first-of-type #mobileMenu {
    z-index: 999;
}

body[data-menu-open="true"] {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 72px 0 0;
    background: rgba(15, 23, 42, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

body[data-menu-open="true"]::before {
    opacity: 1;
}

@media (min-width: 1180px) {
    body > header:first-of-type .container-custom {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 24px;
        row-gap: 0;
    }

    body > header:first-of-type .logo-container {
        grid-column: 1;
        margin-right: auto;
    }

    body > header:first-of-type nav {
        grid-column: 2;
        display: flex !important;
        gap: clamp(0.625rem, 0.9vw, 1.35rem);
        margin: 0 auto;
        max-width: 100%;
    }

    body > header:first-of-type .nav-link {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    body > header:first-of-type .container-custom > div:last-child {
        grid-column: 3;
        margin-left: 24px;
    }

    body > header:first-of-type .lang-switcher {
        display: inline-flex !important;
        margin-left: 0;
    }

    body > header:first-of-type #mobileMenuToggle {
        display: none !important;
    }

    body > header:first-of-type #mobileMenu {
        display: none !important;
    }
}

@media (min-width: 1180px) and (max-width: 1360px) {
    body > header:first-of-type nav {
        gap: clamp(0.5rem, 0.6vw, 0.9rem);
    }

    body > header:first-of-type .nav-link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 1179.98px) {
    body > header:first-of-type .container-custom {
        display: flex;
        min-height: 72px;
    }

    body > header:first-of-type nav {
        display: none !important;
    }

    body > header:first-of-type .lang-switcher {
        display: none !important;
    }

    body > header:first-of-type #mobileMenuToggle {
        display: inline-flex !important;
        flex-shrink: 0;
    }

    body > header:first-of-type #mobileMenu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(203, 213, 225, 0.8);
        box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    body[data-menu-open="true"] > header:first-of-type #mobileMenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    body > header:first-of-type #mobileMenu .container-custom {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    body > header:first-of-type #mobileMenu .nav-link,
    body > header:first-of-type #mobileMenu .nav-link-icon,
    body > header:first-of-type #mobileMenu .lang-mobile-btn {
        width: 100%;
        justify-content: flex-start;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    }

    body > header:first-of-type #mobileMenu .nav-link {
        padding: 0.95rem 1rem;
        border-bottom-color: transparent;
    }

    body > header:first-of-type #mobileMenu .nav-link-icon {
        gap: 0.75rem;
        padding: 0.95rem 1rem;
        border-radius: 16px;
        font-size: 1rem;
        width: 100%;
        height: auto;
    }

    body > header:first-of-type #mobileMenu .nav-link-icon::after {
        font-size: 0.95rem;
        font-weight: 500;
    }

    body > header:first-of-type #mobileMenu .nav-link-icon[aria-label="Startseite"]::after {
        content: "Startseite";
    }

    body > header:first-of-type #mobileMenu .nav-link-icon[aria-label="WhatsApp"]::after {
        content: "WhatsApp";
    }

    body > header:first-of-type #mobileMenu hr {
        margin: 0.25rem 0;
    }

    body > header:first-of-type #mobileMenu #mobileLangBtns {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    body > header:first-of-type #mobileMenu .lang-mobile-btn {
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.875rem;
    }
}
