/* Kurbel-WM · TUfast Brand Bible x Apple Human Interface Guidelines
   Marke: Dharma Gothic E Heavy Italic für große Titel, Helvetica Neue LT Pro für Text,
          Schwarz/Weiß als Basis, Orange #FF6801 als einzige Akzent- bzw. Tint-Farbe.
   Apple: gruppierte Karten, Haarlinien, durchscheinende Navigationsleiste, Segment-Controls,
          Kapsel-Buttons, Tab-Leiste unten auf dem Handy.
   Funktionsfarbe außerhalb der Palette: Rot der Auswärtsseite am Kicker. */

@font-face { font-family: "Dharma Gothic E"; src: url("fonts/dharma-gothic-e-heavy-italic.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("fonts/helvetica-neue-lt-pro-55-roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("fonts/helvetica-neue-lt-pro-56-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("fonts/helvetica-neue-lt-pro-75-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("fonts/helvetica-neue-lt-pro-76-bold-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --orange: #ff6801;
  --bg: #f2f2f7; --card: #ffffff; --card2: #f2f2f7; --fill: rgba(118, 118, 128, .12); --fill-strong: rgba(118, 118, 128, .2);
  --ink: #000000; --ink2: #6e6e73; --sep: rgba(60, 60, 67, .16);
  --tint: var(--orange); --tint-text: #c24e00; --on-tint: #000000; --tint-soft: rgba(255, 104, 1, .12);
  --hero: #000000; --hero-ink: #ffffff; --hero-ink2: rgba(255, 255, 255, .62); --hero-track: rgba(255, 255, 255, .16);
  --nav: rgba(242, 242, 247, .78);
  --home-bg: #000000; --home-fg: #ffffff; --home-line: transparent;
  --away-bg: #c8102e; --away-fg: #ffffff;
  --bad: #d70015;
  --seg-on: #ffffff; --seg-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04);
  --r-card: 16px; --r-ctl: 10px;
  --display: "Dharma Gothic E", "Arial Narrow", Impact, sans-serif;
  --body: "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #000000; --card: #1c1c1e; --card2: #2c2c2e; --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(118, 118, 128, .36);
  --ink: #ffffff; --ink2: #98989d; --sep: rgba(84, 84, 88, .6);
  --tint-text: #ff6801; --tint-soft: rgba(255, 104, 1, .18);
  --hero: #1c1c1e; --nav: rgba(18, 18, 20, .78);
  --home-line: rgba(255, 255, 255, .3); --away-bg: #e0243a; --bad: #ff453a;
  --seg-on: #636366; --seg-shadow: none; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #000000; --card: #1c1c1e; --card2: #2c2c2e; --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(118, 118, 128, .36);
  --ink: #ffffff; --ink2: #98989d; --sep: rgba(84, 84, 88, .6);
  --tint-text: #ff6801; --tint-soft: rgba(255, 104, 1, .18);
  --hero: #1c1c1e; --nav: rgba(18, 18, 20, .78);
  --home-line: rgba(255, 255, 255, .3); --away-bg: #e0243a; --bad: #ff453a;
  --seg-on: #636366; --seg-shadow: none; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.47; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--nav); z-index: 30; }
.gutter { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { padding-block: 20px 56px; display: flex; flex-direction: column; gap: 28px; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .9; margin: 0; letter-spacing: 0; text-wrap: balance; }
h3 { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink2); }
.small { font-size: 0.8125rem; }
.mono { font-weight: 700; }

/* ---------- Navigationsleiste (durchscheinend, sticky) ---------- */
header.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid var(--sep); isolation: isolate; }
/* Unschärfe auf einer eigenen Ebene, damit die Tab-Leiste darin auf dem Handy am Bildschirmrand fixiert werden kann */
header.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.625rem; line-height: 1; text-transform: uppercase; color: var(--tint); text-decoration: none; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
header.nav.scrolled .brand { opacity: 1; transform: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.topbar .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

/* Tabs: auf breiten Bildschirmen Segment-Control in der Leiste, auf dem Handy Tab-Leiste unten */
nav.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; background: var(--fill); border-radius: 9px; }
nav.tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; background: transparent; border: 0; border-radius: 7px; padding: 5px 14px; font-size: 0.8125rem; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
nav.tabs button svg { display: none; }
nav.tabs button[aria-selected="true"] { background: var(--seg-on); box-shadow: var(--seg-shadow); }
nav.tabs button:not([aria-selected="true"]):hover { background: var(--fill); }
@media (max-width: 760px) {
  .brand { opacity: 1; transform: none; font-size: 1.5rem; }
  nav.tabs { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--sep); border-radius: 0; gap: 0; padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  nav.tabs button { flex: 1 1 0; flex-direction: column; gap: 3px; padding: 4px 2px; font-size: 0.6875rem; color: var(--ink2); border-radius: 0; min-width: 0; }
  nav.tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  nav.tabs button svg { display: block; width: 26px; height: 26px; }
  nav.tabs button[aria-selected="true"] { background: none; box-shadow: none; color: var(--tint-text); }
  nav.tabs button:not([aria-selected="true"]):hover { background: none; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .topbar .muted { display: none; }
}

/* Segment-Controls (Sprache, Filter, Login/Registrieren) */
.seg-toggle { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; background: var(--fill); border-radius: 9px; }
.seg-toggle button { min-height: 32px; border: 0; background: transparent; border-radius: 7px; padding: 5px 12px; font-size: 0.8125rem; font-weight: 700; cursor: pointer; color: var(--ink); white-space: nowrap; }
.seg-toggle button[aria-pressed="true"] { background: var(--seg-on); box-shadow: var(--seg-shadow); }
.seg-toggle.lang button { min-height: 28px; padding: 4px 9px; font-size: 0.75rem; }

/* ---------- Hero-Karte: Marken-Schwarz mit orangem Titel ---------- */
.hero { background: var(--hero); color: var(--hero-ink); border-radius: 22px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 20px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; color: var(--hero-ink2); }
h1 { font-size: clamp(64px, 13vw, 116px); color: var(--orange); }
h1 .dash { color: var(--hero-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; background: var(--fill); color: var(--ink); white-space: nowrap; }
.pill.live { background: var(--tint); color: var(--on-tint); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero .pill { background: var(--hero-track); color: var(--hero-ink); }
.hero .pill.live { background: var(--orange); color: #000; }
.season { display: flex; flex-direction: column; gap: 8px; }
.track { position: relative; height: 8px; border-radius: 999px; background: var(--hero-track); display: flex; gap: 3px; overflow: visible; }
.track .seg { height: 100%; border-radius: 999px; }
.seg.hin { background: rgba(255, 255, 255, .34); }
.seg.rueck { background: rgba(255, 255, 255, .5); }
.seg.po { background: var(--orange); }
.now { position: absolute; top: -5px; width: 18px; height: 18px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 104, 1, .45); }
.seasonlabels { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.75rem; font-weight: 700; color: var(--hero-ink2); }
@media (max-width: 560px) { .seasonlabels { flex-direction: column; gap: 2px; } .hero { padding: 22px 18px 18px; border-radius: 20px; } }

/* ---------- Abschnitte ---------- */
section.panel { display: flex; flex-direction: column; gap: 18px; }
h2 { font-size: clamp(46px, 8vw, 64px); color: var(--tint); }
.sectionhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 20px; flex-wrap: wrap; }
.sectionhead > span { font-size: 0.875rem; }
.card { background: var(--card); border-radius: var(--r-card); padding: 20px; }

/* Tabelle */
.tablewrap { background: var(--card); border-radius: var(--r-card); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 580px; }
th, td { padding: 13px 10px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
th { font-size: 0.75rem; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid var(--sep); }
td { border-bottom: 1px solid var(--sep); font-size: 1rem; }
tbody tr:last-child td { border-bottom: 0; }
th.l, td.l { text-align: left; }
td.team { font-weight: 700; white-space: normal; min-width: 170px; }
td.pos { width: 44px; font-weight: 700; color: var(--ink2); }
td.pts { font-weight: 700; font-size: 1.0625rem; }
td.kasten { font-weight: 700; }
tr.cut td { border-bottom: 3px solid var(--ink); }
tr.mine td { background: var(--fill); }
.me-dot { color: var(--ink2); font-size: 0.6875rem; vertical-align: 2px; }
.form { display: inline-flex; gap: 5px; }
.form i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.form i.w { background: var(--ink); }
.form i.l { background: var(--fill-strong); }
.form i.k { background: var(--ink); border-radius: 2px; transform: rotate(45deg) scale(.85); }
.legend { font-size: 0.8125rem; color: var(--ink2); display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; padding-inline: 4px; }

/* Spiele: gruppierte Liste pro Spieltag */
.md { display: flex; flex-direction: column; }
.mdhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 4px 8px; }
.mdhead h3 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.mdhead h3 .round { color: var(--ink2); }
.mdhead .muted { font-size: 0.8125rem; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 12px; background: var(--card); padding: 14px 16px; position: relative; }
.md > .match:nth-child(2) { border-top-left-radius: var(--r-card); border-top-right-radius: var(--r-card); }
.md > .match:last-child { border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); }
.md > .match + .match::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side.away { justify-content: flex-end; text-align: right; }
.side .nm { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.chip { flex: none; width: 6px; height: 28px; border-radius: 3px; }
.chip.h { background: var(--home-bg); }
.chip.a { background: var(--away-bg); }
.chip.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.score { font-weight: 700; font-size: 1.25rem; display: flex; gap: 5px; align-items: center; justify-content: center; min-width: 96px; }
.score .b { min-width: 40px; padding: 3px 8px; border-radius: 8px; text-align: center; }
.score .b.h { background: var(--home-bg); color: var(--home-fg); }
.score .b.a { background: var(--away-bg); color: var(--away-fg); }
.score.pending .b { background: var(--fill-strong); color: var(--ink2); }
.conflict { color: var(--bad); font-weight: 700; }
.match.todo { background: color-mix(in srgb, var(--tint) 8%, var(--card)); }
.members { display: block; font-weight: 400; font-size: 0.8125rem; line-height: 1.3; color: var(--ink2); }
.tn { font-weight: 700; }
.dq { display: block; font-size: 0.75rem; font-weight: 700; color: var(--bad); text-transform: uppercase; letter-spacing: .03em; }
tr.dq-row td { color: var(--ink2); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--ink2); font-size: 0.75rem; font-weight: 700; vertical-align: 1px; }
.plist .p.off .who b { color: var(--ink2); }
.manage { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.manage h3 { margin-bottom: 6px; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--sep); }
.mform { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--card2); border-radius: 12px; padding: 12px; }
.mform .row { display: flex; gap: 10px; align-items: center; }
.mform label.f { flex: 1 1 200px; }
.mform label.f input, .mform select { background: var(--card); }
select { padding: 10px 12px; border: 0; border-radius: var(--r-ctl); background: var(--card2); color: var(--ink); font-size: 1rem; min-height: 40px; }
.members.missing { color: var(--ink2); font-style: italic; font-weight: 400; }
.name-prompt { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; background: var(--tint-soft); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: 0.9375rem; }
.series-team { display: inline-flex; align-items: baseline; gap: 0; }
.badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center; }
nav.tabs button { position: relative; }
@media (min-width: 761px) { .badge { position: static; margin-left: 2px; } }
.score .vs { font-size: 0.8125rem; font-weight: 700; color: var(--ink2); }
.match .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--ink2); flex-wrap: wrap; }
.meta .kasten { font-weight: 700; color: var(--ink); }

