/* Design: ruhige Analyse-Optik auf warmem Papier (siehe docs/DESIGN.md).
   Stone-Neutraltöne plus genau ein Akzent (Cyan). */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --bg: #fafaf9;          /* Stone Canvas: Seitenhintergrund */
  --surface: #ffffff;     /* Karten */
  --surface-2: #fafaf9;   /* Flächen innerhalb von Karten */
  --ink: #0c0a09;         /* Überschriften, starker Text */
  --body: #44403c;        /* Fließtext */
  --muted: #78716c;       /* Sekundärtext */
  --faint: #a8a29e;       /* Hilfstext, Icons */
  --line: #e8e6e5;        /* Haarlinien: das wichtigste Strukturelement */
  --line-strong: #d6d3d1; /* Eingabefelder, Trenner */
  --line-soft: #f0eeed;
  --soot: #1c1917;        /* dunkle Flächen: aktive Tabs, Badges, Toast */
  --on-soot: #ffffff;
  --accent: #3ba6f1;      /* Cyan Signal: einzige Farbe, nur für Aktionen */
  --accent-edge: #3398e1;
  --accent-ink: #ffffff;
  --accent-text: #1f6fae; /* Cyan dunkler, damit kleiner Text auf Weiß lesbar bleibt */
  --wash: #c1e1f7;        /* Sky Wash: Hervorhebung */
  --danger: #b42318;      /* nur für Fehler und Löschen */

  /* Schrift */
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Formen */
  --radius-card: 10px;
  --radius-feature: 16px;
  --radius-input: 6px;
  --radius-icon: 4px;
  --radius-pill: 9999px;

  /* Schatten */
  --shadow-md: 0 4px 16px 0 rgb(0 0 0 / .05);
  --shadow-subtle: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-xl: 0 12px 45px 0 rgb(17 12 46 / .12);

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --surface: #1c1917;
    --surface-2: #151312;
    --ink: #fafaf9;
    --body: #d6d3d1;
    --muted: #a8a29e;
    --faint: #78716c;
    --line: #2e2a27;
    --line-strong: #44403c;
    --line-soft: #262220;
    --soot: #fafaf9;
    --on-soot: #0c0a09;
    --accent: #3ba6f1;
    --accent-edge: #3398e1;
    --accent-ink: #ffffff;
    --accent-text: #7cc4f5;
    --wash: #173a55;
    --danger: #f97066;
    --shadow-md: 0 4px 16px 0 rgb(0 0 0 / .3);
    --shadow-xl: 0 12px 45px 0 rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.64;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); line-height: 1.25; letter-spacing: -.02em; }
strong { color: var(--ink); font-weight: 500; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent-text); }
code { font-size: .92em; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-icon); padding: 0 4px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.muted-light { color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kopfzeile: hell, nur eine Haarlinie nach unten */
.topbar { background: rgb(from var(--bg) r g b / .85); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); color: var(--ink); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); position: sticky; top: 0; z-index: 5; }
@supports not (color: rgb(from red r g b)) { .topbar { background: var(--bg); } }
.topbar__inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { border-radius: 8px; }
.brand > span { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.22; letter-spacing: -.017em; }
.brand__meta { font-size: 12px; line-height: 1.53; color: var(--muted); }
.topbar__actions { display: flex; align-items: center; gap: 12px; }

