/**
 * Sendeplan – Gestaltung
 *
 * Reiterleiste mit der Anzahl je Tag, darunter je Sendung eine Karte mit
 * Farbbalken links und eigener Zeitspalte.
 *
 * Alle Farben kommen als eigene Werte aus dem Adminbereich. Ohne eigene
 * Angabe erbt die Schrift die Farbe der Umgebung, Flächen bleiben
 * durchsichtig und Linien sind ein neutrales Grau – so fügt sich der Plan in
 * jedes Theme ein, auch in ein selbst gebautes.
 */

.sp {
    /* Die Reiterleiste richtet sich nach der Breite ihres Platzes, nicht nach
       der des Fensters – neben einer Seitenspalte ist eben weniger Raum. */
    container-type: inline-size;

    --sp-accent: #f0a030;
    --sp-text: inherit;
    --sp-text-soft: inherit;
    --sp-line: rgba(128, 128, 128, .28);
    --sp-surface: transparent;
    --sp-surface-soft: rgba(128, 128, 128, .08);
    --sp-link: #2563eb;
    --sp-onair-bg: #f0a030;
    --sp-onair-color: #fff;
    --sp-off: #dc2626;
    --sp-radius: 12px;
    --sp-bar: 5px;

    color: var(--sp-text);
    line-height: 1.5;
    margin: 0 0 20px;
}

.sp * { box-sizing: border-box; }
.sp p { margin: 0; }
.sp .sp-hidden { display: none; }

/* ------------------------------------------------------ Reiterleiste */

.sp-tabbar {
    display: flex;
    /* Immer eine Zeile. Wird es eng, kürzen sich die Namen zu Mo, Di, Mi …
       Erst wenn selbst das nicht reicht, lässt sich seitlich schieben. */
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2px;
    padding: 6px;
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    background: var(--sp-surface-soft);
    scrollbar-width: thin;
}

.sp-tab {
    flex: 0 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: .95em;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    opacity: .72;
    transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}

.sp-tab:hover { opacity: 1; }

.sp-tab.is-active {
    opacity: 1;
    color: var(--sp-link);
    border-bottom-color: var(--sp-link);
}

.sp-tab .sp-pin { color: var(--sp-off); flex: 0 0 auto; }

/* Kurze Namen: normalerweise versteckt, bei wenig Platz sichtbar */
.sp-tab-short { display: none; }

@container (max-width: 660px) {
    .sp-tab { padding: 10px 9px; gap: 5px; }
    .sp-tab-name { display: none; }
    .sp-tab-short { display: inline; }
}

/* Browser ohne Container-Abfragen richten sich nach dem Fenster */
@supports not (container-type: inline-size) {
    @media (max-width: 860px) {
        .sp-tab { padding: 10px 9px; gap: 5px; }
        .sp-tab-name { display: none; }
        .sp-tab-short { display: inline; }
    }
}

.sp-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--sp-surface-soft);
    border: 1px solid var(--sp-line);
    font-size: .76em;
    font-weight: 700;
    line-height: 1;
}

.sp-tab.is-active .sp-tab-count {
    background: var(--sp-link);
    border-color: var(--sp-link);
    color: #fff;
}

/* ------------------------------------------------- Karte je Sendung */

.sp-list { display: flex; flex-direction: column; gap: 12px; }

.sp-show {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 20px;
    border: 1px solid var(--sp-line);
    border-left: var(--sp-bar) solid var(--sp-accent);
    border-radius: var(--sp-radius);
    background: var(--sp-surface);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.sp-show:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }

