/**
 * HEADER COMPONENT
 * Birkenstock-Style Header - Zweizeilig
 *
 * Struktur:
 * - .site-header (Sticky Container)
 *   - .header-brand-bar (Zeile 1: Suche | Logo | Icons)
 *   - .header-nav-bar (Zeile 2: Navigation)
 *   - .header-announcement (Optional)
 *
 * Letzte Änderung: 2025-12-06 - Birkenstock-Style Redesign
 */

/* ===== HEADER CONTAINER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    margin: 0;
    padding: 0;
    transition: transform var(--transition-base);
}

.site-header.hidden {
    transform: translateY(-100%);
}

/* Force header visible - überschreibt scroll-basiertes Ausblenden */
.site-header.force-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== ZEILE 1: BRAND BAR (Invertiert: Blau auf Weiß) ===== */
.header-brand-bar {
    background: #141B4D;
    padding: 1rem 0;
    border-bottom: none;
}

.header-brand-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-mobile);
}

@media (min-width: 768px) {
    .header-brand-content {
        padding: 0 var(--container-padding-tablet);
    }
}

@media (min-width: 1024px) {
    .header-brand-content {
        padding: 0 var(--container-padding-desktop);
    }
}

@media (min-width: 1440px) {
    .header-brand-content {
        padding: 0 4rem; /* 64px - Large Desktop */
    }
}

@media (min-width: 1920px) {
    .header-brand-content {
        padding: 0 var(--container-padding-wide);
    }
}

/* Links: Suche + Mobile Menu */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px; /* Symmetrie mit rechts */
}

/* Icon Button - Birkenstock Style (Invertiert) */
.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #dbd5cd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-icon-btn:hover {
    color: var(--old-gold);
}

/* Focus management — Touch-Elemente: outline komplett unterdrücken.
   iOS Safari behandelt programmatisches .focus() als :focus-visible,
   daher KEINE :focus-visible Regeln für Touch-bediente Elemente. */
.header-icon-btn:focus,
.mobile-menu-item:focus,
.mobile-menu-link:focus,
.mobile-nav-toggle:focus,
.mobile-menu-back:focus {
    outline: none;
}

/* Focus management — Desktop Navigation (kein programmatisches .focus()) */
.header-nav a:focus {
    outline: none;
}
.header-nav a:focus-visible {
    outline: 2px solid var(--old-gold);
    outline-offset: 2px;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* ===== Animated Hamburger Icon ===== */
.hamburger-icon {
    overflow: visible;
}

.hamburger-line {
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
}

/* Menü offen: Hamburger zu X */
.phs-mobile-menu--active ~ .site-header .hamburger-top,
.mobile-menu-toggle.is-active .hamburger-top {
    transform: translateY(6px) rotate(45deg);
}

.phs-mobile-menu--active ~ .site-header .hamburger-middle,
.mobile-menu-toggle.is-active .hamburger-middle {
    opacity: 0;
    transform: scaleX(0);
}

.phs-mobile-menu--active ~ .site-header .hamburger-bottom,
.mobile-menu-toggle.is-active .hamburger-bottom {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mitte: Logo (Invertiert) */
.header-logo {
    font-family: var(--font-interface);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dbd5cd;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}

.header-logo:hover {
    color: var(--old-gold);
}

/* Desktop: Voller Name */
.header-logo-full {
    display: none;
}

.header-logo-short {
    display: inline;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .header-logo {
        font-size: 1.5rem;
    }

    .header-logo-full {
        display: inline;
    }

    .header-logo-short {
        display: none;
    }
}

/* Rechts: Action Icons mit Labels */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 80px; /* Symmetrie mit links */
    justify-content: flex-end;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #dbd5cd;
    transition: color 0.2s ease;
}

.header-action-item:hover {
    color: var(--old-gold);
}

.header-action-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.header-action-label {
    font-family: var(--font-interface);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none; /* Versteckt auf Mobile */
}

@media (min-width: 768px) {
    .header-action-label {
        display: block;
    }
}

/* ===== ZEILE 2: NAVIGATION BAR ===== */
.header-nav-bar {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    display: none; /* Versteckt auf Mobile */
}

@media (min-width: 1024px) {
    .header-nav-bar {
        display: block;
    }
}

.header-nav-bar .container {
    display: flex;
    justify-content: center;
}

/* Mobile Menu Toggle - nur unter 1024px sichtbar */
.mobile-menu-toggle {
    display: flex !important;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ===== LEGACY: HEADER MAIN BAR (für Kompatibilität) ===== */
.header-main {
    position: relative;
    background: white;
    min-height: 68px;
    padding: 12px 0;
    z-index: 1001;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-mobile);
}

@media (min-width: 768px) {
    .header-content {
        padding: 0 var(--container-padding-tablet);
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 0 var(--container-padding-desktop);
    }
}

@media (min-width: 1440px) {
    .header-content {
        padding: 0 4rem; /* 64px - Large Desktop */
    }
}

@media (min-width: 1920px) {
    .header-content {
        padding: 0 var(--container-padding-wide);
    }
}

/* ===== ALERT BANNER (dringende Alarme - Schulausfall, Notfall) ===== */
.header-alert-banner {
    font-family: var(--font-interface);
    background: #D946B5; /* Magenta */
    padding: 12px 0;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600; /* SemiBold */
    color: white;
}

.header-alert-banner .container {
    padding-top: 0;
    padding-bottom: 0;
}

.header-alert-banner a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: opacity var(--transition-fast);
}

