/* Layout: eine schmale Spalte wie ein Stadion-Anzeigeboard, Tag oben, Spiele nach Wettbewerb gruppiert */
:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --fg: #141b17;
  --muted: #646d67;
  --line: #e1e5e1;
  --accent: #1d5f3f;
  --accent-soft: #e4efe8;
  --yes: #1b8547;
  --yes-soft: #e2f3e8;
  --no: #c2372c;
  --no-soft: #fbe6e3;
  --open: #8f9892;
  --buy: #1b8547;
  --buy-soft: #e2f3e8;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1310; --surface: #151c18; --fg: #e7ece8; --muted: #8b958e; --line: #253029;
    --accent: #6cc894; --accent-soft: #1b2b22; --yes: #4fc47f; --yes-soft: #17301f;
    --no: #f0695d; --no-soft: #36191a; --open: #6f7a73; --buy: #4fc47f; --buy-soft: #17301f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1310; --surface: #151c18; --fg: #e7ece8; --muted: #8b958e; --line: #253029;
  --accent: #6cc894; --accent-soft: #1b2b22; --yes: #4fc47f; --yes-soft: #17301f;
  --no: #f0695d; --no-soft: #36191a; --open: #6f7a73; --buy: #4fc47f; --buy-soft: #17301f; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.45 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 760px; margin: 0 auto; }

/* Kopf */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px 12px; }
.brand { font: 700 1.5rem/1 var(--font-display); letter-spacing: .01em; margin: 0; }
.brand span { color: var(--accent); }
.abo-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .9rem;
}
.abo-btn .count { min-width: 1.4em; height: 1.4em; border-radius: 999px; background: var(--accent); color: var(--surface);
  display: inline-grid; place-items: center; font-size: .75rem; font-variant-numeric: tabular-nums; }

/* Filterleiste */
.filterbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; align-items: center; }
.filterbar::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.fchip svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fchip .chev { width: 12px; height: 12px; opacity: .6; }
.fchip.on, .fchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.fchip[aria-pressed="true"] svg.star-i { fill: currentColor; }
.fchip .num {
  min-width: 1.4em; height: 1.4em; border-radius: 999px; background: var(--accent); color: var(--surface);
  display: inline-grid; place-items: center; font-size: .72rem; font-variant-numeric: tabular-nums; padding: 0 4px;
}
.fchip.on .num { background: var(--surface); color: var(--accent); }
.fclear { flex: none; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: .88rem; cursor: pointer; padding: 8px 6px; text-decoration: underline; text-underline-offset: 3px; }