/* Laufende und nächste Sendung: farbiger Rahmen rundherum (2.5.0) */
.sp-show.is-onair {
    border: 1px solid var(--sp-live, #f87171);
    border-left: var(--sp-bar) solid var(--sp-live, #f87171);
    background-image: linear-gradient(rgba(248, 113, 113, .07), rgba(248, 113, 113, .07));
    box-shadow: 0 0 0 1px var(--sp-live, #f87171), 0 0 18px rgba(248, 113, 113, .18);
}

.sp-show.is-next {
    border: 1px solid var(--sp-next-c, #fbbf24);
    border-left: var(--sp-bar) solid var(--sp-next-c, #fbbf24);
    background-image: linear-gradient(rgba(251, 191, 36, .06), rgba(251, 191, 36, .06));
    box-shadow: 0 0 0 1px var(--sp-next-c, #fbbf24), 0 0 18px rgba(251, 191, 36, .14);
}

.sp-show.is-onair .sp-from, .sp-show.is-onair .sp-to { color: #f97316; opacity: 1; }
.sp-show.is-next .sp-from, .sp-show.is-next .sp-to { color: var(--sp-next-c, #fbbf24); opacity: 1; }

.sp-show.is-off { background: var(--sp-surface-soft); border-left-color: var(--sp-off); }
.sp-show.is-off .sp-show-title,
.sp-show.is-off .sp-from,
.sp-show.is-off .sp-to { text-decoration: line-through; }

/* --------------------------------------------------------- Zeitspalte */

.sp-show-time {
    flex: 0 0 auto;
    width: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2px;
}

.sp-from {
    font-size: 1.32em;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.sp-rule {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--sp-line);
    margin: 7px 0;
}

.sp-to {
    font-size: .8em;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ Inhalt */

.sp-show-body { min-width: 0; flex: 1 1 auto; }

.sp-show-head {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}

.sp-show-title {
    margin: 0 0 6px;
    font-size: 1.12em;
    font-weight: 700;
    line-height: 1.3;
}

.sp-show-mod {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--sp-link);
}

.sp-mic { flex: 0 0 auto; opacity: .9; }
.sp-mod-name { font-size: .92em; font-weight: 600; }

.sp-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid var(--sp-line);
}

.sp-show-avatar {
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
}

.sp-show-avatar img {
    display: block;
    width: var(--sp-ava, 96px);
    height: var(--sp-ava, 96px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sp-line);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.sp-show.is-onair .sp-show-avatar img { border-color: var(--sp-live, #f87171); }
.sp-show.is-next .sp-show-avatar img { border-color: var(--sp-next-c, #fbbf24); }
.sp-show.is-off .sp-show-avatar img { filter: grayscale(1); opacity: .6; }

.sp-show-book { margin: 10px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.sp .sp-book-btn,
.sp a.sp-book-btn:link,
.sp a.sp-book-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 0;
    background: var(--sp-book-bg, #34d399) !important;
    color: var(--sp-book-color, #0b1120) !important;
    font-size: .88em;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(52, 211, 153, .25);
    transition: filter .15s ease, transform .15s ease;
}

.sp a.sp-book-btn:hover,
.sp a.sp-book-btn:focus-visible { filter: brightness(1.08); transform: translateY(-1px); color: var(--sp-book-color, #0b1120) !important; }
.sp a.sp-book-btn:focus-visible { outline: 2px solid var(--sp-book-bg, #34d399); outline-offset: 2px; }
.sp-book-btn span { color: inherit; }
.sp-book-icon { flex: 0 0 auto; }
.sp-book-rate { font-size: .82em; opacity: .65; }

.sp-show-image {
    margin: 0 0 8px;
    max-width: 240px;
    border-radius: 8px;
    overflow: hidden;
}

.sp-show-image img { width: 100%; height: auto; display: block; }

.sp-show-desc {
    font-size: .92em;
    opacity: .75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-show-reason { font-size: .88em; color: var(--sp-off); margin-top: 6px; }
.sp-show-replacement { font-size: .88em; opacity: .8; margin-top: 4px; }
.sp-show-replacement span { font-weight: 700; }

/* --------------------------------------------------------- Plaketten */

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .7em;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sp-badge-onair {
    background: var(--sp-onair-bg);
    color: var(--sp-onair-color);
    animation: sp-pulse 2.4s ease-in-out infinite;
}

.sp-badge-next { background: var(--sp-surface-soft); border: 1px solid var(--sp-line); }
.sp-badge-once { border: 1px solid var(--sp-line); opacity: .75; }
.sp-badge-off { background: var(--sp-off); color: #fff; }

.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

@keyframes sp-pulse {
    0%, 100% { filter: none; }
    50%      { filter: brightness(1.18); }
}

@media (prefers-reduced-motion: reduce) {
    .sp-badge-onair { animation: none; }
}

/* ------------------------------------------- Jetzt auf Sendung (Box) */

.sp-onair-box {
    border: 1px solid var(--sp-line);
    border-left: var(--sp-bar) solid var(--sp-accent);
    border-radius: var(--sp-radius);
    background: var(--sp-surface);
    padding: 15px 17px;
}

.sp-onair { display: flex; align-items: center; gap: 13px; }
.sp-onair .sp-avatar { width: 52px; height: 52px; }
.sp-onair-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-onair-text .sp-badge { align-self: flex-start; }
.sp-onair-title { font-size: 1.12em; font-weight: 700; line-height: 1.25; }
.sp-onair-meta { font-size: .86em; opacity: .75; }

.sp-avatar-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--sp-line);
    background: var(--sp-surface-soft);
    font-size: .8em;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.sp-next {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--sp-line);
    flex-wrap: wrap;
}

.sp-next-title { font-weight: 600; font-size: .92em; }
.sp-next-time { font-size: .84em; opacity: .75; margin-left: auto; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------- Tagesplan */

.sp-day-title {
    margin: 0 0 14px;
    font-size: 1.22em;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-day-date { font-size: .7em; font-weight: 600; opacity: .7; }

/* ------------------------------------------------------ Moderatoren */

.sp-mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.sp-mod-card {
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    background: var(--sp-surface);
    padding: 18px 14px;
    text-align: center;
}

.sp-mod-card .sp-avatar { width: 72px; height: 72px; }
.sp-mod-title { margin: 10px 0 4px; font-size: 1em; font-weight: 700; }
.sp-mod-desc { font-size: .86em; opacity: .75; }

/* --------------------------------------------------------- Hinweise */

.sp-empty {
    margin: 0;
    padding: 16px 18px;
    border: 1px dashed var(--sp-line);
    border-radius: var(--sp-radius);
    opacity: .75;
    font-size: .92em;
}

.sp-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--sp-line);
    background: var(--sp-surface-soft);
    font-size: .92em;
}

.sp-note a { color: inherit; }

/* ------------------------------------------------------------ Handy */

@media (max-width: 640px) {
    .sp-tab { padding: 9px 8px; font-size: .9em; }

    .sp-show { gap: 12px; padding: 13px 14px; flex-direction: column; }

    .sp-show-time {
        width: auto;
        flex-direction: row;
        align-items: baseline;
        gap: 9px;
        text-align: left;
    }

    .sp-from { font-size: 1.15em; }
    .sp-rule { width: 14px; margin: 0; align-self: center; }
    .sp-show-image { max-width: 100%; }

    /* Bild bleibt oben rechts, etwas kleiner */
    .sp-show.has-avatar { position: relative; }
    .sp-show.has-avatar .sp-show-time,
    .sp-show.has-avatar .sp-show-head,
    .sp-show.has-avatar .sp-show-title,
    .sp-show.has-avatar .sp-show-mod { padding-right: calc(min(var(--sp-ava, 96px), 72px) + 12px); }
    .sp-show-avatar { position: absolute; top: 13px; right: 14px; margin: 0; }
    .sp-show-avatar img { width: min(var(--sp-ava, 96px), 72px); height: min(var(--sp-ava, 96px), 72px); }
}

/* ------------------------------------------------ Ticker (2.1.0)
 *  „Die nächsten Sendungen unserer Moderator*innen" – dunkle Karte,
 *  orangefarbene Zeiten, helle Titel, „+++" als Trenner.
 *  Alle Werte stehen fest, damit kein Theme die Optik verschiebt.
 */

.sp-tk {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 16px;
    background: var(--sp-tk-bg, #111827);
    border: 1px solid var(--sp-tk-border, #1f2937);
    border-radius: var(--sp-tk-radius, 16px);
    color: var(--sp-tk-text, #e2e8f0);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 28px;
    text-align: left;
    overflow: hidden;
}

.sp-tk *,
.sp-tk *::before,
.sp-tk *::after { box-sizing: border-box; }

.sp-tk-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: var(--sp-tk-text, #e2e8f0);
    letter-spacing: normal;
    text-transform: none;
}

.sp-tk-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--sp-tk-accent, #f97316);
}

.sp-tk-title { min-width: 0; }

.sp-tk-viewport {
    position: relative;
    width: 100%;
    height: 28px;
    line-height: 28px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.sp-tk-track {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    will-change: transform;
    animation: sp-tk-run var(--sp-tk-duration, 40s) linear infinite;
}

.sp-tk-viewport:hover .sp-tk-track { animation-play-state: paused; }

.sp-tk-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
}

.sp-tk-item { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }

.sp-tk-time {
    color: var(--sp-tk-accent, #f97316);
    font-weight: 700;
    margin-right: 4px;
}

.sp-tk-show { color: var(--sp-tk-text, #e2e8f0); font-weight: 400; }

.sp-tk-sep {
    display: inline-block;
    margin: 0 16px;
    color: var(--sp-tk-sep, #6b7280);
    font-weight: 700;
}

.sp-tk-live {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--sp-tk-live, #ef4444);
    color: #ffffff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    animation: sp-tk-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.sp-tk-empty {
    margin: 0;
    line-height: 28px;
    color: var(--sp-tk-text, #e2e8f0);
    opacity: .6;
}

@keyframes sp-tk-run {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes sp-tk-pulse {
    50% { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-tk-track { animation: none; }
    .sp-tk-viewport { overflow-x: auto; }
    .sp-tk-group[aria-hidden="true"] { display: none; }
    .sp-tk-live { animation: none; }
}

/* ------------------------------------------- „Jetzt live" / „Nächste" (2.5.0)
 *  Dunkle Plakette hinter dem Titel; ein Lichtstreifen läuft um den Rand.
 */

@property --sp-winkel {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.sp-show-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.sp-show-name { min-width: 0; }

.sp-live {
    --sp-glanz: var(--sp-live, #f87171);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 7px;
    border: 1.5px solid transparent;
    background:
        linear-gradient(#1f2937, #1f2937) padding-box,
        conic-gradient(from var(--sp-winkel), rgba(255, 255, 255, .14) 0deg, rgba(255, 255, 255, .14) 220deg,
            var(--sp-glanz) 300deg, #fff 330deg, var(--sp-glanz) 345deg, rgba(255, 255, 255, .14) 360deg) border-box;
    color: #e2e8f0;
    font-size: .74em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow: 0 0 12px color-mix(in srgb, var(--sp-glanz) 45%, transparent);
    animation: sp-umlauf 2.6s linear infinite, sp-glimmen 2.6s ease-in-out infinite;
}

.sp-live svg { flex: 0 0 auto; }
.sp-live-on svg { color: var(--sp-live, #f87171); }
.sp-live-next { --sp-glanz: var(--sp-next-c, #fbbf24); }
.sp-live-next svg { color: var(--sp-next-c, #fbbf24); }

@keyframes sp-umlauf { to { --sp-winkel: 360deg; } }

@keyframes sp-glimmen {
    0%, 100% { box-shadow: 0 0 8px color-mix(in srgb, var(--sp-glanz) 30%, transparent); }
    50%      { box-shadow: 0 0 16px color-mix(in srgb, var(--sp-glanz) 60%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
    .sp-live { animation: none; }
}

/* ------------------------------------------------------ Team (2.6.0)
 *  Dunkle Fläche, Gruppen mit Ordner-Symbol, Kacheln mit großem Bild,
 *  grüne Plakette „Aktiv", Umschalter Kacheln/Tabelle.
 */

.sp-team {
    --tm-bg: #111827; --tm-card: #161e2d; --tm-line: #2a3341; --tm-rule: #262d3b;
    --tm-text: #e2e8f0; --tm-soft: #9097a2; --tm-gold: #fbbf24; --tm-ok: #34d399; --tm-ok-text: #0b1120;
    background: var(--tm-bg);
    color: var(--tm-text);
    border-radius: 14px;
    padding: 22px 20px 26px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
}

.sp-team-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.sp .sp-team-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.45em; font-weight: 800; color: var(--tm-text); line-height: 1.2; }
.sp-team-title svg { color: var(--tm-text); flex: 0 0 auto; }
.sp-team-count { margin: 4px 0 0; color: var(--tm-gold); font-size: .88em; font-weight: 500; }

.sp-team-switch { display: inline-flex; gap: 4px; padding: 5px; background: #1a2331; border: 1px solid #2e3744; border-radius: 10px; }
.sp-team-switch button { display: grid; place-items: center; width: 46px; height: 40px; border: 0; border-radius: 8px;
    background: transparent; color: #9299a4; cursor: pointer; padding: 0; }
.sp-team-switch button.is-on { background: #0b1120; color: #dbdee9; }
.sp-team-switch button:focus-visible { outline: 2px solid var(--tm-gold); outline-offset: 1px; }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sp-team-group + .sp-team-group { margin-top: 30px; }
.sp .sp-team-ghead { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.12em; font-weight: 800; color: var(--tm-text); }
.sp-team-ghead svg { color: var(--tm-gold); flex: 0 0 auto; }
.sp-team-gcount { font-size: .72em; font-weight: 600; color: var(--tm-text); padding: 0 6px; }
.sp-team-gline { flex: 1; height: 1px; background: var(--tm-rule); }

.sp-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .sp-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .sp-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp.sp-team { padding: 18px 14px; } }
@media (max-width: 420px)  {
    .sp.sp-team .sp-team-grid { gap: 10px; }
    .sp.sp-team .sp-team-body { padding: 10px 11px 12px; gap: 6px; }
    .sp.sp-team .sp-team-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .sp.sp-team .sp-team-name { font-size: .92em; max-width: 100%; }
    .sp.sp-team .sp-team-badge { font-size: .64em; padding: 2px 7px; }
    .sp.sp-team .sp-team-hint { font-size: .78em; }
}

.sp .sp-team-card {
    display: flex; flex-direction: column; text-align: left; padding: 0; margin: 0; overflow: hidden;
    background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: 12px;
    color: var(--tm-text); font: inherit; cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sp .sp-team-card:hover, .sp .sp-team-card:focus-visible {
    transform: translateY(-3px); border-color: var(--tm-gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); outline: none;
}
.sp-team-img { display: block; aspect-ratio: 1 / 1; background: #0b1120; overflow: hidden; }
.sp-team-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sp-team-card:hover .sp-team-img img { transform: scale(1.04); }
.sp-team-initials { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.6em; font-weight: 800;
    color: #fff; background: linear-gradient(135deg, #f97316, #7c2d12); }

.sp-team-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.sp-team-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.sp-team-name { font-weight: 800; font-size: 1.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-team-badge { flex: 0 0 auto; background: var(--tm-ok); color: var(--tm-ok-text); font-size: .72em; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; line-height: 1.3; }
.sp-team-badge.is-off { background: #374151; color: #cbd5e1; }
.sp-team-hint { color: var(--tm-soft); font-size: .88em; }

/* Tabelle */
.sp-team-table { display: none; width: 100%; border-collapse: collapse; font-size: .95em; }
.sp-team[data-view="table"] .sp-team-table { display: table; }
.sp-team[data-view="table"] .sp-team-grid { display: none; }
.sp-team-table th { text-align: left; font-size: .76em; text-transform: uppercase; letter-spacing: .05em; color: var(--tm-soft);
    padding: 6px 10px; border-bottom: 1px solid var(--tm-rule); font-weight: 700; }
.sp-team-table td { padding: 10px; border-bottom: 1px solid var(--tm-rule); vertical-align: middle; color: var(--tm-text); }
.sp .sp-team-link { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0;
    color: var(--tm-text); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.sp .sp-team-link:hover span:last-child { color: var(--tm-gold); }
.sp-team-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: 0 0 44px; background: #0b1120; display: block; }
.sp-team-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-team-thumb .sp-team-initials { font-size: 1em; }
.sp-team-tshows { color: var(--tm-soft); }
.sp-team-muted { opacity: .6; }
@media (max-width: 640px) { .sp-team-table th:nth-child(2), .sp-team-table td:nth-child(2) { display: none; } }

/* Vorstellung */
.sp-team-dialog { border: 1px solid var(--tm-line, #2a3341); border-radius: 16px; padding: 0; max-width: 720px; width: calc(100% - 32px);
    background: #111827; color: #e2e8f0; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.sp-team-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.sp-team-dinner { position: relative; display: grid; grid-template-columns: 260px 1fr; }
@media (max-width: 640px) { .sp-team-dinner { grid-template-columns: 1fr; } .sp-team-dimg { max-height: 300px; } }
.sp-team-dimg { background: #0b1120; aspect-ratio: 1 / 1; overflow: hidden; }
.sp-team-dimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-team-dbody { padding: 22px 24px 24px; max-height: 70vh; overflow-y: auto; }
.sp-team-dbody h3 { margin: 0 34px 4px 0; font-size: 1.4em; font-weight: 800; color: #e2e8f0; }
.sp-team-dgroups { margin: 0 0 12px; color: #fbbf24; font-size: .88em; }
.sp-team-dtext { margin: 0 0 16px; line-height: 1.55; white-space: pre-line; color: #cbd5e1; }
.sp-team-dbody h4 { margin: 0 0 8px; font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: #9097a2; }
.sp-team-dshows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-team-dshows li { background: #161e2d; border: 1px solid #2a3341; border-radius: 10px; padding: 9px 12px; }
.sp-team-dshows strong { display: block; color: #e2e8f0; }
.sp-team-dshows span { color: #fbbf24; font-size: .88em; font-variant-numeric: tabular-nums; }
.sp-team-dnone { margin: 0; color: #9097a2; font-size: .92em; }
.sp-team-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: rgba(11, 17, 32, .8); color: #e2e8f0; font-size: 22px; line-height: 1; cursor: pointer; }
.sp-team-x:hover { background: #f97316; }

/* Gegen fremde Theme-Regeln für Tabellen, Absätze und Überschriften */
.sp.sp-team .sp-team-table { table-layout: fixed; border: 0; margin: 0; background: transparent; }
.sp.sp-team .sp-team-table col.sp-tc-name { width: 38%; }
.sp.sp-team .sp-team-table col.sp-tc-status { width: 110px; }
.sp.sp-team .sp-team-table th,
.sp.sp-team .sp-team-table td { background: transparent; border: 0; border-bottom: 1px solid var(--tm-rule); }
.sp.sp-team .sp-team-table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.sp.sp-team .sp-team-table td { overflow: hidden; text-overflow: ellipsis; }
.sp.sp-team .sp-team-count, .sp.sp-team .sp-team-title { margin-left: 0; }
.sp-team-dialog .sp-team-dbody h3 { margin: 0 34px 6px 0; }
.sp-team-dialog .sp-team-dbody .sp-team-dgroups { margin: 0 0 14px; }
.sp-team-dialog .sp-team-dbody .sp-team-dtext { margin: 0 0 18px; }
.sp-team-dialog .sp-team-dbody .sp-team-dtext:empty { display: none; }
.sp-team-dialog .sp-team-dbody h4 { margin: 0 0 10px; }
.sp-team-dialog .sp-team-dshows li { margin: 0; }
.sp-team-dialog .sp-team-dimg { align-self: start; }
@media (max-width: 640px) { .sp.sp-team .sp-team-table col.sp-tc-name { width: auto; } }

@media (max-width: 640px) {
    .sp-team-dialog .sp-team-dimg { aspect-ratio: auto; height: 260px; max-height: none; width: 100%; }
}

/* --------------------------------------------- Moderatoren-Slider (2.8.0) */
.sp-ms { --sp-ms-size: 84px; position: relative; }
.sp-ms-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
}
.sp-ms-track { display: flex; width: max-content; animation: sp-ms-run var(--sp-ms-duration, 30s) linear infinite; }
.sp-ms:hover .sp-ms-track, .sp-ms:focus-within .sp-ms-track { animation-play-state: paused; }
.sp-ms-group { display: flex; gap: 16px; padding-right: 16px; }
@keyframes sp-ms-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .sp-ms-track { animation: none; }
    .sp-ms-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .sp-ms-group[aria-hidden="true"] { display: none; }
}

.sp .sp-ms-item, .sp a.sp-ms-item:link, .sp a.sp-ms-item:visited {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: calc(var(--sp-ms-size) + 8px); text-decoration: none; color: inherit; flex: 0 0 auto; padding: 4px 4px 2px;
}
.sp-ms-img {
    display: block; width: var(--sp-ms-size); height: var(--sp-ms-size);
    border-radius: 12px; overflow: hidden; background: rgba(128, 128, 128, .2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.sp-ms-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-ms-initials { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; font-size: calc(var(--sp-ms-size) * .32);
    color: #fff; background: linear-gradient(135deg, var(--sp-accent, #f97316), #7c2d12); }
.sp-ms-name {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 800; font-size: .95em; line-height: 1.2;
    color: var(--accent, var(--sp-accent, #f97316));
}
.sp a.sp-ms-item:hover .sp-ms-img, .sp a.sp-ms-item:focus-visible .sp-ms-img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.sp a.sp-ms-item:focus-visible { outline: 2px solid var(--accent, #f97316); outline-offset: 2px; border-radius: 12px; }
