/* Custom CSS Animations */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
            40% { transform: translateX(-50%) translateY(-10px); }
            60% { transform: translateX(-50%) translateY(-5px); }
        }

        .gradient-text {
            background: linear-gradient(135deg, #CBA135, #B8941F);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hidden-content { 
            display: none; 
        }

        .animate-fadeInUp {
            animation: fadeInUp 1s ease-out;
        }

        .animate-bounce-custom {
            animation: bounce 2s infinite;
        }

        html {
            scroll-behavior: smooth;
        }

        .parallax-bg {
            transition: transform 0.1s ease-out;
        }

        /* Background slideshow overlay positioning */
        .background-overlay {
            transition: opacity 1s ease-in-out;
        }

        /* Ensure content stays above background overlays */
        section > .relative {
            z-index: 10;
        }

        /* Desktop Responsivität für Video-Galerie - Scrollable Design */
        @media (min-width: 768px) {
            .reels-container {
                /* Desktop: Vertikale Scroll-Ansicht wie Mobile */
                display: block;
                height: 100vh;
                overflow-y: auto;
                scroll-snap-type: y mandatory;
                scroll-behavior: smooth;
                padding-top: 5rem; /* Platz für fixierte Navigation */
                background: black;
            }

            .reel-item {
                height: calc(100vh - 5rem); /* Abzüglich Navigation */
                scroll-snap-align: start;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                margin-bottom: 0;
                border-radius: 0;
                overflow: hidden;
                transition: none;
            }

            .reel-item:hover {
                transform: none;
                box-shadow: none;
            }

            .reel-item video {
                width: 100%;
                height: 100%;
                object-fit: contain !important; /* Immer contain verwenden um Abschneiden zu verhindern */
                border-radius: 0;
                background: black;
                object-position: center;
                /* Smooth transitions when video loads */
                transition: opacity 0.3s ease-in-out;
                /* Maximale Dimensionen für bessere Darstellung */
                max-width: 100%;
                max-height: 100%;
            }

            /* Für alle Video-Orientierungen: Immer contain verwenden */
            .reel-item video[data-orientation="portrait"],
            .reel-item video[data-orientation="landscape"],
            .reel-item video[data-orientation="square"] {
                object-fit: contain !important;
            }

            /* Desktop: Größere Play-Buttons */
            .play-pause-btn {
                width: 80px !important;
                height: 80px !important;
            }

            .play-pause-btn svg {
                width: 40px !important;
                height: 40px !important;
            }

            /* Desktop: Verbesserte Overlay-Positionierung */
            .reel-item .absolute.top-16 {
                top: 2rem;
            }

            .reel-item .absolute.top-4 {
                top: 1rem;
            }

            /* Sicherstellen, dass Video-Titel nicht abgeschnitten werden */
            .reel-item h3 {
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
                font-size: 1.5rem;
            }

            /* Video-Info-Box anpassen */
            .reel-item .absolute.top-16 {
                left: 2rem;
                right: 2rem;
                top: 2rem;
            }

            /* Progress Bar anpassen */
            .reel-item .absolute.top-4 {
                left: 2rem;
                right: 2rem;
                top: 1rem;
            }

            .progress-bar {
                height: 4px;
            }
        }

        /* Large Desktop (1200px+) - Gleiche scrollbare Ansicht */
        @media (min-width: 1200px) {
            .reels-container {
                padding-top: 5rem;
                max-width: 1200px;
                margin: 0 auto;
            }

            .reel-item {
                height: calc(100vh - 5rem);
            }

            .reel-item h3 {
                font-size: 1.75rem;
            }

            /* Größere Overlays für Desktop */
            .reel-item .absolute.top-16 {
                left: 3rem;
                right: 3rem;
                top: 3rem;
            }

            .reel-item .absolute.top-4 {
                left: 3rem;
                right: 3rem;
                top: 1.5rem;
            }
        }

        /* Extra Large Desktop (1600px+) - Konsistente scrollbare Ansicht */
        @media (min-width: 1600px) {
            .reels-container {
                max-width: 1400px;
                padding-top: 5rem;
            }

            .reel-item {
                height: calc(100vh - 5rem);
            }
        }

        /* Tablet Portrait Orientierung - Scrollbare Ansicht */
        @media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
            .reels-container {
                display: block;
                height: 100vh;
                overflow-y: auto;
                scroll-snap-type: y mandatory;
                padding-top: 5rem;
            }

            .reel-item {
                height: calc(100vh - 5rem);
                scroll-snap-align: start;
            }

            .reel-item video {
                object-fit: contain;
            }
        }

        /* Mobile Landscape bleibt bei ursprünglichem Design */
        @media (max-width: 767px) {
            .reels-container {
                display: block;
                height: 100vh;
                overflow-y: scroll;
                scroll-snap-type: y mandatory;
                padding: 0;
                gap: 0;
            }

            .reel-item {
                height: 100vh;
                border-radius: 0;
                scroll-snap-align: start;
            }

            .reel-item video {
                border-radius: 0;
                object-fit: contain; /* Mobile: Always contain for better UX */
                object-position: center;
            }
        }

        /* Smooth scrolling für Desktop */
        @media (min-width: 768px) {
            .reels-container {
                scroll-behavior: smooth;
            }
        }

        /* Progress Bar Anpassungen für Desktop */
        @media (min-width: 768px) {
            .progress-bar {
                height: 4px;
            }
        }

        /* Verbesserte Touch-Interaktionen für Tablets */
        @media (min-width: 768px) and (max-width: 1023px) {
            .reel-item {
                cursor: pointer;
            }

            .video-overlay {
                transition: opacity 0.3s ease;
            }

            .reel-item:hover .video-overlay {
                opacity: 0.8;
            }
        }

        /* Video Loading States and Performance Optimizations */
        .reel-item video {
            /* Smooth transitions when video loads */
            transition: opacity 0.3s ease-in-out;
        }

        .reel-item video:not([data-loaded="true"]) {
            opacity: 0.7;
        }

        .reel-item video[data-loaded="true"] {
            opacity: 1;
        }

        /* Loading indicator for videos */
        .video-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 1rem;
            z-index: 20;
        }

        /* Improved video controls visibility */
        .video-overlay {
            background: linear-gradient(
                to bottom, 
                rgba(0,0,0,0.3) 0%, 
                rgba(0,0,0,0.1) 30%, 
                rgba(0,0,0,0.1) 70%, 
                rgba(0,0,0,0.3) 100%
            );
            transition: opacity 0.3s ease;
        }

        .reel-item:hover .video-overlay {
            opacity: 1;
        }

        /* Better progress bar visibility */
        @media (min-width: 768px) {
            .progress-bar {
                height: 4px;
                box-shadow: 0 1px 3px rgba(0,0,0,0.3);
            }
            
            .progress-fill {
                box-shadow: 0 0 8px rgba(203, 161, 53, 0.6);
            }
        }

        /* Optimize for different video aspect ratios */
        .reel-item[data-video-format="landscape"] video {
            max-height: 85vh;
        }

        .reel-item[data-video-format="portrait"] video {
            max-width: 85vw;
        }

        @media (min-width: 768px) {
            .reel-item[data-video-format="landscape"] video {
                max-height: calc(100vh - 8rem);
            }

            .reel-item[data-video-format="portrait"] video {
                max-width: calc(100vw - 4rem);
            }
        }