/* ============================================================
   Flunkyball-Turnier — Design-System
   Konzept: Turnier-Anzeigetafel / Scoreboard trifft Bierkasten.
   Identität = Pils-Gold auf Flaschendunkel. Grün nur = Live/Sieger.
   ============================================================ */

@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/space-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/space-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

:root {
  --pitch: #14180e;
  --surface: #1d2213;
  --elevated: #262c18;
  --line: #38402a;
  --ink: #f4f1e4;
  --ink-dim: #b9bda6;
  --muted: #868a6f;
  --gold: #f5b301;
  --gold-deep: #b67d08;
  --gold-wash: rgba(245, 179, 1, 0.12);
  --live: #46e08c;
  --danger: #e5544a;
  --danger-wash: rgba(229, 84, 74, 0.14);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 720px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

:root[data-theme='light'] {
  --pitch: #fbfaf2;
  --surface: #ffffff;
  --elevated: #f4f2e7;
  --line: #e3e0cf;
  --ink: #191d10;
  --ink-dim: #55584a;
  --muted: #8a8d78;
  --gold: #d99400;
  --gold-deep: #b67d08;
  --gold-wash: rgba(217, 148, 0, 0.12);
  --live: #17a862;
  --shadow: 0 16px 34px -22px rgba(40, 40, 20, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pitch);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* dezente „Flutlicht"-Aura oben */
  background-image: radial-gradient(120% 60% at 50% -10%, var(--gold-wash), transparent 60%);
}
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout-Hüllen ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap--wide { max-width: 1160px; }
.stack > * + * { margin-top: 18px; }
.section { padding: 34px 0; }

/* ---------- Kopf / Logomark ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__cap { flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.5vw, 30px);
  letter-spacing: 0.03em; line-height: 0.9; text-transform: uppercase;
}
.brand__name span { color: var(--gold); }
.brand__year { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 24px; }
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.28em; font-size: 12px; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 92px);
  line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em;
  margin: 14px 0 0;
}
.hero__title .accent { color: var(--gold); }
.hero__lead { color: var(--ink-dim); max-width: 46ch; margin-top: 14px; font-size: 17px; }
/* Flutlicht-Linie unter dem Titel */
.floodline { height: 4px; margin-top: 20px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- Karten / Scoreboard-Kacheln ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
}
.card__title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 22px; margin: 0 0 4px;
}
.label {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; color: var(--muted); display: block; margin-bottom: 7px;
}

/* ---------- Formulare ---------- */
input[type='text'], input[type='password'], input[type='number'], textarea {
  width: 100%; background: var(--elevated); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}
input::placeholder { color: var(--muted); }

.member-row { display: flex; gap: 10px; align-items: center; }
/* Trikotnummer wie auf einem Aufstellungsbogen */
.member-row .idx {
  flex: none; width: 44px; height: 46px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--gold);
  background: var(--elevated); border: 1px solid var(--line); border-radius: var(--radius);
}
.btn-icon {
  flex: none; width: 46px; height: 46px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--elevated); color: var(--ink-dim);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.btn-icon:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-icon:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Formular-Abschnitte (Mannschaftsbogen) ---------- */
.formsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.formsec + .formsec { margin-top: 16px; }
.formsec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.formsec__k {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px;
  color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.formsec__k::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.rostercount { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.rostercount b { color: var(--gold); font-weight: 700; }
.rostercount.over b { color: var(--danger); }
.input--lg { font-size: 18px; padding: 14px 16px; }
.helptext { font-size: 13px; color: var(--muted); margin: 8px 2px 0; }

/* ---------- Team-Foto-Uploader (Wappen) ---------- */
.crest { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.crest__slot {
  width: 84px; height: 84px; flex: none; border-radius: var(--radius-lg);
  border: 2px dashed var(--line); background: var(--elevated) center/cover no-repeat;
  display: grid; place-items: center; color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.crest:hover .crest__slot { border-color: var(--gold); color: var(--gold); }
.crest.has-image .crest__slot { border-style: solid; border-color: var(--gold-deep); }
.crest.has-image .crest__slot svg { display: none; }
.crest__slot svg { width: 30px; height: 30px; }
.crest__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.crest__title { font-weight: 500; }
.crest__hint { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crest__remove {
  align-self: flex-start; margin-top: 2px; background: none; border: none; cursor: pointer;
  color: var(--danger); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 2px 0;
}
.crest:not(.has-image) .crest__remove { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; font-size: 14px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .08s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: #1a1400; }
.btn--primary:hover { background: #ffc422; text-decoration: none; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--danger { background: var(--danger-wash); color: var(--danger); border-color: var(--danger); }
.btn--live { background: var(--live); color: #052414; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 12px; }

/* ---------- Captcha-Raster ---------- */
.captcha { --cols: 3; }
.captcha__grid {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 10px; margin-top: 10px;
}
.captcha__tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; border: 3px solid transparent;
  background: var(--elevated);
}
.captcha__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.captcha__tile input { position: absolute; opacity: 0; pointer-events: none; }
.captcha__tile.is-checked { border-color: var(--gold); }
.captcha__tile.is-checked::after {
  content: '✓'; position: absolute; top: 6px; right: 8px;
  font-family: var(--font-mono); font-weight: 700; color: #1a1400;
  background: var(--gold); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
}

/* ---------- Öffentliches Captcha im gängigen „Bild-Auswahl"-Stil ---------- */
.rc {
  --rc-blue: #1c76d2;
  width: 100%; max-width: 340px; background: #fff; color: #202124;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  font-family: 'Roboto', system-ui, Arial, sans-serif;
}
.rc__head { background: var(--rc-blue); color: #fff; padding: 13px 16px 15px; }
.rc__head-sub { font-size: 15px; line-height: 1.25; }
.rc__head-main { font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: 0.5px; }
.rc__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 4px; padding: 4px; background: #fff; }
.rc__tile {
  position: relative; aspect-ratio: 1 / 1; cursor: pointer; overflow: hidden; background: #e9eaed;
}
.rc__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1); }
.rc__tile input { position: absolute; opacity: 0; pointer-events: none; }
.rc__tile.is-checked img { transform: scale(0.58); }
/* Auswahl-Häkchen animiert rein (Scale + Fade) */
.rc__check {
  position: absolute; top: 7px; left: 7px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rc-blue); color: #fff; display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.12s;
}
.rc__tile.is-checked .rc__check { opacity: 1; transform: scale(1); }
.rc__check svg { width: 16px; height: 16px; }
.rc__msg { background: #fce8e6; color: #c5221f; font-size: 13px; padding: 9px 14px; font-family: 'Roboto', system-ui, Arial, sans-serif; }
.rc__msg[hidden] { display: none; }
.rc__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #fff; border-top: 1px solid #ececec;
}
.rc__icons { display: flex; gap: 8px; }
.rc__icons button {
  background: none; border: none; cursor: pointer; color: #5f6368; padding: 6px; line-height: 0;
  border-radius: 4px;
}
.rc__icons button:hover { color: var(--rc-blue); background: #f1f3f4; }
.rc__verify {
  background: var(--rc-blue); color: #fff; border: none; border-radius: 4px;
  padding: 9px 20px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.rc__verify:hover { background: #1868c0; }
.rc__note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
/* Captcha-Widget mittig setzen */
.captcha-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.captcha-wrap .rcbox { margin-inline: auto; }

/* reCAPTCHA-v2-artige „Ich bin kein Roboter"-Box (Vorstufe) */
.rcbox {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 320px;
  background: #f9f9f9; border: 1px solid #d3d3d3; border-radius: 3px; padding: 11px 13px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.08); cursor: pointer; color: #000;
  font-family: 'Roboto', system-ui, Arial, sans-serif;
}
.rcbox:hover { border-color: #b1b1b1; }
.rcbox__box { width: 28px; height: 28px; border: 2px solid #c1c1c1; border-radius: 2px; background: #fff; flex: none; position: relative; }
.rcbox__spin { position: absolute; inset: 1px; border: 3px solid #d6d6d6; border-top-color: var(--rc-blue); border-radius: 50%; display: none; }
.rcbox.is-loading .rcbox__box { border-color: transparent; background: transparent; }
.rcbox.is-loading .rcbox__spin { display: block; animation: rcspin 0.8s linear infinite; }
/* Grüner Haken: fixe Größe, per inset+margin exakt zentriert, kein Kasten dahinter */
.rcbox__tick { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; display: none; color: #1db954; }
.rcbox.is-done .rcbox__box { border-color: transparent; background: transparent; }
.rcbox.is-done .rcbox__tick { display: block; animation: rcpop 0.25s ease; }
.rcbox__label { flex: 1; font-size: 15px; color: #3c4043; }
.rcbox__brand { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.rcbox__logo { color: var(--rc-blue); }
.rcbox__name { font-size: 11px; font-weight: 700; color: #5f6368; letter-spacing: 0.2px; }
.rcbox__terms { font-size: 8px; color: #9aa0a6; }
@keyframes rcspin { to { transform: rotate(360deg); } }
@keyframes rcpop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* Challenge-Modal (wie das echte reCAPTCHA-Overlay) */
.rcmodal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.rcmodal[hidden] { display: none; }
.rcmodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.rcmodal .rc { position: relative; z-index: 1; animation: rcmodalin 0.18s ease; }
@keyframes rcmodalin { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Status-Badges ---------- */
.badge {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 11px; padding: 4px 9px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--ink-dim);
}
.badge--approved { color: var(--live); border-color: var(--live); }
.badge--pending { color: var(--gold); border-color: var(--gold-deep); }
.badge--rejected { color: var(--danger); border-color: var(--danger); }
.badge--live { color: #052414; background: var(--live); border-color: var(--live);
  animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------- Strichliste (Team-Zähler) ---------- */
.tally { display: inline-flex; gap: 3px; align-items: flex-end; height: 22px; }
.tally i { width: 3px; height: 20px; background: var(--gold); display: block; }
.tally i:nth-child(5n) { transform: rotate(24deg) translateX(-7px); background: var(--gold-deep); }

/* ---------- Meldungen ---------- */
.alert { border-radius: var(--radius); padding: 12px 16px; border: 1px solid var(--line); }
.alert--error { color: var(--danger); border-color: var(--danger); background: var(--danger-wash); }
.alert--ok { color: var(--live); border-color: var(--live); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* ---------- Tabellen (Admin) ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.data th {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 11px; color: var(--muted); font-weight: 400;
}
table.data tbody tr:hover { background: var(--gold-wash); }
.mono { font-family: var(--font-mono); }
.dim { color: var(--muted); }

/* ---------- Admin-Nav ---------- */
.adminnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.adminnav a {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-dim); padding: 8px 12px; border-radius: var(--radius); border: 1px solid transparent;
}
.adminnav a:hover { color: var(--gold); text-decoration: none; border-color: var(--line); }
.adminnav a.active { color: var(--gold); border-color: var(--gold-deep); background: var(--gold-wash); }

.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.stat__num { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.stat__num.gold { color: var(--gold); }
.stat__num.live { color: var(--live); }
.stat__lbl { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   Bracket (Double-Elimination) — Scoreboard-Kacheln + Gold-Connector
   ============================================================ */
.bracket-scroll { overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.bracket { display: flex; gap: 40px; min-width: min-content; padding: 8px 4px; }
.br-col { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; min-width: 210px; }
.br-round { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.match {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.match__side {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-left: 3px solid transparent;
}
.match__side + .match__side { border-top: 1px solid var(--line); }
.match__seed { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 20px; }
.match__name { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match__name.tbd { color: var(--muted); font-style: italic; }
/* Sieger leuchtet gold auf ("advance") */
.match__side.win { border-left-color: var(--gold); background: var(--gold-wash); }
.match__side.win .match__name { color: var(--gold); font-weight: 700; }
.match__side.win .match__seed { color: var(--gold-deep); }
.match.bracket-gf { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-wash); }
.match.done-live { animation: flash 0.9s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--live); } 100% { box-shadow: none; } }

.section-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 26px; margin: 26px 0 12px;
}
.champion {
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  background: var(--gold-wash); padding: 20px 24px; text-align: center;
}
.champion .who { font-family: var(--font-display); font-size: clamp(30px, 8vw, 56px); color: var(--gold); line-height: 0.9; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 24px 0 40px; }

/* ---------- Utilities ---------- */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.grow { flex: 1; }
.hide { display: none; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink-dim);
  border-radius: var(--radius); padding: 8px; cursor: pointer; display: inline-grid; place-items: center; line-height: 0; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle .ic-sun, .theme-toggle .ic-moon { display: none; }
:root[data-theme='light'] .theme-toggle .ic-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .ic-sun { display: block; }

/* Schwebender Umschalter für die Einzelseite (ohne Topbar) */
.theme-fab {
  position: fixed; top: 14px; right: 14px; z-index: 100;
  width: 38px; height: 38px; display: grid; place-items: center; line-height: 0;
  background: var(--surface); color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; box-shadow: var(--shadow);
}
.theme-fab:hover { color: var(--ink); border-color: var(--ink-dim); }
.theme-fab .ic-sun, .theme-fab .ic-moon { display: none; }
:root[data-theme='light'] .theme-fab .ic-moon { display: block; }
:root[data-theme='dark'] .theme-fab .ic-sun { display: block; }

@media (max-width: 560px) {
  .captcha__grid { gap: 7px; }
  .section { padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   SKIN „minimal" — schlicht & professionell (öffentliche Anmeldung)
   Hell, viel Weißraum, EIN dezenter Akzent, klare Sans-Typo.
   ============================================================ */
:root[data-skin='minimal'] { --radius: 8px; --radius-lg: 12px; }
/* Hell */
:root[data-skin='minimal'][data-theme='light'] {
  --pitch: #f7f7f5; --surface: #ffffff; --elevated: #ffffff;
  --line: #e5e4e0; --ink: #1a1a18; --ink-dim: #55554f; --muted: #8d8d85;
  --gold: #b45309; --gold-deep: #92400e; --gold-wash: rgba(180, 83, 9, 0.10);
  --danger: #b42318; --danger-wash: rgba(180, 35, 24, 0.08);
  --shadow: 0 1px 2px rgba(24, 24, 20, 0.04), 0 10px 30px -20px rgba(24, 24, 20, 0.18);
}
/* Dunkel */
:root[data-skin='minimal'][data-theme='dark'] {
  --pitch: #121214; --surface: #1a1a1d; --elevated: #202024;
  --line: #2d2d33; --ink: #f0f0ea; --ink-dim: #a4a4ac; --muted: #74747d;
  --gold: #e0a13a; --gold-deep: #b9791f; --gold-wash: rgba(224, 161, 58, 0.14);
  --danger: #f2726a; --danger-wash: rgba(242, 114, 106, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -22px rgba(0, 0, 0, 0.7);
}
:root[data-skin='minimal'] body { background-image: none; background-color: var(--pitch); }

/* Header: schlichte Sticky-Bar, einfarbiges Wortmark, dezenter Marker */
[data-skin='minimal'] .topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--pitch); border-bottom: 1px solid var(--line); padding: 13px 20px;
}
[data-skin='minimal'] .brand { color: var(--ink); gap: 9px; }
[data-skin='minimal'] .brand:hover { text-decoration: none; }
[data-skin='minimal'] .brand__cap { width: 22px; height: 22px; }
[data-skin='minimal'] .brand__name {
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  letter-spacing: 0.02em; text-transform: none; color: var(--ink);
}
[data-skin='minimal'] .brand__name span { color: var(--ink); }
[data-skin='minimal'] .brand__year { color: var(--muted); }

/* Kopfbereich: schlicht, Sans, Satzschreibung, kein Rahmen/keine Regel */
[data-skin='minimal'] .hero { padding: 48px 0 22px; }
[data-skin='minimal'] .eyebrow {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
[data-skin='minimal'] .eyebrow::before { display: none; }
[data-skin='minimal'] .hero__title {
  font-family: var(--font-body); font-weight: 700; text-transform: none;
  font-size: clamp(30px, 5vw, 42px); line-height: 1.08; letter-spacing: -0.025em;
  color: var(--ink); margin: 10px 0 0;
}
[data-skin='minimal'] .hero__lead { color: var(--ink-dim); font-size: 16px; line-height: 1.6; max-width: 52ch; margin-top: 12px; }

/* Formularabschnitte: ruhige Karten mit Hairline-Trenner */
[data-skin='minimal'] .formsec { padding: 22px 22px 24px; box-shadow: var(--shadow); }
[data-skin='minimal'] .formsec + .formsec { margin-top: 14px; }
[data-skin='minimal'] .formsec__head {
  align-items: center; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
[data-skin='minimal'] .formsec__k {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
[data-skin='minimal'] .formsec__k::before { display: none; }
[data-skin='minimal'] .helptext { color: var(--muted); }

/* Eingaben: clean, dezenter Fokus-Ring im Akzent */
[data-skin='minimal'] input[type='text'], [data-skin='minimal'] input[type='password'], [data-skin='minimal'] textarea {
  background: var(--elevated); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; padding: 11px 13px;
}
[data-skin='minimal'] .input--lg { font-size: 16px; padding: 12px 14px; }
[data-skin='minimal'] input:focus, [data-skin='minimal'] textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash);
}
/* Mitglieder: schlichte Laufnummer statt Trikot-Plakette */
[data-skin='minimal'] .member-row .idx {
  width: 22px; height: auto; min-width: 22px; background: none; border: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); text-align: center;
}
[data-skin='minimal'] .btn-icon {
  width: 40px; height: 40px; background: var(--elevated); border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius);
}
[data-skin='minimal'] .btn-icon:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }

/* Buttons: Satzschreibung, dunkler Primär-Button (clean/professionell) */
[data-skin='minimal'] .btn {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; border-radius: var(--radius);
}
[data-skin='minimal'] .btn--primary { background: var(--ink); color: var(--surface); }
[data-skin='minimal'] .btn--primary:hover { opacity: 0.88; }
[data-skin='minimal'] .btn--ghost { border-color: var(--line); color: var(--ink); }
[data-skin='minimal'] .btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
[data-skin='minimal'] .rostercount { color: var(--muted); font-family: var(--font-body); }
[data-skin='minimal'] .rostercount b { color: var(--ink); }
[data-skin='minimal'] .rc__note { color: var(--muted); }
[data-skin='minimal'] .footer { border-top-color: var(--line); }
/* Turnierstart auf der Bestätigungsseite — schlichte Zeile, kein Kasten */
[data-skin='minimal'] .startline {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
}
[data-skin='minimal'] .startline__label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
[data-skin='minimal'] .startline__value { font-size: 17px; color: var(--ink); }
