/* ==========================================================================
   RX DESIGN UI - FRONTEND STYLES (3-TEILIGE VORHANG- & 2D-ANIMATIONEN)
   Sprache: Deutsch
   ========================================================================== */

/* --- Basis-Stil für den Trigger-Button (Auslöser) --- */
.rx-ausloeser { 
    display: inline-block; 
    padding: 12px 24px; 
    background: #6366f1; 
    color: #fff !important; 
    text-decoration: none !important; 
    border-radius: 6px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: background 0.3s ease; 
    border: none; 
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}
.rx-ausloeser:hover { 
    background: #4f46e5; 
}

/* --- Vollbild-Schublade (Drawer) Basis-Einstellungen mit hoher 2D-Performance --- */
.rx-schublade { 
    position: fixed; 
    top: 0 !important;   /* BEHEBUNG: Garantiert die Ausrichtung ganz oben auf allen Geräten! */
    left: 0 !important;  /* BEHEBUNG: Garantiert die Ausrichtung ganz links auf allen Geräten! */
    background: #fff; 
    box-shadow: 0 10px 50px rgba(0,0,0,0.3); 
    z-index: 999999; 
    overflow: hidden; 
    display: block; 
    width: 100vw; 
    height: 100vh; 
    
    pointer-events: none;
    opacity: 0;
    
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    
    /* Sanfter Übergang mit einem edlen Brems-Effekt (1.3 Sekunden) */
    transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rx-schublade.ist-offen {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* --- Innerer Scroll-Wrapper (0px Padding damit kein Leerraum entsteht!) --- */
.rx-schubladen-inhalt {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    display: block;
    padding-top: 0px !important; /* Auf 0px gesetzt gegen ungewollte Abstände */
}

/* --- Sanfte Hintergrund-Überlagerung (Overlay) mit Blur-Effekt --- */
.rx-ueberlagerung { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 23, 42, 0.6); 
    z-index: 999998; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.8s ease; 
    backdrop-filter: blur(6px); 
}
.rx-ueberlagerung.ist-aktiv { 
    opacity: 1; 
    pointer-events: auto; 
}

/* --- Schließen-Taste (Dauerhaft oben rechts fixiert) --- */
.rx-schliessen-taste { 
    position: absolute; 
    top: 25px; 
    right: 25px; 
    background: #0f172a; 
    color: #fff; 
    border: none; 
    width: 44px; 
    height: 44px; 
    line-height: 44px; 
    font-size: 22px; 
    text-align: center; 
    cursor: pointer; 
    z-index: 1000000; 
    font-weight: bold; 
    border-radius: 50%; 
    transition: background 0.3s, transform 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}
.rx-schliessen-taste:hover { 
    background: #334155; 
    transform: scale(1.1); 
}
body.rx-kein-scrollen { 
    overflow: hidden !important; 
}

/* ==========================================================================
   YENİ: 3-PARÇALI ÖZEL PERDE (VORHANG) GEÇİŞLERİ (KASKADIEREND REVEAL)
   ========================================================================== */
.rx-dreifach-vorhang-behaelter {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    pointer-events: none;
    display: none; /* Standardmäßig ausgeblendet */
}

/* Aktivierung nur für Dreifach-Vorhang-Animationen */
.rx-schublade[class*="dreifach-vorhang-"] .rx-dreifach-vorhang-behaelter {
    display: flex !important;
}

.rx-vorhang {
    background-color: #ffffff; /* Weißer Saubere-Vorhang passend zum Standard-Hintergrund */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
}

/* --- A) VERTICAL (DİKEY): Perdeler Yukarı Doğru Sırayla Kayar --- */
.rx-schublade.dreifach-vorhang-vertikal { top: 0; left: 0; }
.rx-schublade.dreifach-vorhang-vertikal .rx-dreifach-vorhang-behaelter { display: flex !important; }
.rx-schublade.dreifach-vorhang-vertikal .rx-vorhang { height: 100%; flex: 1; transform: translate3d(0, 0, 0); }

/* Kaskadierende Verzögerungen für dikey Vorhänge (BEHEBUNG: Tippfehler korrigiert!) */
.rx-schublade.dreifach-vorhang-vertikal.ist-offen .rx-vorhang-eins { transform: translate3d(0, -100%, 0) !important; transition-delay: 0.15s !important; }
.rx-schublade.dreifach-vorhang-vertikal.ist-offen .rx-vorhang-zwei { transform: translate3d(0, -100%, 0) !important; transition-delay: 0.35s !important; }
.rx-schublade.dreifach-vorhang-vertikal.ist-offen .rx-vorhang-drei { transform: translate3d(0, -100%, 0) !important; transition-delay: 0.55s !important; }

/* --- B) HORIZONTAL (YATAY): Perdeler sola doğru kayarak açılır --- */
.rx-schublade.dreifach-vorhang-horizontal { top: 0; left: 0; }
.rx-schublade.dreifach-vorhang-horizontal .rx-dreifach-vorhang-behaelter { display: flex !important; flex-direction: column !important; }
.rx-schublade.dreifach-vorhang-horizontal .rx-vorhang { width: 100%; height: 33.34%; transform: translate3d(0, 0, 0); }

/* Kaskadierende Verzögerungen für yatay Vorhänge */
.rx-schublade.dreifach-vorhang-horizontal.ist-offen .rx-vorhang-eins { transform: translate3d(-100%, 0, 0) !important; transition-delay: 0.15s !important; }
.rx-schublade.dreifach-vorhang-horizontal.ist-offen .rx-vorhang-zwei { transform: translate3d(-100%, 0, 0) !important; transition-delay: 0.35s !important; }
.rx-schublade.dreifach-vorhang-horizontal.ist-offen .rx-vorhang-drei { transform: translate3d(-100%, 0, 0) !important; transition-delay: 0.55s !important; }


/* ==========================================================================
   DIE 25 STABILEN 2D- & SPEZIAL-ANIMATIONEN (HARDWARE-BESCHLEUNINIGT)
   ========================================================================== */

/* --- 1. STANDARDEINFLÜGE (ELEGANTES SCHIEBEN) --- */
.rx-schublade.slide-right { transform: translate3d(100%, 0, 0) !important; }
.rx-schublade.slide-right.ist-offen { transform: translate3d(0, 0, 0) !important; }

.rx-schublade.slide-left { transform: translate3d(-100%, 0, 0) !important; }
.rx-schublade.slide-left.ist-offen { transform: translate3d(0, 0, 0) !important; }

.rx-schublade.slide-bottom { transform: translate3d(0, 100%, 0) !important; }
.rx-schublade.slide-bottom.ist-offen { transform: translate3d(0, 0, 0) !important; }

.rx-schublade.slide-top { transform: translate3d(0, -100%, 0) !important; }
.rx-schublade.slide-top.ist-offen { transform: translate3d(0, 0, 0) !important; }


/* --- 2. DIAGONALE EINFLÜGE --- */
.rx-schublade.diagonal-einflug-oben-rechts { transform: translate3d(100%, -100%, 0) !important; }
.rx-schublade.diagonal-einflug-oben-rechts.ist-offen { transform: translate3d(0, 0, 0) !important; }

.rx-schublade.diagonal-einflug-unten-links { transform: translate3d(-100%, 100%, 0) !important; }
.rx-schublade.diagonal-einflug-unten-links.ist-offen { transform: translate3d(0, 0, 0) !important; }

.rx-schublade.diagonal-einflug-oben-links { transform: translate3d(-100%, -100%, 0) !important; }
.rx-schublade.diagonal-einflug-oben-links.ist-offen { transform: translate3d(0, 0, 0) !important; }

.rx-schublade.diagonal-einflug-unten-rechts { transform: translate3d(100%, 100%, 0) !important; }
.rx-schublade.diagonal-einflug-unten-rechts.ist-offen { transform: translate3d(0, 0, 0) !important; }


/* --- 3. ELASTISCHE SPRÜNGE (BOUNCE-EFFEKT) --- */
.rx-schublade.elastischer-sprung-unten { transform: translate3d(0, 100%, 0) !important; }
.rx-schublade.elastischer-sprung-unten.ist-offen { transform: translate3d(0, 0, 0) !important; transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15) !important; }

