/* 
================================================================================
VIDEO PRELOADER - VOLLBILD
- Keine Nutzung von .hidden (kollidiert oft global mit display:none !important)
================================================================================
*/

/* =============================================================================
   1. PRELOADER CONTAINER
   ============================================================================= */
#video-preloader {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    overflow: hidden !important;
    background-color: #000000 !important;

    z-index: 999999999 !important;

    /* Standard: block, Sichtbarkeit steuern wir nur per opacity/visibility */
    display: block !important;

    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;

    pointer-events: auto !important;

    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* Default im HTML: class="preloader-hidden" => unsichtbar */
#video-preloader.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =============================================================================
   2. VIDEO
   ============================================================================= */
#preloader-video {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;

    z-index: 1 !important;

    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;

    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* =============================================================================
   3. IOS FIXES
   ============================================================================= */
@supports (-webkit-touch-callout: none) {
    #video-preloader {
        height: 100dvh !important;
        height: -webkit-fill-available !important;
    }
}

/* =============================================================================
   4. REDUCED MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    #video-preloader {
        transition: opacity 0.1s !important;
    }
}