/* Buttons: Pillen. Cyan gefüllt nur für die Hauptaktion. */
.btn { min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); box-shadow: var(--shadow-subtle); }
.btn--primary:hover { background: var(--accent-edge); }
.btn--outline { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 400; box-shadow: var(--shadow-subtle); }
.btn--outline:hover { border-color: var(--line-strong); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy svg { animation: none; } }
.link-btn { background: none; border: 0; color: var(--muted); font-weight: 400; min-height: 44px; padding: 0 4px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn--danger, .icon-btn--danger:hover { color: var(--danger); }

/* Layout */
.layout { max-width: 1200px; margin: 0 auto; padding: 32px 16px calc(64px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sidebar { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.detail { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.section-head h2 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.005em; }

/* Spielerkarten */
.player-list { display: flex; flex-direction: column; gap: 8px; }
.player { display: flex; gap: 8px; align-items: stretch; }
.player__card { flex: 1; min-width: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.player__card:hover { border-color: var(--line-strong); }
.player__card[aria-current="true"] { border-color: var(--accent-edge); box-shadow: 0 0 0 1px var(--accent-edge), var(--shadow-md); }
.player__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.player__name { font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.player__id { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player__error { font-size: 13px; color: var(--danger); margin-top: 6px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; }
.chip__code { font-size: 10px; line-height: 1.6; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.chip__points { font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 400; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chip__rank { font-size: 12px; color: var(--muted); }
.player__tools { display: grid; grid-template-columns: repeat(2, 40px); gap: 6px; align-content: start; }

/* Hinzufügen */
.add-form { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); background: var(--surface); }
.add-form label { font-weight: 500; color: var(--ink); }
.add-form__row { display: flex; gap: 8px; }
.add-form input, dialog input { flex: 1; min-width: 0; min-height: 40px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-input); background: var(--surface); color: var(--ink); }
.add-form input::placeholder, dialog input::placeholder { color: var(--faint); }
.add-form input:focus, dialog input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.candidates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.candidates button { width: 100%; min-height: 44px; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; text-align: left; }
.candidates button:hover { border-color: var(--line-strong); background: var(--surface); }

/* Detail */
/* Gleiche Höhe wie „Meine Spieler“, damit Überschriften und erste Karten beider Spalten auf einer Linie liegen */
.detail__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; min-height: 44px; margin-bottom: -12px; }
.detail__head h1 { margin: 0; font-size: 28px; line-height: 44px; letter-spacing: -.02em; }
.detail__id { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.back-btn { display: none; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.star { width: 13px; height: 13px; fill: var(--ink); stroke: none; }
.disc { --pad: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-feature); overflow: hidden; box-shadow: var(--shadow-md); }
.disc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px var(--pad); }
.disc__title { display: flex; align-items: center; gap: 12px; }
.disc__title h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.005em; }
.badge { font-weight: 500; font-size: 12px; letter-spacing: .04em; color: var(--on-soot); background: var(--soot); border-radius: var(--radius-pill); padding: 3px 10px; }
.stats { display: flex; gap: 32px; }
.stat { text-align: right; }
.stat__label { font-size: 12px; color: var(--muted); }
.stat__value { font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 400; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* Signatur-Hervorhebung: ein Wert pro Karte bekommt die cyanfarbene Pille */
.stat__value--accent { color: var(--accent-text); background: var(--wash); border-radius: 6px; padding: 0 8px; margin-right: -8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 8px; }
td { padding: 10px 8px; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--ink); }
th:first-child, td:first-child { padding-left: var(--pad, 24px); }
th:last-child, td:last-child { padding-right: var(--pad, 24px); }
.results td:first-child, .results th:first-child { width: 34px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.is-dropped td { color: var(--faint); }
td .event { font-size: 12px; color: var(--muted); }
td a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
td a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.disc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px var(--pad); background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); padding: 24px; color: var(--muted); }
.empty--access p { margin: 0 0 12px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--soot); color: var(--on-soot); padding: 10px 18px; border-radius: var(--radius-pill); max-width: calc(100% - 32px); z-index: 10; box-shadow: var(--shadow-xl); }
dialog { border: 1px solid var(--line); border-radius: var(--radius-feature); background: var(--surface); color: var(--body); max-width: min(420px, calc(100% - 32px)); padding: 24px; box-shadow: var(--shadow-xl); }
dialog::backdrop { background: rgb(12 10 9 / .35); }
dialog h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
dialog p { margin: 0 0 8px; }
dialog label { font-weight: 500; color: var(--ink); }
dialog form { display: flex; flex-direction: column; gap: 10px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* Kategorie-Etikett je Ergebnis */
.cat { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 11px; line-height: 18px; white-space: nowrap; }

/* Tabs je Disziplin: Ergebnisse, Verlauf, Punkte sammeln. Immer nur ein Bereich sichtbar. */
.tabs { display: flex; gap: 24px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 500; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }

.panel { display: flex; flex-direction: column; gap: 20px; padding: 20px var(--pad) var(--pad); }
.panel .table-wrap { margin: 0 calc(-1 * var(--pad)); }
.panel--note { color: var(--muted); font-size: 13px; }
.note { margin: 0; font-size: 12px; color: var(--muted); }
.gain { color: var(--accent-text); font-weight: 500; }

/* Aufklapper für Nebensächliches (Tabelle, Erklärung) */
.more { font-size: 13px; color: var(--muted); }
.more summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--muted); list-style: none; }
.more summary:hover { color: var(--ink); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '›'; display: inline-block; width: 12px; transition: transform .15s; }
.more[open] summary::before { transform: rotate(90deg); }
.more ul { margin: 4px 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.more .table-wrap { margin-top: 8px; }

/* Verlauf: drei Kennzahlen über dem Diagramm */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.kpi__label, .kpi__sub { font-size: 12px; color: var(--muted); }
.kpi__value { font-family: var(--font-display); font-size: 22px; line-height: 1.3; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Punkte sammeln: Ziel, Filter, Ebenen */
.goal__label { font-size: 13px; color: var(--muted); }
.goal__value { font-family: var(--font-display); font-size: 28px; line-height: 1.2; color: var(--ink); letter-spacing: -.02em; }
.goal__text { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .seg { flex-wrap: wrap; }
.filters .seg button, .pill-select select { min-height: 36px; font-size: 13px; }
/* Altersklasse: Auswahlfeld in Pillenform, passend zu den Umschaltern daneben */
.pill-select { position: relative; display: inline-flex; }
.pill-select select { appearance: none; -webkit-appearance: none; padding: 0 30px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; }
.pill-select select:hover { border-color: var(--faint); }
.pill-select::after { content: ''; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.pill-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.levels { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0 calc(-1 * var(--pad)); }
.level { border-bottom: 1px solid var(--line-soft); }
.level.is-open { background: var(--surface-2); }
.level__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 112px 84px; gap: 16px; align-items: center; width: 100%; padding: 12px var(--pad); border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; }
.level__row:hover { background: var(--surface-2); }
.level__code { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: -.02em; }
.level__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.level__name { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.strip__cell { height: 18px; border-radius: 4px; background: var(--line-soft); }
.strip__cell.s1 { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.strip__cell.s2 { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.strip__cell.s3 { background: color-mix(in srgb, var(--accent) 70%, var(--surface)); }
.strip__cell.s4 { background: var(--accent); }
.strip__cell.is-need { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent-edge); }
.level.is-open .strip__cell.is-need { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 3px var(--accent-edge); }
.level__row--head { padding-top: 8px; padding-bottom: 0; cursor: default; font-size: 11px; color: var(--faint); }
.level__row--head:hover { background: none; }
.level__row--head .strip span { text-align: center; font-variant-numeric: tabular-nums; }
.level__need, .level__max { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
.level__label { font-size: 11px; color: var(--muted); }
.level__table { margin: 0 !important; padding-bottom: 8px; }
.level__table th, .level__table td { border-top-color: var(--line); }
.levels__none { margin: 0; padding: 12px var(--pad); font-size: 13px; color: var(--muted); }

/* Umschalter als Tab-Pillen: aktiv dunkel gefüllt, inaktiv mit Haarlinie */
.seg { display: inline-flex; align-self: flex-start; gap: 6px; }
.seg button { min-height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-weight: 400; font-size: 13px; cursor: pointer; }
.seg button:hover { border-color: var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--soot); border-color: var(--soot); color: var(--on-soot); }

.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; width: 100%; height: 180px; stroke: none; }
.chart__grid { stroke: var(--line-soft); stroke-width: 1; }
.chart__axis { stroke: none; fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart__cross { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart__tip { position: absolute; top: -6px; transform: translateY(-100%); pointer-events: none; background: var(--soot); color: var(--on-soot); border-radius: 8px; padding: 6px 10px; font-size: 12px; line-height: 1.4; white-space: nowrap; z-index: 2; box-shadow: var(--shadow-md); }
.chart__tip-date { opacity: .7; }
/* Auf dunklen Flächen erbt Fettgedrucktes die helle Schrift statt --ink */
.chart__tip strong, .toast strong { color: inherit; font-weight: 600; }
.backfill { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.backfill p { margin: 0; font-size: 13px; }

/* Smartphone: Liste und Detail als getrennte Ansichten */
@media (max-width: 760px) {
  .topbar__inner { padding: 10px 16px; flex-wrap: nowrap; }
  .brand__changed { display: none; }
  .brand img { width: 30px; height: 30px; }
  .brand__name { font-size: 17px; }
  .topbar #updatedAt { display: none; }
  .btn--primary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .btn--primary { padding: 0 12px; }
  .layout { padding-top: 20px; gap: 24px; }
  .layout.show-detail .sidebar { display: none; }
  .layout:not(.show-detail) .detail { display: none; }
  .back-btn { display: inline-flex; align-self: flex-start; margin: 0 0 -20px -4px; }
  .disc { --pad: 16px; }
  .disc__head { padding: 16px var(--pad); }
  .stats { gap: 20px; }
  .level__row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: 'code main main' 'code need max'; gap: 8px 12px; }
  .level__code { grid-area: code; }
  .level__main { grid-area: main; }
  .level__need { grid-area: need; flex-direction: row; align-items: baseline; gap: 6px; }
  .level__max { grid-area: max; flex-direction: row; align-items: baseline; gap: 6px; }
  .level__code { font-size: 19px; }
  .goal__value { font-size: 24px; }
  .tabs { gap: 20px; }
  .filters .seg { flex: 1 1 0; flex-wrap: nowrap; gap: 4px; }
  .filters .seg button { flex: 1 1 auto; padding: 0 8px; }
  .level__row--head { grid-template-areas: 'code main main'; }
  .level__row--head .level__need, .level__row--head .level__max { display: none; }
  .strip { gap: 2px; }
}

/* Tab „Startplatz“ */
.entry-group { display: flex; flex-direction: column; gap: 8px; }
.entry-group h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--ink); }
.entries { list-style: none; margin: 0 calc(-1 * var(--pad)); padding: 0; border-top: 1px solid var(--line); }
.entry { display: flex; flex-direction: column; gap: 4px; padding: 12px var(--pad); border-bottom: 1px solid var(--line); }
.entry__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.entry__title { color: var(--body); font-size: 13px; }
.entry__head .cat { margin-right: 0; }
.entry__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.entry__label { color: var(--muted); font-size: 13px; }
.entry__value { font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chip-verdict { padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 12px; line-height: 22px; color: var(--muted); white-space: nowrap; }
.chip-verdict.is-ok { background: var(--wash); border-color: var(--wash); color: var(--accent-text); }
.chip-verdict.is-close { border-color: var(--line-strong); color: var(--ink); }
.chip-verdict.is-open { color: var(--muted); }

/* Startplatz-Grenzen verwalten */
.cutoff-admin { margin-top: 12px; }
.cutoff-admin h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--ink); }
.cutoff-admin > p { margin: 0; font-size: 13px; }
.tourney-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tourney-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tourney__title { font-size: 13px; color: var(--ink); }
.tourney-form { display: flex; flex-direction: column; gap: 6px; }
.tourney-form input { width: 100%; }
.tourney-form .pill-select, .tourney-form .pill-select select { width: 100%; min-height: 36px; }
.tourney-form p { margin: 0; font-size: 13px; }