/* Filter-Fenster (auf dem Handy als Sheet von unten) */
dialog.sheet {
  border: 0; padding: 0; background: var(--surface); color: var(--fg); border-radius: 16px;
  width: min(560px, calc(100vw - 32px)); max-width: none; max-height: min(82vh, 760px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(8, 12, 10, .55); }
.sheet form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; } /* nicht flex: 1 (Basis 0): Safari klappt das Fenster sonst auf 0 px zusammen */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 700 1.25rem/1 var(--font-display); margin: 0; }
.x-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; cursor: pointer; flex: none; }
.x-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.sheet-body { overflow-y: auto; padding: 0 16px 8px; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.fsec { padding: 16px 0 14px; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.fsec:first-child { border-top: 0; }
.fsec h3 { font: 600 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.fsec .hint { font-size: .84rem; color: var(--muted); margin: -4px 0 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px 6px 8px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; font-weight: 600; font-size: .9rem; text-align: left;
}
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--open); display: grid; place-items: center; flex: none; }
.tick svg { width: 12px; height: 12px; stroke: var(--surface); fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
[aria-pressed="true"] > .tick { background: var(--accent); border-color: var(--accent); }
[aria-pressed="true"] > .tick svg { visibility: visible; }
.opt .lg { height: 26px; width: auto; max-width: 96px; object-fit: contain; background: #fff; border-radius: 5px; padding: 3px 5px; border: 1px solid var(--line); }
.opt .prov-logo { height: 26px; }
.opt small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.tsearch {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  padding: 0 14px; font: inherit; font-size: 16px; color: inherit; margin-bottom: 4px;
}
.tgroup { margin-top: 10px; }
.tgroup h4 { font-size: .74rem; color: var(--muted); margin: 0 0 2px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.trow { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.tsel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 50px; background: none; border: 0; cursor: pointer; text-align: left; padding: 0; font-weight: 500; }
.tsel .crest, .tsel .mono { width: 24px; height: 24px; }
.tsel span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsel[aria-pressed="true"] { font-weight: 700; }
.star { width: 46px; height: 46px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--open); flex: none; border-radius: 50%; }
.star svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.star[aria-pressed="true"] { color: var(--accent); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.tempty { color: var(--muted); font-size: .9rem; padding: 12px 0; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet-foot button { min-height: 50px; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 1rem; }
.sheet-foot .reset { flex: none; padding: 0 18px; border: 1px solid var(--line); background: var(--bg); }
.sheet-foot .done { flex: 1; border: 0; background: var(--accent); color: var(--surface); }

/* Tagesnavigation */
.days { display: flex; align-items: center; gap: 6px; padding-block: 4px 16px; }
.day-strip { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.day-strip::-webkit-scrollbar { display: none; }
.day {
  flex: none; cursor: pointer; border: 1px solid transparent; background: none; border-radius: 8px;
  padding: 6px 10px; text-align: center; min-width: 54px; color: var(--muted);
}
.day b { display: block; font: 700 1.05rem/1.1 var(--font-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.day small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.day[aria-current="date"] { background: var(--fg); color: var(--bg); }
.day[aria-current="date"] b { color: var(--bg); }
.day.has-games::after { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 3px auto 0; }
.day[aria-current="date"].has-games::after { background: var(--bg); }
.arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.day-title { font: 700 1.15rem/1.2 var(--font-display); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.day-title small { font: 500 .85rem var(--font-body); color: var(--muted); }
.next-title { margin-top: 24px; }
.day-title button.link { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Wettbewerb */
.comp { margin-bottom: 20px; }
.comp-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; }
.comp-head h3 { margin: 0; font: 600 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.comp-logo {
  height: 30px; width: auto; max-width: 112px; min-width: 30px; object-fit: contain; flex: none;
  padding: 4px 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.comp-head .mono { width: 30px; height: 30px; }

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.match {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 28px; align-items: center; gap: 12px;
  padding: 12px 14px; border-top: 1px solid var(--line);
}
.match:first-child { border-top: 0; }
.time { font: 700 1.05rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.time small { display: block; font: 500 .7rem/1.2 var(--font-body); color: var(--muted); margin-top: 3px; }
.teams { display: grid; gap: 6px; min-width: 0; }
.team { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; }
.team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .nm-short { display: none; }
.team .score { margin-left: auto; font: 700 1rem var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); padding-left: 8px; }
.crest { width: 24px; height: 24px; object-fit: contain; flex: none; }
.crest.flag { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); margin-block: 4px; }
.mono {
  width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font: 700 .62rem/1 var(--font-body); letter-spacing: .02em;
}

.where { display: flex; gap: 5px; max-width: 190px; }
.where { flex-direction: column; align-items: flex-end; flex-wrap: nowrap; }
.watch-label { font: 600 .66rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.provs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.prov { display: inline-flex; align-items: center; gap: 4px; }
.prov-logo {
  height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px;
  border-radius: 6px; background: #fff; border: 1px solid var(--line); text-decoration: none;
}
.prov-logo img { height: 18px; max-width: 96px; object-fit: contain; display: block; }
.prov-logo .txt { font: 700 .72rem/1 var(--font-body); color: #141b17; white-space: nowrap; }
a.prov-logo { transition: border-color .15s, transform .15s; }
a.prov-logo:hover { border-color: var(--accent); transform: translateY(-1px); }
a.prov-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prov.mine .prov-logo { border-color: var(--yes); box-shadow: 0 0 0 1px var(--yes); }
.prov.dim { opacity: .45; }
.prov-mode { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.prov-mode small { font: 600 .62rem/1 var(--font-body); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.prov-mode.dim small { opacity: .45; }
.prov-mode small.ppv {
  font-size: .64rem; color: var(--buy); background: var(--buy-soft); border-radius: 999px; padding: 3px 7px; margin-top: 1px;
}
.prov.buy .prov-logo { border-color: var(--buy); box-shadow: 0 0 0 1px var(--buy); }
.is-buy .status { background: var(--buy-soft); } .is-buy .status svg { stroke: var(--buy); }
.note.buy {
  color: var(--buy); background: var(--buy-soft); font-weight: 600; justify-self: start;
  padding: 5px 10px; border-radius: 6px;
}

.status { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.status svg { width: 15px; height: 15px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.is-yes .status { background: var(--yes-soft); } .is-yes .status svg { stroke: var(--yes); }
.is-no .status { background: var(--no-soft); } .is-no .status svg { stroke: var(--no); }
.is-open .status { border: 1.5px dashed var(--open); }
.is-open .status svg { stroke: var(--open); }
button.status { padding: 0; cursor: pointer; background: none; color: inherit; }
button.status:hover, button.status[aria-expanded="true"] { border-color: var(--accent); }
button.status:hover svg, button.status[aria-expanded="true"] svg { stroke: var(--accent); }
.info {
  grid-column: 1 / -1; font-size: .85rem; background: var(--accent-soft); color: var(--fg);
  border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap;
}
.info p { margin: 0; flex: 1 1 240px; }
.info button {
  cursor: pointer; border: 0; background: var(--accent); color: var(--surface); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .85rem; white-space: nowrap;
}
.mine-team .nm { font-weight: 700; }
.fav-mark { width: 13px; height: 13px; flex: none; fill: var(--accent); margin-left: -4px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.note { grid-column: 2 / -1; font-size: .78rem; color: var(--muted); margin-top: -4px; }
.note.warn { color: var(--no); }

/* Zustände */
.empty, .error, .loading { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); }
.empty strong, .error strong { display: block; color: var(--fg); font-weight: 600; margin-bottom: 4px; }
.empty button { margin-top: 12px; cursor: pointer; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.loading .bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 12px auto 0; max-width: 160px; }
.loading .bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--accent); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .loading .bar::after { animation: none; width: 100%; } }

/* Anzeige zwischen Spielliste und Infotext: eigenes Markup, lädt nichts von Dritten */
.ad {
  position: relative; margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px;
}
.ad-tag { position: absolute; top: 8px; right: 12px; font: 600 .62rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ad-logo { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; place-items: center; }
.ad-logo img { height: 34px; width: auto; display: block; }
.ad-text { flex: 1 1 260px; min-width: 0; }
.ad-text strong { display: block; font: 700 1.1rem/1.2 var(--font-display); margin-bottom: 3px; }
.ad-text p { margin: 0; color: var(--muted); font-size: .9rem; }
.ad-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border-radius: 999px; background: #e20074; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.ad-btn:hover { background: #c30064; }
@media (max-width: 520px) { .ad-btn { width: 100%; } }

/* Infotext unter der Spielliste (steht ohne JavaScript im HTML, für Suchmaschinen und KI-Crawler) */
.guide { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.guide h2 { font: 700 1.35rem/1.2 var(--font-display); color: var(--fg); margin: 0 0 10px; }
.guide h2 + p { margin-top: 0; }
.guide h3 { font: 600 1rem/1.3 var(--font-body); color: var(--fg); margin: 22px 0 6px; }
.guide p, .guide ul { margin: 0 0 10px; }
.guide ul { padding-left: 18px; }
.guide li { margin-bottom: 4px; }
.guide strong { color: var(--fg); font-weight: 600; }
.guide a { color: var(--accent); }
.guide .faq { margin-top: 36px; }

footer { padding-block: 24px 32px; color: var(--muted); font-size: .78rem; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
footer .legal { flex-basis: 100%; }
footer a { color: inherit; }

@media (max-width: 520px) {
  .match { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .status { grid-column: 3; grid-row: 2; justify-self: end; width: 24px; height: 24px; }
  .where { grid-column: 3; grid-row: 1; max-width: 150px; }
  .provs { gap: 4px; }
  .team .nm-full { display: none; } .team .nm-short { display: inline; }
  .note { grid-column: 1 / 3; grid-row: 2; margin-top: 0; }
  .info { grid-row: 3; }
  .filterbar { margin-inline: -16px; padding-inline: 16px; }
  dialog.sheet { width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 88vh; }
  .prov-logo { height: 24px; padding: 0 4px; }
  .prov-logo img { height: 13px; max-width: 72px; }
  .brand { font-size: 1.3rem; }
}

/* ---------- Vereinsseiten ---------- */
.club-page .brand { color: inherit; text-decoration: none; }
.club-page .back { color: var(--accent); font-weight: 600; font-size: .9rem; text-decoration: none; }
.club-page .back:hover { text-decoration: underline; }
.crumbs { font-size: .8rem; color: var(--muted); margin: 4px 0 14px; }
.crumbs a { color: inherit; }
.club-h1 { font: 700 2rem/1.1 var(--font-display); margin: 0 0 10px; letter-spacing: .005em; }
.lead { font-size: 1.05rem; margin: 0 0 18px; }

.hero-match { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; margin-bottom: 28px; }
.hero-match.is-live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.hm-comp { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
.hm-when { margin-left: auto; font-size: .9rem; color: var(--fg); }
.hm-when b { color: var(--accent); }
.hm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; text-align: center; }
.hm-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 1.15rem/1.15 var(--font-display); min-width: 0; }
.hm-team .crest, .hm-team .mono { width: 56px; height: 56px; }
.hm-team .mono { font-size: 1rem; }
.hm-vs { font: 700 1.6rem/1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-watch { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.hm-watch .provs { gap: 8px; }
.hm-free { font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.hm-free.yes { background: var(--yes-soft); color: var(--yes); }
.hm-free.no { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.hm-free.open { background: var(--bg); color: var(--muted); border: 1px dashed var(--open); }
.hm-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

.club-content { color: var(--fg); }
.club-content section { margin-bottom: 34px; }
.club-content h2 { font: 700 1.35rem/1.2 var(--font-display); margin: 0 0 10px; }
.club-content h3 { font: 600 1rem/1.3 var(--font-body); margin: 18px 0 4px; }
.club-content p { margin: 0 0 10px; }
.small-note { font-size: .8rem; color: var(--muted); margin-top: 8px !important; }

.list.dated .match { grid-template-columns: 62px minmax(0, 1fr) auto; }
.time .dt { display: block; font: 600 .72rem/1.2 var(--font-body); color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.comp-line { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

table.cover, table.standings { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .9rem; margin: 8px 0 12px; }
.cover th, .cover td, .standings th, .standings td { padding: 9px 12px; text-align: left; border-top: 1px solid var(--line); }
.cover thead th, .standings thead th { border-top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg); }
.standings td:not(:nth-child(2)), .standings th:not(:nth-child(2)) { text-align: right; font-variant-numeric: tabular-nums; }
.standings td:first-child, .standings th:first-child { text-align: left; width: 36px; color: var(--muted); }
.standings tr.me td { background: var(--accent-soft); font-weight: 700; }
.tteam { display: inline-flex; align-items: center; gap: 8px; }
.tteam img { width: 20px; height: 20px; object-fit: contain; }
/* Links auf Vereinsseiten: dezent unterstrichen, damit man sie auch ohne Hover erkennt */
.team-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; min-width: 0; display: inline-flex; overflow: hidden; }
.team-link:hover { text-decoration-color: var(--accent); }
.team .team-link .nm { text-decoration: inherit; }
.table-wrap { overflow-x: auto; }

@media (max-width: 520px) {
  .club-h1 { font-size: 1.6rem; }
  .hm-team { font-size: 1rem; }
  .hm-team .crest, .hm-team .mono { width: 46px; height: 46px; }
  .hm-when { margin-left: 0; width: 100%; }
  .list.dated .match { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .cover th, .cover td, .standings th, .standings td { padding: 8px; }
}
