/**
 * CockpitOS Light Theme - Header Widget Styles
 * 
 * Verantwortlichkeit: Styles für Header Widget
 * Responsive, Modern, Performant
 * 
 * @package CockpitOS_MEC_Light_Theme
 * @version 1.0.0
 */

/* ========================================
   HEADER CONTAINER
   ======================================== */

.cockpit-header {
    position: relative;
    width: 100%;
    z-index: var(--z-index-sticky);
    transition: all 0.3s ease;
    overflow: visible !important; /* Logo darf herausragen */
}

/* Body: Verhindert horizontales Scrollen */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* ========================================
   STICKY HEADER - HÖHEN
   ======================================== */

/* Nicht gescrollt: Header 100px, Logo ragt raus (155px) */
.cockpit-header--sticky:not(.scrolled) {
    height: 100px !important;
}

/* Gescrollt: Header 80px, Logo passt rein (80px) */
.cockpit-header--sticky.scrolled {
    height: 80px !important;
}

/* Automatische Textfarbe: Dunkler Hintergrund → Heller Text */
.cockpit-header--dark-bg {
    color: var(--color-white, #ffffff);
}

.cockpit-header--dark-bg .cockpit-header__nav-list a,
.cockpit-header--dark-bg .cockpit-header__nav-list > li > a {
    color: var(--color-white, #ffffff) !important;
}

.cockpit-header--dark-bg .cockpit-header__social-icon {
    color: var(--color-white, #ffffff) !important;
}

.cockpit-header--dark-bg .cockpit-header__mobile-toggle span {
    background-color: var(--color-white, #ffffff) !important;
}

.cockpit-header--dark-bg .cockpit-header__search-icon {
    color: var(--color-white, #ffffff) !important;
}

.cockpit-header--dark-bg .cockpit-header__status-text {
    color: var(--color-white, #ffffff) !important;
}

/* Automatische Textfarbe: Heller Hintergrund → Dunkler Text */
.cockpit-header--light-bg {
    color: var(--color-neutral-semi-dark, #595959);
}

.cockpit-header--light-bg .cockpit-header__nav-list a,
.cockpit-header--light-bg .cockpit-header__nav-list > li > a {
    color: var(--color-accent, #343d4c) !important;
}

.cockpit-header--light-bg .cockpit-header__social-icon {
    color: var(--color-accent, #343d4c) !important;
}

.cockpit-header--light-bg .cockpit-header__mobile-toggle span {
    background-color: var(--color-accent, #343d4c) !important;
}

.cockpit-header--light-bg .cockpit-header__search-icon {
    color: var(--color-accent, #343d4c) !important;
}

/* Transparent Header Variant - Max Bonn Style */
.cockpit-header--transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Transparent Header: Am Anfang absolute (Inhalt dahinter sichtbar) */
.cockpit-header--transparent.cockpit-header--sticky:not(.scrolled) {
    position: absolute !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Logo im transparenten Header: Logo-Container bleibt sichtbar (weißer Hintergrund) */
.cockpit-header--transparent .cockpit-header__logo a {
    background-color: var(--color-white, #ffffff) !important; /* Logo-Container immer sichtbar */
}

.cockpit-header--transparent .cockpit-header__logo img,
.cockpit-header--transparent .cockpit-header__logo svg {
    filter: none; /* Logo bleibt in Original-Farbe, da Container weiß ist */
}

.cockpit-header--transparent .cockpit-header__nav-list a {
    color: var(--color-white);
}

.cockpit-header--transparent .cockpit-header__social-icon {
    color: var(--color-white);
}

.cockpit-header--transparent .cockpit-header__mobile-toggle span {
    background-color: var(--color-white);
}

.cockpit-header--transparent .cockpit-header__search-icon {
    color: var(--color-white);
}

/* Scrolled State - wird weiß und fixed */
.cockpit-header--transparent.cockpit-header--sticky.scrolled {
    position: fixed !important; /* Beim Scrollen fixed */
    background-color: var(--color-white) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
}

.cockpit-header--transparent.cockpit-header--transparent.cockpit-header--sticky.scrolled .cockpit-header__logo img,
.cockpit-header--transparent.cockpit-header--sticky.scrolled .cockpit-header__logo svg {
    filter: none; /* Logo bleibt in Original-Farbe */
}

.cockpit-header--transparent.cockpit-header--sticky.scrolled .cockpit-header__nav-list a {
    color: var(--color-accent); /* Dunkles Lila */
}

.cockpit-header--transparent.cockpit-header--sticky.scrolled .cockpit-header__social-icon {
    color: var(--color-accent);
}

.cockpit-header--transparent.cockpit-header--sticky.scrolled .cockpit-header__mobile-toggle span {
    background-color: var(--color-accent);
}

.cockpit-header--transparent.cockpit-header--sticky.scrolled .cockpit-header__search-icon {
    color: var(--color-accent);
}

/* Opening Status Badge - Integriert in rechte Sektion */
.cockpit-header__status {
    position: relative; /* Relativ zur rechten Sektion */
    display: flex;
    align-items: center;
    align-self: center; /* Vertikal mittig zur Right Section */
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.9); /* Leicht transparent für bessere Integration */
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    transition: all var(--transition-base);
    flex-shrink: 0; /* Verhindert Shrinking */
}

/* Status Badge Shrink Animation beim Scrollen */
.cockpit-header--sticky.scrolled .cockpit-header__status {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
}

.cockpit-header__status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    transition: width var(--transition-base), height var(--transition-base);
}

.cockpit-header--sticky.scrolled .cockpit-header__status-indicator {
    width: 8px;
    height: 8px;
}

.cockpit-header__status-indicator--open {
    background-color: #10b981; /* Green */
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.cockpit-header__status-indicator--closed {
    background-color: #ef4444; /* Red */
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.cockpit-header__status-text {
    color: var(--color-neutral-semi-dark, #595959);
    white-space: nowrap;
}

.cockpit-header--open .cockpit-header__status-text {
    color: #059669;
}

.cockpit-header--closed .cockpit-header__status-text {
    color: var(--color-error, #dc2626); /* Error-Farbe für "Geschlossen" */
}

/* Automatische Textfarbe für Status Badge bei dunklem Hintergrund */
.cockpit-header--dark-bg .cockpit-header__status {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.cockpit-header--dark-bg .cockpit-header__status-text {
    color: var(--color-white, #ffffff);
}

.cockpit-header--dark-bg.cockpit-header--open .cockpit-header__status-text {
    color: #6ee7b7; /* Helleres Grün für dunklen Hintergrund */
}

.cockpit-header--dark-bg.cockpit-header--closed .cockpit-header__status-text {
    color: #fca5a5; /* Helleres Rot für dunklen Hintergrund */
}

/* ========================================
   STICKY HEADER - POSITION
   ======================================== */

/* Sticky Header: Am Anfang absolute (bei transparent) */
.cockpit-header--sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: var(--z-index-sticky) !important;
    transition: all 0.3s ease;
}

/* Transparent Header: Am Anfang absolute, beim Scrollen fixed */
.cockpit-header--transparent.cockpit-header--sticky:not(.scrolled) {
    position: absolute !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.cockpit-header--transparent.cockpit-header--sticky.scrolled {
    position: fixed !important;
    background-color: var(--color-white) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
}

/* WordPress Admin Bar Offset - nur für fixed Header */
.admin-bar .cockpit-header--sticky.scrolled,
.admin-bar .cockpit-header--sticky:not(.cockpit-header--transparent) {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .cockpit-header--sticky.scrolled,
    .admin-bar .cockpit-header--sticky:not(.cockpit-header--transparent) {
        top: 46px !important;
    }
}



/* ========================================
   HEADER CONTAINER & INNER
   ======================================== */

.cockpit-header__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible !important; /* Logo darf herausragen */
}

.cockpit-header__inner {
    display: flex;
    align-items: stretch; /* Kein automatisches Zentrieren */
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible !important; /* Logo darf herausragen */
}

/* Logo: Flexbox-Zentrierung (damit top-Offset funktioniert) */
.cockpit-header__logo {
    display: flex;
    align-items: center; /* Logo-Inhalt vertikal zentriert */
}

/* Navigation und Right Section: Vertikal mittig zum Header */
.cockpit-header__nav,
.cockpit-header__right {
    display: flex;
    align-items: center; /* Vertikal mittig im Header */
    align-self: center; /* Zentriert zum Header-Container */
}

/* Elementor Container: Logo darf herausragen */
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container {
    overflow: visible !important;
}

/* ========================================
   LOGO
   ======================================== */

.cockpit-header__logo {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.cockpit-header__logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    background-color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Logo Container Transparent */
.cockpit-header__logo-container--transparent,
.cockpit-header__logo-link.cockpit-header__logo-container--transparent {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ========================================
   LOGO GRÖSSEN - DESKTOP
   ======================================== */

/* Logo Bild - Basis */
.cockpit-header__logo img {
    display: block;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Nicht gescrollt: Logo 155px hoch (ragt aus 100px Header raus) */
.cockpit-header--sticky:not(.scrolled) .cockpit-header__logo {
    margin-top: -27.5px; /* Logo ragt oben raus: (155 - 100) / 2 = 27.5px */
    margin-bottom: -27.5px; /* Kompensiert den Überstand nach unten */
}

.cockpit-header--sticky:not(.scrolled) .cockpit-header__logo img {
    height: 155px;
    width: auto;
}

/* Gescrollt: Logo 60px hoch (passt in 80px Header) */
.cockpit-header--sticky.scrolled .cockpit-header__logo {
    margin-top: 0;
    margin-bottom: 0;
}

.cockpit-header--sticky.scrolled .cockpit-header__logo img {
    height: 60px;
    width: auto;
}

.cockpit-header--sticky.scrolled .cockpit-header__logo a {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 0.25rem 0.75rem;
}

.cockpit-header__logo-text {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-2xl);
    color: var(--color-gray-900);
    text-decoration: none;
}

/* Desktop Navigation (nur Menüliste) */
.cockpit-header__nav.cockpit-header__nav--desktop {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    margin-left: auto;
}

.cockpit-header__nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
}

.cockpit-header__nav-list li {
    margin: 0;
}

.cockpit-header__nav-list a {
    display: block;
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-base);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.cockpit-header__nav-list a:hover {
    color: var(--color-primary);
}

/* Active/Current Menu Item */
.cockpit-header__nav-list .current-menu-item > a,
.cockpit-header__nav-list .current_page_item > a {
    color: var(--color-primary);
}

/* Hover Underline Effect */
.cockpit-header__nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.cockpit-header__nav-list > li > a:hover::after,
.cockpit-header__nav-list > .current-menu-item > a::after,
.cockpit-header__nav-list > .current_page_item > a::after {
    width: 100%;
}

/* Dropdown/Submenu Navigation - Max Bonn Style */
.cockpit-header__nav-list li {
    position: relative;
}

/* Menu items mit Submenu */
.cockpit-header__nav-list li.menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform var(--transition-fast);
}

.cockpit-header__nav-list li.menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

/* Submenu Container */
.cockpit-header__nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-sm);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

/* Show Submenu on hover */
.cockpit-header__nav-list li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Items */
.cockpit-header__nav-list .sub-menu li {
    margin: 0;
}

.cockpit-header__nav-list .sub-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-accent) !important;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.cockpit-header__nav-list .sub-menu a:hover {
    background-color: rgba(185, 146, 23, 0.1);
    color: var(--color-primary) !important;
    padding-left: calc(var(--spacing-lg) + 8px);
}

/* Remove underline from submenu items */
.cockpit-header__nav-list .sub-menu a::after {
    display: none;
}

/* Transparent Header Submenu Colors */
.cockpit-header--transparent .cockpit-header__nav-list .sub-menu {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.cockpit-header--transparent .cockpit-header__nav-list .sub-menu a {
    color: var(--color-accent) !important;
}

.cockpit-header--transparent .cockpit-header__nav-list .sub-menu a:hover {
    color: var(--color-primary) !important;
}

/* Right Section (Search + Social Icons + CTA) */
.cockpit-header__right {
    display: flex;
    align-items: center; /* Vertikal zentriert zur Header-Höhe */
    justify-content: flex-end; /* Rechts ausgerichtet */
    gap: var(--spacing-lg);
    flex-shrink: 0;
    margin-left: auto; /* Drückt nach rechts */
    height: 100%; /* Nimmt volle Header-Höhe ein */
}

/* Search Icon */
.cockpit-header__search {
    display: flex;
    align-items: center;
}

.cockpit-header__search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.cockpit-header__search-icon:hover {
    color: var(--color-primary);
    background-color: rgba(185, 146, 23, 0.1);
}

.cockpit-header__search-icon i,
.cockpit-header__search-icon svg {
    width: 1em;
    height: 1em;
}

/* Social Icons */
.cockpit-header__social {
    display: flex;
    align-items: center;
}

.cockpit-header__social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cockpit-header__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-700);
    font-size: 16px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.cockpit-header__social-icon:hover {
    color: var(--color-primary);
}

.cockpit-header__social-icon i,
.cockpit-header__social-icon svg {
    width: 1em;
    height: 1em;
}

/* CTA Button */
.cockpit-header__cta-wrapper {
    flex-shrink: 0;
}

.cockpit-header__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.cockpit-header__cta:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cockpit-header__cta i,
.cockpit-header__cta svg {
    font-size: 1.2em;
}

/* Mobile Menu Toggle: nur Hamburger (3 Linien), Overlay hat eigenen Close-Button */
.cockpit-header__mobile-toggle {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 32px;
    height: 24px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: var(--z-index-sticky);
    box-sizing: border-box;
}

.cockpit-header__mobile-toggle-bar,
.cockpit-header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    flex-shrink: 0;
    background-color: var(--color-gray-900, #1a1a1a);
    border-radius: 2px;
    transition: background-color var(--transition-fast);
}

.cockpit-header__mobile-toggle:hover .cockpit-header__mobile-toggle-bar,
.cockpit-header__mobile-toggle:hover span {
    background-color: var(--color-primary);
}

/* ========== Mobile Overlay (eigenes Element, kein DOM-Move) ========== */
.cockpit-header__mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility var(--transition-base), opacity var(--transition-base);
}

.cockpit-header__mobile-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cockpit-header__mobile-overlay-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.cockpit-header__mobile-overlay-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark, #2a3340) 100%);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-base);
}

.cockpit-header__mobile-overlay:not(.is-open) .cockpit-header__mobile-overlay-panel {
    transform: translateX(100%);
}

.cockpit-header__mobile-overlay.is-open .cockpit-header__mobile-overlay-panel {
    transform: translateX(0);
}

.cockpit-header__mobile-overlay-close {
    position: absolute;
    top: var(--spacing-3, 1rem);
    right: var(--spacing-3, 1rem);
    z-index: 10;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.admin-bar .cockpit-header__mobile-overlay-close {
    top: calc(46px + var(--spacing-2, 0.5rem));
}

@media screen and (min-width: 783px) {
    .admin-bar .cockpit-header__mobile-overlay-close {
        top: calc(32px + var(--spacing-2, 0.5rem));
    }
}

.cockpit-header__mobile-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.cockpit-header__mobile-overlay-close:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.cockpit-header__mobile-overlay-close svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cockpit-header__mobile-overlay-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--spacing-3, 1rem) + 44px) var(--spacing-2xl) var(--spacing-2xl);
    padding-top: calc(var(--spacing-3, 1rem) + 52px);
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: 0 0 var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list > li > a {
    font-size: var(--font-size-lg);
    padding: var(--spacing-sm) 0;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white) !important;
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list > li > a:hover {
    color: var(--color-secondary, #f2f2f2) !important;
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list .current-menu-item > a,
.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list .current_page_item > a {
    color: var(--color-secondary, #f2f2f2) !important;
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
    margin-top: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list .sub-menu li {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: var(--spacing-md);
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list .sub-menu a {
    font-size: var(--font-size-base);
    padding: var(--spacing-xs) 0;
    color: rgba(255, 255, 255, 0.8) !important;
}

.cockpit-header__mobile-overlay-nav .cockpit-header__nav-list .sub-menu a:hover {
    color: var(--color-white) !important;
}

@media (min-width: 769px) {
    .cockpit-header__mobile-overlay {
        display: none !important;
    }
}

/* Responsive Styles - Tablet */
@media (max-width: 1024px) {
    .cockpit-header__nav-list {
        gap: var(--spacing-md);
    }
    
    .cockpit-header__nav-list a {
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

/* Mobile Breakpoint: 1024px (6 Menüpunkte + Status brauchen mehr Platz) */
@media (max-width: 1024px) {
    /* Header Höhen auf Mobile */
    .cockpit-header--sticky:not(.scrolled) {
        height: 80px !important;
    }

    .cockpit-header--sticky.scrolled {
        height: 70px !important;
    }

    .cockpit-header__container {
        padding: 0 1rem;
    }

    .cockpit-header__inner {
        gap: 1rem;
    }

    /* Logo auf Mobile: Nicht gescrollt (100px hoch, ragt raus) */
    .cockpit-header--sticky:not(.scrolled) .cockpit-header__logo {
        margin-top: -10px; /* Logo ragt oben raus: (100 - 80) / 2 = 10px */
        margin-bottom: -10px;
    }

    .cockpit-header--sticky:not(.scrolled) .cockpit-header__logo img {
        height: 100px;
        width: auto;
    }

    /* Logo auf Mobile: Gescrollt (50px hoch, passt rein) */
    .cockpit-header--sticky.scrolled .cockpit-header__logo {
        margin-top: 0;
        margin-bottom: 0;
    }

    .cockpit-header--sticky.scrolled .cockpit-header__logo img {
        height: 50px;
        width: auto;
    }

    .cockpit-header--sticky.scrolled .cockpit-header__logo a {
        padding: 0.25rem 0.5rem;
    }

    /* Desktop-Elemente auf Mobile ausblenden */
    .cockpit-header__nav--desktop,
    .cockpit-header__social,
    .cockpit-header__cta-wrapper,
    .cockpit-header__search {
        display: none !important;
    }

    /* Opening Status bleibt sichtbar auf Mobile */
    .cockpit-header__status {
        display: flex !important;
    }

    /* Mobile Toggle Button: Hamburger = 3 Linien (space-between!), nicht center */
    .cockpit-header__mobile-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* 3 Linien: oben, Mitte, unten */
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 3;
        margin-left: auto;
        flex-shrink: 0;
        align-self: center;
        min-width: 44px;
        min-height: 44px;
        width: 32px;
        height: 24px;
        padding: 10px 6px; /* Platz für 3 Linien mit Abstand */
        position: relative;
        z-index: 100000;
    }

    /* Hamburger-Linien: feste Größe, sichtbare Farbe (Fallback für Kontrast) */
    .cockpit-header__mobile-toggle span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        min-height: 2px !important;
        flex-shrink: 0 !important;
        background-color: var(--color-gray-900, #1a1a1a) !important;
        transition: all var(--transition-base);
    }
    .cockpit-header--dark-bg .cockpit-header__mobile-toggle span,
    .cockpit-header--transparent .cockpit-header__mobile-toggle span {
        background-color: var(--color-white, #fff) !important;
    }
    .cockpit-header--transparent.scrolled .cockpit-header__mobile-toggle span {
        background-color: var(--color-accent, #343d4c) !important;
    }

    .cockpit-header__mobile-toggle-bar {
        display: block !important;
    }

    /* Mobile Overlay auf Mobile sichtbar steuern */
    .cockpit-header__mobile-overlay {
        display: block;
    }

    /* Mobile Menu Header (Logo + Social Icons) – im Overlay */
    .cockpit-header__mobile-header {
        order: 1; /* Logo ganz oben */
        padding: var(--spacing-2xl);
        padding-bottom: var(--spacing-lg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtile weiße Linie */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        background: rgba(255, 255, 255, 0.05); /* Leicht heller als Hintergrund */
    }
    
    /* Header mit Social Icons - Logo und Icons nebeneinander */
    .cockpit-header__mobile-header--with-social {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .cockpit-header__mobile-header--with-social .cockpit-header__mobile-logo {
        flex: 1;
    }
    
    .cockpit-header__mobile-logo {
        display: inline-block;
    }
    
    .cockpit-header__mobile-logo img {
        max-height: 60px;
        width: auto;
        object-fit: contain;
    }
    
    /* Social Icons im Header */
    .cockpit-header__mobile-header-social {
        flex-shrink: 0;
    }
    
    .cockpit-header__mobile-header-social .cockpit-header__social-icons {
        display: flex;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    .cockpit-header__mobile-header-social .cockpit-header__social-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1); /* Transparentes Weiß */
        color: var(--color-white);
        transition: all var(--transition-fast);
    }

    .cockpit-header__mobile-header-social .cockpit-header__social-icon:hover {
        background-color: var(--color-secondary, #f2f2f2); /* Secondary Color */
        color: var(--color-primary); /* Primary Text auf Secondary BG */
        transform: translateY(-2px);
    }
    
    /* Mobile Menu Content */
    .cockpit-header__mobile-content {
        flex: 1;
        padding: var(--spacing-2xl);
        padding-bottom: var(--spacing-lg);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xl);
        overflow-y: auto;
        order: 3; /* Content kommt nach Navigation */
        background: rgba(255, 255, 255, 0.03); /* Sehr subtiler Hintergrund */
    }
    
    .cockpit-header__mobile-logo img {
        max-height: 60px;
        width: auto;
        object-fit: contain;
    }
    
    /* Mobile Section */
    .cockpit-header__mobile-section {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Header Mobile Section Title nutzt globale h6 Styles */
    .cockpit-header__mobile-section-title {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        /* Nutzt globale h6 Styles (font-family, font-size, font-weight, text-transform, letter-spacing) */
        color: var(--color-white); /* Weiße Überschriften */
        margin: 0;
    }

    .cockpit-header__mobile-section-title svg {
        flex-shrink: 0;
        color: var(--color-secondary, #f2f2f2); /* Secondary Color für Icons */
    }
    
    /* Öffnungszeiten */
    .cockpit-header__mobile-hours-list {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cockpit-header__mobile-hours-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtile weiße Linie */
    }

    .cockpit-header__mobile-hours-item:last-child {
        border-bottom: none;
    }

    .cockpit-header__mobile-hours-day {
        font-weight: var(--font-weight-medium);
        color: var(--color-white); /* Weiße Tage */
    }

    .cockpit-header__mobile-hours-time {
        color: rgba(255, 255, 255, 0.7); /* Leicht transparentes Weiß */
        font-size: var(--font-size-sm);
    }
    
    /* Kontakt */
    .cockpit-header__mobile-contact-list {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cockpit-header__mobile-contact-item {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
        color: rgba(255, 255, 255, 0.9); /* Fast weißer Text */
        text-decoration: none;
        transition: color var(--transition-fast);
    }

    .cockpit-header__mobile-contact-item:hover {
        color: var(--color-secondary, #f2f2f2); /* Secondary beim Hover */
    }

    .cockpit-header__mobile-contact-item svg {
        flex-shrink: 0;
        color: var(--color-secondary, #f2f2f2); /* Secondary für Icons */
    }
    
    /* Social Media */
    .cockpit-header__mobile-social-icons {
        display: flex;
        gap: var(--spacing-md);
        flex-wrap: wrap;
    }
    
    .cockpit-header__mobile-social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1); /* Transparentes Weiß */
        color: var(--color-white);
        transition: all var(--transition-fast);
        text-decoration: none;
    }

    .cockpit-header__mobile-social-icon:hover {
        background-color: var(--color-secondary, #f2f2f2); /* Secondary Color */
        color: var(--color-primary); /* Primary Text auf Secondary BG */
        transform: translateY(-2px);
    }
    
    /* CTA Button */
    .cockpit-header__mobile-cta {
        padding-top: var(--spacing-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtile weiße Linie */
    }

    .cockpit-header__mobile-cta .cockpit-header__cta {
        width: 100%;
        justify-content: center;
        background-color: var(--color-secondary, #f2f2f2); /* Secondary Background */
        color: var(--color-primary); /* Primary Text */
        border: none;
    }

    .cockpit-header__mobile-cta .cockpit-header__cta:hover {
        background-color: var(--color-white); /* Weiß beim Hover */
        color: var(--color-primary);
        transform: translateY(-2px);
    }
    
    .cockpit-header__right {
        display: none;
    }
    
    /* Opening Status Badge auf Mobile verstecken */
    .cockpit-header__status {
        display: none;
    }
}

/* Sticky Header Scroll Effect - wird jetzt oben definiert */

/* Accessibility */
.cockpit-header__mobile-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.cockpit-header__nav-list a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.cockpit-header__cta:focus {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

