/* Anstoß Turnierplaner. Keine externen Schriften (datenschutzfreundlich), nur Systemschriften. */
:root {
  --bg: #eef2ee;
  --surface: #ffffff;
  --surface-2: #f5f8f5;
  --fg: #17221b;
  --muted: #5b6b60;
  --line: #d5ddd6;
  --pitch: #1f6b3a;
  --pitch-strong: #fff;
  --on-pitch: #000;
  --chalk: #e3efe5;
  --flag: #d9a514;
  --live: #d23a2a;
  --win: #1f6b3a;
  --loss: #b2412f;
  --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1511; --surface: #161e18; --surface-2: #1b251e; --fg: #e5ede7; --muted: #94a59a;
    --line: #2a372e; --pitch: #2f8a4e; --pitch-strong: #123620; --on-pitch: #effaf1; --chalk: #1f3025;
    --flag: #e6b93a; --live: #ff6a55; --win: #5cc07f; --loss: #e07a68; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
a { color: var(--pitch); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 24px; margin-bottom: 12px; }
h2 small { font-size: 15px; color: var(--muted); font-weight: 400; }
h3 { font-size: 19px; margin-bottom: 6px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
main.wrap { padding-block: 24px 56px; display: flex; flex-direction: column; gap: 22px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 13px; }

/* Kopfzeile */
header.top { background: var(--pitch-strong); color: var(--on-pitch); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 12px 20px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; text-decoration: none; }
.brand b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.brand small { font-size: 12px; opacity: .75; }
header.top nav { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
header.top nav a, .linkbtn { color: var(--on-pitch); text-decoration: none; font-weight: 600; opacity: .9; background: none; border: 0; padding: 0; cursor: pointer; }
header.top nav a:hover, .linkbtn:hover { opacity: 1; text-decoration: underline; }
form.inline { display: inline; margin: 0; }

/* Buttons, Hinweise */
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--pitch); }
.btn.primary { background: var(--pitch); border-color: var(--pitch); color: var(--on-pitch); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.danger { color: var(--loss); }
.btn.danger-fill { background: var(--loss); border-color: var(--loss); color: #fff; }
.btn.liveon { background: var(--live); border-color: var(--live); color: #fff; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.notice { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--flag); }
.notice.ok { border-color: var(--pitch); }
.notice.err { border-color: var(--loss); color: var(--loss); font-weight: 600; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 18px; color: var(--muted); margin: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.legend { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card.narrow { max-width: 460px; width: 100%; margin: 24px auto; display: grid; gap: 12px; }
.card.narrow p { margin: 0; }
.stack { display: grid; gap: 8px; }
.stack label { font-weight: 600; font-size: 14px; }
.stack .btn { justify-self: start; margin-top: 8px; }
.headline { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Status-Pillen */
.pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 9px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.pill.geplant { color: var(--muted); }
.pill.laeuft { color: var(--flag); }
.pill.beendet { color: var(--win); }
.pill.live { color: #fff; background: var(--live); border-color: var(--live); }
.pill.on-dark { justify-self: start; }
.pill.on-dark.geplant, .pill.on-dark.beendet, .pill.on-dark.laeuft { color: var(--on-pitch); }

/* Startseite */
.intro-hero { display: grid; gap: 8px; }
.intro-hero p { margin: 0; color: var(--muted); max-width: 65ch; }
.search input { width: 100%; max-width: 480px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-top: 6px; }
.tcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tcard { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; color: inherit; text-decoration: none; }
.tcard:hover { border-color: var(--pitch); }
.tdate { display: grid; place-items: center; background: var(--chalk); border-radius: 8px; padding: 6px 0; font-family: var(--font-display); }
.tdate b { font-size: 26px; line-height: 1; }
.tdate span { font-size: 12px; color: var(--muted); }
.tinfo, .tside { display: grid; gap: 2px; min-width: 0; }
.tside { justify-items: end; text-align: right; }
.tcard .name { font-weight: 700; font-size: 17px; }
.tcard .meta { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .tcard { grid-template-columns: 56px minmax(0, 1fr); }
  .tside { grid-column: 2; justify-items: start; text-align: left; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
}

/* Turnierkopf */
.crumbs { margin: 0; }
.board { background: var(--pitch); color: var(--on-pitch); border-radius: 12px; padding: 22px; display: grid; gap: 10px;
  background-image: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.16) calc(50% - 1px), rgba(255,255,255,.16) calc(50% + 1px), transparent calc(50% + 1px)),
                    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 48px, transparent 48px 96px); }
.board h1 { text-transform: uppercase; }
.board a { color: var(--on-pitch); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.progress { height: 6px; background: rgba(255,255,255,.22); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--flag); }
.board .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.board .actions .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: var(--on-pitch); }
.introtext { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; max-width: 100%; overflow-wrap: anywhere; }
.introtext > :first-child { margin-top: 0; }
.introtext > :last-child { margin-bottom: 0; }

.livebox { border: 2px solid var(--live); border-radius: 10px; padding: 16px 18px; background: var(--surface); }
.livebox h2 { display: flex; align-items: center; gap: 8px; color: var(--live); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.livecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.livecard { background: var(--surface-2); border-radius: 8px; padding: 10px 14px; }
.lmeta { font-size: 12px; color: var(--muted); }
.lteams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-weight: 700; }
.lteams span:first-child { text-align: right; }
.lteams b { font-family: var(--font-mono); font-size: 22px; }

.jump { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 58px; z-index: 4; background: var(--bg); padding-block: 6px; }
.jump a { text-decoration: none; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.jump a:hover { border-color: var(--pitch); }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; min-width: 0; scroll-margin-top: 110px; }

/* Tabellen */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th.num, td.num { text-align: right; }
th.c { text-align: center; }
tr.done td { background: var(--surface-2); }
tr.live td { background: color-mix(in srgb, var(--live) 10%, var(--surface)); }
.gtag { display: inline-block; min-width: 24px; text-align: center; font-family: var(--font-display); font-weight: 700; background: var(--chalk); border-radius: 4px; padding: 0 6px; }
.klabel { font-size: 13px; font-weight: 600; white-space: nowrap; }
.team.home { text-align: right; }
.team.won { font-weight: 700; }
.team.ph { color: var(--muted); font-style: italic; }
.score-cell { text-align: center; font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.score-cell small { display: block; font-weight: 400; color: var(--muted); }
.vs { color: var(--muted); font-weight: 400; }
.livebadge { display: block; margin: 0 auto 2px; width: max-content; font-family: var(--font-body); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--live); border-radius: 3px; padding: 0 5px; }
td.ref { font-size: 13px; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 22px; }
.groups.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rank { width: 28px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
tr.adv td:first-child { box-shadow: inset 3px 0 0 var(--pitch); }
.pts { font-weight: 700; }
.diff.pos { color: var(--win); }
.diff.neg { color: var(--loss); }
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 520px; }
.ranking li { display: flex; gap: 10px; padding: 8px 12px; border-radius: 6px; background: var(--surface-2); font-weight: 600; }
.ranking li span { font-family: var(--font-display); width: 32px; }
.ranking li.p1 { background: var(--flag); color: #1b1606; }
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.teams ol, ol.cols { margin: 0; padding-left: 22px; }
ol.cols { columns: 3 200px; }

/* Live-Ansicht (Stadion/Beamer) */
body.stadium { --bg: #07140c; --fg: #f1f7f2; --muted: #9db3a3; background: var(--bg); color: var(--fg); min-height: 100vh; }
body.stadium main.wrap { max-width: 1600px; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid #1f6b3a; padding-bottom: 12px; }
.st-head > div:first-child { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 700; text-transform: uppercase; color: #ff6a55; }
.st-head h1 { text-transform: uppercase; font-size: clamp(28px, 4vw, 56px); }
.st-clock { font-family: var(--font-mono); font-size: 28px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.st-card { background: #0f2417; border: 1px solid #1f6b3a; border-radius: 14px; padding: 20px 24px; display: grid; gap: 12px; }
.st-meta { color: var(--muted); font-size: 18px; }
.st-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.st-team { font-family: var(--font-display); font-size: clamp(24px, 3vw, 44px); font-weight: 700; line-height: 1.05; }
.st-team:first-child { text-align: right; }
.st-score { font-family: var(--font-mono); font-size: clamp(44px, 6vw, 96px); font-weight: 700; color: #e6b93a; white-space: nowrap; }
.st-score i { font-style: normal; opacity: .5; padding: 0 .1em; }
.st-empty { font-size: 28px; color: var(--muted); margin: 0; }
.st-next h2 { font-size: 26px; text-transform: uppercase; }
.st-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-next li { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 22px; padding: 10px 14px; border-radius: 8px; background: #0f2417; }
.st-next .mono { font-size: 22px; color: #e6b93a; }
.st-foot { color: var(--muted); }
.st-foot a { color: var(--muted); }

/* Verwaltung */
.admin-list td { vertical-align: top; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.tform { display: grid; gap: 18px; }
fieldset { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 20px 18px; display: grid; gap: 12px; min-width: 0; }
legend { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase; padding: 0 6px; margin-left: -6px; }
.frow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 6px 20px; align-items: start; }
.frow > label:first-child { font-weight: 600; padding-top: 7px; }
.frow > label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.frow input[type="text"], .frow input[type="url"], .frow input[type="number"], .frow input[type="datetime-local"], .frow select, .frow textarea, .linkbox input {
  width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
}
.frow textarea { max-width: 100%; resize: vertical; }
textarea.code { font-family: var(--font-mono); font-size: 13px; }
.pair { display: flex; gap: 8px; max-width: 520px; flex-wrap: wrap; }
.pair input { flex: 1 1 120px; min-width: 0; }
.pair input.zip { flex: 0 1 110px; }
.pair.three input { flex: 0 1 90px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; padding-top: 0 !important; }
.check input { margin-top: 4px; }
.check.warn { color: var(--loss); font-weight: 600 !important; }
@media (max-width: 720px) { .frow { grid-template-columns: minmax(0, 1fr); } .frow > span:first-child { display: none; } }
.formbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; background: var(--chalk); border-radius: 10px; padding: 10px; }
.formbar.sticky { position: sticky; top: 58px; z-index: 3; justify-content: flex-start; }
.uploadform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 10px; }
.imggrid figure { margin: 0; display: grid; gap: 6px; }
.imggrid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.imggrid input { width: 100%; font-family: var(--font-mono); font-size: 11px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); }
.linkbox { display: grid; gap: 8px; }
.linkbox label { font-weight: 600; }
.linkbox .pair { max-width: none; }
.linkbox input { flex: 1 1 280px; max-width: none; }
.results h2 { margin-top: 18px; }
table.admin td { padding: 6px; }
.score { display: flex; align-items: center; gap: 4px; justify-content: center; }
.score input { width: 52px; text-align: center; font-family: var(--font-mono); padding: 5px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.score.pen { margin-top: 4px; }
.score.pen input { width: 42px; font-size: 12px; padding: 2px; }
.score.pen small { font-size: 11px; color: var(--muted); }
table.admin select { max-width: 170px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font-size: 11px; text-align: center; line-height: 18px; }
.tickerpair textarea { flex: 1 1 280px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; resize: vertical; }
.sprows { display: grid; gap: 12px; }
.sprow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; background: var(--surface-2); border-radius: 8px; }
.sppreview { height: 80px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sppreview img { max-height: 70px; max-width: 110px; object-fit: contain; }
.sppreview span { font-size: 12px; color: #6b776f; }
.spfields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.spfields input[type="text"], .spfields input[type="url"], .spfields select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.filelabel { font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.filelabel input { font-size: 13px; max-width: 100%; }
@media (max-width: 560px) { .sprow { grid-template-columns: minmax(0, 1fr); } }
.msglist { display: grid; gap: 12px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; display: grid; gap: 8px; }
.msg.unread { border-color: var(--live); box-shadow: inset 4px 0 0 var(--live); }
.msg header { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; font-size: 14px; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.userlist td { vertical-align: middle; }
.userlist .pair { flex-wrap: nowrap; align-items: center; }
.userlist input, .userlist select, .narrowform input, .narrowform select { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; min-width: 0; }
.narrowform { max-width: 460px; }
.narrowform h2 { margin: 0 0 4px; }

/* Ticker (Lauftext) */
.ticker { overflow: hidden; background: var(--flag); color: #1b1606; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker var(--dur, 30s) linear infinite; }
.ticker-track span { padding: 8px 0; padding-right: 2em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { white-space: normal; }
  .ticker-track { animation: none; display: block; padding: 0 12px; }
  .ticker-track span + span { display: none; }
}

/* Countdown */
.cdbox { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; display: grid; gap: 14px; justify-items: start; }
.cdbox h2 { margin: 0; }
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown span { display: grid; justify-items: center; min-width: 78px; padding: 10px 8px; background: var(--pitch); color: var(--on-pitch); border-radius: 8px; }
.countdown b { font-family: var(--font-mono); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 12px; opacity: .8; margin-top: 4px; }
.cdinfo { overflow-wrap: anywhere; }
.cdinfo > :first-child { margin-top: 0; }
.cdinfo > :last-child { margin-bottom: 0; }
.tcard .meta.soon { color: var(--pitch); font-weight: 600; }

/* Sponsoren */
.sponsors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sponsors li { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 100px; }
.sponsors a, .sponsors li > span, .sponsors li > img { display: grid; place-items: center; padding: 10px; color: #17221b; text-decoration: none; font-weight: 700; text-align: center; }
.sponsors img { max-height: 80px; max-width: 100%; object-fit: contain; }
.sponsors a:hover { outline: 2px solid var(--pitch); border-radius: 8px; }

/* Kontaktformular */
.contact { display: grid; gap: 12px; max-width: 720px; }
.contact label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.contact input, .contact textarea { font-weight: 400; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%; }
.contact .btn { justify-self: start; }
.pair2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Live-Ansicht: Vollbild, Ticker, Sponsoren */
body.stadium main.wrap { min-height: 100vh; padding-bottom: 80px; }
body.stadium.idle, body.stadium.idle * { cursor: none; }
.st-countdown { display: grid; gap: 16px; justify-items: center; padding: 30px 0; }
.st-countdown h2 { font-size: 34px; text-transform: uppercase; color: var(--muted); }
.countdown.big span { min-width: 140px; padding: 18px 14px; background: #0f2417; border: 1px solid #1f6b3a; }
.countdown.big b { font-size: clamp(48px, 7vw, 110px); color: #e6b93a; }
.countdown.big small { font-size: 18px; }
.st-sponsors { list-style: none; margin: 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; background: #f4f7f4; border-radius: 12px; }
.st-sponsors li { height: 70px; display: grid; place-items: center; }
.st-sponsors img { max-height: 64px; max-width: 220px; object-fit: contain; }
.st-sponsors a, .st-sponsors span { color: #17221b; font-weight: 700; text-decoration: none; font-size: 20px; }
#st-ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; }
.ticker.st-ticker { border-radius: 0; font-size: clamp(20px, 2.2vw, 32px); }
.fs-btn { position: fixed; top: 10px; right: 10px; z-index: 7; background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 13px; opacity: .4; }
.fs-btn:hover, .fs-btn:focus-visible { opacity: 1; }
body.idle .fs-btn { opacity: 0; }
.fs-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(4, 12, 7, .82); display: grid; place-content: center; justify-items: center; gap: 18px; }
.fs-start { display: grid; justify-items: center; gap: 6px; background: #1f6b3a; color: #fff; border: 0; border-radius: 16px; padding: 28px 44px; cursor: pointer; }
.fs-start b { font-family: var(--font-display); font-size: 34px; text-transform: uppercase; }
.fs-start span { opacity: .8; }
.fs-overlay .linkbtn { color: var(--muted); }

/* Druckansichten: Ergebnis-PDF und Spielzettel */
body.printpage { --bg: #fff; --surface: #fff; --surface-2: #f3f5f3; --fg: #111; --muted: #555; --line: #cfd6d0; --chalk: #e8efe9; --pitch: #1f6b3a; --flag: #d9a514; --live: #c0392b; --win: #1f6b3a; --loss: #a33a2a; color-scheme: light; background: #fff; color: #111; }
body.printpage main.wrap { max-width: 1000px; padding-top: 16px; gap: 16px; }
.printbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 14px; background: var(--chalk); border-radius: 10px; }
.report { display: grid; gap: 18px; }
.report-head { border-bottom: 3px solid var(--pitch); padding-bottom: 10px; }
.report-head h1 { text-transform: uppercase; }
.report-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.report h2 { font-size: 20px; margin-bottom: 6px; }
.report table { font-size: 12px; }
.report td, .report th { padding: 4px 6px; }
.report .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report .scroll { overflow: visible; }
.report .sponsors { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.report .sponsors li { height: 70px; }
.report .sponsors img { max-height: 54px; }

.sheets { display: grid; gap: 0; }
.sheet { border: 1.5px dashed #999; border-radius: 6px; padding: 4mm 7mm; margin-bottom: 6mm; display: grid; gap: 2mm; align-content: start; background: #fff; color: #111; }
.sheet > header { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px solid #111; padding-bottom: 1.5mm; font-size: 13px; }
.sheet > header b { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }
.sheet-meta { display: grid; grid-template-columns: 1.3fr .8fr .5fr 1.2fr 2fr; gap: 0 4mm; margin: 0; }
.sheet-meta dt { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.sheet-meta dd { margin: 0; font-weight: 700; font-size: 13px; border-bottom: 1px solid #bbb; min-height: 18px; }
.sheet-score { width: 100%; table-layout: fixed; }
.sheet-score td { border: 0; padding: 1mm; vertical-align: bottom; }
.sheet-score .tn { width: 38%; }
.sheet-score .tn small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.sheet-score .tn b { display: block; font-size: 17px; line-height: 1.15; }
.sheet-score .tn b.ph { font-size: 12px; font-weight: 400; font-style: italic; color: #555; }
.sheet-score .tn .fill { display: block; border-bottom: 1px solid #111; height: 7mm; }
.sheet-score .home { text-align: right; }
.sheet-score .box { width: 15mm; height: 15mm; border: 2px solid #111; border-radius: 3px; }
.sheet-score .colon { width: 5mm; text-align: center; font-size: 22px; font-weight: 700; vertical-align: middle; }
.sheet-score tr.pen .box { height: 9mm; border-width: 1px; }
.sheet-score tr.pen .tn small { font-size: 10px; }
.sheet-notes { display: grid; gap: 0; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.sheet-notes i { display: block; border-bottom: 1px solid #bbb; height: 6mm; }
.sheet-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; padding-top: 7mm; }
.sheet-sign span { border-top: 1px solid #111; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #555; padding-top: 1mm; }

@media print {
  @page { size: A4; margin: 10mm; }
  .noprint, header.top, .fs-btn { display: none !important; }
  body { background: #fff; font-size: 12px; }
  main.wrap { padding: 0 !important; max-width: none !important; }
  a { color: inherit; text-decoration: none; }
  .report h2, .report h3 { break-after: avoid; }
  .ranking, .report-sponsors { break-inside: avoid; }
  .report .groups > div, tr { break-inside: avoid; }
  tr.done td, tr.live td { background: none; }
  .livebadge { display: none; }
  .sheet { height: calc((297mm - 20mm - 12mm) / 3); margin: 0 0 6mm; break-inside: avoid; overflow: hidden; }
  .sheet:nth-child(3n) { break-after: page; margin-bottom: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