.header-alert-banner a:hover {
    opacity: 0.85;
}

/* ===== ANNOUNCEMENT BAR (normale Ankündigungen) ===== */
.header-announcement {
    font-family: var(--font-header);
    background: #D946B5; /* Pink/Magenta - gleiche Farbe wie Feedback-Button */
    padding: 12.5px 0;
    margin: 0;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 700; /* Bold */
    color: white; /* Weißer Text auf Pink */
}

.header-announcement .container {
    padding-top: 0;
    padding-bottom: 0;
}

.header-announcement.hidden {
    display: none;
}

.header-announcement a {
    color: white;
    text-decoration: none;
    font-weight: 700; /* Bold */
    transition: color var(--transition-fast);
}

.header-announcement a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.header-announcement .announcement-date {
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: pointer;
}

/* ===== BRAND ===== */
.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-brand h1 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--penn-blue);
}

.header-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--penn-blue);
}

.header-brand .material-icons-outlined {
    font-size: 20px;
}

.header-brand .brand-text {
    font-family: var(--font-header);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--penn-blue);
    letter-spacing: 0.02em;
    white-space: nowrap; /* Kein Umbruch */
}

/* Immer nur kurze Version "PvH" zeigen */
.brand-text-full {
    display: none;
}

.brand-text-short {
    display: inline;
}

/* ===== NAVIGATION - BIRKENSTOCK STYLE ===== */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-link {
    position: relative;
    font-family: var(--font-interface);
    color: var(--penn-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: color 200ms ease-out;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    /* Touch optimization for iPad/tablets */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Unterstrich-Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--penn-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--penn-blue);
}

.nav-link:hover::after {
    width: calc(100% - 3rem); /* Breite minus Padding */
}

.nav-link.active::after,
.nav-link.megamenu-active::after {
    width: calc(100% - 3rem);
}

/* Active state */
.nav-link.active {
    color: var(--penn-blue);
}

/* Megamenü aktiv */
.nav-link.megamenu-active {
    color: var(--penn-blue);
}

/* Pfeile verstecken - nicht mehr benötigt */
.nav-arrow {
    display: none !important;
}

.nav-link:hover .nav-arrow {
    transform: rotate(0deg); /* Zeigt nach unten */
    opacity: 1;
}

/* Größerer Pfeil wenn Megamenü aktiv ist - mit scale statt font-size */
.nav-link.megamenu-active .nav-arrow {
    transform: rotate(0deg) scale(1.3); /* Zeigt nach unten + 30% größer */
    opacity: 1;
}

/* ===== ZENTRALES MEGAMENÜ SYSTEM - SOTA DESIGN ===== */
/* Modernes Glassmorphism Design mit Slide-Animation */

/* Blur Overlay für den Hintergrund (außerhalb des Megamenüs) */
.phs-mega-menu-backdrop {
    position: fixed;
    top: 110px; /* Unter zweizeiligem Header (Brand Bar + Nav Bar) */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6); /* Milchiger weißer Schleier */
    backdrop-filter: blur(16px); /* Starker Blur-Effekt (4x Original) */
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms cubic-bezier(0.61, 1, 0.88, 1), visibility 280ms;
    z-index: 998; /* Unter dem Megamenü, über dem Content */
    pointer-events: none;
}

