/* HCLG Turnier — Designsystem
   Farben aus dem HCLG-Wappen (Dunkelblau, Himmelblau, Weiß); Formensprache
   angelehnt an VisionFlow/Tauschrevier: schwebende Pill-Navigation, große
   runde Karten, farbig getönte weiche Schatten. */

:root {
  --navy: #0a2a76;
  --navy2: #12358c;
  --navy3: #1d47a8;
  --deep: #061a4d;
  --sky: #88c1e9;
  --sky2: #b9dbf3;
  --sky3: #e6f2fb;
  --live: #e5374a;
  --ok: #17a673;
  --warn: #f2a93b;
  --turf: #2f8f4e;
  --turf2: #3aa35c;

  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface2: #f0f4fa;
  --ink: #0b1a3c;
  --ink2: #33415f;
  --muted: #66738f;
  --line: rgba(10, 42, 118, 0.11);
  --line2: rgba(10, 42, 118, 0.18);
  --shadow: 0 1px 2px rgba(10, 42, 118, 0.06), 0 8px 24px rgba(10, 42, 118, 0.07);
  --shadow-lg: 0 24px 60px rgba(10, 42, 118, 0.14);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-display: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060f26;
    --surface: #0d1a3a;
    --surface2: #12224a;
    --ink: #eef3ff;
    --ink2: #c6d2ee;
    --muted: #8d9bbd;
    --line: rgba(185, 219, 243, 0.12);
    --line2: rgba(185, 219, 243, 0.2);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
    --sky3: rgba(136, 193, 233, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060f26; --surface: #0d1a3a; --surface2: #12224a; --ink: #eef3ff; --ink2: #c6d2ee; --muted: #8d9bbd;
  --line: rgba(185, 219, 243, 0.12); --line2: rgba(185, 219, 243, 0.2);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 24px 60px rgba(0,0,0,.45);
  --sky3: rgba(136, 193, 233, .12); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 850; letter-spacing: -0.035em; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 750; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.s8 { gap: 8px; } .stack.s12 { gap: 12px; } .stack.s24 { gap: 24px; } .stack.s32 { gap: 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrapr { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.s6 { gap: 6px; } .row.s8 { gap: 8px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* ---------- Navigation (schwebende Pille wie bei Visionflow) ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: min(100% - 24px, var(--max));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(6, 26, 77, .82); color: #fff; backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 12px 34px rgba(6, 26, 77, .25);
  border: 1px solid rgba(255, 255, 255, .08);
}
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; min-width: 0; }
.nav .brand img { width: 34px; height: 37px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.nav .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .brand small { display: block; font-weight: 600; font-size: 11px; opacity: .7; letter-spacing: .02em; }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 14px; opacity: .85; }
.nav .links a:hover, .nav .links a.on { background: rgba(255,255,255,.1); opacity: 1; }
.nav .cta { margin-left: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px;
  border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(10, 42, 118, .28); }
.btn.primary:hover { background: var(--navy2); }
.btn.sky { background: var(--sky); border-color: var(--sky); color: var(--deep); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface2); box-shadow: none; }
.btn.danger { color: var(--live); border-color: rgba(229, 55, 74, .35); }
.btn.danger.solid { background: var(--live); color: #fff; border-color: var(--live); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.lg { padding: 15px 24px; font-size: 16px; }
.btn.icon { padding: 9px; width: 40px; height: 40px; }
.btn.icon.sm { width: 32px; height: 32px; padding: 6px; }
.nav .btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; }
.nav .btn.sky { background: var(--sky); color: var(--deep); border-color: var(--sky); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Karten ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.tight { padding: 14px; }
.card h3 + p { margin-top: 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card.link { text-decoration: none; display: block; transition: transform .3s var(--ease), box-shadow .3s; }
.card.link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy3); }
:root[data-theme="dark"] .kicker { color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--sky); } }

