/* Layout: Ergebnisliste links (dicht, tabellarisch wie ein Spielplan), Seitenleiste rechts mit Live-Box,
   Rangliste und reservierten Werbeflaechen. Farben aus der Dartscheibe: Brettgruen, Triple-Rot, Sisal. */
/* Schriften liegen auf dem eigenen Server (kein Abruf bei Google). Lizenz: SIL Open Font License 1.1 */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-condensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/public-sans-variable.woff2) format("woff2"); }

:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #e9ede8;
  --line: #d5dbd4;
  --ink: #141a17;
  --muted: #5d6862;
  --accent: #0e6a48;      /* Brettgruen */
  --accent-ink: #ffffff;
  --live: #c42d27;        /* Triple-Rot */
  --win: #0e6a48;
  --loss: #a6403a;
  --sisal: #c8b58e;       /* Farbe des Scheibenmaterials, fuer Hervorhebungen */
  --bar-home: #0e6a48;
  --bar-away: #2b2f2d;
  --bar-neutral: #b4bcb8;
  --board: #141a17;      /* dunkle Flaechen: Kopfzeile, Anzeigetafel */
  --board-ink: #f3f5f2;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2.25rem;
  --step-4: 3.25rem;

  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 6px 18px rgb(0 0 0 / 0.06);
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1311;
    --surface: #171c19;
    --surface-2: #1f2522;
    --line: #2c3430;
    --ink: #e8ece9;
    --muted: #97a39c;
    --accent: #3dbb85;
    --accent-ink: #08130d;
    --live: #f0574f;
    --win: #3dbb85;
    --loss: #e57a72;
    --sisal: #a8946c;
    --bar-home: #3dbb85;
    --bar-away: #8c9893;
    --bar-neutral: #5d6662;
    --board: #1c2320;
    --board-ink: #e8ece9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1311;
  --surface: #171c19;
  --surface-2: #1f2522;
  --line: #2c3430;
  --ink: #e8ece9;
  --muted: #97a39c;
  --accent: #3dbb85;
  --accent-ink: #08130d;
  --live: #f0574f;
  --win: #3dbb85;
  --loss: #e57a72;
  --sisal: #a8946c;
  --bar-home: #3dbb85;
  --bar-away: #8c9893;
  --board: #1c2320;
  --bar-neutral: #5d6662;
  --board-ink: #e8ece9;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; }
.num, table { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }

/* Kopfzeile */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--board);
  color: var(--board-ink);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.bm-ring { fill: var(--live); }
.bm-mid { fill: var(--board-ink); }
.bm-bull { fill: var(--accent); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  opacity: 0.75;
}
.mainnav a:hover { opacity: 1; }
.mainnav a.active { opacity: 1; background: color-mix(in srgb, var(--board-ink) 14%, transparent); }

/* Sprachumschalter DE | EN */
.lang-switch { margin-left: auto; display: flex; gap: 2px; border: 1px solid color-mix(in srgb, var(--board-ink) 25%, transparent); border-radius: var(--radius); padding: 2px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; color: var(--board-ink); text-decoration: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px; opacity: 0.6; }
.lang-flag { width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--board-ink) 30%, transparent); }
.lang-switch a:not(.active) .lang-flag { filter: saturate(0.6); }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { opacity: 1; background: color-mix(in srgb, var(--board-ink) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--board-ink) 35%, transparent); }
.lang-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-notice[hidden] { display: none; }
.lang-notice a { font-weight: 700; color: inherit; }
.lang-notice-close { margin-left: auto; border: 0; background: none; color: inherit; font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 4px; }

.notice {
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 8px 12px;
  margin-inline: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  background: color-mix(in srgb, var(--sisal) 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--sisal) 60%, var(--line));
  border-radius: var(--radius);
  font-size: var(--step--1);
}