.phs-mega-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Ermöglicht Click-to-Close */
}

#phs-mega-menu {
    position: fixed;
    top: 110px; /* Direkt unter zweizeiligem Header */
    left: 0;
    right: 0;
    width: 100%;

    /* Megamenü selbst - sauberer weißer Hintergrund */
    background: #ffffff;

    /* Slide-Down Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
        opacity 280ms cubic-bezier(0.61, 1, 0.88, 1),
        transform 280ms cubic-bezier(0.61, 1, 0.88, 1),
        visibility 280ms;

    z-index: 999; /* Über dem Backdrop */
    pointer-events: none;
}

/* Fallback für Browser ohne backdrop-filter Support */
@supports not (backdrop-filter: blur(15px)) {
    #phs-mega-menu {
        background: #ffffff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #phs-mega-menu {
        transition: opacity 100ms, visibility 100ms;
        transform: none;
    }
}

/* Megamenü sichtbar mit Slide-Down Animation */
#phs-mega-menu.phs-mega-menu--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slide down to position */
    pointer-events: auto;
}

/* Megamenü Content Container */
.phs-mega-menu__container {
    width: 100%;
    padding: var(--space-2xl) 0; /* Nur vertikales Padding */
}

/* Grid Layout für Spalten */
.phs-mega-menu__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Gleiche Spaltenbreiten für perfekte Zentrierung */
    gap: 3rem; /* 48px */
    max-width: 1100px; /* Begrenzt Gesamtbreite */
    margin: 0 auto; /* Zentriert das Grid */
    padding: 0 var(--space-xl); /* Seitliches Padding für Mobile */
}

/* PHP-generierte Spalten (.nav-dropdown-column) - Apple Style */
.nav-dropdown-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Links nur so breit wie Inhalt */
    gap: 1.25rem; /* Mehr Abstand zwischen Links (Apple-Style) */
}

/* Mittlere Spalte zentriert */
.nav-dropdown-column:nth-child(2) {
    align-items: center;
    text-align: center;
}

/* Rechte Spalte rechtsbündig */
.nav-dropdown-column:nth-child(3) {
    align-items: flex-end;
    text-align: right;
}

.nav-dropdown-column h4 {
    font-family: var(--font-header);
    font-size: 1rem; /* Größer: 16px statt 14px */
    text-transform: uppercase;
    color: var(--penn-blue);
    margin-bottom: var(--space-lg); /* Mehr Abstand nach Headline */
    font-weight: 800;
    letter-spacing: 0.05em;
}

.nav-dropdown-column a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--penn-blue);
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.125rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-dropdown-column a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--old-gold);
    transition: width 0.3s ease;
}

.nav-dropdown-column a:hover {
    color: var(--old-gold);
}

.nav-dropdown-column a:hover::after {
    width: 100%;
}

/* Legacy: Alte .phs-mega-menu__column Klassen (falls noch verwendet) - Apple Style */
.phs-mega-menu__column h3 {
    font-family: var(--font-header);
    font-size: 1rem; /* Größer: 16px statt 14px */
    text-transform: uppercase;
    color: var(--penn-blue);
    margin-bottom: var(--space-lg); /* Mehr Abstand */
    font-weight: 800;
    letter-spacing: 0.05em;
}

.phs-mega-menu__item {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--penn-blue);
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.125rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.phs-mega-menu__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--old-gold);
    transition: width 0.3s ease;
}

.phs-mega-menu__item:hover {
    color: var(--old-gold);
}

.phs-mega-menu__item:hover::after {
    width: 100%;
}

/* ALTE .nav-dropdown Regeln - DEAKTIVIERT für Backward Compatibility */
.nav-dropdown,
.nav-dropdown-backdrop {
    display: none !important; /* Verstecke alte individuelle Dropdowns und Backdrops */
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn {
    display: none;
}

@media (min-width: 768px) {
    .header-actions .btn {
        display: inline-block;
    }
}

/* Mobile Menu Toggle - nur unter 1200px sichtbar */
.mobile-menu-toggle {
    display: none !important;
}

@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Desktop ab 1024px: Hamburger verstecken (iPad Pro landscape = 1112px) */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Navigation Links already styled above - no duplicate needed */

/* ===== MOBILE MENU ===== */
.phs-mobile-menu {
    position: fixed;
    top: 56px; /* Direkt unter der Brand Bar (Mobile Header) */
    left: 0;
    width: 100%;
    height: calc(100vh - 56px); /* Volle Höhe minus Mobile Header */
    background: white;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: all var(--transition-base);
    overflow-y: auto;
}

.phs-mobile-menu.active,
.phs-mobile-menu.phs-mobile-menu--active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Closing Animation - Content sofort ausblenden, Menu gleitet hoch */
.phs-mobile-menu.phs-mobile-menu--closing {
    opacity: 0;
    transform: translateY(-20%);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phs-mobile-menu__content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: var(--space-xl) var(--space-lg);
}

/* ===== MOBILE NAVIGATION - DRILL-DOWN / SLIDE VIEW ===== */
/* Apple iOS Settings Style Navigation */

/* Container für alle Views */
.mobile-menu-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 56px - var(--space-xl) * 2); /* Fallback height */
    overflow: hidden;
}

