/* === Wrapper === */
.sds-wrap{
    --gap: 24px;
    --card-w: 240px;          /* Breite einer Kachel */
    --radius: 22px;
    --start-gap: 200px;       /* sichtbare Lücke links */
    --bg: #EBEAF3;            /* Unterteil-Farbe */
    /*--title: #B01632;*/
    --badge-bg: #ffffff;
    --badge-text: #121212;
    --badge-h: 28px;          /* Badge-Höhe zur Naht-Zentrierung */
    --track: #EBEAF3;            /* Indikator-Track */
    --indicator: #F1251A;     /* Indikator-Farbe */
    --indicator-h: 4px;
    --media-h: 200px;         /* einheitliche Bildhöhe */
    position: relative;
    display: grid;
    row-gap: 16px;
    overflow: visible;
}

/* === Scroller (Scrollbar versteckt) + Indikator === */
.sds-scroll{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--card-w);
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 16px var(--start-gap);
    -webkit-user-drag: none;

    /* Scrollbar ausblenden */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge Legacy */
}
.sds-scroll::-webkit-scrollbar{ display: none; height: 0; width: 0; }

/* Progress-Indikator unten */
.sds-indicator{
    position: relative;
    height: var(--indicator-h);
    background: var(--track) !important;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}
.sds-indicator .bar{
    position: absolute; inset: 0 auto 0 0;
    width: 120px;
    background: var(--indicator) !important;
    border-radius: 999px;
    transition: left .08s linear, width .08s linear;
    cursor: grab;
}
.sds-indicator .bar.is-dragging,
.sds-indicator .bar:active{
    cursor: grabbing;
}

/* === Kachel ohne Shadow === */
.sds-card{
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg) !important;
    display: flex;
    flex-direction: column;
}

/* Bildbereich (oben) */
.sds-media{
    position: relative;
    height: var(--media-h);
    overflow: visible; /* damit das Badge überstehen darf */
}
.sds-media img{
    width: 100%;
    height: 100% !important;
    object-fit: cover;            /* kein Verzerren, nur Beschnitt */
    object-position: 50% 35%;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.sds-wrap--sportart .sds-media{
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.sds-wrap--sportart .sds-media img{
    object-fit: cover;
    object-position: center center;
}

/* Badge exakt auf der Naht Bild/Unterteil – zentriert */
.sds-badge{
    position: absolute;
    left: 50%;
    bottom: calc(var(--badge-h) / -2);
    transform: translateX(-50%);
    height: var(--badge-h);
    line-height: var(--badge-h);
    padding: 0 12px;
    background: var(--badge-bg) !important;
    color: var(--badge-text) !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 2;
}

/* Unterer Bereich (zweiter „Block“) */
.sds-body{
    padding: calc(var(--badge-h)/2 + 12px) 16px 16px;
    text-align: center;
}
.sds-title{
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--title) !important;
}

/* Während Drag: keine Textselektion global */
.sds-noselect, .sds-noselect *{
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Responsiv */
@media (max-width: 768px){
    .sds-wrap{ --card-w: 200px; --gap: 16px; --media-h: 180px; }
}
