/* 
 * HEADER CSS - FotoVision by groggfoto
 * Vereinheitlichte CSS für Titelbereich auf ALLEN Seiten
 * 
 * Kombiniert:
 * - titelbereich.css (Header, Logo, Navigation, Farbwellen)
 * - system-status (System-Indikator)
 * 
 * Bei Änderungen: Alle Seiten nutzen automatisch die neue Version!
 */

/* 🔷 1. HEADER-BEREICH (Dunkelblaues Band) */
.header {
    position: sticky;
    top: 0;
    background-color: #0f5b9d;
    z-index: 50;
}

/* HAMBURGER MENU FÜR MOBILE */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.4rem;
}

/* Responsive Hamburger-Größen (skaliert mit Logo) */
.hamburger-menu span {
    width: 20px;     /* Kleiner bei Mobile (Logo 100px) */
    height: 2.5px;
    background: white;
    margin: 2.5px 0;
    transition: 0.3s;
}

@media (min-width: 480px) {
    .hamburger-menu span {
        width: 22px;  /* Etwas größer (Logo 120px) */
        height: 2.5px;
        margin: 3px 0;
    }
}

@media (min-width: 768px) {
    .hamburger-menu span {
        width: 25px;  /* Noch größer (Logo 140px) */
        height: 3px;
        margin: 3px 0;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Container mit verstecktem Support-Button */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-container img {
    height: 100px; /* VIEL KLEINER für Mobile - Basis 100px */
    max-width: 100%;
    width: auto; /* Proportionen beibehalten */
}

/* Responsive Logo-Skalierung */
@media (min-width: 480px) {
    .logo-container img {
        height: 120px; /* Mittlere Größe */
    }
}

@media (min-width: 768px) {
    .logo-container img {
        height: 140px; /* Größer für Tablets */
    }
}

@media (min-width: 1024px) {
    .logo-container img {
        height: 160px; /* Original-Größe nur auf Desktop */
    }
}

/* KRITISCH: Versteckter Support-Button */
.hidden-support-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
}

/* ⚡🫧 Effekt-Toggle-Button: Unauffälliger hellblauer Punkt */
.effect-toggle-btn {
    position: fixed;
    right: 1.1rem;
    top: 16px;
    width: 12px;
    height: 12px;
    background-color: #87CEEB;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 51;
    opacity: 1;
}

/* 🔊 Audio-Toggle-Button: Lautsprecher-Symbol links oben */
.audio-toggle-btn {
    position: fixed;
    left: 5px;
    top: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.audio-toggle-btn:hover {
    background: transparent;
    border-color: transparent;
    transform: scale(1.1);
}

.audio-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: #ccc;
}

.nav-links a.active {
    border-bottom: 2px solid white;
    background-color: transparent;
}

/* MOBILE: Navigation komplett verstecken, Hamburger zeigen */
@media (max-width: 768px) {
    .navigation {
        position: relative;
    }
    
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        right: 1rem;
        width: auto;
        min-width: 200px;
        background: #0f5b9d;
        flex-direction: column;
        padding: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links a {
        padding: 0.75rem 1.5rem;
        border-bottom: none;
        white-space: nowrap;
        text-align: left;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .hamburger-menu {
        display: flex;
        position: fixed;
        top: 60px;        /* Direkt über dem Laufband (Logo 100px hoch bei Mobile) */
        right: 0.3rem;    /* Näher am rechten Rand */
        z-index: 9999;
        background: transparent;
        border-radius: 8px;
        padding: 0.6rem;  /* Kleiner Padding bei Mobile */
    }
}

/* Hamburger-Position anpassen für mittlere Screens */
@media (min-width: 480px) and (max-width: 768px) {
    .hamburger-menu {
        top: 75px;        /* Angepasst für Logo-Höhe 120px */
        padding: 0.65rem;
    }
}

/* Hamburger verstecken ab Desktop */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
}

/* Diverses-Button (versteckt bis Berechtigung) */
.support-link {
    display: none;
}

/* 🌊 2. ASYNCHRONE FARBWELLEN-ANIMATION */
.color-wave-container {
    width: 100%;
    height: 32px !important;      /* Immer 32px - auch auf kleinen Bildschirmen */
    min-height: 32px !important;  /* Verhindern von Komprimierung */
    max-height: 32px !important;  /* Verhindern von Expansion */
    position: relative;
    overflow: visible;
    margin-top: -4px;
    z-index: 40;
}

#wave-strip {
    height: 100%;           /* Volle Container-Höhe (32px) */
    width: 100%;
    display: block;
    background: #cfe8ff;    /* Fallback */
    will-change: background;
}

/* Wellen-Control-Buttons */
.wave-controls {
    position: absolute;
    top: 6px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 50;
}

/* Carousel-Speed-Controls - UNTER Farbstreifen */
.carousel-speed-controls {
    position: absolute;
    top: 100%;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 45;
    background: transparent;
    padding: 0;
    margin-top: 4px;
}

/* Aura-Speed-Controls - UNTER Carousel-Controls */
.aura-speed-controls {
    position: absolute;
    top: calc(100% + 32px);
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 45;
    background: transparent;
    padding: 0;
    margin-top: 4px;
}

.wave-control-btn {
    background: transparent;
    border: 1px solid rgba(15, 91, 157, 0.2);
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: rgba(15, 91, 157, 0.6);
}

.wave-control-btn:hover {
    background: rgba(15, 91, 157, 0.05);
    border-color: rgba(15, 91, 157, 0.4);
    color: rgba(15, 91, 157, 0.8);
    transform: scale(1.05);
}

.wave-control-btn svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

/* 🔔 SYSTEM STATUS INDICATOR */
.system-status {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(15, 91, 157, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    display: none;
}

.system-active-mode .system-status {
    display: block;
}

/* 🎬 WALKING VIDEO OVERLAY */
.walking-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 35;
    display: none;
}

.walking-video {
    position: absolute;
    bottom: -16px;
    height: 180px;
    width: auto;
    pointer-events: none;
    opacity: 0;
    transform: translateX(100vw);
    transition: opacity 0.3s ease-out;
}

@media (max-width: 767px) {
    .walking-video {
        height: 126px;
        bottom: -12px;
    }
}

.walking-video.fade-out {
    opacity: 0;
}

.walking-video.walking {
    animation: walkAcross var(--walk-duration, 20s) linear forwards;
}

@keyframes walkAcross {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-300px);
    }
}

/* Deaktivieren: display: none auf .walking-video-container setzen */