/* ---------- Chips / Badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: var(--sky3); color: var(--navy); border: 1px solid transparent; white-space: nowrap;
}
:root[data-theme="dark"] .chip { color: var(--sky2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { color: var(--sky2); } }
.chip.outline { background: transparent; border-color: var(--line2); color: var(--ink2); }
.chip.solid { background: var(--navy); color: #fff; }
.chip.live { background: var(--live); color: #fff; }
.chip.ok { background: rgba(23, 166, 115, .14); color: var(--ok); }
.chip.warn { background: rgba(242, 169, 59, .18); color: #a76500; }
.chip.age { background: var(--navy); color: #fff; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.chip svg { width: 14px; height: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Spielfeld-Kachel „Platz 1“ (wie in der App) */
.pitch-tile { --pt: var(--turf); --pt-ink: #1f7a3e; display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 10px;
  background: color-mix(in srgb, var(--pt) 13%, transparent); color: var(--pt-ink); font-weight: 850; font-size: 13.5px; line-height: 1.1; max-width: 100%; min-width: 0; vertical-align: middle; }
.pitch-tile.hall { --pt: #2b6cb0; --pt-ink: #22599a; }
.pitch-tile svg { width: 40px; height: 26px; flex: none; display: block; }
.pitch-tile .pt-bg { fill: var(--pt); }
.pitch-tile text { fill: #fff; font: 900 14px/1 var(--font); paint-order: stroke; stroke: rgba(0,0,0,.18); stroke-width: 1.5px; }
.pitch-tile .pt-name { white-space: nowrap; }
.pitch-tile .pt-venue { color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pitch-tile.lg { font-size: 16px; padding: 4px 12px 4px 4px; border-radius: 12px; }
.pitch-tile.lg svg { width: 52px; height: 34px; }
:root[data-theme="dark"] .pitch-tile { background: color-mix(in srgb, var(--pt) 26%, transparent); --pt-ink: #73d98c; }
:root[data-theme="dark"] .pitch-tile.hall { --pt-ink: #8cbfff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pitch-tile { background: color-mix(in srgb, var(--pt) 26%, transparent); --pt-ink: #73d98c; }
  :root:not([data-theme="light"]) .pitch-tile.hall { --pt-ink: #8cbfff; }
}

.field-badge {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 8px;
  background: var(--turf); color: #fff; font-weight: 800; font-size: 13px;
}

/* ---------- Tabs (Pill-Segmente) ---------- */
.tabs-bar {
  position: sticky; top: 76px; z-index: 40; padding: 10px 0; margin-top: -8px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.tabs {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a {
  border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
}
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs button.on, .tabs a.on { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(10, 42, 118, .25); }
.tabs .count { font-size: 11px; background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 99px; }
.seg { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Formulare ---------- */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink2); }
label.f .hint { font-weight: 500; color: var(--muted); font-size: 12px; }
.input, input:not([type]), input[type=text], input[type=url], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface);
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--navy3); box-shadow: 0 0 0 4px rgba(29, 71, 168, .14); }
input[type=number] { font-variant-numeric: tabular-nums; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 650; font-size: 14px; }
.toggle input { display: none; }
.toggle .track { width: 46px; height: 28px; border-radius: 99px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.toggle input:checked + .track { background: var(--ok); }
.toggle input:checked + .track::after { transform: translateX(18px); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 40px; height: 40px; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--navy3); }
.stepper button:hover { background: var(--surface2); }
.stepper span { min-width: 44px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 17px; }

/* ---------- Wappen ---------- */
.crest { width: 32px; height: 32px; flex: none; display: grid; place-items: center; position: relative; }
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest.mono { border-radius: 50%; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: -.02em; }
.crest.xs { width: 20px; height: 20px; } .crest.xs.mono { font-size: 8px; }
.crest.sm { width: 26px; height: 26px; } .crest.sm.mono { font-size: 9px; }
.crest.lg { width: 48px; height: 48px; } .crest.lg.mono { font-size: 15px; }
.crest.xl { width: 72px; height: 72px; } .crest.xl.mono { font-size: 22px; }
.crest.xxl { width: 110px; height: 110px; } .crest.xxl.mono { font-size: 30px; }

/* ---------- Hero (öffentliche Turnierseite) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 32px; margin-top: 16px;
  background: radial-gradient(120% 140% at 85% 0%, rgba(136,193,233,.45), transparent 55%),
              radial-gradient(80% 120% at 0% 100%, rgba(29,71,168,.8), transparent 60%),
              linear-gradient(150deg, var(--navy2), var(--deep));
  padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero .chip { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.12); }
.hero .chip.age { background: var(--sky); color: var(--deep); }
.hero .chip.live { background: var(--live); }
.hero .lead { font-size: clamp(16px, 2vw, 19px); opacity: .88; max-width: 60ch; }
.hero-crest { width: clamp(64px, 9vw, 104px); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); flex: none; }
.motto { font-style: italic; font-weight: 650; color: var(--sky2); font-size: clamp(16px, 2.2vw, 21px); }

/* ---------- Spiele ---------- */
.match {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.match:last-child { border-bottom: 0; }
.match .time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; line-height: 1.15; }
.match .time small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.match .time .was { display: block; text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: 11px; }
.match .time .late { display: block; color: var(--live); }
.match .teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.match .team { display: flex; align-items: center; gap: 9px; font-weight: 650; min-width: 0; }
.match .team .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .team.win { font-weight: 850; }
.match .team.placeholder .name { color: var(--muted); font-style: italic; font-weight: 600; }
.match .score { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; align-self: end; font-weight: 850; font-variant-numeric: tabular-nums; font-size: 17px; min-width: 28px; }
.match .score > span { min-height: 26px; display: flex; align-items: center; }
.match-pitch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.match .meta { grid-column: 2 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 650; margin-top: -2px; }
.match.live { background: linear-gradient(90deg, rgba(229,55,74,.07), transparent 40%); }
.match.live .score { color: var(--live); }
.match.cancelled { opacity: .5; }
.match.cancelled .teams { text-decoration: line-through; }
.match.mine { box-shadow: inset 4px 0 0 var(--sky); }

.slot-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface2);
  border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px;
}
.slot-head .t { font-variant-numeric: tabular-nums; }
.slot-break {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 750;
  background: repeating-linear-gradient(-45deg, var(--sky3), var(--sky3) 10px, transparent 10px, transparent 20px);
  border-bottom: 1px solid var(--line); color: var(--navy);
}
:root[data-theme="dark"] .slot-break { color: var(--sky2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slot-break { color: var(--sky2); } }
.slot-break svg { width: 22px; height: 22px; }

/* ---------- Tabelle ---------- */
table.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.standings th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 8px; font-weight: 800; }
table.standings th:nth-child(2) { text-align: left; }
table.standings td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: right; font-weight: 600; }
table.standings td.team { text-align: left; }
table.standings td.rank { width: 34px; text-align: center; font-weight: 800; color: var(--muted); }
table.standings td.pts { font-weight: 850; color: var(--ink); }
table.standings tr.q td.rank { color: var(--ok); }
table.standings .hide-sm { }
@media (max-width: 560px) { table.standings .hide-sm { display: none; } }