/* Basis für alle Views */
.mobile-menu-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--space-md) 0;
    overflow-y: auto;
    background: white;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hauptmenü - initial sichtbar */
.mobile-menu-main {
    transform: translateX(0);
}

/* Hauptmenü - nach links raus wenn Untermenü offen */
.mobile-menu-main.slide-out {
    transform: translateX(-100%);
}

/* Untermenüs - initial rechts versteckt */
.mobile-menu-sub {
    transform: translateX(100%);
}

/* Untermenü - sichtbar */
.mobile-menu-sub.active {
    transform: translateX(0);
}

/* ===== Hauptmenü Items ===== */
.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(219, 213, 205, 0.4);
    font-family: var(--font-header);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--penn-blue);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background-color: rgba(219, 213, 205, 0.2);
}

.mobile-menu-item span {
    flex: 1;
}

/* Chevron Icon */
.mobile-menu-chevron {
    width: 20px;
    height: 20px;
    color: #8E8E93; /* iOS Gray */
    flex-shrink: 0;
}

/* ===== Zurück-Button (prominent) ===== */
.mobile-menu-back {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: #F3F4F6; /* Gleicher Hintergrund wie Kategorie-Header */
    border: none;
    border-bottom: 1px solid rgba(219, 213, 205, 0.8);
    font-family: var(--font-header);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--penn-blue); /* Dunkelblau für besseren Kontrast */
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mobile-menu-back:hover,
.mobile-menu-back:active {
    background-color: #E5E7EB;
}

.mobile-menu-back svg {
    width: 18px;
    height: 18px;
    color: var(--old-gold); /* Gold nur für den Pfeil als Akzent */
}

/* ===== Kategorie Header (mit Hintergrund-Balken) ===== */
.mobile-menu-category {
    padding: 0.625rem var(--space-xl);
    margin-top: var(--space-lg);
    font-family: var(--font-header);
    font-size: 0.6875rem; /* 11px - kleiner, dezenter */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7280; /* Grau */
    background-color: #F3F4F6; /* Hellgrauer Hintergrund */
    border-top: 1px solid rgba(219, 213, 205, 0.5);
    border-bottom: 1px solid rgba(219, 213, 205, 0.5);
}

/* Erste Kategorie direkt nach Back-Button */
.mobile-menu-back + .mobile-menu-category {
    margin-top: 0;
    border-top: none;
}

/* ===== Untermenü Links ===== */
.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem var(--space-xl); /* Gleiche Ausrichtung wie Kategorie-Header */
    font-family: var(--font-interface);
    font-size: 0.9375rem; /* 15px */
    font-weight: 400;
    color: var(--penn-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(219, 213, 205, 0.3);
    transition: background-color 0.15s ease;
}

.mobile-menu-link span {
    flex: 1;
}

.mobile-menu-link-chevron {
    width: 16px;
    height: 16px;
    color: #C7C7CC; /* iOS-style dezentes Grau */
    flex-shrink: 0;
    margin-top: 1px; /* Optische Zentrierung */
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background-color: rgba(219, 213, 205, 0.25);
}

.mobile-menu-link:active .mobile-menu-link-chevron {
    color: #8E8E93;
}

/* ===== Staggered Fade-In Animation (Apple-Style) ===== */

/* Hauptmenü Items */
.mobile-menu-main .mobile-menu-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.mobile-menu-main .mobile-menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Untermenü Items */
.mobile-menu-sub .mobile-menu-category,
.mobile-menu-sub .mobile-menu-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.mobile-menu-sub .mobile-menu-category.visible,
.mobile-menu-sub .mobile-menu-link.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LEGACY: Accordion Styles (für Backwards-Compatibility) ===== */
.mobile-nav-section {
    border-bottom: 1px solid rgba(219, 213, 205, 0.6);
}

