/* ===================================== 
   VIDEO SLIDER STYLES
   ===================================== */

/* Slider Wrapper */
.video-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slider Track */
.video-slider-track {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

/* Einzelnes Slider-Item */
.video-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.video-slider-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Navigation Buttons */
.video-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    color: #fff!important;
}

.video-slider-nav.prev {
    left: 15px;
}

.video-slider-nav.next {
    right: 15px;
}

.video-slider-nav svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.video-slider-nav:hover svg {
    fill: #fff;
    stroke: #fff;
}

/* Indikatoren */
.video-slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-slider-indicators .indicator.active {
    background: #fff;
    transform: scale(1.2);
}

.video-slider-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===================================== 
   HAUPTSLIDER (S-HERO) - AUSRICHTUNG MIT TEXT
   ===================================== */

/* Hero-Video-Container zurücksetzen und ganz oben */
.s-hero .hero-video-container {
    padding: 0 !important;
    margin: 0 !important;
    align-self: flex-start !important;
}

/* WICHTIG: ::before Element entfernen (kommt aus youtube.css) */
.s-hero .hero-video-container::before {
    display: none !important;
    padding-bottom: 0 !important;
}

/* Video-Slider-Wrapper ganz oben */
.s-hero .video-slider-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero-Content beide Spalten oben ausrichten */
.s-hero .hero-content__inner {
    align-items: flex-start !important;
}

.s-hero .hero-content__inner .column {
    align-self: flex-start !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Rechte Spalte (Video-Spalte) ganz oben */
.s-hero .hero-content__inner .column.large-half:last-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
    align-self: flex-start !important;
}

.s-hero .video-slider-nav.prev:hover  {
    border: solid 2px #fff;
    color: #fff!important;
}

.s-hero .video-slider-nav.next:hover  {
    border: solid 2px #fff;
    color: #fff!important;
}



/* ===================================== 
   ABOUT-SECTION: 3 VIDEOS VERTIKAL MIT BUTTONS OBEN/UNTEN - DESKTOP
   ===================================== */

@media screen and (min-width: 769px) {
    /* Hero-Video-Container in About-Section zurücksetzen und ganz oben */
    .s-about .hero-video-container {
        padding: 0 !important;
        margin: 0 !important;
        align-self: flex-start !important;
    }
    
    /* WICHTIG: ::before Element entfernen (kommt aus youtube.css) */
    .s-about .hero-video-container::before {
        display: none !important;
        padding-bottom: 0 !important;
    }
    
    /* Video-Slider-Wrapper - Flexbox für Button-Anordnung */
    .s-about .video-slider-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* NEUER Container für scrollbare Videos */
    .s-about .video-slider-track-container {
        width: 100%;
        overflow: hidden;
        position: relative;
        order: 0;
        /* Höhe wird per JavaScript dynamisch gesetzt */
    }
    
    /* Desktop: Track mit allen Videos */
    .s-about .video-slider-track {
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: relative;
        height: auto;
        width: 100%;
        transition: transform 0.5s ease-in-out;
    }
    
    /* Alle Videos sind da, aber nur 3 sichtbar */
    .s-about .video-slider-item {
        position: relative;
        opacity: 1;
        visibility: visible;
        width: 100%;
        height: auto;
        padding-bottom: 56.25%; /* 16:9 für jedes Item */
        flex-shrink: 0; /* Videos behalten ihre Größe */
    }
    
    .s-about .video-slider-item .youtube-thumbnail-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Navigation als SEPARATE FELDER oben und unten - OHNE border-radius */
    .s-about .video-slider-nav {
        position: relative;
        width: 100%;
        height: 60px;
        background: #000;
        border: 2px solid #000;
        border-radius: 0;  /* KEINE Rundung - eckig! */
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        margin: 0 !important;
        padding: 0;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        box-sizing: border-box;
    }
    
    .s-about .video-slider-nav:hover {
        background: #e42025;
        border: solid 2px #000;
        color: #fff!important;
    }
    
    /* PREV Button - ganz oben, VOR dem Container */
    .s-about .video-slider-nav.prev {
        order: -1;
        margin-bottom: 15px !important;
    }
    
    /* NEXT Button - ganz unten, NACH dem Container */
    .s-about .video-slider-nav.next {
        order: 999;
        margin-top: 15px !important;
    }

     /* PREV Button - ganz oben, VOR dem Container */
    .s-about .video-slider-nav.prev::hover {
        order: -1;
        margin-bottom: 15px !important;
        color: #fff!important;
    }
    
    /* NEXT Button - ganz unten, NACH dem Container */
    .s-about .video-slider-nav.next::hover {
        order: 999;
        margin-top: 15px !important;
        color: #fff!important;
    }
    
    /* Indikatoren LINKS neben dem mittleren Video (Video 2) */
    .s-about .video-slider-indicators {
        position: absolute;
        left: -50px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 15px;
        bottom: auto;
        z-index: 20;
    }
    
    .s-about .video-slider-indicators .indicator {
        width: 15px;
        height: 15px;
    }
    
    /* About-Content Ausrichtung - beide Spalten oben ausrichten */
    .s-about .about-content {
        align-items: flex-start !important;
    }
    
    .s-about .column.large-half {
        align-self: flex-start !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ===================================== 
   MOBILE: 1 VIDEO MIT ROTATION
   ===================================== */

@media screen and (max-width: 768px) {
    /* Standard Slider-Verhalten auf Mobile */
    .s-about .video-slider-track {
        position: relative;
        padding-bottom: 56.25%;
    }
    
    .s-about .video-slider-item {
        position: absolute;
        opacity: 0;
        visibility: hidden;
    }
    
    .s-about .video-slider-item.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Texte auf Mobile ausblenden (optional) */
    .s-about .column.large-half:first-child h3,
    .s-about .column.large-half:first-child p,
    .s-about .column.large-half:first-child .about-sched,
    .s-about .column.large-half:first-child .bttn {
        display: none;
    }
    
    /* Navigation kleiner auf Mobile */
    .video-slider-nav {
        width: 40px;
        height: 40px;
        color: #fff!important;
    }
    
    .video-slider-nav.prev {
        left: 10px;
    }
    
    .video-slider-nav.next {
        right: 10px;
    }
    
    /* Indikatoren höher positionieren auf Mobile */
    .video-slider-indicators {
        bottom: 10px;
    }
    
    .video-slider-indicators .indicator {
        width: 10px;
        height: 10px;
    }
}

/* ===================================== 
   LOADING STATE
   ===================================== */

.video-slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
}

/* ===================================== 
   HOVER EFFEKTE
   ===================================== */

.video-slider-item .youtube-thumbnail-wrapper {
    transition: transform 0.3s ease;
}

.video-slider-item .youtube-thumbnail-wrapper:hover {
    transform: scale(1.05);
}

/* Verhindere Hover-Effekt auf Touch-Geräten */
@media (hover: none) {
    .video-slider-item .youtube-thumbnail-wrapper:hover {
        transform: none;
    }
}