/* ============================================================
   Dance Studio Olten – Banner Slider
   Datei: css/slider.css
   ============================================================ */

#banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#banner-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#banner-slider .slide.active {
    opacity: 1;
}

#banner-slider .slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

#banner-slider .slide:nth-child(1) { background-image: url('../images/slider1.jpg'); }
#banner-slider .slide:nth-child(2) { background-image: url('../images/slider2.jpg'); }
#banner-slider .slide:nth-child(3) { background-image: url('../images/slider3.jpg'); }

/* Dots */
#slider-dots {
    position: absolute;
    bottom: 2.5em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#slider-dots li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    border: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

#slider-dots li.active {
    background: #ffffff;
    transform: scale(1.25);
}

#banner > .more { z-index: 10; }

body.landing #page-wrapper { background-image: none !important; }
body.is-mobile.landing #banner,
body.is-mobile.landing .wrapper.style4 { background-image: none !important; }

/* ============================================================
   MOBILE – alle möglichen Selektoren um style.css zu schlagen
   ============================================================ */
@media screen and (max-width: 736px) {

    #slider-dots { display: none !important; }

    /* Alle Kombinationen die style.css verwenden könnte */
    #banner,
    body #banner,
    body.landing #banner,
    body.is-mobile #banner,
    body.is-mobile.landing #banner {
        height: 56vw !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    #banner-slider .slide {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
}