/* ---------- Uhr ---------- */
.clock { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.clock.big { font-size: clamp(64px, 14vw, 150px); }
.clock.mid { font-size: 44px; }
.clock.paused { animation: blink 1.2s steps(2) infinite; }
.clock.over { color: var(--live); }
@keyframes blink { 50% { opacity: .35; } }
.clock-card {
  border-radius: 28px; padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(136,193,233,.35), transparent 60%), linear-gradient(150deg, var(--navy), var(--deep));
  box-shadow: var(--shadow-lg);
}
.clock-card.brk { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.25), transparent 60%), linear-gradient(150deg, #2a8c57, #12553a); }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--sky); border-radius: 99px; transition: width 1s linear; }

/* ---------- Spielfeld-Übersicht ---------- */
.pitch-wrap { position: relative; width: 100%; }
.pitch-svg { width: 100%; height: auto; display: block; border-radius: 20px; overflow: hidden; touch-action: none; user-select: none; }
.pitch-label { pointer-events: none; }
.pitch-card {
  position: absolute; transform: translate(-50%, -50%); background: rgba(255,255,255,.95); color: #0b1a3c;
  border-radius: 12px; padding: 6px 9px; box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: 12px; font-weight: 750;
  display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: min(46%, calc(var(--fw, 200px) - 34px)); cursor: pointer; z-index: 2;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.25), box-shadow .3s, opacity .25s;
}
.pitch-card.sm { padding: 5px 7px; border-radius: 10px; }
.pitch-card.xs { padding: 3px 5px; border-radius: 9px; gap: 0; }
.pitch-card.xs .vs { gap: 3px; }
.pitch-card.xs .crest.sm { width: 20px; height: 20px; }
.pitch-card.xs .sc { font-size: 12px; }
@media (hover: hover) { .pitch-card:not(.focus):hover { transform: translate(-50%, -50%) scale(1.07); z-index: 3; } }
.pitch-card:active:not(.focus) { transform: translate(-50%, -50%) scale(.96); }
.pitch-card:focus-visible { outline: 3px solid var(--sky); }
.pitch-card.behind { opacity: .35; }
.pitch-card .vs { display: flex; align-items: center; gap: 6px; }
.pitch-card .vs-t { color: #66738f; font-weight: 850; font-size: 11px; }
.pitch-card .sc { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 15px; }
.pitch-card .lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: #5a6888; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pitch-card .tn { font-size: 10.5px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-card.live { box-shadow: 0 0 0 2px var(--live), 0 6px 18px rgba(0,0,0,.25); }
.pitch-card.live .sc { color: var(--live); }
/* Angetippte Begegnung groß in der Mitte (wie FocusedMatchCard in der App) */
.pitch-card.focus { z-index: 6; width: min(92%, 360px); max-width: none; padding: 14px; gap: 10px; border-radius: 20px; background: #fff; cursor: default;
  box-shadow: 0 22px 60px rgba(0,0,0,.45); animation: pv-pop .35s cubic-bezier(.2,.9,.3,1.25); }
.pitch-card.focus.live { box-shadow: 0 0 0 2.5px var(--live), 0 22px 60px rgba(0,0,0,.45); }
.pitch-card.focus .pitch-tile { --pt-ink: #1f7a3e; background: rgba(47,143,78,.13); }
.pitch-card.focus .pitch-tile.hall { --pt-ink: #22599a; background: rgba(43,108,176,.13); }
.fc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.fc-time { font-size: 12px; font-weight: 800; color: #66738f; }
.fc-body { display: flex; align-items: center; gap: 10px; width: 100%; }
.fc-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.15; }
.fc-side .crest.xl { width: 52px; height: 52px; }
.fc-side span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-score { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pitch-card.live .fc-score { color: var(--live); }
.fc-vs { font-weight: 900; color: #66738f; }
.fc-lbl { font-size: 12px; font-weight: 700; color: #66738f; }
.pitch-dim { position: absolute; inset: 0; z-index: 5; border-radius: 20px; background: rgba(4,12,34,.42); animation: pv-fade .2s ease-out; cursor: pointer; }
@keyframes pv-fade { from { opacity: 0; } }
@keyframes pv-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.85); } }
@media (prefers-reduced-motion: reduce) { .pitch-card { transition: none; } .pitch-dim, .pitch-card.focus { animation: none; } }

/* ---------- Info-Sektionen ---------- */
.info-card { display: flex; gap: 16px; align-items: flex-start; }
.info-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--sky2); background: linear-gradient(150deg, var(--navy3), var(--navy)); box-shadow: 0 8px 18px rgba(10,42,118,.22); }
.info-card .ico svg { width: 22px; height: 22px; }
.prose { white-space: pre-wrap; color: var(--ink2); }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: var(--sky3); color: var(--navy); font-weight: 700; }
:root[data-theme="dark"] .ticker { color: var(--sky2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticker { color: var(--sky2); } }

/* ---------- Toast / Modal ---------- */
.toast-host { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(100% - 32px, 460px); }
.toast { pointer-events: auto; background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 650; box-shadow: var(--shadow-lg); animation: up .3s var(--ease); font-size: 14px; }
.toast.error { background: var(--live); }
@keyframes up { from { transform: translateY(14px); opacity: 0; } }
.modal-back { position: fixed; inset: 0; background: rgba(6, 15, 38, .5); backdrop-filter: blur(4px); z-index: 150; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 28px; width: min(100%, 560px); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: up .3s var(--ease); }
.modal.wide { width: min(100%, 860px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; gap: 12px; }
.modal-body { padding: 14px 22px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Leere Zustände ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 10px; opacity: .5; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 60px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); white-space: nowrap; }

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .nav .links { display: none; }
  .nav .brand small { display: none; }
  .tabs-bar { top: 70px; }
  .match { grid-template-columns: 52px 1fr auto; padding: 11px 12px; gap: 10px; }
  .card { padding: 16px; border-radius: 20px; }
  .hero { border-radius: 26px; }
}
@media (max-width: 430px) {
  .tabs button, .tabs a { padding: 9px 12px; gap: 6px; }
  .tabs button svg, .tabs a svg { display: none; }
  .tabs button.on svg, .tabs a.on svg { display: inline; }
}
@media (max-width: 560px) {
  .info-card { gap: 12px; }
  .info-card .ico { width: 38px; height: 38px; border-radius: 12px; }
  .info-card .ico svg { width: 19px; height: 19px; }
  .footer > span:last-child { flex-wrap: wrap; }
  .hero-row { flex-direction: column; gap: 12px !important; }
  .hero-crest { width: 54px; }
  .hero .chip { white-space: normal; }
  .hero h1 { font-size: 32px; }
  .hide-xs { display: none; }
  .nav .brand img { width: 30px; height: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Sponsoren ---------- */
.sponsors { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.sponsor { display: grid; place-items: center; min-width: 90px; height: 56px; padding: 6px 10px; border-radius: 14px; background: #fff; text-decoration: none; color: #0b1a3c; font-weight: 800; }
.sponsor img { max-height: 44px; max-width: 150px; object-fit: contain; }
.sponsors.compact .sponsor { height: 44px; min-width: 70px; }
.sponsors.compact .sponsor img { max-height: 32px; }

/* ---------- Fotos & Dokumente ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.gallery a, .gallery figure { display: block; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface2); aspect-ratio: 4 / 3; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 6px 10px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); text-decoration: none; }
.doc-row svg { width: 22px; height: 22px; color: var(--live); flex: none; }
.pitch-switch { margin-bottom: 12px; }

/* ---------- Bewegung & Rückmeldung ---------- */
.btn.ready-pulse:not(:disabled) { animation: ready-pop .45s var(--ease), ready-glow 2.2s ease-in-out .45s infinite; }
@keyframes ready-pop { 0% { transform: scale(.96); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes ready-glow { 0%, 100% { box-shadow: 0 10px 26px rgba(10,42,118,.25); } 50% { box-shadow: 0 10px 34px rgba(136,193,233,.75); } }
.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.btn:active { transform: scale(.96); }

/* Verantwortliche & Anfahrt */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.person { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface2); }
.person a { display: inline-flex; align-items: center; gap: 6px; }
.person a svg { width: 15px; height: 15px; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--navy2, #12358c), var(--navy, #0a2a76)); color: #fff; font-weight: 800; font-size: 18px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.xl { width: 76px; height: 76px; font-size: 28px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--sky, #88c1e9); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.addr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); }
.addr-row .ico svg { width: 22px; height: 22px; color: var(--live); }
.addr-row .addr-text { flex: 1 1 180px; min-width: 0; }
.addr-row .addr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .addr-row .addr-actions { width: 100%; padding-left: 34px; } }

/* Liga */
.standings .move { font-size: 9px; margin-left: 4px; vertical-align: 2px; }
.standings .move.up { color: #1d9a50; }
.standings .move.down { color: var(--live); }
.league-edit input.num { width: 54px; padding: 6px 6px; text-align: center; }
.league-edit td, .league-edit th { white-space: nowrap; }
.match .meta .reported { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Teilen-Karte (Infos) ---------- */
.share-card { display: flex; gap: 22px; align-items: center; }
.share-card .seg { align-self: flex-start; }
@media (max-width: 560px) { .share-card { flex-direction: column; align-items: stretch; } .share-card .qr-box { align-self: center; } }

/* ---------- Startseite ---------- */
.home-hero { padding-block: clamp(22px, 4vw, 40px); }
.app-card { display: flex; gap: 24px; align-items: center; }
.app-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 560px) { .app-card { flex-direction: column; align-items: stretch; } .app-qr { display: none; } }
details.past > summary { list-style: none; cursor: pointer; }
details.past > summary::-webkit-details-marker { display: none; }
details.past > summary h2::after { content: ' ›'; color: var(--muted); }
details.past[open] > summary h2::after { content: ' ⌄'; }
.ticker.slim { padding: 6px 14px; font-size: 14px; font-weight: 650; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.goal-names { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.goal-name { display: flex; flex-direction: column; gap: 2px; min-width: 150px; flex: 1 1 150px; }
.goal-name input { min-height: 34px; padding: 4px 8px; }
