.wa_pr {margin-top:auto;}

/* Das sichtbare Hauptfenster (Mobil bis 1000px) */
.ST-slider-window {
    position: relative;
    width: 100%;          
    max-width: 600px;     
    height: fit-content;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;   
    margin-left: auto;
    margin-right: auto;
}

/* Der Track erlaubt das Scrollen */
.ST-slider-track {
    display: flex;
    width: 100%;          
    height: fit-content;
    overflow-x: auto;     
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
}
.ST-slider-track::-webkit-scrollbar {
    display: none;        
}

/* Klasse zum temporären Deaktivieren des sanften Scrollens */
.ST-no-smooth {
    scroll-behavior: auto !important;
}

/* Die einzelnen Bereiche im Slider */
.ST-slide-item {
    position: relative;   
    width: 100%;          
    flex-shrink: 0;       
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start; 
}
.ST-slide-content {

    width:100%;
    height:100%;
    padding-left: 65px;
    padding-right:65px;
    display: flex;
    flex-direction: column;
}
/* Hintergrundfarben basierend auf data-bg Attributen */
.ST-slide-item[data-bg="rot"] { background-color: #ff4d4d; }
.ST-slide-item[data-bg="gruen"] { background-color: #00cc66; }
.ST-slide-item[data-bg="blau"] { background-color: #0088cc; }
.ST-slide-item[data-bg="lila"] { background-color: #9933ff; }

.ST-slide-item[data-bg="orange"] { background-color: #ff9900; }
.ST-slide-item[data-bg="anthrazit"] { background-color: #333333; }
.ST-slide-item[data-bg="waldgruen"] { background-color: #44aa44; }
.ST-slide-item[data-bg="pink"] { background-color: #cc2255; }

/* Die Navigations-Pfeile (Reine HTML-Links) */
.ST-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    text-decoration: none; 
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.2s, transform 0.1s;
    z-index: 10;
    user-select: none;
}
.ST-nav-btn:hover { background-color: rgba(255, 255, 255, 1); }
.ST-nav-btn:active { transform: translateY(-50%) scale(0.95); }

.ST-btn-left { left: 15px; }
.ST-btn-right { right: 15px; }

/* Container für die Navigationspunkte (Dots) */
.ST-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Standard-Styling der Punkte (leicht transparent) */
.ST-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(25, 25, 50, 0.4);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.ST-dot:hover { background-color: rgba(0, 0, 55, 0.8); }

/* REINES CSS FÜR DOT-AKTIVIERUNG (Falls JS deaktiviert ist) */
.ST-slider-track:has(#ST-1-slide-1:target) ~ .ST-slider-dots .ST-dot:nth-child(1),
.ST-slider-track:has(#ST-2-slide-1:target) ~ .ST-slider-dots .ST-dot:nth-child(1),
.ST-dot.ST-active { 
    background-color: rgba(0, 0, 55, 0.8);; 
    transform: scale(1.2); 
}
.ST-slider-track:has(#ST-1-slide-2:target) ~ .ST-slider-dots .ST-dot:nth-child(2),
.ST-slider-track:has(#ST-2-slide-2:target) ~ .ST-slider-dots .ST-dot:nth-child(2) { 
    background-color: rgba(0, 0, 55, 0.8);; transform: scale(1.2); 
}
.ST-slider-track:has(#ST-1-slide-3:target) ~ .ST-slider-dots .ST-dot:nth-child(3),
.ST-slider-track:has(#ST-2-slide-3:target) ~ .ST-slider-dots .ST-dot:nth-child(3) { 
    background-color: rgba(0, 0, 55, 0.8);; transform: scale(1.2); 
}
.ST-slider-track:has(#ST-1-slide-4:target) ~ .ST-slider-dots .ST-dot:nth-child(4),
.ST-slider-track:has(#ST-2-slide-4:target) ~ .ST-slider-dots .ST-dot:nth-child(4) { 
    background-color: rgba(0, 0, 55, 0.8);; transform: scale(1.2); 
}

/* JS-Klasse überschreibt den CSS-Fallback für flüssiges Mitwandern */
.ST-slider-track:has(:target) ~ .ST-slider-dots .ST-dot.ST-active {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1);
}

/* ======================================================= */
/* DESKTOP-STYLES (Greifen erst ab 1001px Bildschirmbreite) */
/* ======================================================= */
@media (min-width: 1001px) {

    .ST-slider-window {
        width: 100%;
        max-width: 1000px;
        height: fit-content;
        box-shadow: none;
        background-color: transparent;
        overflow: visible;
    }

    .ST-slider-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 echte Spalten nebeneinander */
        gap: 20px; 
        overflow-x: visible;
    }

    /* Die fest eingebauten Fake-Kopien auf Desktop komplett ausblenden */
    .ST-slide-item[id*="fake"] {
        display: none !important;
    }

    .ST-slide-item {
        width: 100% !important;
        height: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 15 rgba(0,0,0,0.05);
    }

    /* Pfeile und Punkte auf Desktop verstecken */
    .ST-nav-btn,
    .ST-slider-dots {
        display: none !important;
    }
    .ST-slide-content {

    width:100%;
    padding-left: 5px;
    padding-right:5px;
}
}