.mobile-nav-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: var(--space-lg) 0;
    font-family: var(--font-header);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--penn-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.mobile-nav-toggle:hover {
    color: var(--old-gold);
}

.mobile-nav-arrow {
    font-size: 1.25rem;
    transition: transform var(--transition-base);
}

.mobile-nav-section.active .mobile-nav-arrow {
    transform: rotate(90deg);
}

.mobile-nav-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.mobile-nav-section.active .mobile-nav-content {
    max-height: 2000px;
}

.mobile-nav-content h5 {
    font-family: var(--font-header);
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: #5A5D61;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.mobile-nav-content a {
    display: block;
    padding: 0.75rem var(--space-md);
    color: var(--penn-blue);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.mobile-nav-content a:hover {
    color: var(--old-gold);
    border-left-color: var(--old-gold);
    padding-left: var(--space-lg);
}

/* Header Button - Outline Style (Apple-like) */
.header-actions .btn-primary {
    font-family: var(--font-header);
    background: transparent;
    color: var(--penn-blue);
    font-size: 0.8125rem;
    padding: 6px 12px;
    border: 1px solid var(--penn-blue);
    transition: all var(--transition-fast);
}

.header-actions .btn-primary:hover {
    background: var(--penn-blue);
    color: white;
}

/* Icon Buttons - updated for navigation system */
.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-background);
    border: none;
    border-radius: 0; /* Keine Rundung - eckig */
    color: var(--penn-blue);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--ui-hover);
    color: var(--penn-blue);
}

.btn-icon .material-icons-outlined {
    font-size: 20px;
}

/* Hero Selection Icons */
.hero-select {
    position: relative;
}

/* Haus 1: Alternative (ohne Hintergrund, nur Outline) */
.hero-select:not(.hero-glasgow) {
    background: transparent;
    border: 1px solid var(--ui-background);
}

.hero-select:not(.hero-glasgow):hover {
    background: var(--ui-background);
}

/* Haus 2: Glasgow (mit grauem Hintergrund, filled icon) */
.hero-select.hero-glasgow {
    background: var(--ui-background);
}

.hero-select.hero-glasgow:hover {
    background: var(--ui-hover);
}

/* Active State - Penn Blue Rahmen */
.hero-select.active {
    border: 2px solid var(--penn-blue);
    box-shadow: 0 0 0 1px var(--penn-blue);
}

.hero-select.active .material-icons,
.hero-select.active .material-icons-outlined {
    color: var(--penn-blue);
}

/* CTA Header Styling - hide on mobile */
.phs-header__cta {
    display: none;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .phs-header__cta {
        display: flex;
    }
}

/* ===== DARK THEME VARIANT ===== */
.site-header-dark {
    background: var(--penn-blue);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header-dark .header-brand a {
    color: white;
}

.site-header-dark .brand-text {
    color: white;
}

.site-header-dark .material-icons,
.site-header-dark .material-icons-outlined {
    color: white;
}

.site-header-dark .nav-link {
    color: rgba(255,255,255,0.9);
}

.site-header-dark .nav-link:hover {
    color: white;
}

.site-header-dark .nav-link.active {
    color: var(--old-gold);
}

.site-header-dark .btn-icon {
    color: white;
}

.site-header-dark .btn-icon:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .header-brand .brand-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 390px) {
    .header-logo {
        font-size: 1rem;
    }
}

/* ===== NAV SUBTITLE (für Ansprechpartner mit Funktion) ===== */
/* HINWEIS: Diese Styles sind hier und nicht in 08-navigation.css,
   weil 08-navigation.css nicht in die Seite eingebunden wird!
   Siehe docs/css-architecture-hinweise.md */
.nav-subtitle {
    display: block !important;
    font-family: var(--font-header);
    font-style: italic;
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--cadet-gray);
    margin-top: 3px;
    line-height: 1.3;
}

.nav-dropdown a:hover .nav-subtitle {
    color: var(--battleship-gray);
}

.mobile-menu-link .nav-subtitle {
    display: block !important;
    font-family: var(--font-header);
    font-style: italic;
    font-size: 0.8em;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--cadet-gray);
    margin-top: 3px;
    line-height: 1.3;
}