/* Werbeflaechen: feste Groessen, damit sich das Layout spaeter nicht verschiebt */
.ad {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.ad[hidden] { display: none; }
.ad::before { content: "Anzeige · " attr(data-size); }
html[lang="en"] .ad::before { content: "Advertisement · " attr(data-size); }
.ad.ad-live::before { content: none; }
.ad-leaderboard { max-width: 728px; width: calc(100% - 2 * var(--gutter)); height: 90px; margin: 16px auto 0; }
.ad-rect { width: 100%; max-width: 300px; height: 250px; margin-inline: auto; }
.ad-tall { width: 100%; max-width: 300px; height: 600px; margin-inline: auto; }
.ad-infeed { width: 100%; max-width: 728px; height: 90px; margin: 4px auto; }
.ad-mobile, .ad-anchor-bar { display: none; }
@media (max-width: 760px) {
  /* Werbung auf dem Handy: Banner oben entfaellt (ersetzt durch den Streifen unten),
     zwischen den Inhalten 300 x 250 mit Abstand zu anklickbaren Zeilen */
  .ad::before { content: "Anzeige · " attr(data-size-m); }
  html[lang="en"] .ad::before { content: "Advertisement · " attr(data-size-m); }
  .ad-leaderboard, .ad-tall { display: none; }
  .ad-infeed, .ad-mobile { display: grid; width: 300px; height: 250px; margin: 12px auto; }
  .ad-anchor-bar:not([hidden]) {
    display: flex;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgb(0 0 0 / 0.18);
  }
  .ad-anchor { width: 320px; height: 50px; }
  body.has-anchor { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

  /* Kopfzeile: Logo und Sprachumschalter oben, Navigation darunter */
  .topbar-inner { gap: 4px 12px; padding-block: 8px; }
  .lang-switch { order: 1; }
  .mainnav { order: 2; width: 100%; }
}

/* Seitenaufbau */
.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  /* Live-Spiele stehen schon oben in der Liste */
  #side-live { display: none; }
}
.content { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.content:focus { outline: none; }
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }

.loading, .empty, .error {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.error { color: var(--loss); }

/* Seitentitel */
.page-head { display: grid; gap: 6px; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-title { font-size: var(--step-3); text-transform: uppercase; letter-spacing: 0.01em; }
.page-sub { color: var(--muted); }

/* Datumsleiste */
.datebar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.datebar a {
  flex: 0 0 auto;
  text-decoration: none;
  text-align: center;
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 52px;
  line-height: 1.15;
}
.datebar a .d1 { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.datebar a .d2 { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
/* Heute immer erkennbar, auch wenn ein anderer Tag gewaehlt ist */
.datebar a.today { border-color: var(--accent); }
.datebar a.today .d1 { color: var(--accent); font-weight: 700; }
.datebar a.active { background: var(--board); color: var(--board-ink); border-color: var(--board); }
.datebar a.active .d1 { color: inherit; opacity: 0.75; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Turnierblock mit Matchzeilen */
.comp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.comp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.comp-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.comp-name:hover { text-decoration: underline; }
.comp-meta { color: var(--muted); font-size: var(--step--1); white-space: nowrap; }

.match {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 5px 12px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.comp .match:first-of-type { border-top: 0; }

/* Bereich "Jetzt live" oben in der Spieleliste */
.live-section { display: grid; gap: 10px; }
.live-head, .rest-head {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.live-head { color: var(--live); }
.rest-head { color: var(--muted); margin-top: 4px; }
.live-count { font-size: 0.8rem; background: var(--live); color: #fff; border-radius: 10px; padding: 1px 8px; font-family: var(--font-body); }
.comp-live { border-color: color-mix(in srgb, var(--live) 55%, var(--line)); border-left: 3px solid var(--live); }
.match:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.m-time { display: grid; gap: 0; line-height: 1.25; font-size: var(--step--1); color: var(--muted); }
.m-time .t { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
/* Etikett neben der Uhrzeit: "Heute" bzw. Wochentag */
.day-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; background: var(--surface-2); color: var(--muted); }
.day-tag.today { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.m-time .ph { color: var(--live); font-weight: 600; }
.m-players { display: grid; gap: 0; min-width: 0; line-height: 1.35; }
.m-player { display: flex; gap: 8px; align-items: center; min-width: 0; }
.m-player .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-player.winner .nm { font-weight: 700; }
.m-player.loser .nm { color: var(--muted); }
.cc {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--muted);
  min-width: 32px;
  text-align: center;
}
.m-score { display: grid; grid-auto-flow: column; gap: 10px; align-items: center; }
.m-sets { display: grid; grid-template-rows: 1fr 1fr; grid-auto-flow: column; gap: 0 8px; line-height: 1.35; color: var(--muted); font-size: var(--step--1); text-align: center; }
.m-main {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-align: center;
  min-width: 28px;
}
.m-main .lead { color: var(--accent); }
@media (max-width: 560px) {
  .match { grid-template-columns: 84px minmax(0, 1fr) auto; padding-inline: 10px; }
  .m-sets { display: none; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  width: fit-content;
}
.pill.live { background: var(--live); color: #fff; }
.pill.done { background: var(--surface-2); color: var(--muted); }
.pill.sched { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
.pill.live .dot-live { background: #fff; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }

/* Seitenleiste */
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.side-body { padding: 4px 0; font-size: var(--step--1); }
.side-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 6px 14px;
  text-decoration: none;
  align-items: center;
}
.side-row:hover { background: var(--surface-2); }
.side-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-row .sc { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.side-rank { grid-template-columns: 24px minmax(0, 1fr) auto; }
.side-rank .rk { color: var(--muted); font-weight: 600; }
.side-empty { padding: 10px 14px; color: var(--muted); }
.side-more { display: block; padding: 8px 14px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* Matchseite */
.scoreboard {
  background: var(--board);
  color: var(--board-ink);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 16px;
}
.sb-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: var(--step--1); opacity: 0.85; }
.sb-meta a { color: inherit; }
.page-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -4px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: var(--step--1); text-decoration: none; }
.page-back:hover, .page-back:focus-visible { color: var(--ink); background: var(--line); }
.sb-back { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: -4px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.sb-back:hover, .sb-back:focus-visible { background: rgba(255, 255, 255, 0.2); }
.sb-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.sb-player { display: grid; gap: 4px; min-width: 0; }
.sb-player.away { text-align: right; justify-items: end; }
.sb-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); text-transform: uppercase; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; }
.sb-name:hover { text-decoration: underline; }
.sb-sub { font-size: var(--step--1); opacity: 0.7; }
.sb-rank { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--board-ink) 14%, transparent); color: var(--board-ink); opacity: 0.85; }
.sb-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sb-score .sep { opacity: 0.4; }
.sb-unit { text-align: center; font-size: var(--step--1); opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
.sb-rest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid color-mix(in srgb, var(--board-ink) 18%, transparent);
  padding-top: 14px;
}
.rest-box { display: grid; gap: 2px; }
.rest-box.away { text-align: right; }
.rest-box .lbl { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.rest-box .val { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--sisal); line-height: 1; }
.rest-box .last { font-size: var(--step--1); opacity: 0.8; }
@media (max-width: 560px) {
  .sb-main { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .sb-name { font-size: 1.15rem; }
  .sb-score { font-size: var(--step-3); }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; }
.panel-body { padding: 12px 16px; }
.panel-note { color: var(--muted); font-size: var(--step--1); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
td a { text-decoration: none; font-weight: 600; }
td a:hover { text-decoration: underline; }
.set-win { font-weight: 700; color: var(--accent); }

/* Statistikvergleich */
.stats { display: grid; gap: 12px; }
.stat-row { display: grid; gap: 4px; }
.stat-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: baseline;
}
.stat-line .v { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.stat-line .v.away { text-align: right; }
.stat-line .v.better { color: var(--accent); }
.stat-line .lbl { text-align: center; font-size: var(--step--1); color: var(--muted); }
.stat-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 6px; }
.stat-bar .h, .stat-bar .a { background: var(--surface-2); border-radius: 3px; overflow: hidden; display: flex; }
.stat-bar .h { justify-content: flex-end; }
.stat-bar i { background: var(--bar-neutral); display: block; height: 100%; }
/* Gruen nur beim besseren Wert, der andere Balken bleibt grau */
.stat-bar i.win { background: var(--bar-home); }

.timeline { display: grid; gap: 0; max-height: 360px; overflow-y: auto; }
.tl-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  align-items: center;
}
.tl-item:last-child { border-bottom: 0; }
.timeline.no-time .tl-item { grid-template-columns: minmax(0, 1fr) auto; }
.tl-time { color: var(--muted); }
.tl-score { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.tl-item.key .tl-text { font-weight: 700; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Spielerseite */
.player-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.player-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--live);
}
.player-name { font-size: var(--step-3); text-transform: uppercase; }
.player-nick { color: var(--muted); font-style: italic; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; font-size: var(--step--1); }
.facts b { font-weight: 600; }
.facts span { color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.kpi .lbl { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }

.form { display: flex; gap: 4px; flex-wrap: wrap; }
.form a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.form a.w { background: var(--win); color: var(--accent-ink); }
.form a.l { background: var(--loss); }

.res-w { color: var(--win); font-weight: 700; }
.res-l { color: var(--loss); font-weight: 700; }

/* H2H */
.h2h-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.h2h-head .p { display: grid; gap: 4px; }
.h2h-head .p.away { text-align: right; justify-items: end; }
.h2h-head .p a { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); text-transform: uppercase; text-decoration: none; overflow-wrap: anywhere; }
.h2h-rec { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); line-height: 1; display: flex; gap: 10px; }
.h2h-rec .sep { color: var(--muted); }

/* Rangliste */
.mv-up { color: var(--win); }
.mv-down { color: var(--loss); }
.mv-same { color: var(--muted); }
.search {
  font: inherit;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
  flex: 1 1 160px;
  max-width: 280px;
}

/* Turniere */
.season-list { display: grid; gap: 0; }
.season-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
}
.season-row:first-child { border-top: 0; }
.season-row:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.season-row .dt { color: var(--muted); font-size: var(--step--1); }
.season-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .season-row { grid-template-columns: minmax(0, 1fr) auto; } .season-row .dt { grid-column: 1 / -1; } }

.prose { max-width: 65ch; display: grid; gap: 10px; }
.prose p { margin: 0; }
.prose.legal h2 { margin: 14px 0 0; font-size: var(--step-1); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.prose.legal h2:first-child { margin-top: 0; }
.prose a { color: var(--accent); }
.missing { color: var(--live); font-weight: 600; }
.legal-notice { margin-bottom: 16px; }
.rank-source a, .side-source a { color: inherit; }

/* Wettquoten */
.odds-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
table.odds td:first-child { color: var(--muted); }
table.odds { table-layout: fixed; }
table.odds th, table.odds td { white-space: normal; overflow-wrap: anywhere; }
table.odds td:first-child { overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; }
table.odds th.c, table.odds td.c { width: 31%; }
@media (max-width: 560px) { table.odds th, table.odds td { padding: 7px 6px; } table.odds th { font-size: 0.66rem; letter-spacing: 0.03em; } }
.odd { font-weight: 700; font-variant-numeric: tabular-nums; }
.odd.fav { color: var(--accent); }
.odd-up { color: var(--win); font-size: 0.75em; }
.odd-down { color: var(--live); font-size: 0.75em; }
table.odds td.muted { color: var(--muted); }
.odds-note { font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line); }
.odds-note a { color: inherit; }

/* Quotenvergleich: eine Zeile pro Buchmacher */
table.bm-odds td.bm { color: var(--ink); }
.bm-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bm-logo {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 24px; padding: 0 6px;
  border-radius: 4px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bm-logo-img { flex: 0 0 auto; width: 80px; height: 24px; object-fit: contain; }
/* Mit Logo-Platzhalter steht der Name schon im Logo; mit echtem Logo wird er nur fuer Screenreader gebraucht */
.bm-cell .bm-logo + .bm-name { display: none; }
.bm-name { overflow: hidden; text-overflow: ellipsis; }
.odd.best { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-radius: 4px; padding: 1px 6px; }
.odd-link { text-decoration: none; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.odd-link:hover .odd { text-decoration: underline; }
table.bm-odds tfoot td { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-weight: 600; }
table.bm-odds tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .bm-logo, .bm-logo-img { width: 64px; } }
.side-source { padding: 8px 12px 10px; font-size: 0.6875rem; color: var(--muted); line-height: 1.4; }

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Turnierleiste unter der Kopfzeile (auf jeder Seite) */
.tourbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.tourbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}
.tourbar-label {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tourbar-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 8px;
}
.tourbar-list::-webkit-scrollbar { display: none; }
.tour-chip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--bg);
  line-height: 1.2;
}
.tour-chip:hover { border-color: var(--accent); }
.tour-chip.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tour-chip .ic { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-chip.running .ic { background: var(--accent); }
.tour-chip.live .ic { background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.tour-chip .tn { font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.tour-chip .td { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.tour-chip.live .td { color: var(--live); font-weight: 600; }
.tourbar-all { flex: 0 0 auto; font-size: var(--step--1); font-weight: 600; color: var(--accent); text-decoration: none; }
.tourbar-all:hover { text-decoration: underline; }
.tourbar-empty { color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .tour-chip.live .ic { animation: none; } }

/* Turnieruebersicht oben auf der Startseite */
.overview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.overview-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--line); }
.ov-group { min-width: 0; padding-bottom: 4px; background: var(--surface); }
.ov-title {
  padding: 10px 16px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 8px 16px;
  text-decoration: none;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.ov-row:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.ov-name { font-weight: 600; overflow-wrap: anywhere; }
.ov-date { font-size: var(--step--1); color: var(--muted); }
.ov-count { grid-row: span 2; align-self: center; text-align: right; font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.ov-count b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); line-height: 1; }
.ov-count .lv { color: var(--live); font-weight: 600; }
.ov-empty { padding: 10px 16px 14px; color: var(--muted); font-size: var(--step--1); }
.overview-head .panel-note { white-space: nowrap; }

/* ---------- Feinschliff: aufgeraeumt und etwas verspielter ---------- */
.comp, .panel, .side-box, .overview, .player-head, .h2h-head, .kpi { box-shadow: var(--shadow); }
.comp, .panel, .side-box { border-color: color-mix(in srgb, var(--line) 70%, transparent); }

/* Turnierkopf: klein, eine Zeile, farbiger Punkt je Turnierart */
.comp-head {
  flex-wrap: nowrap;
  align-items: center;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
.comp-name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comp-name::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.tier-major .comp-name::before { background: var(--live); }
.tier-tour .comp-name::before { background: var(--accent); }
.tier-other .comp-name::before { background: var(--sisal); }
.comp-meta {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 48%;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flaggen (Emoji) statt Laenderkuerzel */
.flag { flex: 0 0 auto; width: 32px; text-align: center; font-size: 1.15rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Spielerbilder */
.avatar {
  --s: 20px;
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  color: color-mix(in srgb, var(--muted) 75%, var(--surface-2));
  font-family: var(--font-body);
  font-size: calc(var(--s) * 0.4);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.av-sil { width: 100%; height: 100%; fill: currentColor; transform: translateY(8%); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.m-player .avatar { box-shadow: 0 0 0 1px var(--line); }
.m-player.loser .avatar { opacity: 0.7; }
.sb-photo { display: inline-block; line-height: 0; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--board-ink) 25%, transparent); }
.sb-player { justify-items: start; }
.sb-player.away { justify-items: end; }

/* Spielzeilen: sanfte Rueckmeldung, Sieger-Stand hervorgehoben */
.match { position: relative; transition: background-color 0.15s ease; }
.match::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.match:hover::before, .match:focus-visible::before { opacity: 1; }
.m-main span { min-width: 24px; padding: 0 5px; border-radius: 5px; }
.m-main .lead { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* Live-Punkt mit kleinem Wellen-Effekt */
.dot-live { position: relative; }
.dot-live::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--live);
  opacity: 0;
  animation: ripple 1.6s ease-out infinite;
}
.pill.live .dot-live::after { color: #fff; }
@keyframes ripple { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }

/* Knoepfe und Chips */
.chip, .datebar a, .tour-chip, .lang-switch a { transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }
.chip:active, .datebar a:active, .tour-chip:active { transform: scale(0.96); }
.chip:hover { border-color: var(--accent); }
.datebar a:hover { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .dot-live::after { animation: none; }
  .match, .match::before, .chip, .datebar a, .tour-chip { transition: none; }
}

/* ---------- Spielerseite ---------- */
.kpis-grid { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); box-shadow: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .kpis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis-grid .kpi { box-shadow: none; }
.kpi .sub { font-size: 0.72rem; color: var(--muted); }
.facts .flag { width: auto; font-size: 1rem; vertical-align: -1px; }

/* Average-Verlauf */
.chart-body { display: grid; gap: 8px; }
.chart-title { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.avg-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.avg-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); }
.avg-val { font-size: 0.66rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.avg-fill { width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: var(--win); opacity: 0.85; transition: opacity 0.15s ease, transform 0.15s ease; transform-origin: bottom; }
.avg-bar.l .avg-fill { background: var(--loss); }
.avg-bar:hover .avg-fill { opacity: 1; transform: scaleY(1.03); }
.avg-bar:hover .avg-val { color: var(--ink); }

/* Spieleliste im Tennisexplorer-Stil */
.hist { display: grid; grid-template-columns: minmax(0, 1fr); }
.hist-item { min-width: 0; }
.hist-item + .hist-item { border-top: 1px solid var(--line); }
.hist-head {
  display: flex;
  gap: 10px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
  white-space: nowrap;
}
.hh-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hh-d { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.hist-head a { color: inherit; }
.hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-width: 0; color: inherit; text-decoration: none; }
.hist-icon { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 0.75rem; font-weight: 800; }
.hist-icon.win { background: color-mix(in srgb, var(--win) 20%, transparent); color: var(--win); }
.hist-icon.loss { background: color-mix(in srgb, var(--loss) 20%, transparent); color: var(--loss); }
.hist-icon.sched { color: var(--muted); }
.hist-names { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-avg { flex: 0 0 auto; font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-score { flex: 0 0 auto; min-width: 44px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.hist-row:hover .hist-score { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.hist-more { display: block; margin: 10px auto 14px; }

/* Match-Seite: letzte Spiele beider Spieler nebeneinander */
.hist-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hist-col { min-width: 0; }
.hist-col + .hist-col { border-left: 1px solid var(--line); }
.hist-col-head { padding: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--accent); }
.hist-col-head a { color: inherit; text-decoration: none; }
.hist-col-head a:hover { text-decoration: underline; }
.hist-col .hist-avg { display: none; }
@media (max-width: 760px) {
  .hist-2col { grid-template-columns: minmax(0, 1fr); }
  .hist-col + .hist-col { border-left: 0; border-top: 1px solid var(--line); }
}

/* Vergleich vor dem Spiel (gekennzeichnet) */
.pre-badge { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--sisal) 30%, transparent); color: var(--ink); }
.pre-note { font-size: 0.75rem; color: var(--muted); border-bottom: 1px dashed var(--line); padding-block: 8px; }
.stats-pre .stat-bar i { opacity: 0.6; }

/* ---------- Turnierbaum ---------- */
.bracket {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.b-round { flex: 0 0 210px; display: flex; flex-direction: column; scroll-snap-align: start; }
.b-round-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0 2px 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 10px;
}
.b-round.last .b-round-head { border-bottom-color: var(--sisal); }
.b-round-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.b-match {
  position: relative;
  display: block;
  padding: 6px 9px 5px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.b-match:hover { border-color: var(--accent); transform: translateY(-1px); }
.b-match::after { content: ""; position: absolute; top: 50%; right: -27px; width: 26px; border-top: 1px solid var(--line); }
.b-round.last .b-match::after { display: none; }
.b-match.live { border-color: var(--live); }
.b-match.empty { border-style: dashed; box-shadow: none; background: transparent; color: var(--muted); }
.b-p { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; line-height: 1.55; min-width: 0; }
.b-p .flag { width: 20px; font-size: 0.95rem; }
.b-p .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-p b { font-family: var(--font-display); font-size: 0.95rem; min-width: 14px; text-align: right; }
.b-p.win .nm, .b-p.win b { font-weight: 700; color: var(--ink); }
.b-p.win b { color: var(--accent); }
.b-p.lose { color: var(--muted); }
.b-meta { font-size: 0.66rem; color: var(--muted); margin-top: 1px; }
.b-live { color: var(--live); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 560px) { .b-round { flex-basis: 78vw; } }

/* Statistik-Fenster in der Spieleliste */
.hist-row { cursor: pointer; }
.hist-row:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.stat-pop {
  position: fixed;
  z-index: 30;
  width: min(300px, calc(100vw - 16px));
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.28);
  padding: 10px 12px;
  font-size: 0.82rem;
  animation: pop-in 0.12s ease-out;
}
.stat-pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pop-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.pop-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-head span:last-child { text-align: right; }
.pop-head b { font-family: var(--font-display); font-size: 1.15rem; padding: 0 6px; border-radius: 5px; background: var(--surface-2); }
.pop-table { width: 100%; border-collapse: collapse; }
.pop-table th, .pop-table td { padding: 4px 2px; border: 0; white-space: nowrap; }
.pop-table th { font-size: 0.66rem; letter-spacing: 0.05em; text-align: center; color: var(--muted); font-weight: 600; }
.pop-table td { font-variant-numeric: tabular-nums; font-weight: 600; width: 30%; }
.pop-table td:first-child { text-align: left; }
.pop-table td:last-child { text-align: right; }
.pop-table td.better { color: var(--accent); }
.pop-table tbody tr:hover td { background: none; }
.pop-empty { color: var(--muted); padding: 6px 0; }
@media (prefers-reduced-motion: reduce) { .stat-pop { animation: none; } }

/* Handy: steht am Ende, damit es die Grundregeln oben ueberschreibt */
@media (max-width: 760px) {
  /* Inhalte zuerst: Turnieruebersicht steckt schon in der Turnierleiste */
  .overview { display: none; }
  .page-title { font-size: 1.9rem; }
  .filters[role="group"] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .filters[role="group"]::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }

  /* Groessere Tippflaechen */
  .chip { min-height: 40px; padding: 8px 14px; }
  .lang-switch a { padding: 8px 7px; gap: 4px; }
  .tourbar-all { padding: 12px 0 12px 6px; }
  .comp-name { padding-block: 2px; }
  .side-row { min-height: 40px; }
  .footer-links a { display: inline-block; padding-block: 10px; }
  .side-more { display: block; padding-block: 10px; }
  /* Datumsleiste: alle 7 Tage passen nebeneinander */
  .datebar a { flex: 1 0 44px; min-width: 44px; padding: 4px 2px; }
}

/* ---------- Kontext in der Liste ---------- */
.m-player .rk { flex: 0 0 auto; font-size: 0.7rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-h2h { font-size: 0.68rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.m-main.m-pre { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; min-width: 40px; color: var(--muted); }
.m-main.m-pre .odd-mini { font-variant-numeric: tabular-nums; }
.m-main.m-pre .odd-mini.fav { color: var(--accent); }

/* ---------- Live-Gefuehl ---------- */
@keyframes score-flash {
  0% { background: color-mix(in srgb, var(--sisal) 70%, transparent); }
  100% { background: transparent; }
}
.m-main.flash, .sb-score.flash { animation: score-flash 1.6s ease-out; border-radius: 6px; }
.upd { margin-left: auto; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.offline-note { border-left: 3px solid var(--live); }
@media (prefers-reduced-motion: reduce) { .m-main.flash, .sb-score.flash { animation: none; } }

/* ---------- Wichtige Momente ---------- */
.moment { display: inline-block; width: max-content; margin-top: 2px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; }
.moment.matchdart { background: var(--live); color: #fff; }
.moment.decider, .moment.deciderset { background: var(--sisal); color: #141a17; }
.match.hot { box-shadow: inset 3px 0 0 var(--live); }
.rest-box.matchdart .val { color: #ff6b62; }
.rest-box.matchdart .lbl::after { content: " 🎯"; }

/* ---------- Gleich geht's los ---------- */
.soon-section { display: grid; gap: 10px; }
.soon-head { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--accent); }
.soon-in { font-size: 0.66rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- Turnier-Filter ---------- */
.tier-filter { margin-top: -4px; }
.chip-sm { padding: 3px 10px; font-size: 0.78rem; }

/* ---------- Match des Tages ---------- */
.motd {
  display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--board); color: var(--board-ink); text-decoration: none; box-shadow: var(--shadow);
}
.motd:hover { filter: brightness(1.08); }
.motd-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sisal); }
.motd-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.motd-p { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.motd-p.lose { opacity: 0.6; }
.motd-n { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.motd-r { font-size: 0.78rem; opacity: 0.8; }
.motd-c { display: grid; justify-items: center; gap: 4px; }
.motd-score { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1; }
.motd-score span { opacity: 0.4; margin: 0 4px; }
.motd-score.time { font-size: var(--step-2); }
.motd-sub { font-size: 0.75rem; opacity: 0.75; }
.motd-ctx { font-size: 0.78rem; opacity: 0.7; text-align: center; }
@media (max-width: 560px) { .motd-score { font-size: var(--step-2); } }

/* ---------- Matchzeile: Computer/Tablet einzeilig, Handy zweizeilig ---------- */
.m-time { grid-area: time; }
.m-info { grid-area: info; }
.m-players { grid-area: players; }
.m-score { grid-area: score; }
.m-info:empty { display: none; }
.m-info .ph { color: var(--live); font-weight: 600; font-size: var(--step--1); }
.m-player .rk { font-weight: 500; }

@media (min-width: 561px) {
  .match {
    grid-template-columns: 150px minmax(0, 1fr) auto auto;
    grid-template-areas: "time players info score";
    gap: 0 12px;
    padding-block: 7px;
  }
  .m-time { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .m-players { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .m-player { flex: 0 1 auto; gap: 6px; }
  .m-player.away::before { content: "–"; color: var(--muted); margin-right: 2px; }
  .m-info { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .moment { margin-top: 0; }
  .m-sets { display: flex; gap: 10px; grid-template-rows: none; }
  .m-sets .per span + span::before { content: "-"; opacity: 0.6; }
  .m-main { grid-template-rows: none; grid-template-columns: auto auto auto; justify-content: end; align-items: center; min-width: 88px; }
  .m-main:not(.m-pre)::after { content: ":"; order: 1; opacity: 0.45; }
  .m-main:not(.m-pre) span:last-child { order: 2; }
  .m-main.m-pre { grid-template-columns: 42px 42px; gap: 4px; text-align: right; }
}

@media (max-width: 560px) {
  .match {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "time players score" "info players score";
    row-gap: 0;
  }
  .m-time { align-self: end; }
  .m-info { align-self: start; display: grid; justify-items: start; line-height: 1.25; min-width: 0; max-width: 100%; }
  .match:has(.m-info:empty) .m-time { align-self: center; grid-row: 1 / 3; }
  /* Hinweise wie "Entscheidungs-Leg" bleiben in ihrer Spalte und brechen notfalls um, statt in die Namen zu laufen */
  .m-info .moment, .m-info .co-chip { width: auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .m-info .co-chip { display: inline-block; }
}

/* ---------- Beschriftung der Quoten ---------- */
.comp-odds { flex: 0 0 auto; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: help; }
.comp-head-min { justify-content: flex-end; padding-block: 4px; }
.odd-mini { cursor: help; }
.odds-note { margin: 4px 2px 0; font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
@media (min-width: 561px) {
  /* genau ueber den beiden Quoten-Spalten (2 x 42 px + Abstand) */
  .comp-odds { width: 88px; text-align: center; }
}

/* ---------- Spieler nach Land ---------- */
.nat-table td { vertical-align: middle; }
.nat-name a { font-weight: 600; }
.nat-soon { display: block; font-size: 0.72rem; }
.nat-soon a { color: var(--accent); font-weight: 600; }
.nat-form { display: inline-flex; gap: 3px; }
.nat-form i { width: 9px; height: 9px; border-radius: 2px; background: var(--loss); }
.nat-form i.w { background: var(--win); }
.nat-last { display: grid; text-decoration: none; color: inherit; font-size: var(--step--1); line-height: 1.3; }
.nat-last b { color: var(--loss); }
.nat-last.w b { color: var(--win); }
.nat-last span { color: var(--muted); font-size: 0.72rem; }
.nat-last:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .nat-c-money, .nat-c-last { display: none; }
}
@media (max-width: 560px) {
  /* Vier Menuepunkte in einer Zeile */
  .mainnav { flex-wrap: nowrap; gap: 2px; justify-content: space-between; }
  .mainnav a { padding: 6px 7px; font-size: 1rem; letter-spacing: 0.01em; white-space: nowrap; }
  /* Laender-Tabelle: Platz, Spieler, Form, Average passen ohne Seitwaertsscrollen */
  .nat-table th, .nat-table td { padding-inline: 6px; }
  .nat-table td.nat-name { white-space: normal; }
}
@media (max-width: 360px) { .mainnav a { font-size: 0.92rem; padding-inline: 5px; } }
.filters.nat-filters { flex-wrap: wrap; overflow: visible; }
@media (max-width: 560px) { .nat-filters .chip { padding-inline: 10px; } }

/* ---------- Darts im TV ---------- */
.tv-day { margin-bottom: 0; }
.tv-row {
  display: grid;
  grid-template-columns: 92px 120px minmax(0, 1fr) auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}
.tv-day .tv-row:first-of-type { border-top: 0; }
.tv-row.on-air { box-shadow: inset 3px 0 0 var(--live); background: color-mix(in srgb, var(--live) 6%, var(--surface)); }
.tv-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.tv-time span { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.tv-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.tv-main { display: grid; gap: 2px; min-width: 0; }
.tv-title { font-weight: 600; }
.tv-note { font-size: var(--step--1); color: var(--muted); }
.tv-link { font-size: var(--step--1); color: var(--accent); white-space: nowrap; }
@media (max-width: 560px) {
  .tv-row { grid-template-columns: 64px minmax(0, 1fr); padding-inline: 10px; }
  .tv-ch { grid-column: 2; grid-row: 1; }
  .tv-main { grid-column: 2; }
  .tv-link { grid-column: 2; justify-self: start; }
  .tv-time { grid-row: 1 / span 2; align-self: start; }
  /* Menue mit fuenf Punkten: seitlich wischbar statt umbrechen */
  .mainnav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) { .mainnav a { padding-inline: 5px; font-size: 0.97rem; } }
@media (max-width: 360px) { .mainnav a { padding-inline: 4px; font-size: 0.88rem; } }
.tv-partner { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tv-partner a { font-size: var(--step--1); font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 6px; text-decoration: none; }
.tv-partner .ad-tag { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .tv-partner { grid-column: 2; justify-self: start; } }
.tv-row { text-decoration: none; color: inherit; grid-template-columns: 92px 120px minmax(0, 1fr) auto; }
.tv-row:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.tv-dazn p { margin: 6px 0 10px; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.tv-dazn-head { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) { .tv-row { grid-template-columns: 64px minmax(0, 1fr); } }

/* ---------- Werbung ---------- */
body.no-ads .ad, body.no-ads .ad-anchor-bar { display: none !important; }
.ad.ad-live { background: none; border: 0; border-radius: 0; overflow: hidden; }

/* ---------- Logo oben (gleich wie dartsexplorer-logo.png) ---------- */
.brand-mark { width: 46px; height: 46px; display: block; margin: -4px 0; }
.bm-red { fill: var(--live); }
.bm-gap { fill: var(--board); }
.bm-bull { fill: #3dbb85; }
.bm-dart path, .bm-dart rect { fill: var(--board-ink); }
.bm-dart .bm-flight { fill: #3dbb85; stroke: var(--board); stroke-width: 2.4; stroke-linejoin: round; }
.brand-name b { color: #3dbb85; font-weight: inherit; }
@media (max-width: 560px) { .brand-mark { width: 40px; height: 40px; } }

/* ---------- Magazin ---------- */
.mag-list { display: grid; gap: 10px; }
.mag-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; overflow: hidden; }
.mag-card[hidden] { display: none; }
.mag-card:hover { border-color: var(--accent); }
.mag-card-text { display: grid; gap: 4px; padding: 14px 16px; align-content: start; }
.mag-card-img { display: block; aspect-ratio: 1600 / 840; background: var(--line); overflow: hidden; }
.mag-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.mag-card:hover .mag-card-img img { transform: scale(1.03); }
.mag-rubrik { font-weight: 700; }
.mag-rubrik.rub-wm { color: var(--live); }
.mag-rubrik.rub-grundlagen { color: var(--accent); }
.mag-rubrik.rub-spieler { color: var(--sisal); }
.mag-rubrik.rub-ausruestung { color: #4b8fc2; }
.mag-rubrik.rub-dutch-darts-championship { color: #e46d1f; }
.mag-rubrik.rub-news { color: var(--live); }
.mag-rubrik.rub-hintergrund { color: #8a6cc8; }
/* News: Liste wie ein Ticker (Startseite und /news) */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.news-item:first-child { border-top: 0; }
.news-item:hover .news-title { text-decoration: underline; }
.news-time { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.news-time b { color: var(--live); font-weight: 700; }
.news-title { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.news-desc { grid-column: 1; color: var(--muted); font-size: var(--step-0); line-height: 1.45; }
.news-thumb { grid-column: 2; grid-row: 1 / span 3; width: 120px; height: auto; aspect-ratio: 1600 / 840; object-fit: cover; border-radius: 6px; align-self: start; }
.news-box { margin: 18px 0; padding: 4px 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news-box-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; }
.news-box-head h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.news-box-head a { font-size: var(--step--1); font-weight: 600; }
@media (max-width: 520px) { .news-thumb { width: 88px; } .news-title { font-size: 1.15rem; } }
/* Fotonachweis direkt am Bild (Pflicht bei Pressefotos) */
.mag-hero, .mag-card-img { position: relative; }
.mag-credit { position: absolute; right: 0; bottom: 0; padding: 2px 6px; font-size: 0.68rem; line-height: 1.3; color: #fff; background: rgb(0 0 0 / 0.55); border-top-left-radius: 4px; }
.mag-filters { margin: 4px 0 14px; }
.mag-top { margin-bottom: 12px; }
.mag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mag-card-big .mag-title { font-size: 1.7rem; }
@media (min-width: 760px) {
  .mag-card-big.has-img { flex-direction: row; }
  .mag-card-big .mag-card-img { flex: 0 0 58%; aspect-ratio: auto; min-height: 260px; }
  .mag-card-big .mag-card-text { padding: 22px 22px; align-content: center; }
}
.mag-meta { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mag-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.mag-desc { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.mag-article { max-width: 720px; }
.mag-article .eyebrow { text-decoration: none; }
.mag-lead { font-size: 1.05rem; line-height: 1.5; margin: 8px 0 6px; }
.mag-byline { color: var(--muted); font-size: var(--step--1); margin: 0; }
.mag-body { font-size: 1rem; line-height: 1.7; }
.mag-body h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 28px 0 8px; line-height: 1.2; }
.mag-body h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.mag-body p { margin: 0 0 14px; }
.mag-body ul { margin: 0 0 14px; padding-left: 20px; }
.mag-body li { margin-bottom: 6px; }
.mag-body a { color: var(--accent); }
.mag-compare { margin: 18px 0; overflow-x: auto; }
.mag-compare table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.mag-compare th, .mag-compare td { padding: 10px 12px; text-align: center; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.mag-compare th { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; }
.mag-compare td:first-child, .mag-compare th:first-child { text-align: left; color: var(--muted, inherit); font-size: .9rem; }
.mag-compare td { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.mag-compare td strong { color: var(--accent); }
.mag-compare tr:last-child td { border-bottom: 0; }
.mag-body blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-radius: 0 var(--radius) var(--radius) 0; }
.mag-poll { padding: 14px 16px 0; }
.mag-poll .mag-embed-note { margin: 12px -16px 0; }
.poll-q { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.poll-opt { display: block; width: 100%; text-align: left; margin: 6px 0; padding: 10px 12px; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.poll-opt:hover, .poll-opt:focus-visible { border-color: var(--accent); }
.poll-opt:disabled { opacity: 0.6; cursor: wait; }
.poll-bar { position: relative; display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.poll-bar.mine { border-color: var(--accent); }
.poll-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.poll-label, .poll-bar b { position: relative; }
.mag-hero { margin: 18px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 1600 / 840; }
.mag-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mag-facts { margin: 16px 0 22px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.mag-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 8px 0 0; }
@media (min-width: 700px) { .mag-facts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mag-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mag-facts dd { margin: 2px 0 0; font-weight: 600; line-height: 1.35; }
.mag-grafik { margin: 20px 0; padding: 14px 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mag-grafik svg { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; }
.mag-grafik figcaption { margin-top: 8px; font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.mag-grafik .g-narrow { display: none; }
@media (max-width: 560px) {
  .mag-grafik { padding: 12px 10px 8px; }
  .mag-grafik .g-wide { display: none; }
  .mag-grafik .g-narrow { display: block; }
}
.mag-grafik .g-badge { fill: var(--accent); }
.mag-grafik .g-ink { fill: var(--ink); }
.mag-grafik .g-muted { fill: var(--muted); }
.mag-grafik .g-on { fill: #fff; }
.mag-grafik .g-on-dark { fill: #141a17; }
.mag-grafik .g-bar { fill: color-mix(in srgb, var(--win) 70%, var(--surface)); }
.mag-grafik .g-accent { fill: var(--accent); }
.mag-grafik .g-sisal { fill: var(--sisal); }
.mag-grafik .g-red { fill: var(--live); }
.mag-grafik .g-dim { fill: color-mix(in srgb, var(--muted) 30%, var(--surface)); }
.mag-grafik .g-line { stroke: var(--muted); fill: none; }
.mag-grafik .g-accent-line { stroke: var(--accent); fill: none; }
.mag-grafik .g-leader { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.mag-grafik .g-ink-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
.mag-grafik .b-rim { fill: #141414; }
.mag-grafik .b-dark { fill: #1d1d1b; }
.mag-grafik .b-light { fill: #ead9b3; }
.mag-grafik .b-red { fill: #c42d27; }
.mag-grafik .b-green { fill: #1f8f5f; }
.mag-grafik .b-num { fill: #f3f5f2; }
.aff-mark { display: inline-block; margin-left: 4px; padding: 0 4px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; }
.aff-note { margin: 20px 0 0; font-size: var(--step--1); color: var(--muted); }
.mag-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 18px 0; }
.mag-players .mag-embed { margin: 0; }
.pcard { display: flex; gap: 14px; align-items: center; padding: 14px; color: inherit; text-decoration: none; }
.pcard:hover .pc-name b { text-decoration: underline; }
.pc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; }
.pc-line { font-size: var(--step--1); color: var(--muted); }
.pc-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--step--1); }
.mag-author { margin: 24px 0 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mag-author p { margin: 4px 0 0; line-height: 1.5; }
.mag-embed { margin: 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mag-embed-note { margin: 0; padding: 8px 12px; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line); }
.mag-more { margin-top: 24px; display: grid; gap: 10px; }
.side-mag .nm { white-space: normal; line-height: 1.35; }
.mag-article .page-head { margin-bottom: 22px; }
/* Sechs Menuepunkte: auf Tablet-Breite etwas enger, damit alles in eine Zeile passt */
@media (min-width: 561px) and (max-width: 1060px) {
  .mainnav { flex-wrap: nowrap; gap: 0; }
  .mainnav a { padding: 6px 8px; font-size: 1rem; white-space: nowrap; }
}

/* ---------- Checkout-Tabelle ---------- */
.co-calc .panel-body { display: grid; gap: 10px; justify-items: start; }
.co-label { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.co-input { font: inherit; font-family: var(--font-display); font-size: 2rem; font-weight: 700; width: 160px; padding: 6px 12px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.co-out { min-height: 64px; }
.co-big { display: flex; gap: 8px; flex-wrap: wrap; }
.co-big .co-dart { font-size: 1.6rem; padding: 6px 14px; }
.co-hint { margin: 6px 0 0; color: var(--muted); font-size: var(--step--1); }
.co-dart { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.2; padding: 2px 7px; border-radius: 5px; margin-right: 4px; background: var(--surface-2); color: var(--ink); }
.co-dart.co-triple { background: color-mix(in srgb, var(--live) 22%, var(--surface)); }
.co-dart.co-double { background: color-mix(in srgb, var(--accent) 28%, var(--surface)); }
.co-dart.co-bull { background: var(--accent); color: var(--accent-ink); }
.co-none { color: var(--muted); font-size: 0.8rem; }
.co-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin: 4px 2px; }
.co-group { margin-top: 0; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.co-cell { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.co-cell:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.co-cell b { font-family: var(--font-display); font-size: 1.1rem; min-width: 32px; }
.co-cell.bogey b { color: var(--live); }
.rest-route { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; opacity: 0.85; }

/* ---------- Turnier-Infos ---------- */
.t-winner { padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--sisal) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sisal) 50%, var(--line)); font-size: 1.05rem; }
.t-winner a { color: inherit; }
.t-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.t-facts > div { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.t-facts span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.t-facts b { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; }
.t-facts small { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.t-tv { font-size: var(--step--1); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.t-tv a { color: var(--accent); }
.t-list { display: grid; gap: 8px; }
.t-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.t-row a { color: inherit; }
.t-st { font-size: 0.75rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.t-st.winner { background: var(--sisal); color: #141a17; }
.t-st.through, .t-st.open { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent); }
.t-res { font-size: var(--step--1); color: var(--muted); }
.t-res a { color: var(--muted); }
.t-day h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em; }
.t-day p { margin: 0 0 14px; line-height: 1.6; }
.t-day a { color: var(--accent); }
.t-day:last-child p { margin-bottom: 0; }
@media (max-width: 560px) { .t-opp { display: none; } }

.wm-current { display: grid; gap: 12px; }
.wm-current p { margin: 0; }
.wm-wait { margin: 0; line-height: 1.6; }

/* ---------- Bestenlisten ---------- */
.lb-filters { margin-top: -2px; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.lb-panel table td { padding-block: 6px; }
.lb-pos { width: 28px; color: var(--muted); }
.lb-who a { color: inherit; font-weight: 600; }
.lb-val { white-space: nowrap; }
.lb-val a { color: inherit; }
.lb-sub { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .lb-grid { grid-template-columns: 1fr; } }
a.chip { text-decoration: none; color: inherit; }
a.chip[aria-pressed="true"] { color: var(--accent-ink); }
@media (max-width: 560px) {
  .lb-panel table td { padding-inline: 6px; }
  .lb-panel .panel-head { flex-wrap: wrap; }
  .lb-who { white-space: normal; }
  .lb-val b { font-size: 0.95rem; }
}
.lb-panel table { table-layout: auto; width: 100%; }
.lb-panel .lb-val { width: 1%; }

/* ---------- Favoriten ---------- */
.fav-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 4px; padding: 5px 12px; font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; }
.fav-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--sisal) 30%, var(--surface)); border-color: var(--sisal); }
.fav-star { color: #e0b200; font-size: 1.05rem; line-height: 1; }
.fav-mark { color: #e0b200; font-size: 0.8rem; flex: 0 0 auto; }
.match.is-fav { box-shadow: inset 3px 0 0 #e0b200; }
.fav-section { display: grid; gap: 8px; }
.fav-head { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; color: #c99f00; }
.fav-none { margin: 0; color: var(--muted); font-size: var(--step--1); }
.fav-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fav-chips .chip { text-decoration: none; }

/* Datumsleiste: nur der gewaehlte Tag ist umrahmt (gruen), "Heute" steht nur als Wort da */
.datebar a.today, .datebar a.today:hover { border-color: var(--line); }
.datebar a.today .d1 { color: var(--muted); }
.datebar a.active, .datebar a.active.today { background: transparent; color: inherit; border: 2px solid var(--accent); }
.datebar a.active .d1 { color: var(--accent); opacity: 1; font-weight: 700; }
/* Hover-Rahmen nur mit Maus, damit er am Handy nach dem Antippen nicht haengen bleibt */
@media (hover: none) { .datebar a:hover { border-color: var(--line); } .datebar a.active:hover { border-color: var(--accent); } }
/* In-Article-Anzeigen im Magazin: volle Textbreite, Platz reserviert, damit der Text beim Laden nicht springt */
.ad-article { width: 100%; min-height: 250px; margin: 22px 0; }
.ad-article.ad-live { min-height: 0; }
.ad-article::before { content: "Anzeige"; }
html[lang="en"] .ad-article::before { content: "Advertisement"; }

/* Tablet-Breite mit sieben Menuepunkten: Menue seitlich wischbar, Sprachumschalter bleibt rechts in derselben Zeile */
@media (min-width: 561px) and (max-width: 1060px) {
  .topbar-inner { flex-wrap: nowrap; }
  .mainnav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .lang-switch { flex: 0 0 auto; }
}
/* Hinweis waehrend einer kurzen Server-Pause: schwebende Karte mit animierter Dartscheibe */
.maint-toast {
  position: fixed; left: 50%; top: 72px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 14px; width: min(460px, calc(100% - 32px));
  padding: 12px 18px 12px 14px; border-radius: 14px;
  background: var(--board); color: var(--board-ink); border: 1px solid color-mix(in srgb, var(--sisal) 45%, transparent);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); animation: maint-in 0.35s ease-out;
}
.maint-toast[hidden] { display: none; }
.maint-text { display: grid; gap: 2px; min-width: 0; }
.maint-title { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; }
.maint-sub { font-size: 0.8rem; opacity: 0.75; }
.maint-board { position: relative; flex: 0 0 auto; width: 44px; height: 44px; }
.mb-ring { position: absolute; border-radius: 50%; inset: 0; background: var(--live); }
.mb-ring.r2 { inset: 7px; background: var(--board); }
.mb-ring.r3 { inset: 12px; background: var(--live); }
.mb-bull { position: absolute; inset: 18px; border-radius: 50%; background: #3dbb85; animation: maint-pulse 1.6s ease-in-out infinite; }
/* Pfeil fliegt von rechts oben ins Bull und wird wieder herausgezogen */
.mb-dart { position: absolute; left: 22px; top: 22px; width: 26px; height: 4px; border-radius: 2px; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--board-ink) 0 55%, #3dbb85 55% 100%); animation: maint-dart 1.6s cubic-bezier(.3,.7,.4,1) infinite; }
@keyframes maint-dart {
  0% { transform: rotate(-40deg) translate(34px, 0); opacity: 0; }
  25% { opacity: 1; }
  45%, 75% { transform: rotate(-40deg) translate(0, 0); opacity: 1; }
  100% { transform: rotate(-40deg) translate(34px, 0); opacity: 0; }
}
@keyframes maint-pulse { 0%, 40% { transform: scale(1); } 50% { transform: scale(1.35); } 60%, 100% { transform: scale(1); } }
@keyframes maint-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .mb-dart, .mb-bull, .maint-toast { animation: none; } .mb-dart { transform: rotate(-40deg); } }
/* Stern-Symbol fuer Favoriten (eigene Grafik statt Schriftzeichen) */
.star-ico { width: 1em; height: 1em; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star-ico.on { fill: #e0b200; stroke: #e0b200; }
.fav-star { display: inline-flex; color: var(--muted); }
.fav-btn[aria-pressed="true"] .fav-star { color: #e0b200; }
.fav-mark { display: inline-flex; font-size: 0.85rem; }
.fav-head .star-ico, .fav-chips .star-ico { font-size: 0.95em; }
.motd-label .star-ico { vertical-align: -0.12em; }
/* Check-out-Moment: kurze Hervorhebung, wenn ein Leg, Satz oder Match gewonnen wurde */
.co-chip { display: inline-flex; gap: 0.3em; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; white-space: nowrap; animation: co-pop 0.45s ease-out, co-fade 0.6s ease-in 8.4s forwards; }
.co-chip b { font-weight: 800; }
.match.co-hit { animation: co-row 2.4s ease-out; }
.co-banner { margin: 10px auto 0; width: fit-content; max-width: 100%; padding: 6px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; text-align: center; box-shadow: 0 0 0 0 rgba(61, 187, 133, 0.55); animation: co-pop 0.5s ease-out, co-ring 1.6s ease-out 0.2s 2, co-fade 0.6s ease-in 8.4s forwards; }
.co-banner b { font-weight: 800; }
@keyframes co-pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes co-ring { 0% { box-shadow: 0 0 0 0 rgba(61, 187, 133, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(61, 187, 133, 0); } }
@keyframes co-row { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
@keyframes co-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .co-chip, .co-banner, .match.co-hit { animation: none; } }
/* Darts-Zaehler (1–4 Spieler) */
.sc-setup { display: grid; gap: 14px; }
.sc-setup .co-hint { margin: 0; }
.sc-opt { display: grid; gap: 6px; }
.sc-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-seg .chip { min-width: 44px; justify-content: center; }
.sc-names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-names .co-input { max-width: none; width: 100%; font-size: 1.2rem; }
.sc-tools-left { justify-content: flex-start; margin-top: 4px; }
.sc-go { justify-self: start; padding: 12px 28px; font-size: 1.05rem; }
.sc-ok { border: 0; border-radius: 8px; padding: 10px 18px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.sc-ok:hover { filter: brightness(1.08); }
.sc-head { font-size: var(--step--1); color: var(--muted); margin-bottom: 10px; }
.sc-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sc-board.n1 { grid-template-columns: 1fr; }
.sc-board.n3 { grid-template-columns: repeat(3, 1fr); }
.sc-board.n4 { grid-template-columns: repeat(4, 1fr); }
.sc-player { display: grid; gap: 3px; align-content: start; padding: 10px 8px; border-radius: 10px; background: var(--surface-2); border: 2px solid transparent; text-align: center; min-width: 0; }
.sc-player.active { border-color: var(--accent); }
.sc-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-starter { color: var(--accent); font-size: 0.7em; margin-right: 4px; vertical-align: middle; }
.sc-score { display: flex; justify-content: center; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.sc-score b { color: var(--ink); }
.sc-rest { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; font-weight: 700; }
.sc-player.active .sc-rest { color: var(--accent); }
.sc-route { min-height: 1.6em; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.sc-meta { font-size: 0.8rem; color: var(--muted); }
.sc-msg { margin: 10px auto 0; width: fit-content; max-width: 100%; padding: 5px 14px; border-radius: 999px; font-weight: 600; text-align: center; background: var(--surface-2); animation: co-pop 0.4s ease-out; }
.sc-msg.checkout, .sc-msg.max, .sc-msg.set { background: var(--accent); color: #fff; }
.sc-msg.bust { background: var(--loss); color: #fff; }
.sc-entry, .sc-ask { margin-top: 12px; display: grid; gap: 8px; max-width: 520px; margin-left: auto; margin-right: auto; }
.sc-display { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 10px; background: var(--surface-2); }
.sc-for { font-size: 0.85rem; color: var(--muted); }
.sc-typed { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.sc-ph { opacity: 0.3; }
.sc-err { min-height: 1.1em; margin: 0; color: var(--loss); font-size: 0.85rem; }
.sc-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sc-quick::-webkit-scrollbar { display: none; }
.sc-quick .chip { flex: none; }
.sc-quick .sc-co { background: var(--accent); color: #fff; border-color: var(--accent); }
.sc-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-key { font: inherit; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sc-key:active { transform: scale(0.97); background: var(--surface-2); }
.sc-key-ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-ask { margin-top: 12px; padding: 14px; border-radius: 10px; background: var(--surface-2); text-align: center; display: grid; gap: 10px; justify-items: center; }
.sc-ask p { margin: 0; font-weight: 700; font-size: 1.1rem; }
.sc-ask-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sc-tools { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.sc-tools .chip[disabled] { opacity: 0.45; cursor: default; }
.sc-tools-end { justify-content: center; }
.sc-details { margin-top: 10px; }
.sc-details summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.sc-stats { width: 100%; margin-top: 8px; }
.sc-stats th, .sc-stats td { text-align: right; padding: 5px 8px; }
.sc-stats th:first-child, .sc-stats td:first-child { text-align: left; color: var(--muted); }
.sc-win { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 10px; border-radius: 12px; background: var(--accent); color: #fff; animation: co-pop 0.5s ease-out; }
.sc-win-ey { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; opacity: 0.9; }
.sc-win-name { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1.05; }
.sc-win-score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.sc-win-sub { font-size: 0.9rem; opacity: 0.9; }
@media (max-width: 560px) {
  .sc-names { grid-template-columns: 1fr; }
  .sc-board.n3, .sc-board.n4 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .sc-player { padding: 6px 4px; gap: 1px; }
  .sc-rest { font-size: 2.3rem; }
  .sc-board.n1 .sc-rest { font-size: 3.4rem; }
  .sc-board.n3 .sc-rest, .sc-board.n4 .sc-rest { font-size: 1.9rem; }
  .sc-board.n3 .sc-meta, .sc-board.n4 .sc-meta { display: none; }
  .sc-route .co-dart { font-size: 0.75rem; }
  .sc-entry { margin-top: 8px; gap: 6px; }
  .sc-display { padding: 4px 12px; }
  .sc-typed { font-size: 2rem; }
  .sc-key { font-size: 1.4rem; padding: 7px 0; }
  .sc-seg { gap: 5px; }
  .sc-seg .chip { min-width: 38px; padding-left: 10px; padding-right: 10px; }
}
#sc-box { width: 100%; }
#co-finish { display: grid; gap: 10px; justify-items: start; }
#co-finish[hidden] { display: none; }
/* Wer gerade wirft (Live) */
.m-player.throwing .nm { font-weight: 700; color: var(--accent); }
.m-player.throwing { position: relative; }
.m-player.throwing::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(61, 187, 133, 0.6); animation: thr-pulse 1.6s ease-out infinite; }
.sb-player.throwing .sb-photo { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
.sb-throw { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.sb-throw .dot-live { background: #fff; }
.rest-box.throwing { outline: 2px solid var(--accent); outline-offset: -2px; }
@keyframes thr-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 187, 133, 0.6); } 100% { box-shadow: 0 0 0 6px rgba(61, 187, 133, 0); } }
@media (prefers-reduced-motion: reduce) { .m-player.throwing::before { animation: none; } }
/* Entscheidungs-Leg: auf dem Handy die Kurzform */
.moment .mo-short { display: none; }
@media (max-width: 560px) {
  .m-info .moment .mo-long { display: none; }
  .m-info .moment .mo-short { display: inline; }
}

/* Sehr schmale Handys: nur die Flaggen, damit der Sprachumschalter neben dem Logo bleibt */
@media (max-width: 370px) {
  .lang-switch a span { display: none; }
}

/* Konfetti beim Matchgewinn */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }
