/* SteinbergCup – Design (Vereins-Design: Zinc/Gelb, Work Sans, Panels) */
@font-face { font-family: 'Work Sans'; font-weight: 400; font-display: swap; src: url(../fonts/work-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 500; font-display: swap; src: url(../fonts/work-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 600; font-display: swap; src: url(../fonts/work-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 700; font-display: swap; src: url(../fonts/work-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 800; font-display: swap; src: url(../fonts/work-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 900; font-display: swap; src: url(../fonts/work-sans-latin-900-normal.woff2) format('woff2'); }

:root {
  --bg: #09090b;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --line: #27272a;
  --line-2: #3f3f46;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #facc15;
  --accent-hover: #fde047;
  --accent-ink: #18181b;
  --live: #ef4444;
  --ok: #22c55e;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 100%/1.5 'Work Sans', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) { .btn.sm { min-height: 44px; } }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Kopf ─────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(9, 9, 11, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.top::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .35), transparent); opacity: 0; transition: opacity .2s; }
.top.scrolled::after { opacity: 1; }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 0.8125rem; letter-spacing: -.02em; }
.crest { display: block; height: 40px; width: auto; aspect-ratio: 1555 / 1737; flex-shrink: 0; transition: transform .2s ease-out; }
.brand:hover .crest { transform: rotate(-6deg) scale(1.05); }
.brand b { font-weight: 900; letter-spacing: -.015em; font-size: 1.125rem; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.1; letter-spacing: .01em; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.conn[data-s="live"] i { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.conn[data-s="polling"] i { background: var(--accent); }
.conn[data-s="offline"] i { background: var(--live); }
.conn[data-s="demo"] i { background: #60a5fa; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); scroll-padding-inline: 16px; }
.tabs::after { content: ''; flex: 0 0 20px; }
.tabs::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.875rem; min-height: 44px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s ease-out; }
.pill:hover { border-color: var(--line-2); color: var(--text); }
.pill:active { transform: scale(.97); }
.pill[aria-current="page"], .pill.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.pill.on .dot-live, .pill[aria-current="page"] .dot-live { background: var(--accent-ink); }

.demo-bar { background: #172554; color: #bfdbfe; font-size: 0.8125rem; text-align: center; padding: 6px var(--gutter); }
.demo-bar button { background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 8px; margin: -10px 0; }

/* ── Abschnitte & Panels ──────────────── */
main { padding: 20px 0 48px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stack { display: grid; gap: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.section-head h2 { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.section-head a { color: var(--accent); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.muted { color: var(--muted); }
.small { letter-spacing: .005em; }
.small { font-size: 0.8125rem; }

/* ── Hero ─────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 28px 22px; }
.hero::after { content: ''; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 204, 21, .16), transparent 70%); pointer-events: none; }
.hero h1 { margin: 6px 0 4px; font-size: clamp(36px, 8vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -.025em; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 8px 0 0; color: var(--text-2); max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--text-2); font-size: 0.875rem; }
.facts b { color: var(--text); font-weight: 700; }

/* ── Anzeigetafel ─────────────────────── */
.board { display: grid; gap: 14px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--live); }
.live-tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.next-tag { font-weight: 800; font-size: 0.8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.board-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.board-team { font-weight: 800; font-size: clamp(16px, 3.6vw, 24px); line-height: 1.15; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.board-team.away { text-align: right; }
.board-team.ph { color: var(--muted); font-weight: 600; font-style: italic; }
.digits { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: clamp(40px, 10vw, 72px); line-height: 1; letter-spacing: -.03em; }
.digits span { min-width: 1.1ch; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; }
.digits em { font-style: normal; color: var(--dim); font-size: .6em; }
.digits em.t { color: var(--accent); font-size: .55em; }
.board-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.875rem; }
.board-meta b { color: var(--text-2); font-weight: 600; }
.flash { animation: flash 1.2s ease-out; }

/* ── Turnier-Timeline ─────────────────── */
.timeline { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tcard { display: grid; gap: 10px; text-decoration: none; transition: border-color .15s, transform .1s; }
.tcard:hover { border-color: var(--line-2); }
.tcard:active { transform: scale(.99); }
.tcard h3 { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -.015em; }
.tcard .when { color: var(--text-2); font-size: 0.875rem; }
.tcard .go { color: var(--accent); font-weight: 700; font-size: 0.875rem; }
.status { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); }
.status[data-s="live"] { color: #fff; background: var(--live); border-color: var(--live); }
.status[data-s="running"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.status[data-s="finished"] { color: var(--text-2); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* ── Spielplan ────────────────────────── */
.matches { display: grid; }
.mrow { display: grid; grid-template-columns: 44px 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow .time { font-weight: 700; font-size: 0.875rem; color: var(--text-2); }
.mrow .time small { display: block; color: var(--accent); font-weight: 600; font-size: 0.6875rem; }
.mrow .team { font-size: 0.9375rem; font-weight: 600; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; line-height: 1.25; }
.mrow .team.away { text-align: right; }
.mrow .team.win { color: var(--text); font-weight: 800; }
.mrow .team.lose { color: var(--muted); }
.mrow .team.ph { color: var(--dim); font-style: italic; font-weight: 500; }
.mrow .res { min-width: 58px; text-align: center; font-weight: 800; font-size: 1.062rem; padding: 4px 10px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.mrow .res.none { color: var(--dim); font-weight: 600; font-size: 0.875rem; }
.mrow .res small { display: block; font-size: 0.625rem; font-weight: 600; color: var(--muted); }
.elist .mrow:active, .tcard:active { transform: scale(.99); }
.mrow { transition: background .15s, transform .1s ease-out; }
.mrow.live { background: linear-gradient(90deg, rgba(239, 68, 68, .12), transparent 70%); border-radius: var(--r-md); }
.mrow.live .res { border-color: var(--live); color: #fff; }
.mrow .label { grid-column: 2 / -1; font-size: 0.75rem; color: var(--muted); margin-bottom: -6px; font-weight: 600; }
.mrow .label .lv { color: var(--live); font-weight: 800; }
.phase-title { margin: 18px 4px 4px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* ── Tabelle ──────────────────────────── */
.tables { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
table.std { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.std caption { text-align: left; font-weight: 800; font-size: 1rem; padding-bottom: 8px; }
table.std th { color: var(--dim); font-weight: 600; font-size: 0.75rem; text-align: center; padding: 6px 4px; }
table.std th:nth-child(2) { text-align: left; }
table.std td { padding: 9px 4px; border-top: 1px solid var(--line); text-align: center; }
table.std td:nth-child(2) { text-align: left; font-weight: 600; }
table.std td.pkt { font-weight: 900; color: var(--accent); }
table.std td.pl { color: var(--muted); width: 26px; }
table.std .lv { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--live); vertical-align: middle; }
@media (max-width: 420px) { table.std .hide-xs { display: none; } }

/* ── Infos ────────────────────────────── */
.info-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.info-grid h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; }
.info-grid p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.note { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--panel-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); font-size: 0.875rem; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }

/* ── Fuß ──────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ── Knöpfe & Formulare ───────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s, border-color .15s; }
.btn:hover { border-color: var(--dim); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--live); border-color: var(--live); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 40px; padding: 6px 12px; font-size: 0.875rem; border-radius: var(--r-sm); }
label.f { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg); }
.input:focus { outline: none; border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 0); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; transition: transform .32s cubic-bezier(.2, .9, .3, 1), opacity .24s ease, filter .24s ease; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 16px; line-height: 1.3; font-weight: 700; font-size: 0.875rem; z-index: 50; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.toast.err { background: var(--live); color: #fff; }
.toast.hide { transform: translate(-50%, 24px) scale(.96); opacity: 0; filter: blur(4px); }
.toast button { background: none; border: 0; padding: 6px 4px; min-height: 36px; font-weight: 800; color: #b45309; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.toast.err button { color: #fff; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes flash { 0% { background: rgba(250, 204, 21, .35); } 100% { background: var(--bg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, background-color, border-color, color !important; }
  .pulse, .live-tag::before, .pill .dot-live { animation: none !important; }
  .btn:active, .pill:active, .tcard:active, .elist .mrow:active { transform: none; }
  .brand:hover .crest { transform: none; }
  .toast, .toast.hide { transform: translate(-50%, 0); filter: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
}
@media (prefers-contrast: more) {
  :root { --line: #52525b; --muted: #d4d4d8; --dim: #a1a1aa; }
  .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line-2); }
  .tabs { -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 720px) {
  .hero { padding: 40px 36px; }
  .mrow { grid-template-columns: 70px 1fr auto 1fr; padding: 12px 10px; }
}

/* ── Mehrere Felder (BeusterCup u. a.) ───────────────────── */
.mrow .label .fld { display: inline-block; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-weight: 700; }
.mrow.clash { box-shadow: inset 3px 0 0 var(--live); }
details.panel > summary { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
details.panel[open] > summary::after { content: '▴'; }

/* ── Keyvisual Typo G „Monumental“ (20.10.2026) ──────────────
   Anzeige-Schrift Anton (lokal, OFL) für Schriftzug und Überschriften,
   Work Sans bleibt für alle Texte, Zahlen und Bedienelemente. */
@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap; src: url(../fonts/anton-latin-400-normal.woff2) format('woff2'); }
:root { --display: 'Anton', 'Arial Narrow', sans-serif; }
.hero::after { display: none; }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: .86; font-size: clamp(64px, 19.5vw, 168px); margin: 10px 0 16px; }
.hero h1 span { display: block; }
.section-head h2, .tcard h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.section-head h2 { font-size: 1.75rem; line-height: 1; }
.tcard h3 { font-size: 1.75rem; line-height: 1; }
.brand b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 1.375rem; line-height: 1; }
.brand b span { color: var(--accent); }
.brand b .brand-year { display: inline; margin-left: .3em; font-size: 1em; color: var(--text-2); letter-spacing: .01em; }

/* ── Fotos: Galerie, Turnierleitung, Großansicht (20.10.2026) ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 8px; }
.gal-item, .ph-img { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--panel-2); aspect-ratio: 1; cursor: zoom-in; transition: transform .1s ease-out, opacity .15s; }
.gal-item img, .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item img:not([src]), .ph-img img:not([src]) { visibility: hidden; }
.gal-item:active, .ph-img:active { transform: scale(.98); opacity: .9; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.ph-card { display: grid; gap: 8px; align-content: start; }
.ph-card .ph-img { aspect-ratio: 4 / 3; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-actions .btn { flex: 1 1 auto; }
.upl { position: relative; cursor: pointer; }
.upl.is-busy { opacity: .7; cursor: progress; }
.upl input:focus-visible + * , .upl:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--live); color: #fff; font-size: 0.75rem; font-weight: 800; }

.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; padding: calc(56px + env(safe-area-inset-top)) 12px calc(48px + env(safe-area-inset-bottom)); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: var(--r-sm); }
.lightbox figcaption { text-align: center; color: var(--text-2); font-size: 0.9375rem; max-width: 60ch; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(24, 24, 27, .7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-btn:active { transform: scale(.94); }
.lb-close { top: calc(10px + env(safe-area-inset-top)); right: 10px; font-size: 1.125rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.94); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 16px; font-size: 0.875rem; color: var(--muted); }
@media (pointer: coarse) { .lb-prev, .lb-next { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); transform: none; } .lb-prev:active, .lb-next:active { transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .gal-item:active, .ph-img:active, .lb-btn:active { transform: none; } .lb-prev:active, .lb-next:active { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) and (pointer: coarse) { .lb-prev:active, .lb-next:active { transform: none; } }

/* ── Ausbau 20.10.2026: Mein Team, Endstand, Teilen, Kiosk, Kontakt, Sponsoren ── */
.mrow .label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mrow.mine { background: rgba(250, 204, 21, .08); box-shadow: inset 3px 0 0 var(--accent); border-radius: var(--r-sm); padding-left: 10px; padding-right: 8px; }
.board.mine { border-color: var(--accent); }
.mine-tag { color: var(--accent) !important; font-weight: 800; }
.share-btn { flex: none; margin-left: auto; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); border-radius: 999px; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; min-height: 28px; cursor: pointer; transition: transform .1s ease-out, border-color .15s; }
.share-btn:hover { border-color: var(--dim); color: var(--text); }
.share-btn:active { transform: scale(.95); }
@media (pointer: coarse) { .share-btn { min-height: 36px; padding: 6px 12px; position: relative; } .share-btn::after { content: ''; position: absolute; inset: -6px; } }

.mybox { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 260px) 1fr auto; gap: 12px 16px; align-items: center; }
.mybox .my-pick { margin: 0; }
.mybox .my-next { color: var(--text-2); }
.mybox .my-next b { color: var(--text); }
.mybox .my-next small { color: var(--accent); }
.lv { color: var(--live); font-weight: 800; }
@media (max-width: 640px) { .mybox { grid-template-columns: 1fr; } .mybox .btn { justify-self: start; } }
.mine-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mycard { display: grid; gap: 4px; text-decoration: none; border-color: var(--accent); transition: transform .1s ease-out; }
.mycard:active { transform: scale(.985); }
.mycard .nm { font-size: 1.25rem; font-weight: 800; }
.mycard span:last-child { color: var(--text-2); }

.podium { margin-top: 16px; border-color: var(--accent); }
.podium ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.podium li { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); font-size: 1.0625rem; }
.podium li.p1 { border-color: var(--accent); font-size: 1.25rem; }
.podium .pl { font-size: 1.5rem; text-align: center; font-weight: 800; color: var(--muted); }
.podium.thanks h2 { margin: 6px 0 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 8vw, 52px); line-height: 1; }
.podium.thanks p { color: var(--text-2); margin: 0; }
.tcard .winner { font-weight: 800; color: var(--accent); }

.kiosk ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 28px; }
.kiosk li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.kiosk li b { white-space: nowrap; color: var(--accent); }
.contact .row { flex-wrap: wrap; }
.photo-note { margin: 10px 0 0; }
.photo-note a { color: var(--accent); }

.sponsors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sponsors .sp { display: grid; place-items: center; height: 48px; min-width: 88px; padding: 6px 12px; border-radius: var(--r-sm); background: #fff; color: #18181b; text-decoration: none; font-weight: 700; font-size: 0.875rem; }
.sponsors .sp img { max-height: 36px; max-width: 140px; object-fit: contain; display: block; }
.sponsors.big .sp { height: 76px; min-width: 140px; padding: 10px 16px; }
.sponsors.big .sp img { max-height: 56px; max-width: 200px; }
a.sp { transition: transform .1s ease-out; } a.sp:active { transform: scale(.97); }
.foot-sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 18px; padding-bottom: 6px; border-top: 1px solid var(--line); }

.sp-row { display: grid; grid-template-columns: 96px 1fr 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sp-row .sp-logo { height: 44px; display: grid; place-items: center; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.sp-row .sp-logo img { max-height: 36px; max-width: 88px; object-fit: contain; }
.sp-add { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .sp-row { grid-template-columns: 72px 1fr; } .sp-row input[name=url], .sp-row .row { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .share-btn:active, .mycard:active, a.sp:active { transform: none; } }

/* ── Rechtstexte (impressum.html, datenschutz.html) ── */
.legal-top { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.legal-top .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.legal-top .back { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 0.875rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.legal { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 64px; }
.legal h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 11vw, 76px); line-height: .95; margin: 12px 0 18px; letter-spacing: .005em; }
.legal h2 { font-size: 1.1875rem; font-weight: 800; margin: 32px 0 8px; letter-spacing: -.01em; line-height: 1.25; }
.legal h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.6; }
.legal p { margin: 0 0 10px; }
.legal ul { padding-left: 1.2em; margin: 0 0 10px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--accent); overflow-wrap: anywhere; }
.legal address { font-style: normal; color: var(--text); line-height: 1.6; margin: 0 0 10px; }
.legal .draft { border: 1px solid var(--accent); background: rgba(250, 204, 21, .08); border-radius: var(--r-md); padding: 12px 14px; color: var(--text-2); margin: 0 0 8px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.legal .toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 0.8125rem; font-weight: 600; }
.legal .stand { margin-top: 36px; color: var(--muted); font-size: 0.875rem; }
mark.todo { background: rgba(250, 204, 21, .9); color: #18181b; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.legal-foot { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 0.8125rem; }
.legal-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-foot a { color: var(--text-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
@media print { body { background: #fff; color: #000; } .legal p, .legal li, .legal address { color: #000; } .legal-top .back, .legal .toc, .legal-foot { display: none; } }

/* ── Aktuelles (Kurzmeldungen der Turnierleitung) ── */
.news { margin-top: 16px; }
.news ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.news li { padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.news li.imp { border-left-color: var(--accent); }
.news li p { margin: 2px 0 0; color: var(--text); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.news .when { font-size: .8125rem; color: var(--muted); }
.news li.imp .when { color: var(--accent); }
.news details { margin-top: 10px; }
.news summary { cursor: pointer; color: var(--muted); font-size: .875rem; min-height: 44px; display: flex; align-items: center; }
.news details ul { margin-top: 0; }

/* Spielplan/Tabelle-Umschalter bleibt beim Scrollen unter der Kopfzeile (26.10.2026) */
.view-switch { position: sticky; top: var(--top-h, 112px); z-index: 10; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: rgba(9, 9, 11, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.view-switch .pill { min-height: 40px; }

/* Weitere Events mit eigener Seite (z. B. Ü40 vs. Hannover 96) – 31.10.2026 */
.tcard-extra { position: relative; overflow: hidden; border-color: rgba(250, 204, 21, .45); background: linear-gradient(135deg, rgba(250, 204, 21, .12), transparent 60%), var(--panel, #18181b); }
.tcard-extra::after { content: "96"; position: absolute; right: -6px; bottom: -28px; font-family: var(--display); font-size: 7rem; line-height: 1; color: rgba(250, 204, 21, .08); pointer-events: none; }
.tcard-extra:hover { border-color: var(--accent); }

/* Rückweg zur Fußball-Seite (16.11.2026) – scrollt mit, der Turnier-Kopf darunter bleibt kleben */
.backbar { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.backbar .wrap { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.backbar a { color: var(--muted, var(--text-2)); text-decoration: none; font-weight: 600; padding: 8px 2px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.backbar a:hover, .backbar a:focus-visible { color: var(--text); }
.backbar a:active { opacity: .7; }
.backbar .back-home { color: var(--text); }
.backbar .back-home span { color: var(--accent); margin-right: 2px; }
.backbar .sep { color: var(--dim, #71717a); }

/* ── Kopfzeile in EINER Zeile + Turniertag-Leiste + Schnellzugriff (16.11.2026) ── */
.top-row { gap: 6px !important; }
.top-back { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; margin-left: -10px; padding: 0 6px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.875rem; border-radius: 999px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.top-back-l { display: none; color: var(--muted); }
.top-back:hover .top-back-l { color: var(--text); }
.top-back:active { opacity: .7; }
.top-tabs { display: none; }
#app [id] { scroll-margin-top: calc(var(--top-h, 64px) + 12px); }
.anchor { height: 0; }

/* Turniertag: Handy – feste Leiste unten */
.daybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(15, 15, 18, .94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.db-i { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; color: var(--muted); text-decoration: none; font-size: 0.75rem; font-weight: 700; border-radius: 12px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color .15s, transform .1s ease-out; }
.db-i[aria-current="true"] { color: var(--accent); }
.db-i:active { transform: scale(.94); }
body.is-matchday #foot { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* Schnellzugriff vor dem Turnier */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.qt { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 104px; padding: 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color .15s, transform .12s ease-out; }
.qt svg { color: var(--accent); }
.qt span { display: flex; flex-direction: column; gap: 2px; }
.qt b { font-size: 1rem; font-weight: 800; }
.qt small { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.qt.main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qt.main svg, .qt.main small { color: var(--accent-ink); }
.qt:active { transform: scale(.98); }
@media (hover: hover) { .qt:hover { border-color: var(--line-2); transform: translateY(-2px); } .qt.main:hover { background: var(--accent-hover); border-color: var(--accent-hover); } }

/* Einstieg am Turniertag kompakt */
.hero-compact { padding-top: 20px; padding-bottom: 20px; }
.hero-compact h1 { font-size: clamp(44px, 12vw, 88px); margin: 6px 0 10px; }
.hero-compact h1 span { display: inline; }

@media (min-width: 720px) {
  .top-back-l { display: inline; }
  .top-back { margin-left: -6px; padding-right: 14px; border-right: 1px solid var(--line); border-radius: 0; margin-right: 6px; }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qt { min-height: 124px; padding: 18px; }
  .qt b { font-size: 1.125rem; }
}
@media (min-width: 960px) {
  body.is-matchday .top-tabs { display: flex; gap: 4px; padding: 4px; margin-right: 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
  .tt-i { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 0.9375rem; transition: background .15s, color .15s; }
  .tt-i:hover { color: var(--text); }
  .tt-i[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
  .daybar { display: none; }
  body.is-matchday #foot { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .qt, .db-i { transition: none; } .qt:active, .db-i:active, .qt:hover { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .daybar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ── Turniertag (16.11.2026): Live zuerst, kompakter Tagesplan, zugeklappte Nebensachen ── */
.daystrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 4px 2px 0; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.ds-live { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; }
.ds-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
body.is-matchday #app > .section-head:first-of-type { margin-top: 14px; }

.pick-cta { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; text-decoration: none; color: var(--text); border-style: dashed; border-color: var(--line-2); -webkit-tap-highlight-color: transparent; transition: border-color .15s, transform .1s ease-out; }
.pick-cta svg { color: var(--accent); flex: none; }
.pick-cta > span:not(.dp-go) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick-cta small { color: var(--muted); font-size: 0.8125rem; }
.pick-cta:active { transform: scale(.99); }
@media (hover: hover) { .pick-cta:hover { border-color: var(--accent); } }

.dp-day + .dp-day { margin-top: 18px; }
.dp-head { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dp-head small { margin-left: 6px; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: 0.8125rem; }
.dp-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
.dp-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background .15s; }
.dp-row:first-child { border-top: 0; }
.dp-row:active { background: var(--panel-2); }
@media (hover: hover) { .dp-row:hover { background: var(--panel-2); } }
.dp-time { font-weight: 800; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.dp-time small { display: block; color: var(--muted); font-weight: 600; font-size: 0.6875rem; }
.dp-name { display: flex; flex-direction: column; min-width: 0; }
.dp-name b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.375rem; line-height: 1.05; letter-spacing: .005em; }
.dp-name small { color: var(--muted); font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-row[data-s="live"] { background: linear-gradient(90deg, rgba(239, 68, 68, .14), transparent 70%); box-shadow: inset 3px 0 0 var(--live); }
.dp-row[data-s="finished"] .dp-name b, .dp-row[data-s="finished"] .dp-time { color: var(--text-2); }
.dp-go { color: var(--accent); font-size: 1.25rem; font-weight: 700; }

details.fold { margin-top: 28px; border-top: 1px solid var(--line); }
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; line-height: 1; letter-spacing: .005em; }
.fold-i { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .2s ease-out; }
.fold-i::before, .fold-i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text-2); border-radius: 2px; }
.fold-i::after { transform: rotate(90deg); transition: transform .2s ease-out; }
details.fold[open] .fold-i::after { transform: rotate(0deg); }
.fold-body { padding-bottom: 6px; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Turnierseite am Turniertag */
.t-head { padding: 6px 2px 0; }
.t-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-head h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 11vw, 72px); line-height: .95; letter-spacing: .005em; }
.t-head .facts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 0.875rem; }
.t-head .facts b { color: var(--text); }
.board-stack { margin-top: 16px; }
.tabs-wrap { position: relative; z-index: 1; }
.mybox.empty-pick { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.my-hint { margin: 0; }
details.done-ms { border-bottom: 1px solid var(--line); }
details.done-ms > summary { list-style: none; cursor: pointer; padding: 12px 4px; color: var(--accent); font-weight: 700; font-size: 0.875rem; min-height: 44px; display: flex; align-items: center; }
details.done-ms > summary::-webkit-details-marker { display: none; }
details.done-ms > summary::before { content: '▸'; margin-right: 8px; transition: transform .2s; }
details.done-ms[open] > summary::before { transform: rotate(90deg); }
.share-ic { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 4px 0 -4px -6px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.share-ic:hover { color: var(--text); background: var(--panel-2); }
.share-ic:active { transform: scale(.92); }
@media (pointer: coarse) { .share-ic { width: 40px; height: 40px; margin: 2px 0 -8px -10px; } }
@media (min-width: 720px) { .dp-row { grid-template-columns: 70px minmax(0, 1fr) auto 14px; padding: 12px 18px; } .daystrip { font-size: 0.9375rem; } }
@media (prefers-reduced-motion: reduce) { .ds-live i { animation: none; } .fold-i, .fold-i::after, details.done-ms > summary::before { transition: none; } .pick-cta:active, .share-ic:active { transform: none; } }

/* Glätten (16.11.2026): Altersklassen-Hinweis in der Live-Karte ohne Unterstreichung, mit Pfeil;
   Teamnamen nur an Leerzeichen umbrechen (kein „SV Hil-desia“), sehr lange Einzelwörter dürfen notfalls umbrechen */
.board-head a.status { text-decoration: none; gap: 4px; min-height: 32px; padding: 4px 12px; color: var(--text-2); -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color .15s, color .15s, transform .1s ease-out; }
.board-head a.status::after { content: '›'; color: var(--accent); font-weight: 800; font-size: 1rem; line-height: 1; }
.board-head a.status:active { transform: scale(.96); }
@media (hover: hover) { .board-head a.status:hover { border-color: var(--accent); color: var(--text); } }
@media (pointer: coarse) { .board-head a.status { min-height: 40px; } }
.board-team, .mrow .team { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .board-head a.status:active { transform: none; } }