.rx-schublade.elastischer-sprung-oben { transform: translate3d(0, -100%, 0) !important; }
.rx-schublade.elastischer-sprung-oben.ist-offen { transform: translate3d(0, 0, 0) !important; transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15) !important; }

.rx-schublade.elastischer-sprung-zentrum { transform: scale(0.3) !important; }
.rx-schublade.elastischer-sprung-zentrum.ist-offen { transform: scale(1) !important; transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.2) !important; }


/* --- 4. KINOREIFE & FOKUS-EFFEKTE --- */
.rx-schublade.kino-fokus-unschaerfe { filter: blur(30px) !important; transform: scale(1.1) !important; }
.rx-schublade.kino-fokus-unschaerfe.ist-offen { filter: blur(0px) !important; transform: scale(1) !important; }

.rx-schublade.wellen-effekt { transform: scale(0.7) rotate(-8deg) !important; filter: blur(15px) !important; }
.rx-schublade.wellen-effekt.ist-offen { transform: scale(1) rotate(0deg) !important; filter: blur(0px) !important; }

.rx-schublade.kino-zoom-out-fade { transform: scale(1.4) translate3d(0, -30px, 0) !important; }
.rx-schublade.kino-zoom-out-fade.ist-offen { transform: scale(1) translate3d(0, 0, 0) !important; }

