/*
 * Vereinsbewertung – Gestaltung nach dem PlanetZero-Designsystem (planet-zero-rebrand):
 * Papier-Grau, weiße Flächen, Tinte; Teal nur als Marke; eine Schrift (Chillax);
 * Hierarchie über Größe, Gewicht und Laufweite; Dark Mode in Schieferblau.
 */

@font-face { font-family: "Chillax"; src: url("../fonts/chillax-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("../fonts/chillax-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("../fonts/chillax-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ── Tokens (aus shared/tokens.css der Referenz) ─────────────────────────── */
:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --ink: #0b0e13;
  --ink-2: rgba(11, 14, 19, 0.62);
  --ink-3: rgba(11, 14, 19, 0.38);
  --line: rgba(11, 14, 19, 0.12);
  --line-strong: rgba(11, 14, 19, 0.24);
  --teal: #1fa899;
  --teal-soft: #dcf2ee;
  --bad: #c2462c;
  --bad-soft: #fbe9e4;
  --head-bg: rgba(244, 244, 241, 0.82);
  --font: "Chillax", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --radius: 24px;
  --radius-sm: 14px;
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fs-h1: clamp(2.2rem, 6.4vw, 4.4rem);
  --fs-h2: clamp(1.6rem, 3.6vw, 2.4rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.2rem);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141a22;
  --surface: #1c2430;
  --ink: #e9edf1;
  --ink-2: rgba(233, 237, 241, 0.66);
  --ink-3: rgba(233, 237, 241, 0.42);
  --line: rgba(233, 237, 241, 0.11);
  --line-strong: rgba(233, 237, 241, 0.26);
  --teal-soft: #13312f;
  --bad: #ff8a6e;
  --bad-soft: #3a2420;
  --head-bg: rgba(20, 26, 34, 0.82);
  color-scheme: dark;
}

/* ── Reset & Typo ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100svh;
  display: flex; flex-direction: column;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.05em; line-height: 0.95; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.soft { color: var(--ink-3); }
.muted { color: var(--ink-2); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.mono { font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; }
.small { font-size: 0.88rem; }
.prose p + p { margin-top: 0.7rem; }
.prose { white-space: pre-line; }
.num { font-variant-numeric: tabular-nums; }

/* ── Kopfzeile ───────────────────────────────────────────────────────────── */
.head {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gut); background: var(--head-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.head .logo { height: 30px; width: auto; color: var(--ink); }
.head .logo .z { fill: var(--teal); }
.head-right { display: flex; align-items: center; gap: 0.5rem; }
.head-title { color: var(--ink-2); }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s ease; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }
@media (hover: hover) { .theme-btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.35rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
}
.btn .arr { transition: transform 0.55s var(--ease); }
@media (hover: hover) {
  .btn:hover { background: var(--bg); color: var(--ink); }
  .btn:hover .arr { transform: translateX(4px); }
  .btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); }
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-sm { min-height: 38px; padding: 0.45rem 0.95rem; font-size: 0.86rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--bad); color: #fff; box-shadow: inset 0 0 0 1px var(--bad); }
@media (hover: hover) { .btn-danger:hover { background: transparent; color: var(--bad); } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
/* Textaktion in eckigen Klammern wie in der Referenz (.br-btn). */
.link-btn { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 40px; padding: 0 0.25rem; color: var(--ink-2); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; }
.link-btn::before { content: "["; color: var(--ink-3); transition: transform 0.4s var(--ease); }
.link-btn::after { content: "]"; color: var(--ink-3); transition: transform 0.4s var(--ease); }
@media (hover: hover) { .link-btn:hover { color: var(--ink); } .link-btn:hover::before { transform: translateX(-3px); } .link-btn:hover::after { transform: translateX(3px); } }
.link-danger { color: var(--bad); }
.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.row-end { justify-content: flex-end; }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }

/* ── Formulare (Referenz: große unterstrichene Felder, Versal-Labels) ────── */
.field { display: grid; gap: 0.35rem; }
.field + .field, .field + .check, .check + .field, .check + .check { margin-top: 1.1rem; }
.field > label, .field > .label { color: var(--ink-2); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; }
.field input[type="text"], .field input[type="password"], .field input[type="number"], .field input[type="search"], .field textarea, .field select, .input {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 0.5rem 0 0.65rem; font-size: 1.1rem; letter-spacing: -0.01em; outline: none;
  transition: border-color 0.3s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 1.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--surface); color: var(--ink); }
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field .hint { color: var(--ink-3); font-size: 0.84rem; }
.field.bad input, .field.bad textarea { border-bottom-color: var(--bad); }
.code-input { font-size: clamp(1.5rem, 6vw, 2rem) !important; letter-spacing: 0.12em !important; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; cursor: pointer; }
.check input, .cb {
  appearance: none; -webkit-appearance: none; width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; flex: none;
  border: 1px solid var(--ink-3); border-radius: 4px; background: transparent; display: inline-grid; place-items: center; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.check input::after, .cb::after { content: ""; width: 0.34rem; height: 0.64rem; border: solid var(--bg); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg) scale(0); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.check input:checked, .cb:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after, .cb:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.check input[type="radio"] { border-radius: 50%; }
.check input:disabled, .cb:disabled { opacity: 0.4; cursor: not-allowed; }
.check strong { color: var(--ink); font-weight: 500; }

/* Segmentauswahl (z. B. Zugangsmodus, Skala) – kompakte Umschalter im Seitendesign. */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0.5rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.92rem; transition: background 0.25s ease, color 0.25s ease; }
.seg input:checked + span { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Meldungen ───────────────────────────────────────────────────────────── */
.msg { border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; font-size: 0.95rem; line-height: 1.45; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.msg + .msg { margin-top: 0.5rem; }
.msg-ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 45%, transparent); background: var(--teal-soft); }
.msg-error { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); color: var(--ink); }
.msg ul { margin: 0.4rem 0 0 1.1rem; }
.flashes { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }

/* ── Flächen ─────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 1px 0 var(--line); }
.card + .card { margin-top: 1rem; }
.card h2 { font-size: 1.45rem; letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.card .card-sub { color: var(--ink-2); margin: -0.4rem 0 1.1rem; font-size: 0.95rem; }
.danger-zone { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
.sec-index { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--ink); padding-top: 0.7rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.3rem; }

/* ── Öffentliche Seiten ──────────────────────────────────────────────────── */
.pub { width: 100%; max-width: 36rem; margin: 0 auto; padding: clamp(1.75rem, 6vh, 3.5rem) var(--gut) 3rem; flex: 1; }
.pub-hero h1 { margin-bottom: 1rem; }
.pub-hero .lead { margin-bottom: 2rem; }
.pub-form { display: grid; gap: 1.25rem; }
.privacy { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; color: var(--ink-2); font-size: 0.9rem; }
.privacy ul { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.6rem; }
.privacy li { display: grid; grid-template-columns: 1rem 1fr; }
.privacy li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--teal); }
.disclosure { margin-top: 1.5rem; }
.disclosure summary { cursor: pointer; color: var(--ink-2); list-style: none; min-height: 44px; display: flex; align-items: center; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure[open] summary { margin-bottom: 0.75rem; }
.foot { padding: 1.5rem var(--gut) calc(1.5rem + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; }
.foot a { color: inherit; }

/* Fortschritt: einfarbig in Tinte, keine Verläufe (Referenz: Scrollleiste). */
.progress { display: grid; gap: 0.45rem; margin-bottom: 1.75rem; }
.progress-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width 0.8s var(--ease); }
.bar-teal > i { background: var(--teal); }

/* Bewertungsseite */
.rate-head { margin-bottom: 1.75rem; }
.player-name { font-size: clamp(2.1rem, 9vw, 3.4rem); letter-spacing: -0.05em; line-height: 0.98; overflow-wrap: anywhere; }
.crit { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--line); }
.crit:last-of-type { border-bottom: 1px solid var(--line); }
.crit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.crit-name { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.015em; }
.crit-desc { color: var(--ink-3); font-size: 0.86rem; margin: -0.45rem 0 0.7rem; }
.crit-state { color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.crit.is-set .crit-state { color: var(--ink-2); }
.crit.is-missing .crit-state { color: var(--bad); }
.scale { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 0.4rem; border: 0; }
.scale-10 { --n: 5; }
.scale label { position: relative; display: block; cursor: pointer; }
.scale input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.scale span {
  display: grid; place-items: center; height: 52px; border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 1.12rem; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.scale label:active span { transform: scale(0.96); }
.scale input:checked + span { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.scale input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.scale .na span { color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.scale .na input:checked + span { background: var(--ink-2); color: var(--bg); box-shadow: inset 0 0 0 1px transparent; }
@media (hover: hover) { .scale label:hover span { box-shadow: inset 0 0 0 1px var(--ink-3); } .scale input:checked + span { box-shadow: inset 0 0 0 1px var(--ink); } }
/* 1–10: 5 Spalten in zwei Reihen, „–“ über die volle Breite – bleibt am Handy gut treffbar. */
.scale-10 .na { grid-column: 1 / -1; }
.scale-10 .na span { height: 44px; }
@media (min-width: 640px) { .scale-10 { --n: 11; } .scale-10 .na { grid-column: auto; } .scale-10 .na span { height: 52px; } }
.quote-field { margin-top: 1.75rem; }
.quote-field textarea { font-size: 1.1rem; }
.counter { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-3); font-size: 0.84rem; }
.counter.over { color: var(--bad); }
.quick-na { margin-top: 0.75rem; }

/* Aktionen unten: am Handy fest am unteren Rand → mit dem Daumen erreichbar. */
.actions {
  position: sticky; bottom: 0; z-index: 20; margin: 1.75rem calc(-1 * var(--gut)) 0;
  padding: 0.85rem var(--gut) calc(0.85rem + env(safe-area-inset-bottom));
  background: var(--head-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 0.6rem;
}
.actions .btn { min-height: 54px; }
.after-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.75rem; }
.save-state { min-height: 1.2em; text-align: center; color: var(--ink-3); font-size: 0.8rem; margin-top: 0.4rem; }

/* Übersichtsliste der Spieler */
.plist { list-style: none; border-top: 1px solid var(--line); }
.plist li { border-bottom: 1px solid var(--line); }
.plist a { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.55rem 0; text-decoration: none; }
.plist .n { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.plist .nm { font-weight: 500; overflow-wrap: anywhere; }
.state { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--ink-3); display: inline-flex; align-items: center; gap: 0.45rem; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.state-rated, .state-completed { color: var(--ink); }
.state-rated::before, .state-completed::before { background: var(--teal); opacity: 1; }
.state-skipped, .state-locked { color: var(--ink-2); }
.state-skipped::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.state-in_progress { color: var(--ink); }
.state-locked::before { border-radius: 2px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.stat { background: var(--surface); border-radius: var(--radius-sm); padding: 0.9rem 1rem; box-shadow: 0 1px 0 var(--line); }
.stat b { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 0.86rem; }
.stat small { display: block; color: var(--ink-3); font-size: 0.78rem; margin-top: 0.2rem; }

/* ── Admin ───────────────────────────────────────────────────────────────── */
.adm { width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.5rem var(--gut) 4rem; flex: 1; }
.adm-nav { position: sticky; top: var(--header-h); z-index: 25; background: var(--head-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.adm-nav ul { list-style: none; display: flex; gap: 0.15rem; overflow-x: auto; scrollbar-width: none; max-width: 1240px; margin: 0 auto; padding: 0 calc(var(--gut) - 0.6rem); }
.adm-nav ul::-webkit-scrollbar { display: none; }
.adm-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 0.6rem; white-space: nowrap; text-decoration: none; color: var(--ink-3); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; box-shadow: inset 0 -2px 0 transparent; transition: color 0.3s ease, box-shadow 0.3s ease; }
.adm-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
@media (hover: hover) { .adm-nav a:hover { color: var(--ink); } }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin: 1rem 0 1.75rem; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.045em; }
.page-head p { color: var(--ink-2); max-width: 40rem; margin-top: 0.6rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .grid-2 > .card + .card { margin-top: 0; } }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi-group + .kpi-group { margin-top: 2rem; }
.kpi-group h2 { font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); margin-bottom: 0.75rem; }
.meter { display: grid; gap: 0.35rem; margin-top: 0.9rem; }
.meter-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--ink-2); }
.status-line { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.status-line b { font-weight: 500; }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * clamp(1.2rem, 3vw, 2rem)); padding: 0 clamp(1.2rem, 3vw, 2rem); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { text-align: left; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
th a { text-decoration: none; display: inline-flex; gap: 0.3rem; align-items: center; }
th a[aria-sort] { color: var(--ink); }
td { padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.r, th.r { text-align: right; }
td.na { color: var(--ink-3); font-size: 0.8rem; white-space: nowrap; }
td .sub { display: block; color: var(--ink-3); font-size: 0.78rem; }
tr.is-off td { color: var(--ink-3); }
.cell-actions { display: flex; gap: 0.15rem; justify-content: flex-end; flex-wrap: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.toolbar .field { min-width: 10rem; flex: 1 1 10rem; margin: 0 !important; }
.toolbar .field input, .toolbar .field select { font-size: 0.98rem; }
.bulkbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
.inline-form .field { flex: 1 1 12rem; margin: 0 !important; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .icon-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); } }
.icon-btn[disabled] { opacity: 0.3; pointer-events: none; }
.tag { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tag-strong { color: var(--ink); }
.crit-list { list-style: none; display: grid; gap: 0.1rem; }
.crit-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.checks { display: grid; gap: 0.6rem; }
@media (min-width: 700px) { .checks-2 { grid-template-columns: 1fr 1fr; } }
.check-src { color: var(--ink-3); font-size: 0.8rem; }

/* Balken der Spielerdetails */
.bars { display: grid; gap: 0.9rem; }
.bars-row { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr auto; gap: 0.5rem 1rem; align-items: center; }
.bars-row .bar { height: 10px; border-radius: 6px; }
.bars-row .val { font-variant-numeric: tabular-nums; font-weight: 500; min-width: 3.2rem; text-align: right; }
.bars-row .cnt { grid-column: 1 / -1; margin-top: -0.6rem; color: var(--ink-3); font-size: 0.8rem; }
@media (min-width: 700px) { .bars-row { grid-template-columns: 12rem 1fr 3.5rem 7rem; } .bars-row .cnt { grid-column: auto; margin: 0; text-align: right; } }

/* Sprüche */
.quotes { list-style: none; display: grid; gap: 0.5rem; }
.quote { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; padding: 0.85rem 1rem; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.quote.is-selected { box-shadow: inset 0 0 0 1.5px var(--ink); }
.quote.is-hidden { opacity: 0.55; }
.quote-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; }
.quote-tools { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; margin-top: -0.2rem; }
.selected-quote { font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Generierte Codes / Druckansicht */
.code-sheet { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.code-card { border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 1rem 1.1rem; background: var(--surface); break-inside: avoid; }
.code-card .ref { color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.07em; }
.code-card .code { font-size: 1.45rem; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; margin: 0.2rem 0; user-select: all; }
.code-card .url { color: var(--ink-2); font-size: 0.82rem; overflow-wrap: anywhere; }
.qr-box { background: #fff; border-radius: var(--radius-sm); padding: 0.75rem; display: inline-block; box-shadow: inset 0 0 0 1px var(--line); }
.qr-box svg { width: 200px; height: auto; }
.print-only { display: none; }

/* Anmeldung */
.auth { width: 100%; max-width: 26rem; margin: 0 auto; padding: clamp(2rem, 10vh, 6rem) var(--gut) 3rem; flex: 1; }
.auth h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); margin-bottom: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --ink-2: #333; --ink-3: #666; --line: #ccc; --line-strong: #999; }
  body { background: #fff; font-size: 11pt; }
  .head, .adm-nav, .no-print, .flashes, .foot { display: none !important; }
  .print-only { display: block; }
  .adm { padding: 0; max-width: none; }
  .card { box-shadow: none; padding: 0; }
  .code-sheet { grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .code-card { box-shadow: none; border: 1px dashed #999; }
}
.mt { margin-top: 1.25rem; }
.mt-lg { margin-top: 2rem; }
.preview-pane { padding: 0.5rem 0 0; margin: 0 auto; }
fieldset { border: 0; min-width: 0; }
fieldset[disabled] { opacity: 0.65; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; color: var(--ink-2); }
.qr-print { text-align: center; }
.qr-print .qr-box svg { width: 260px; }
.nowrap { white-space: nowrap; }
.hint-box { margin-bottom: 1.5rem; }
.pub > .lead.prose { margin-bottom: 1.75rem; }

/* Kartenwerte: 10 Segmente wie auf der Spielerkarte, im Seitendesign (Tinte statt Akzentfarbe). */
.score { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.segbar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; padding: 0 3px; }
.segbar i { display: block; height: 12px; border-radius: 2px; background: var(--line); transform: skewX(-18deg); overflow: hidden; }
.segbar b { display: block; height: 100%; width: 0; background: var(--ink); }
.crit-label { color: var(--ink); }
.scale-info { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.scale-info + .privacy { margin-top: 1.5rem; }
.mt-sm { margin-top: 0.6rem; }
.scale-help { margin: -0.5rem 0 1rem; }
.scale-help[open] .msg { margin-bottom: 0.5rem; }
.hint-box p + p { margin-top: 0.6rem; }
@media (min-width: 700px) {
  .bars-row { grid-template-columns: 9.5rem 1fr 3rem; }
  .bars-row .cnt { grid-column: 2 / -1; margin-top: -0.55rem; text-align: left; }
}
.bars-row .val { font-size: 1.1rem; font-weight: 600; }

/* Logo: Bahn und Buchstaben ragen über die viewBox hinaus (wie auf planet-zero.tech) – nicht abschneiden. */
.head .logo { overflow: visible; }
/* Öffentlicher Titel passt immer in die Lesespalte. */
.pub h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); overflow-wrap: anywhere; }
.pub .player-name { font-size: clamp(2.1rem, 9vw, 3.4rem); }
/* Schmale Handys: Rundentitel in der Kopfzeile ausblenden, damit Admin und Farbschema Platz haben. */
@media (max-width: 480px) { .head-title { display: none; } }
/* Desktop: Kopfbereich, Begrüßung und Karten mittig (wie die kompakte Fassung der Website), Listen bleiben linksbündig. */
@media (min-width: 700px) {
  .pub-hero, .pub > .lead.prose, .pub-hero .lead { text-align: center; margin-inline: auto; }
  .pub > .card, .pub > .msg, .pub > .pub-form, .pub > .disclosure { max-width: 30rem; margin-inline: auto; }
  .pub > .card { text-align: center; }
  .pub > .card .row { justify-content: center; }
  .pub > .disclosure summary { justify-content: center; }
  .pub > .pub-form .field { text-align: left; }
  .pub .code-input { text-align: center; }
  .scale-info, .privacy { max-width: 30rem; margin-inline: auto; }
}
.pub-hero { margin-bottom: 1.75rem; }
