/* WS Sportdaten – Ergebnisdienst. Alle Farben/Radius/Schriften kommen als Variablen am .wssd (Einstellungen).
   Mobil zuerst, Container-Abfragen statt Bildschirmbreite. Selektoren immer mit .wssd davor, damit das Theme
   (z. B. Avada) nicht dazwischenfunkt. */
.wssd {
  --wssd-accent: #374151; --wssd-brand: #1f2937; --wssd-soft: #f1f2f4; --wssd-bg: #f6f7f9; --wssd-card: #fff;
  --wssd-ink: #111827; --wssd-muted: #5f6672; --wssd-line: #e2e4e8; --wssd-date-bg: #111827; --wssd-date-text: #fff;
  --wssd-win: #15803d; --wssd-draw: #6b7280; --wssd-loss: #b91c1c; --wssd-up: #15803d; --wssd-down: #b91c1c;
  --wssd-radius: 14px; --wssd-font-head: inherit; --wssd-font-body: inherit;
  --wssd-r-s: calc(var(--wssd-radius) * .6);
  --wssd-tile: var(--wssd-accent);
  --wssd-ease: cubic-bezier(.22, 1, .36, 1);
  container: wssd / inline-size;
  color: var(--wssd-ink); font-family: var(--wssd-font-body); line-height: 1.45;
  min-width: 0; max-width: 100%; margin: 0 0 2em;
}
.wssd *, .wssd *::before, .wssd *::after { box-sizing: border-box; }
.wssd svg { display: inline-block; flex: none; vertical-align: middle; }
.wssd a { color: var(--wssd-accent); text-decoration: underline; text-underline-offset: 2px; }
.wssd a:hover { text-decoration-thickness: 2px; }
.wssd button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; }
.wssd :focus-visible { outline: 2px solid var(--wssd-accent); outline-offset: 2px; }
.wssd .wssd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wssd ul, .wssd li { list-style: none; margin: 0; padding: 0; }
.wssd ul::before, .wssd li::before { content: none; }

/* Überschriften (div mit role="heading" – Avada-sicher) */
.wssd .wssd-title { font-family: var(--wssd-font-head); font-weight: 700; font-size: 1.5em; line-height: 1.15; margin: 0 0 .7em; color: var(--wssd-ink); }
.wssd .wssd-group { margin: 0 0 1.4em; }
.wssd .wssd-group__title {
  font-family: var(--wssd-font-head); font-weight: 700; font-size: .8em; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase;
  color: var(--wssd-muted); margin: 0 0 .7em;
}
.wssd .wssd-source { font-size: .78em; color: var(--wssd-muted); margin: .4em 0 0; }

/* Leerer Zustand */
.wssd .wssd-empty {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--wssd-radius);
  background: var(--wssd-bg); color: var(--wssd-muted); font-size: .95em;
}
.wssd .wssd-empty__icon { width: 28px; height: 28px; padding: 8px; box-sizing: content-box; border-radius: var(--wssd-r-s); background: var(--wssd-card); color: var(--wssd-accent); }