.rx-schublade.kino-zoom-in-fade { transform: scale(0.6) translate3d(0, 30px, 0) !important; }
.rx-schublade.kino-zoom-in-fade.ist-offen { transform: scale(1) translate3d(0, 0, 0) !important; }


/* --- 5. WIRBEL- & SPIRAL-EFFEKTE --- */
.rx-schublade.spiral-drehung-rechts { transform: translate3d(100%, 0, 0) rotate(180deg) scale(0.5) !important; }
.rx-schublade.spiral-drehung-rechts.ist-offen { transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important; }

.rx-schublade.spiral-drehung-links { transform: translate3d(-100%, 0, 0) rotate(-180deg) scale(0.5) !important; }
.rx-schublade.spiral-drehung-links.ist-offen { transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important; }

.rx-schublade.wirbel-zoom { transform: scale(0.1) rotate(720deg) !important; }
.rx-schublade.wirbel-zoom.ist-offen { transform: scale(1) rotate(0deg) !important; }

.rx-schublade.wirbel-zoom-out { transform: scale(2.2) rotate(-360deg) !important; }
.rx-schublade.wirbel-zoom-out.ist-offen { transform: scale(1) rotate(0deg) !important; }


/* --- 6. SCHRÄGEN & SPLITS --- */
.rx-schublade.paralleles-schraeg-rechts { transform: translate3d(100%, 0, 0) skewX(-15deg) !important; }
.rx-schublade.paralleles-schraeg-rechts.ist-offen { transform: translate3d(0, 0, 0) skewX(0deg) !important; }

.rx-schublade.paralleles-schraeg-links { transform: translate3d(-100%, 0, 0) skewX(15deg) !important; }
.rx-schublade.paralleles-schraeg-links.ist-offen { transform: translate3d(0, 0, 0) skewX(0deg) !important; }

.rx-schublade.split-effekt-horizontal { transform: scaleX(0) !important; }
.rx-schublade.split-effekt-horizontal.ist-offen { transform: scaleX(1) !important; }

.rx-schublade.split-effekt-vertikal { transform: scaleY(0) !important; }
.rx-schublade.split-effekt-vertikal.ist-offen { transform: scaleY(1) !important; }


/* --- 7. WEITERE SPEZIALEFFEKTE --- */
.rx-schublade.schwebende-skalierung { transform: scale(0.85) translate3d(0, 30px, 0) !important; }
.rx-schublade.schwebende-skalierung.ist-offen { transform: scale(1) translate3d(0, 0, 0) !important; }

.rx-schublade.schatten-zoom { transform: scale(1.3) !important; filter: brightness(0.2) !important; }
.rx-schublade.schatten-zoom.ist-offen { transform: scale(1) !important; filter: brightness(1) !important; }


/* --- Responsive Anpassungen für Mobilgeräte --- */
@media (max-width: 768px) {
    .rx-schubladen-inhalt {
        padding-top: 95px !important; 
    }
    .rx-schliessen-taste {
        top: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 18px !important;
    }
}