/* ==========================================================================
   MOBILE ISOLATED FIXES - KEINE DESKTOP-BEEINTRÄCHTIGUNG
   ALLE ÄNDERUNGEN NUR INNERHALB VON MEDIA QUERIES
   DESKTOP BLEIBT 100% UNVERÄNDERT
   ========================================================================== */

/* ===== NUR FÜR MOBILE GERÄTE (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    
    /* ===== MOBILE NAVIGATION FIX ===== */
    
    /* Header Optimierung für Mobile */
    .header {
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .header__container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background: rgba(220, 20, 60, 0.1);
    }
    
    /* Hamburger Icon */
    .hamburger {
        width: 24px;
        height: 18px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hamburger__line {
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
    }
    
    .hamburger__line:nth-child(1) { top: 0; }
    .hamburger__line:nth-child(2) { top: 8px; }
    .hamburger__line:nth-child(3) { top: 16px; }
    
    /* Hamburger Animation zu X */
    .mobile-menu-toggle.active .hamburger__line:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    
    .mobile-menu-toggle.active .hamburger__line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger__line:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }
    
    /* Mobile Navigation Overlay */
    .header__nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 32px 24px;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .header__nav.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Navigation Groups Mobile */
    .nav-group-left,
    .nav-group-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 300px;
    }
    
    .nav-group-left {
        order: 1;
        margin-bottom: 24px;
    }
    
    .nav-group-right {
        order: 2;
    }
    
    /* Navigation Links Mobile */
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 24px;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
        touch-action: manipulation;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(220, 20, 60, 0.15);
        border-color: rgba(220, 20, 60, 0.3);
        color: #fff;
    }
    
    .nav-link--active {
        background: rgba(220, 20, 60, 0.2);
        border-color: rgba(220, 20, 60, 0.4);
        color: #DC143C;
    }
    
    /* Body Scroll Lock beim geöffneten Menü */
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* ===== PROBLEM 2: LOGO-BEREICH FIX - NUR 1 LOGO-PAAR ===== */
    
    /* Hide Desktop-only Elements und überschüssige Logos auf Mobile */
    .header__eagle,
    .header__logos-right,
    .header__eagle-right {
        display: none !important;
    }
    
    /* Logo Links - Optimierte Größe für Mobile */
    .header__logo {
        height: 40px;
        width: auto;
        flex-shrink: 0;
    }
    
    .header__logo-img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }
    
    /* Header Wrapper - Verbesserte Logo-Anordnung */
    .header__wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 16px;
        gap: 16px;
    }
    
    /* Content Push für Fixed Header */
    .hero,
    main {
        margin-top: 60px;
    }
    
    /* ===== PROBLEM 1: COUNTER ZENTRIERUNG FIX - VOLLSTÄNDIG SICHTBAR ===== */
    
    /* Counter Container - Verbesserte Positionierung */
    .hero__countdown-bar {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 350px;
        z-index: 20;
        padding: 0 10px;
    }
    
    .countdown__display {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        padding: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        text-align: center;
        flex-wrap: wrap;
        border: 1px solid rgba(220, 20, 60, 0.3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .countdown__display > * {
        flex: 1;
        min-width: 50px;
        text-align: center;
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
    
    /* ===== HERO VIDEO HINTERGRUND FIX ===== */
    
    /* Video Container für Mobile */
    .hero__video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
        
        /* iOS Safari Optimierungen - Force Autoplay */
        -webkit-playsinline: true;
        playsinline: true;
        autoplay: true;
        muted: true;
        loop: true;
        preload: auto;
        
        /* Entferne Controls auf Mobile */
        controls: false;
        -webkit-media-controls: none;
        -webkit-media-controls-fullscreen-button: none;
        playsinline: true;
        
        /* Verhindern von Pause beim Scrollen */
        pointer-events: none;
    }
    
    /* Video Overlay für bessere Lesbarkeit */
    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(220, 20, 60, 0.1) 50%,
            rgba(0, 0, 0, 0.6) 100%
        );
        z-index: -2;
    }
    
    /* Hero Section Mobile Optimierung */
    .hero {
        min-height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    /* ===== RESPONSIVE TYPOGRAPHY NUR MOBILE ===== */
    
    /* Überschriften Mobile */
    .section__title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        line-height: 1.2;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .velocity-title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        line-height: 1.3;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    /* Body Text Mobile */
    body,
    p {
        font-size: clamp(1rem, 3.5vw, 1.125rem);
        line-height: 1.6;
    }
    
    /* ===== TOUCH OPTIMIERUNGEN ===== */
    
    /* Touch Targets mindestens 44px */
    button,
    .nav-link,
    .velocity-button,
    .highlights__dot {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Prevent Zoom on Input Focus */
    input,
    select,
    textarea {
        font-size: 16px;
    }
    
    /* ===== PROBLEM 4: HIGHLIGHTS SLIDER MOBILE - ZENTRIERT MIT ROTEN DOTS ===== */
    
    .highlights__container {
        position: relative;
        overflow: hidden;
        width: 100%;
        margin: 0 auto;
    }
    
    .highlights__slider-wrapper {
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .highlights__slider {
        display: flex;
        gap: 16px;
        padding: 0 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        
        /* Zentrierte Ausrichtung */
        justify-content: flex-start;
        align-items: center;
    }
    
    .highlights__slider::-webkit-scrollbar {
        display: none;
    }
    
    .highlight-card {
        flex: 0 0 auto;
        width: calc(100vw - 64px);
        max-width: 300px;
        min-width: 280px;
        scroll-snap-align: center;
        border-radius: 12px;
        background: rgba(18, 18, 18, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0 auto;
    }
    
    /* Slider Controls Container - Zentriert positioniert */
    .highlights__slider-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 20px;
        position: relative;
    }
    
    /* Dots Navigation Mobile - Rote kleine Dots */
    .highlights__dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 0;
        position: relative;
        z-index: 10;
    }
    
    .highlights__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        
        /* Touch Target ausweiten für bessere Usability */
        padding: 12px;
        margin: -12px;
        
        /* Verhindert die falsche grüne Farbe */
        background-color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .highlights__dot.active {
        background: #DC143C !important;
        background-color: #DC143C !important;
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(220, 20, 60, 0.4);
    }
    
    .highlights__dot:hover {
        background: rgba(220, 20, 60, 0.7) !important;
        background-color: rgba(220, 20, 60, 0.7) !important;
    }
    
    /* Hide Arrow Controls auf Mobile */
    .highlights__slider-btn {
        display: none !important;
    }
    
    /* ===== PROBLEM 3: TICKETS GRID MOBILE - ANIMATIONEN DEAKTIVIERT ===== */
    
    .tickets__grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }
    
    .ticket-card {
        width: 100%;
        margin: 0;
        
        /* Alle Dreh-Effekte und Overlays deaktivieren */
        transform: none !important;
        transition: none !important;
        animation: none !important;
        
        /* Hover-Effekte deaktivieren */
        pointer-events: auto;
    }
    
    /* Velocity Overlay und Effekte komplett entfernen für Mobile */
    .ticket-card .velocity-bg,
    .ticket-card .velocity-stripe,
    .ticket-card::before,
    .ticket-card::after {
        display: none !important;
        opacity: 0 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Hover- und Transform-Effekte vollständig deaktivieren */
    .ticket-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Ticket Content statisch positionieren */
    .ticket-card__content {
        transform: none !important;
        transition: none !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* ===== PERFORMANCE OPTIMIERUNGEN ===== */
    
    /* Hardware Acceleration für bewegte Elemente */
    .mobile-menu-toggle,
    .hamburger__line,
    .header__nav,
    .nav-link {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Remove will-change nach Animationen */
    .header__nav:not(.nav-open) {
        will-change: auto;
    }
    
    /* ===== ACCESSIBILITY ===== */
    
    /* Focus Indicators */
    .mobile-menu-toggle:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid #DC143C;
        outline-offset: 2px;
    }
    
    /* Screen Reader Only */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* ===== NUR FÜR SEHR KLEINE MOBILE GERÄTE (max-width: 480px) ===== */
@media screen and (max-width: 480px) {
    
    /* Extra kleine Geräte Anpassungen */
    .nav-link {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .velocity-title {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
    
    .section__title {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    
    .highlight-card {
        width: calc(100vw - 60px);
        max-width: 280px;
    }
    
    .highlights__slider {
        gap: 12px;
        padding: 0 16px;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    .hamburger__line,
    .header__nav,
    .nav-link,
    .highlights__dot {
        transition: none !important;
        animation: none !important;
    }
}