/* Buttons: Kapseln, Orange als Tint */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); padding: 9px 18px; font-weight: 700; font-size: 0.9375rem; cursor: pointer; }
.btn:hover { background: var(--fill-strong); }
.btn:active:not(:disabled) { transform: scale(.97); }
nav.tabs button:active, .seg-toggle button:active, .linkbtn:active, .textlink:active { opacity: .55; }
.btn.primary { background: var(--tint); color: var(--on-tint); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 6px 13px; font-size: 0.8125rem; }
.btn.danger { background: rgba(215, 0, 21, .1); color: var(--bad); }
.btn.danger:hover { background: rgba(215, 0, 21, .08); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--fill); }
.hero .btn { background: var(--hero-track); color: var(--hero-ink); }
.actions-inline { display: inline-flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.linkbtn.danger { color: var(--bad); }
.linkbtn, .textlink { background: none; border: 0; padding: 8px 2px; margin: -8px -2px; min-height: 28px; color: var(--tint-text); font-weight: 700; cursor: pointer; font-size: 0.8125rem; text-align: left; }
.linkbtn:hover, .textlink:hover { text-decoration: underline; }
.entry { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; background: var(--card2); border-radius: 12px; padding: 14px; margin-top: 4px; }
.entry .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entry input[type=number] { width: 70px; padding: 8px; border: 0; border-radius: var(--r-ctl); background: var(--card); font-weight: 700; font-size: 1.375rem; text-align: center; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick .btn { background: var(--card); }
.err { color: var(--bad); font-size: 0.875rem; font-weight: 700; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .btn[aria-pressed="true"] { background: var(--tint-soft); color: var(--tint-text); }

/* Regeln */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.rule { background: var(--card); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.rule p { max-width: 65ch; }
.rule ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.rule.feature { grid-column: 1 / -1; background: var(--hero); color: var(--hero-ink); }
.rule.feature h3 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.5vw, 40px); line-height: 1; text-transform: uppercase; color: var(--orange); }
.rule.feature .muted { color: var(--hero-ink2); }
.sides { display: flex; gap: 10px; flex-wrap: wrap; }
.sidebox { flex: 1 1 140px; padding: 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebox.h { background: var(--home-bg); color: var(--home-fg); }
.sidebox.a { background: var(--away-bg); color: var(--away-fg); }
.sidebox b { font-weight: 700; font-size: 1.0625rem; }

/* Anmeldung */
.reg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 720px) { .reg { grid-template-columns: 1fr; } }
form.stack { display: flex; flex-direction: column; gap: 14px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; font-weight: 700; color: var(--ink2); }
label.f input { padding: 11px 14px; border: 0; border-radius: var(--r-ctl); background: var(--card2); color: var(--ink); font-weight: 400; font-size: 1rem; }
label.f input:focus { outline: 3px solid var(--tint-soft); outline-offset: 0; }
.plist { display: flex; flex-direction: column; }
.plist .p { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--sep); }
.plist .p:last-child { border-bottom: 0; }
.plist .p .who { display: flex; flex-direction: column; min-width: 0; }
.plist .p .who b { overflow-wrap: anywhere; }
.plist .p .who small { color: var(--ink2); font-size: 0.8125rem; }
.bignum { font-weight: 700; font-size: 2.25rem; line-height: 1; }
.hint { margin: 0; font-size: 0.875rem; font-weight: 700; }
.copybox { display: flex; flex-direction: column; gap: 8px; background: var(--card2); border-radius: 12px; padding: 12px; }
.copybox pre { margin: 0; white-space: pre-wrap; font-family: var(--body); font-size: 0.875rem; user-select: all; }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.teamcard { background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.admin .teamcard { background: var(--card2); }
.teamcard > small { color: var(--ink2); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.admin { background: var(--card); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.admin .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--card2); border-radius: 12px; padding: 12px 14px; font-weight: 700; }

/* Playoffs */
.bracket { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.series { background: var(--card); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.series .st { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.series .tm { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.series .tm .w { font-size: 1.25rem; min-width: 34px; padding: 2px 6px; border-radius: 8px; text-align: center; }
.series .tm.won .w { background: var(--ink); color: var(--card); }
.series .match { background: var(--card2); border-radius: 12px; padding: 12px; }
.seed { color: var(--ink2); font-size: 0.8125rem; margin-right: 6px; }
.champion { background: var(--hero); color: var(--hero-ink); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.champion b { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--hero-ink2); }

footer.foot { display: flex; gap: 20px; flex-wrap: wrap; padding: 4px 4px 0; font-size: 0.8125rem; }
footer.foot a { color: var(--ink2); text-decoration: none; padding: 6px 0; }
footer.foot a:hover { color: var(--ink); text-decoration: underline; }
.legal { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.legal h3 { margin-top: 12px; }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink2); background: var(--card); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty b { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.toast { display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: rgba(28, 28, 30, .92); color: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.875rem; z-index: 40; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.toast.error { background: var(--bad); }
.toast-x { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 50%; width: 28px; height: 28px; font-size: 1.125rem; line-height: 1; cursor: pointer; flex: none; }
@media (max-width: 760px) { .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }

.notice { background: var(--card); border-radius: 12px; padding: 12px 16px; font-size: 0.9375rem; }
.notice.err { background: rgba(215, 0, 21, .1); }
.setup { max-width: 640px; margin: 40px auto; display: flex; flex-direction: column; gap: 10px; }
.setup code { background: var(--card2); padding: 1px 6px; border-radius: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, nav.tabs button, .seg-toggle button { transition: background-color .15s, color .15s, box-shadow .15s; }
}

/* Touch: Standardgröße 44 pt für Bedienelemente (accessibility.md › Mobility) */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn.small { min-height: 40px; min-width: 44px; }
  .seg-toggle button { min-height: 36px; }
  .linkbtn, .textlink { padding: 12px 4px; margin: -12px -4px; min-height: 44px; }
}
/* Weniger Transparenz und mehr Kontrast: undurchsichtige Leisten, kräftigere Linien (liquid-glass.md › Tauri and Electron) */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  header.nav::before, nav.tabs, .toast { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  header.nav::before { background: var(--bg) !important; }
  .toast:not(.error) { background: #1c1c1e !important; }
}
@media (max-width: 760px) and (prefers-reduced-transparency: reduce), (max-width: 760px) and (prefers-contrast: more) { nav.tabs { background: var(--bg) !important; } }
@media (prefers-contrast: more) {
  :root:root { --sep: color-mix(in srgb, var(--ink) 45%, transparent); --ink2: color-mix(in srgb, var(--ink) 78%, var(--bg)); --fill: color-mix(in srgb, var(--ink) 16%, transparent); }
}

/* Orga-Tab */
nav.tabs button[hidden] { display: none; }
.dates-form { display: flex; flex-direction: column; gap: 14px; }
.dates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dates-grid label.f input, .md-row input[type="date"] { background: var(--card2); color: var(--ink); border: 0; border-radius: var(--r-ctl); font: inherit; font-weight: 400; }
.md-row input[type="date"] { padding: 7px 10px; min-height: 32px; }
.md-row .actions-inline { flex-shrink: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
label.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tint); flex-shrink: 0; }
label.check span { display: flex; flex-direction: column; gap: 2px; }
label.check small { font-size: 0.8125rem; }
@media (max-width: 520px) { .md-row { flex-wrap: wrap; } .md-row .actions-inline { width: 100%; } .md-row input[type="date"] { flex: 1; } }
.form i.d { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink2); }

/* Vorschau während der Anmeldung und Playoff-Grenzen */
nav.tabs button[aria-disabled="true"] { opacity: .38; cursor: default; }
nav.tabs button[aria-disabled="true"]:hover { background: transparent; }
tr.cut2 td { border-bottom: 1.5px dashed var(--ink2); }
section.panel > .mdhead { margin-top: 6px; }
.bracket { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.name-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plist .p .who small.missing-rn { font-style: italic; }
.name-pair label.f { min-width: 0; }
.name-pair label.f input { width: 100%; box-sizing: border-box; }
@media (max-width: 420px) { .name-pair { grid-template-columns: 1fr; } }
.plist .p { flex-wrap: wrap; }
.plist .p > .mform { flex-basis: 100%; }
.kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.req-form { background: var(--card2); border-radius: var(--r-ctl); padding: 12px; }
.req-form label.f input, .req-form select { background: var(--card); }
.mrow > .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mrow > .who small { font-size: 0.8125rem; }