/* Chips, Pillen, Knöpfe */
.wssd .wssd-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 6px; }
.wssd .wssd-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .74em; font-weight: 600; line-height: 1.6; padding: 1px 9px;
  border-radius: 999px; background: var(--wssd-bg); color: var(--wssd-muted); white-space: nowrap;
}
.wssd .wssd-chip__icon { width: 13px; height: 13px; }
.wssd .wssd-chip--sport { background: var(--wssd-brand); color: #fff; }
.wssd .wssd-chip--home { background: var(--wssd-soft); color: var(--wssd-accent); }
.wssd .wssd-chip--away { background: var(--wssd-bg); color: var(--wssd-muted); }
.wssd .wssd-chip--moved { background: transparent; box-shadow: inset 0 0 0 1px currentColor; color: var(--wssd-loss); }
.wssd .wssd-chip--count { background: var(--wssd-soft); color: var(--wssd-brand); }
.wssd .wssd-chip--count.is-today, .wssd .wssd-chip--count.is-live { background: var(--wssd-accent); color: #fff; }
.wssd .wssd-chip--count.is-live { background: var(--wssd-loss); }
.wssd .wssd-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: wssd-pulse 1.6s infinite; }
@keyframes wssd-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 70%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.wssd .wssd-pill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: .9em; font-weight: 600; line-height: 1.2;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--wssd-line); background: var(--wssd-card); color: var(--wssd-ink);
  transition: background .2s, color .2s, border-color .2s;
}
.wssd .wssd-pill:hover { border-color: var(--wssd-accent); }
.wssd .wssd-pill__icon { width: 17px; height: 17px; }
.wssd .wssd-pill__n { font-size: .82em; color: var(--wssd-muted); font-variant-numeric: tabular-nums; }
.wssd .wssd-pill[aria-pressed="true"] { background: var(--wssd-accent); border-color: var(--wssd-accent); color: #fff; }
.wssd .wssd-pill[aria-pressed="true"] .wssd-pill__n { color: inherit; opacity: .8; }
.wssd .wssd-switch, .wssd .wssd-filter, .wssd .wssd-tabs {
  display: flex; gap: 8px; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch;
}
.wssd .wssd-switch::-webkit-scrollbar, .wssd .wssd-tabs::-webkit-scrollbar { display: none; }
.wssd .wssd-switch > *, .wssd .wssd-tabs > * { flex: none; }
@container wssd (min-width: 640px) { .wssd .wssd-switch, .wssd .wssd-filter { flex-wrap: wrap; overflow: visible; } }

.wssd .wssd-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--wssd-brand); color: #fff; font-size: .88em; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: transform .2s var(--wssd-ease), background .2s;
}
.wssd .wssd-btn:hover { transform: translateY(-1px); text-decoration: none; color: #fff; }
.wssd .wssd-btn--ghost { background: var(--wssd-soft); color: var(--wssd-brand); }
.wssd .wssd-btn--ghost:hover { color: var(--wssd-brand); }
.wssd .wssd-btn__icon { width: 16px; height: 16px; }

/* Datumskachel */
.wssd .wssd-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  width: 60px; min-height: 66px; padding: 7px 0; border-radius: var(--wssd-r-s); background: var(--wssd-tile); color: var(--wssd-date-text);
  font-family: var(--wssd-font-head); text-align: center;
}
.wssd .wssd-tile__wd, .wssd .wssd-tile__m { font-size: .72em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.wssd .wssd-tile__d { font-size: 1.6em; font-weight: 700; font-variant-numeric: tabular-nums; }
.wssd .wssd-tile--s { width: 50px; min-height: 54px; }
.wssd .wssd-tile--s .wssd-tile__d { font-size: 1.3em; }

/* Wappen */
.wssd .wssd-crest {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: var(--wssd-soft); color: var(--wssd-accent); font-family: var(--wssd-font-head); font-weight: 700; font-size: .78em; letter-spacing: .02em;
}
.wssd .wssd-crest img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 1; display: block; }
.wssd .wssd-crest--img { background: #fff; padding: 3px; }
.wssd .wssd-crest--own:not(.wssd-crest--img) { background: var(--wssd-accent); color: #fff; }
.wssd .wssd-crest--l { width: 56px; height: 56px; font-size: 1.05em; }
.wssd .wssd-crest--s { width: 26px; height: 26px; font-size: .62em; }
.wssd .wssd-crest--xs { width: 22px; height: 22px; font-size: .56em; }
.wssd .wssd-own { color: var(--wssd-accent); font-weight: 700; }
.wssd .wssd-vs { color: var(--wssd-muted); }

/* Ergebnis-Karte (Anzeigetafel) */
.wssd .wssd-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px;
}
.wssd .wssd-rail::-webkit-scrollbar { display: none; }
.wssd .wssd-rail > * { scroll-snap-align: start; }
@container wssd (min-width: 560px) { .wssd .wssd-rail { grid-auto-columns: calc(50% - 6px); } }
@container wssd (min-width: 860px) { .wssd .wssd-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

.wssd .wssd-res {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden;
  background: var(--wssd-card); border: 1px solid var(--wssd-line); border-radius: var(--wssd-radius); padding: 14px 16px 14px 20px;
  transition: transform .25s var(--wssd-ease), box-shadow .25s;
}
.wssd .wssd-res::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--wssd-line); }
.wssd .wssd-res.is-win::before { background: var(--wssd-win); }
.wssd .wssd-res.is-draw::before { background: var(--wssd-draw); }
.wssd .wssd-res.is-loss::before { background: var(--wssd-loss); }
.wssd .wssd-res:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .25); }
.wssd .wssd-res__head { display: flex; align-items: center; gap: 8px; font-size: .8em; color: var(--wssd-muted); min-width: 0; }
.wssd .wssd-res__icon { width: 18px; height: 18px; color: var(--wssd-accent); }
.wssd .wssd-res__league { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wssd .wssd-res__date { white-space: nowrap; }
.wssd .wssd-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px; }
.wssd .wssd-board__team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.wssd .wssd-board__name { font-size: .82em; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; max-width: 100%; }
.wssd .wssd-board__score {
  display: inline-flex; align-items: baseline; gap: 3px; padding: 6px 11px; border-radius: 999px; background: var(--wssd-brand); color: #fff;
  font-family: var(--wssd-font-head); font-weight: 700; font-size: clamp(24px, 7.5cqi, 34px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wssd .wssd-res.is-win .wssd-board__score { background: var(--wssd-win); }
.wssd .wssd-res.is-draw .wssd-board__score { background: var(--wssd-draw); }
.wssd .wssd-res.is-loss .wssd-board__score { background: var(--wssd-loss); }
.wssd .wssd-board__colon { opacity: .7; }
.wssd .wssd-res__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 10px; border-top: 1px solid var(--wssd-line); font-size: .8em; color: var(--wssd-muted); }
.wssd .wssd-res__extra { flex: 1; min-width: 0; }
.wssd .wssd-res__link { margin-left: auto; font-weight: 600; }
.wssd .wssd-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .95em; color: #fff; background: var(--wssd-draw); }
.wssd .wssd-badge.is-win { background: var(--wssd-win); }
.wssd .wssd-badge.is-loss { background: var(--wssd-loss); }

/* Große dunkle Karte „Letztes Spiel“ */
.wssd .wssd-res--hero { background: var(--wssd-brand); border-color: var(--wssd-brand); color: #fff; padding: 20px 22px 18px 26px; gap: 16px; }
.wssd .wssd-res--hero:hover { transform: none; box-shadow: none; }
.wssd .wssd-res--hero .wssd-res__head { color: color-mix(in srgb, #fff 75%, var(--wssd-brand)); letter-spacing: .1em; text-transform: uppercase; font-family: var(--wssd-font-head); }
.wssd .wssd-res--hero .wssd-res__icon { color: color-mix(in srgb, var(--wssd-accent) 65%, #fff); }
.wssd .wssd-res--hero .wssd-res__league { font-weight: 700; color: color-mix(in srgb, var(--wssd-accent) 55%, #fff); }
.wssd .wssd-res--hero .wssd-board__score { background: none; padding: 0 2px; font-size: clamp(34px, 9cqi, 64px); }
.wssd .wssd-res--hero.is-win .wssd-board__score, .wssd .wssd-res--hero.is-loss .wssd-board__score, .wssd .wssd-res--hero.is-draw .wssd-board__score { background: none; }
.wssd .wssd-res--hero .wssd-board__name { font-weight: 700; font-size: clamp(.8em, 3.6cqi, .98em); overflow-wrap: normal; }
.wssd .wssd-res--hero .wssd-own { color: #fff; }
.wssd .wssd-res--hero .wssd-crest:not(.wssd-crest--own) { background: rgba(255, 255, 255, .12); color: color-mix(in srgb, var(--wssd-accent) 55%, #fff); }
.wssd .wssd-res--hero .wssd-res__foot { border-top-color: rgba(255, 255, 255, .14); color: color-mix(in srgb, #fff 70%, var(--wssd-brand)); }
.wssd .wssd-res--hero .wssd-res__link { color: color-mix(in srgb, var(--wssd-accent) 55%, #fff); }
.wssd .wssd-res--hero.is-none { justify-content: center; }
.wssd .wssd-res--hero .wssd-empty { background: rgba(255, 255, 255, .08); color: #fff; }

/* Heimspiel-Karte */
.wssd .wssd-homes { display: grid; gap: 12px; }
@container wssd (min-width: 760px) { .wssd .wssd-homes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wssd .wssd-home {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0;
  background: var(--wssd-card); border: 1px solid var(--wssd-line); border-radius: var(--wssd-radius); padding: 14px;
  transition: transform .25s var(--wssd-ease), box-shadow .25s;
}
.wssd .wssd-home:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .25); }
.wssd .wssd-home__body { min-width: 0; }
.wssd .wssd-home__match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; font-size: 1.02em; line-height: 1.25; margin: 2px 0 6px; }
.wssd .wssd-home__team { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.wssd .wssd-home__meta, .wssd .wssd-home__place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .86em; color: var(--wssd-muted); }
.wssd .wssd-home__place { margin-top: 3px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.wssd .wssd-home__place .wssd-meta__icon { margin-top: 2px; }
.wssd .wssd-home__place a { font-weight: 600; }
.wssd .wssd-meta__icon { width: 15px; height: 15px; color: var(--wssd-accent); }
.wssd .wssd-sep { opacity: .6; }
.wssd .wssd-home__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Kompakte Zeilen (Spielplan, nächste Spiele) */
.wssd .wssd-rows { display: grid; gap: 8px; }
.wssd .wssd-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0;
  background: var(--wssd-card); border: 1px solid var(--wssd-line); border-radius: var(--wssd-radius); padding: 10px 12px;
}
.wssd .wssd-row__main { min-width: 0; }
.wssd .wssd-row__teams { font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.wssd .wssd-row__meta { font-size: .8em; color: var(--wssd-muted); overflow-wrap: anywhere; }
.wssd .wssd-row__time { font-family: var(--wssd-font-head); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wssd-brand); }
.wssd .wssd-pill.is-win, .wssd .wssd-pill.is-loss, .wssd .wssd-pill.is-draw, .wssd .wssd-row .wssd-pill {
  cursor: default; border: 0; padding: 6px 12px; font-family: var(--wssd-font-head); font-weight: 700; font-size: 1.1em;
  font-variant-numeric: tabular-nums; background: var(--wssd-brand); color: #fff;
}
.wssd .wssd-row .wssd-pill.is-win { background: var(--wssd-win); }
.wssd .wssd-row .wssd-pill.is-draw { background: var(--wssd-draw); }
.wssd .wssd-row .wssd-pill.is-loss { background: var(--wssd-loss); }
.wssd .wssd-row .wssd-pill.is-off { background: var(--wssd-bg); color: var(--wssd-muted); }
.wssd .wssd-row.is-win { box-shadow: inset 4px 0 0 var(--wssd-win); }
.wssd .wssd-row.is-draw { box-shadow: inset 4px 0 0 var(--wssd-draw); }
.wssd .wssd-row.is-loss { box-shadow: inset 4px 0 0 var(--wssd-loss); }
@container wssd (max-width: 420px) {
  .wssd .wssd-row { grid-template-columns: auto minmax(0, 1fr); }
  .wssd .wssd-row > .wssd-pill, .wssd .wssd-row__time { grid-column: 2; justify-self: start; }
}

/* Tabellen-Karte */
.wssd .wssd-tgrid { display: grid; gap: 14px; align-items: start; }
@container wssd (min-width: 860px) { .wssd .wssd-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wssd .wssd-tcard { background: var(--wssd-card); border: 1px solid var(--wssd-line); border-radius: var(--wssd-radius); min-width: 0; overflow: hidden; margin: 0; }
.wssd .wssd-tcard__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; list-style: none; cursor: default; }
.wssd summary.wssd-tcard__head { cursor: pointer; }
.wssd summary.wssd-tcard__head::-webkit-details-marker { display: none; }
.wssd summary.wssd-tcard__head::marker { content: ""; }
.wssd .wssd-tcard__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wssd-soft); color: var(--wssd-accent); flex: none; }
.wssd .wssd-tcard__icon svg { width: 20px; height: 20px; }
.wssd .wssd-tcard__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wssd .wssd-tcard__title { font-family: var(--wssd-font-head); font-weight: 700; font-size: 1.05em; line-height: 1.2; }
.wssd .wssd-tcard__sub { font-size: .78em; color: var(--wssd-muted); }
.wssd .wssd-tcard__chev { width: 20px; height: 20px; color: var(--wssd-muted); transition: transform .25s var(--wssd-ease); }
.wssd .wssd-tcard[open] .wssd-tcard__chev { transform: rotate(180deg); }
.wssd .wssd-tcard__body { padding: 0 8px 10px; }
.wssd .wssd-tcard__body .wssd-empty { margin: 0 8px 4px; }
.wssd .wssd-tscroll { max-width: 100%; overflow-x: auto; }
.wssd table.wssd-table { width: 100%; border-collapse: separate; border-spacing: 0 3px; margin: 0; border: 0; background: none; font-size: .9em; table-layout: auto; }
.wssd .wssd-table caption { caption-side: top; }
.wssd .wssd-table th, .wssd .wssd-table td { padding: 7px 6px; border: 0; background: none; text-align: left; vertical-align: middle; color: inherit; font-weight: 400; line-height: 1.25; }
.wssd .wssd-table thead th { font-size: .74em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wssd-muted); padding-top: 2px; padding-bottom: 4px; }
.wssd .wssd-table .num { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wssd .wssd-table .wssd-pts { font-weight: 700; font-family: var(--wssd-font-head); }
.wssd .wssd-table tbody td:first-child, .wssd .wssd-table tbody th:first-child { border-radius: var(--wssd-r-s) 0 0 var(--wssd-r-s); }
.wssd .wssd-table tbody tr > :last-child { border-radius: 0 var(--wssd-r-s) var(--wssd-r-s) 0; }
.wssd .wssd-tteam { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wssd .wssd-tteam span:last-child { overflow-wrap: anywhere; }
.wssd .wssd-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wssd-bg); font-weight: 700; font-size: .92em; }
.wssd .wssd-table tr.is-own > * { background: var(--wssd-soft); font-weight: 700; }
.wssd .wssd-table tr.is-own .wssd-rank { background: var(--wssd-accent); color: #fff; }
.wssd .wssd-form { display: inline-flex; gap: 3px; }
.wssd .wssd-form--none { color: var(--wssd-muted); }
.wssd .wssd-form__dot {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 700;
  color: #fff; background: var(--wssd-draw); cursor: help;
}
.wssd .wssd-form__dot.is-s { background: var(--wssd-win); }
.wssd .wssd-form__dot.is-n { background: var(--wssd-loss); }
.wssd .wssd-tcard__more {
  display: none; margin: 6px 8px 0; padding: 0; border: 0; background: none; color: var(--wssd-accent); font-size: .82em; font-weight: 600; cursor: pointer; text-decoration: underline;
}
/* Handy: nur Platz, Mannschaft, Spiele, Punkte, Form – weitere Spalten per Knopf (dann quer wischen in der Karte) */
@container wssd (max-width: 600px) {
  .wssd .wssd-table .wssd-x { display: none; }
  .wssd .wssd-tcard__more { display: inline-block; }
  .wssd .wssd-tcard.is-all .wssd-table .wssd-x { display: table-cell; }
  .wssd .wssd-tcard.is-all table.wssd-table { min-width: 520px; }
}
@container wssd (max-width: 480px) {
  .wssd .wssd-tteam .wssd-crest { display: none; }
  .wssd .wssd-table th, .wssd .wssd-table td { padding: 6px 4px; }
  .wssd .wssd-form { gap: 2px; }
  .wssd .wssd-form__dot { width: 14px; height: 14px; font-size: 8px; }
  .wssd .wssd-form__dot:nth-child(-n+2) { display: none; }
}

/* Übersicht */
.wssd .wssd-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--wssd-line); background: var(--wssd-card); color: var(--wssd-ink); font-weight: 600; font-size: .92em; line-height: 1.2;
}
.wssd .wssd-tab__icon { width: 16px; height: 16px; color: var(--wssd-accent); }
.wssd .wssd-tab[aria-selected="true"] { background: var(--wssd-brand); border-color: var(--wssd-brand); color: #fff; }
.wssd .wssd-tab[aria-selected="true"] .wssd-tab__icon { color: inherit; }
.wssd .wssd-panel__top { display: grid; gap: 14px; margin: 0 0 1.4em; align-items: start; }
@container wssd (min-width: 860px) { .wssd .wssd-panel__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wssd .wssd-rows + .wssd-rows, .wssd .wssd-homes + .wssd-rows { margin-top: 14px; }
.wssd--preview .wssd-rail, .wssd--preview .wssd-homes { margin-bottom: 14px; }

/* Ticker */
.wssd--ticker { margin: 0; }
.wssd .wssd-tick { overflow: hidden; background: var(--wssd-accent); color: #fff; border-radius: var(--wssd-r-s); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.wssd .wssd-tick__track { display: flex; width: max-content; animation: wssd-tick 40s linear infinite; }
.wssd .wssd-tick:hover .wssd-tick__track { animation-play-state: paused; }
.wssd .wssd-tick__dup { display: flex; }
.wssd .wssd-tick__item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; white-space: nowrap; }
.wssd .wssd-tick__kick { font-family: var(--wssd-font-head); font-size: .72em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.wssd .wssd-tick__match { font-weight: 600; }
.wssd .wssd-tick__score { font-family: var(--wssd-font-head); font-size: 1.2em; font-variant-numeric: tabular-nums; }
.wssd .wssd-tick__icon { width: 18px; height: 18px; opacity: .85; }
@keyframes wssd-tick { to { transform: translateX(-50%); } }

/* Mannschaften */
.wssd .wssd-teams { display: grid; gap: 12px; grid-template-columns: 1fr; }
@container wssd (min-width: 520px) { .wssd .wssd-teams { grid-template-columns: 1fr 1fr; } }
@container wssd (min-width: 860px) { .wssd .wssd-teams { grid-template-columns: repeat(3, 1fr); } }
.wssd .wssd-team { display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--wssd-card); border: 1px solid var(--wssd-line); border-radius: var(--wssd-radius); padding: 14px 16px; }
.wssd .wssd-team[hidden] { display: none; }
.wssd .wssd-team__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wssd .wssd-team__top .wssd-chips { margin: 0; }
.wssd .wssd-team__name { font-family: var(--wssd-font-head); font-weight: 700; font-size: 1.15em; line-height: 1.2; margin: 0; }
.wssd .wssd-team__league, .wssd .wssd-team__rank { font-size: .86em; color: var(--wssd-muted); overflow-wrap: anywhere; }
.wssd .wssd-team__rank strong { color: var(--wssd-ink); }
.wssd .wssd-team__link { display: inline-flex; align-items: center; gap: 5px; font-size: .85em; font-weight: 600; margin-top: auto; padding-top: 8px; }
.wssd .wssd-link__icon { width: 14px; height: 14px; }

/* Fußball-Widget (Zwei-Klick-Lösung) */
.wssd .wssd-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border-radius: var(--wssd-radius); background: var(--wssd-bg); }
.wssd .wssd-consent p { flex: 1 1 240px; margin: 0; color: var(--wssd-muted); font-size: .92em; }
.wssd .wssd-consent__icon { width: 30px; height: 30px; color: var(--wssd-accent); }

/* Umschalter: Hinweis, wenn eine Sportart in einem Baustein nichts hat */
.wssd .wssd-sport-empty { margin: 0 0 2em; }
.wssd [data-wssd-hidden], .wssd[data-wssd-hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .wssd *, .wssd *::before, .wssd *::after { animation: none !important; transition: none !important; }
  .wssd .wssd-tick__track { flex-wrap: wrap; width: auto; }
  .wssd .wssd-tick__dup { display: none; }
  .wssd .wssd-res:hover, .wssd .wssd-home:hover, .wssd .wssd-btn:hover { transform: none; }
}

/* Abschnitte je Sportart */
.wssd .wssd-sportsec { margin: 0 0 1.8em; }
.wssd .wssd-sportsec + .wssd-sportsec { padding-top: 1.4em; border-top: 1px solid var(--wssd-line); }
.wssd .wssd-sporthead { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--wssd-font-head); font-weight: 700; font-size: 1.2em; line-height: 1.2; color: var(--wssd-ink); }
.wssd .wssd-sporthead__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wssd-tile); color: #fff; flex: none; }
.wssd .wssd-sporthead__icon svg { width: 20px; height: 20px; }
.wssd .wssd-sporthead__n { font-size: .62em; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--wssd-soft); color: var(--wssd-accent); font-variant-numeric: tabular-nums; }

/* Heimspiel-Karte auf dem Handy: kleinere Kachel, Knöpfe nebeneinander */
@container wssd (max-width: 480px) {
  .wssd .wssd-home { gap: 10px; padding: 12px; }
  .wssd .wssd-home > .wssd-tile { width: 48px; min-height: 54px; }
  .wssd .wssd-home > .wssd-tile .wssd-tile__d { font-size: 1.3em; }
  .wssd .wssd-home__actions { gap: 6px; }
  .wssd .wssd-home__actions .wssd-btn { padding: 8px 11px; font-size: .8em; }
  .wssd .wssd-home__match { font-size: .96em; }
}
.wssd .wssd-sportsec .wssd-chip--sport { display: none; }
/* Übersicht ohne Tabelle (z. B. Handball light): letztes Spiel über die volle Breite */
.wssd .wssd-panel__top:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }

/* Schmale Ergebnis-Karte: zwei Zeilen (Heim oben, Gast unten), Spielstand rechts – kein Umbruch mitten im Namen */
.wssd .wssd-res:not(.wssd-res--hero) { container: wssdres / inline-size; }
@container wssdres (max-width: 330px) {
  .wssd .wssd-res .wssd-board { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "home score" "guest score"; gap: 8px 10px; }
  .wssd .wssd-res .wssd-board__team { flex-direction: row; text-align: left; gap: 9px; }
  .wssd .wssd-res .wssd-board__team:first-child { grid-area: home; }
  .wssd .wssd-res .wssd-board__team:last-child { grid-area: guest; }
  .wssd .wssd-res .wssd-board__score { grid-area: score; font-size: 26px; padding: 8px 12px; }
  .wssd .wssd-res .wssd-board__name { font-size: .92em; overflow-wrap: normal; }
}
@container wssd (max-width: 480px) { .wssd .wssd-res--hero { padding: 18px 16px 16px 20px; } .wssd .wssd-res--hero .wssd-crest--l { width: 46px; height: 46px; } }

/* Tabelle: Auf-/Abstiegsplätze als leicht getönte Zeile (deckend, damit festgestellte Spalten sauber bleiben) */
.wssd .wssd-table tbody tr > * { background: var(--wssd-card); }
.wssd .wssd-table tr.is-up > * { background: color-mix(in srgb, var(--wssd-up) 10%, var(--wssd-card)); }
.wssd .wssd-table tr.is-down > * { background: color-mix(in srgb, var(--wssd-down) 9%, var(--wssd-card)); }
.wssd .wssd-table tr.is-releg > * { background: color-mix(in srgb, #d97706 10%, var(--wssd-card)); }
.wssd .wssd-table tr.is-own > * { background: var(--wssd-soft); }
/* Handy mit „Mehr Zahlen“: Platz und Mannschaft bleiben beim Wischen stehen */
@container wssd (max-width: 600px) {
  .wssd .wssd-tcard.is-all .wssd-table tbody td:first-child, .wssd .wssd-tcard.is-all .wssd-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
  .wssd .wssd-tcard.is-all .wssd-table tbody th[scope="row"], .wssd .wssd-tcard.is-all .wssd-table thead th:nth-child(2) { position: sticky; left: 34px; z-index: 1; box-shadow: 6px 0 6px -6px rgba(15, 23, 42, .25); }
  .wssd .wssd-tcard.is-all .wssd-table thead th { background: var(--wssd-card); }
  .wssd .wssd-tcard.is-all .wssd-table tbody td:first-child { min-width: 34px; }
}
.wssd .wssd-tcard__more { display: none; margin: 8px 8px 2px; padding: 6px 12px; border: 1px solid var(--wssd-line); border-radius: 999px; background: var(--wssd-card); color: var(--wssd-ink); font-size: .82em; font-weight: 600; cursor: pointer; text-decoration: none; }
@container wssd (max-width: 600px) { .wssd .wssd-tcard__more { display: inline-block; } }

/* Uhrzeit groß, „Uhr“ klein dahinter */
.wssd .wssd-row__time { white-space: nowrap; font-size: 1.15em; }
.wssd .wssd-row__uhr { font-size: .62em; font-weight: 600; margin-left: 3px; color: var(--wssd-muted); }

/* Übersicht ohne Ergebnis: ruhiger, heller Hinweis statt dunkler Karte */
.wssd .wssd-res-none .wssd-empty { height: 100%; min-height: 96px; }
/* Raster dürfen nie breiter als der Platz werden (sonst wischt auf dem Handy die ganze Seite) */
.wssd .wssd-tgrid, .wssd .wssd-panel__top, .wssd .wssd-homes { grid-template-columns: minmax(0, 1fr); }
@container wssd (min-width: 860px) { .wssd .wssd-tgrid, .wssd .wssd-panel__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@container wssd (min-width: 760px) { .wssd .wssd-homes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wssd .wssd-panel__top:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
.wssd, .wssd .wssd-tcard, .wssd .wssd-tscroll { position: relative; } /* versteckte Screenreader-Texte bleiben im Rahmen */
ul.wssd-legacy { display: none !important; }
