/* ============================================================================
   Jaullink - Erscheinungsbild nach dem Redesign (website/design/redesign)
   ============================================================================
   Manrope, ruhige Flaechen, leichte Schatten, Radien 16/12/10/6. Farben als
   Tokens, einmal hell und einmal dunkel. Ohne eigene Wahl folgt die Seite dem
   System; der Knopf im Kopf setzt data-theme="hell"|"dunkel".
   Spielerfarben nach Platz (p1, p2, p3 = Spielerplatz 1-3) - immer mit Name
   oder Initiale, nie als einziges Merkmal.
   ============================================================================ */

/* Nur fuer den Schriftzug der Startseite (Lizenz: schrift/LIZENZ.md) */
@font-face {
  font-family: "Luckiest Guy"; font-weight: 400; font-display: swap;
  src: url("../schrift/luckiest-guy-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-weight: 400 800; font-display: swap;
  src: url("../schrift/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-weight: 400 800; font-display: swap;
  src: url("../schrift/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F3F1EB; --surface: #FFFFFF; --s2: #F8F7F3; --s3: #ECE9E1; --line: #E3DFD5; --line2: #EEEBE4;
  --ink: #1C2331; --ink2: #4C5363; --ink3: #686E7D;
  --accent: #2F64D0; --accentT: #EAF0FC;
  --danger: #C23A30; --dangerT: #FBE9E6;
  --good: #2F8A5B; --goodT: #E4F2EA; --goodFg: #22704A;
  --capBg: #FBEFC9; --capFg: #6B4A00; --overBg: #FADDD9; --overFg: #A3271C;
  --hpTrack: #2A3140;
  --p1c: #B8372D; --p1d: #E0574B; --p1t: #FCECEA;
  --p2c: #2A7A50; --p2d: #3FA06B; --p2t: #E7F3EC;
  --p3c: #8A5F00; --p3d: #E9B435; --p3t: #FCF3DC;
  --shadow: 0 1px 2px rgba(28, 35, 49, .05), 0 2px 10px rgba(28, 35, 49, .04);
  --toastBg: #1C2331; --toastFg: #FFFFFF; --primaryBg: #1C2331; --primaryFg: #FFFFFF;
  --sil: brightness(0) opacity(.2);
  --kopf: 64px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --bg: #0F131B; --surface: #181D28; --s2: #141924; --s3: #252C3B; --line: #2B3345; --line2: #232A3A;
    --ink: #ECEEF2; --ink2: #B4BAC6; --ink3: #8F96A5;
    --accent: #7EA6F4; --accentT: #1C2A45;
    --danger: #F07167; --dangerT: #3A2023;
    --good: #5CC08A; --goodT: #173026; --goodFg: #6CC894;
    --capBg: #3A3017; --capFg: #F5CF6B; --overBg: #45211F; --overFg: #FF9A90;
    --hpTrack: #2B3345;
    --p1c: #F2877E; --p1d: #EA6458; --p1t: #33212A;
    --p2c: #6CC894; --p2d: #4FB07D; --p2t: #1A2D26;
    --p3c: #F2C55A; --p3d: #E9B435; --p3t: #302A1A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --toastBg: #ECEEF2; --toastFg: #0F131B; --primaryBg: #ECEEF2; --primaryFg: #0F131B;
    --sil: brightness(0) invert(1) opacity(.2);
    color-scheme: dark;
  }
}
:root[data-theme="dunkel"] {
  --bg: #0F131B; --surface: #181D28; --s2: #141924; --s3: #252C3B; --line: #2B3345; --line2: #232A3A;
  --ink: #ECEEF2; --ink2: #B4BAC6; --ink3: #8F96A5;
  --accent: #7EA6F4; --accentT: #1C2A45;
  --danger: #F07167; --dangerT: #3A2023;
  --good: #5CC08A; --goodT: #173026; --goodFg: #6CC894;
  --capBg: #3A3017; --capFg: #F5CF6B; --overBg: #45211F; --overFg: #FF9A90;
  --hpTrack: #2B3345;
  --p1c: #F2877E; --p1d: #EA6458; --p1t: #33212A;
  --p2c: #6CC894; --p2d: #4FB07D; --p2t: #1A2D26;
  --p3c: #F2C55A; --p3d: #E9B435; --p3t: #302A1A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --toastBg: #ECEEF2; --toastFg: #0F131B; --primaryBg: #ECEEF2; --primaryFg: #0F131B;
  --sil: brightness(0) invert(1) opacity(.2);
  color-scheme: dark;
}

.p1 { --pc: var(--p1c); --pd: var(--p1d); --pt: var(--p1t); }
.p2 { --pc: var(--p2c); --pd: var(--p2d); --pt: var(--p2t); }
.p3 { --pc: var(--p3c); --pd: var(--p3d); --pt: var(--p3t); }

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 13px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
.fuell { flex: 1; }
.sym { flex: none; display: block; }
.griff { fill: var(--ink3); flex: none; cursor: grab; }
.leise { color: var(--ink3); font-size: 12.5px; margin: 6px 2px; }
.leise.mitte { text-align: center; padding: 30px 0; }
.leise-klein { font-size: 12px; color: var(--ink3); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.warn-text { color: var(--danger); font-weight: 800; }
.gut-text { color: var(--good); }
.tot-text { color: var(--danger); }
b { font-weight: 800; }

/* Marken, Typen, Chips */
.tag { flex: none; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.tag.akzent { background: var(--accentT); color: var(--accent); }
.tag.cap { background: var(--capBg); color: var(--capFg); }
.tag.ueber { background: var(--overBg); color: var(--overFg); cursor: help; }
.tag.gut { background: var(--goodT); color: var(--goodFg); }
.tag.tot { background: var(--dangerT); color: var(--danger); }
.tag.neutral { background: var(--s3); color: var(--ink2); }
.mini-tag { font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: var(--s3); color: var(--ink2); margin-left: 6px; }
.typen { display: flex; gap: 3px; flex-wrap: wrap; }
.typ { font-size: 9.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; white-space: nowrap; }
.typ.gross { font-size: 10.5px; padding: 1px 7px; border-radius: 5px; }
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 99px; flex: none; }
.punkt.gut { background: var(--good); }
.punkt.tot { background: var(--danger); }

/* Knoepfe */
.knopf { height: 36px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 800; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: background .12s, border-color .12s; }
.knopf:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.knopf.primaer { border: 0; background: var(--primaryBg); color: var(--primaryFg); }
.knopf.primaer:hover:not(:disabled) { background: color-mix(in srgb, var(--primaryBg) 86%, var(--accent)); }
.knopf.primaer:disabled { opacity: .5; }
.knopf.geist { border-color: transparent; background: transparent; }
.knopf.geist.gefahr { color: var(--danger); padding: 0 12px; }
.knopf.geist.akzent { color: var(--accent); }
.knopf.breit { width: 100%; height: 42px; }
.knopf.umriss { background: var(--surface); }
.ikon-knopf { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink2); transition: background .12s, color .12s, border-color .12s; }
.ikon-knopf:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
.ikon-knopf.gefahr:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); background: var(--surface); }
.ikon-knopf:disabled { opacity: .35; }
.ikon-knopf.gross { width: 36px; height: 36px; border-radius: 10px; }
.ikon-knopf.flach { border-color: var(--line2); background: transparent; color: var(--ink3); }
.ikon-flach { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; opacity: .8; }
.ikon-flach:hover { background: rgba(127, 127, 127, .14); opacity: 1; }
.knopf-gestrichelt { height: 28px; padding: 0 10px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 800; flex: none; }
.knopf-gestrichelt:hover { background: var(--accentT); border-color: var(--accent); }

/* Segmente (Reiter, Filter, Status, Spieler) */
.segment { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; }
.segment > a, .segment > button, .segment-mehr { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.segment > a:hover, .segment > button:hover:not(:disabled), .segment-mehr:hover { background: rgba(127, 127, 127, .1); }
.segment > a[aria-current="page"], .segment > button[aria-pressed="true"], .segment > button[aria-selected="true"] {
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 800; }
.segment > button:disabled { opacity: .45; }
.segment.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segment.vier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg-zahl { font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.sp-punkt { width: 8px; height: 8px; border-radius: 99px; background: var(--pd); display: inline-block; }

/* Eingaben */
.suchfeld { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); color: var(--ink3); }
.suchfeld input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13px; color: var(--ink); outline: none; }
.suchfeld:focus-within { border-color: var(--accent); }
.suchfeld.klein { height: 34px; padding: 0 10px; }
.suchfeld.breit { width: 300px; height: 38px; background: var(--surface); }
.suchfeld.gross { height: 42px; border-width: 1.5px; border-radius: 12px; background: var(--surface); }
.suchfeld.gross input { font-size: 14px; font-weight: 600; }
.suchfeld.gross.aktiv, .suchfeld.gross:focus-within { border-color: var(--accent); }
.such-wrap { position: relative; flex: 1; min-width: 0; }
.vorschlaege { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(10, 14, 22, .12); }
.vorschlaege.schwebend { position: absolute; left: 0; right: 0; top: 100%; z-index: 15; }
.vorschlaege li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 4px; border-radius: 9px; cursor: pointer; }
/* In Listen bleiben die Sprites in ihrer Kachel - sonst ueberdecken sie die Nachbarzeilen. */
.vorschlaege .sprite { overflow: hidden; border-radius: 8px; }
.vorschlaege li[aria-selected="true"] { background: var(--accentT); }
.vs-name { flex: 1; font-size: 13.5px; font-weight: 800; }
.vs-nr { width: 40px; text-align: right; font-size: 12px; font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; }
.vs-leer { padding: 10px 12px !important; font-size: 12.5px; color: var(--ink3); cursor: default !important; }
.feld-label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink2); min-width: 0; }
.feld-label small { font-weight: 600; color: var(--ink3); }
.auswahl { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); color: var(--ink); font-size: 13px; font-weight: 700; }
.auswahl.gross { height: 40px; padding: 0 10px; font-size: 13.5px; }
.auswahl:disabled { opacity: .7; }
.eingabe { height: 40px; width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); color: var(--ink); font-size: 14px; font-weight: 700; }
.eingabe:focus { outline: none; border-color: var(--accent); }
.eingabe[aria-invalid="true"] { border-color: var(--danger); background: var(--dangerT); }

/* Hinweise */
.fehler-box { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--dangerT); color: var(--danger); font-size: 12.5px; font-weight: 800; }
.fehler-box.oben { margin: 12px 16px 0; }
.hinweis-cap { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--capBg); color: var(--capFg); font-size: 12.5px; font-weight: 700; }
.hinweis-neutral { padding: 9px 12px; border-radius: 10px; background: var(--s2); color: var(--ink2); font-size: 12.5px; font-weight: 600; }
.hinweis-ueber { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--overBg); color: var(--overFg); font-size: 12.5px; font-weight: 800; }

/* Menues */
.menue { position: relative; }
.menue-liste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: 0 12px 32px rgba(16, 22, 34, .18); display: flex; flex-direction: column; gap: 1px; }
.kopf-nav .menue-liste { left: 0; right: auto; }
.menue.oben .menue-liste { top: auto; bottom: calc(100% + 8px); }
.menue-liste button { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; text-align: left; }
.menue-liste button:hover:not(:disabled) { background: var(--s2); }
.menue-liste button:disabled { color: var(--ink3); font-weight: 600; cursor: default; }
.menue-titel { padding: 6px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink3); }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; height: var(--kopf); display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 4px; flex: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.marke-text b { font-size: 17px; letter-spacing: -.02em; }
.marke-text span { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--ink3); }
.kopf-nav > a, .kopf-nav .segment-mehr { height: auto; padding: 7px 14px; }
.kopf-nav .segment-mehr { padding: 7px 10px 7px 12px; }
.orden-gruppe { display: flex; align-items: center; gap: 8px; padding: 4px; margin-left: 4px; background: var(--s2); border: 1px solid var(--line2); border-radius: 14px; flex: none; }
.orden-reihe { display: flex; gap: 1px; }
.orden { width: 28px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; justify-content: center; }
.orden:hover { background: rgba(127, 127, 127, .14); }
.orden img { width: 22px; height: 22px; object-fit: contain; filter: var(--sil); transition: filter .12s; }
.orden.hat img { filter: none; }
.orden-reihe.gross { justify-content: space-between; }
.orden-reihe.gross .orden { width: 38px; height: 38px; border-radius: 10px; }
.orden-reihe.gross .orden img { width: 26px; height: 26px; }
/* Karten-Knopf rechts neben den Orden; auf der Karte wird er zu "Zum Spiel" */
.karten-knopf { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 4px 14px 4px 4px; border: 1px solid var(--line2);
  border-radius: 14px; background: var(--s2); color: var(--ink); text-align: left; transition: border-color .15s, background .15s; }
.karten-knopf:hover { border-color: var(--accent); background: var(--accentT); }
.karten-knopf:hover .kartenbild { transform: scale(1.06) rotate(-2deg); }
.kb-bild { width: 62px; height: 42px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.karten-knopf.zurueck .kb-bild { background: var(--primaryBg); color: var(--primaryFg); }
.kartenbild { width: 100%; height: 100%; display: block; transition: transform .2s ease; }
.kb-meer { fill: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.kb-land { stroke: rgba(0,0,0,.08); stroke-width: 2; }
.kb-nadel path { fill: #E0564A; stroke: #fff; stroke-width: 4; }
.kb-nadel circle { fill: #fff; }
.karten-knopf:hover .kb-nadel { transform: translate(150px, 14px); }
.kb-nadel { transition: transform .2s ease; }
.kb-weg { fill: none; stroke: #E9B949; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.kb-stadt { fill: var(--surface); stroke: #C9962A; stroke-width: 3; }
.kb-text { display: flex; flex-direction: column; line-height: 1.15; }
.kb-text b { font-size: 13.5px; font-weight: 800; }
.kb-text small { font-size: 11px; font-weight: 700; color: var(--ink3); }
@media (prefers-reduced-motion: reduce) { .kartenbild { transition: none; } }
.orden-zahl { font-weight: 800; color: var(--ink2); font-variant-numeric: tabular-nums; }
/* Lategame: Koepfe der Trainer (Pixelgrafik), Top Vier als 2x2 */
.orden.late { width: 36px; height: 36px; }
.orden.late img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 7px; }
.orden-reihe.late { gap: 3px; }
.orden-reihe.gross.late .orden img { width: 36px; height: 36px; }
.orden-wechsel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 34px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink2); flex: none; }
.orden-wechsel svg { transform: rotate(90deg); transition: transform .15s; }
.orden-wechsel.late svg { transform: rotate(-90deg); }
.orden-wechsel small { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.orden-wechsel:hover { border-color: var(--accent); color: var(--accent); }
.ok-reihe { display: flex; align-items: center; gap: 8px; }
.ok-reihe .orden-reihe { flex: 1; }
.cap-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 10px; border-radius: 10px; background: var(--capBg); color: var(--capFg); cursor: help; }
.cap-zahl { display: flex; flex-direction: column; line-height: 1; }
.cap-zahl small { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; }
.cap-zahl b { font-size: 21px; font-variant-numeric: tabular-nums; }
.cap-text { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.25; font-weight: 600; }
/* Bilanz im Kopf: eine kompakte Leiste - lebend, tot, Orte frei */
.bilanz { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 13px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.bilanz span { display: flex; align-items: center; gap: 5px; }
.bilanz small { font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.bilanz .bz-trenner { width: 1px; height: 16px; background: var(--line); }
.run-knopf { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 800; }
.run-knopf:hover { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.run-titel { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-punkt { width: 8px; height: 8px; border-radius: 99px; background: var(--ink3); opacity: .5; flex: none; }
.live-punkt.an { background: var(--good); opacity: 1; }

/* ---------- Tafeln ---------- */
.tafel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; }
.tafel-kopf { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; flex: none; }
.tafel-kopf h2 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.zaehler { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--s3); color: var(--ink2); font-variant-numeric: tabular-nums; }
.chip-ueber { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 2px 9px 2px 7px; border-radius: 99px; background: var(--overBg); color: var(--overFg); cursor: help; }
.tafel-suche { padding: 0 12px 10px; flex: none; }
.tafel-liste { flex: 1; min-height: 0; overflow: auto; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.tafel-inhalt { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }

/* ---------- Team-Seite (Schreibtisch) ---------- */
.team-rahmen { height: calc(100dvh - var(--kopf)); }
.team-seite { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.team-raster { flex: 1; min-height: 0; display: grid; grid-template-columns: 316px minmax(0, 1fr) 352px; gap: 16px; }
.spalte { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.spalte.rechts { overflow: auto; scrollbar-width: thin; }
.box-tafel { flex: 1; }
.friedhof-tafel { flex: 0 0 auto; max-height: 236px; }
.ablage-aktiv.box-tafel, .ablage-aktiv.team-tafel { outline: 2px dashed var(--accent); outline-offset: 3px; }
.ablage-aktiv.friedhof-tafel { outline: 2px dashed var(--danger); outline-offset: 3px; background: var(--dangerT); }
.drueber.box-tafel, .drueber.team-tafel { background: color-mix(in srgb, var(--accentT) 70%, var(--surface)); }
.drueber.friedhof-tafel { outline-style: solid; }

/* Sprites: immer 96 px, ragen aus ihrer Kachel heraus */
.sprite { position: relative; flex: none; display: block; overflow: hidden; }
/* Groesse und Lage des Bilds setzt sprite.js je Art (in Prozent der Kachel). */
.sprite img { position: absolute; image-rendering: pixelated; pointer-events: none; max-width: none; }
.sprite.k30 { width: 30px; height: 30px; }
.sprite.k32 { width: 32px; height: 32px; }
.sprite.k34 { width: 34px; height: 34px; }
.sprite.k36 { width: 36px; height: 36px; }
.sprite.k40 { width: 40px; height: 40px; border-radius: 10px; }
.sprite.k44 { width: 44px; height: 44px; border-radius: 10px; }
.sprite.k52 { width: 52px; height: 52px; border-radius: 12px; }
.sprite.k56 { width: 56px; height: 56px; border-radius: 13px; }
.sprite.k64 { width: 64px; height: 64px; border-radius: 14px; }
.sprite.k120 { width: 120px; height: 120px; border-radius: 18px; }
.sprite.getoent { background: var(--pt); }
.sprite.hell { background: var(--surface); }
.sprite.grau img { filter: grayscale(1); }
.sprite .kein { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink3); font-weight: 800; }

/* Kompakte Karte (Box, Friedhof, Handy) */
.kk { flex-shrink: 0; padding: 6px 8px 4px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); cursor: grab; }
.kk.grab { filter: grayscale(1); opacity: .62; transition: filter .15s, opacity .15s; }
.kk.grab:hover, .kk.grab:focus-within { filter: none; opacity: 1; }
.kk.wird-gezogen, .tk.wird-gezogen { border: 1.5px dashed var(--accent); background: var(--accentT); opacity: .45; }
.kk-kopf { display: flex; align-items: center; gap: 6px; height: 32px; min-width: 0; }
.kk-kopf h3 { margin-left: 2px; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kk-symbol { color: var(--ink3); }
.kk-zeile { display: flex; align-items: center; gap: 8px; min-height: 42px; border-top: 1px solid var(--line2); cursor: pointer; }
.kk.grab .kk-zeile { min-height: 38px; }
.initiale { width: 20px; height: 20px; flex: none; border-radius: 99px; background: var(--pt); color: var(--pc); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.kk-leer { flex: 1; font-size: 12.5px; color: var(--ink3); }
.kk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kk-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.kk-name > span:first-child { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-text { flex: none; font-size: 11px; font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; }
.lv-text.am_cap { color: var(--capFg); }
.lv-text.drueber { color: var(--overFg); }
.mini-balken { display: flex; align-items: flex-end; gap: 2px; height: 18px; flex: none; }
.mini-balken i { display: block; border-radius: 2px; }
.summe { width: 28px; flex: none; text-align: right; font-size: 12px; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* Team */
.team-tafel { min-height: 0; }
.team-spalten { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); padding: 0 13px 6px; font-size: 11.5px; font-weight: 800; color: var(--ink3); flex: none; }
.team-spalten > span:first-child { padding-left: 16px; }
.sp-kopf { display: flex; align-items: center; gap: 6px; padding-left: 14px; color: var(--pc); }
.sp-kopf i { width: 8px; height: 8px; border-radius: 99px; background: var(--pd); }
.sp-kopf small { font-weight: 600; color: var(--ink3); font-size: inherit; }
.team-liste { gap: 8px; }
.tk { flex: 1 0 104px; display: flex; min-height: fit-content; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); cursor: grab; }
/* Ortsspalte: Breite = 124 px Innenraum (ORT_PLATZ in team.js) + Polster.
   Der Griff sitzt im linken Rand, damit der Name die volle Breite hat. */
.tk-link { position: relative; width: 150px; flex: none; padding: 12px 10px 10px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line2); background: var(--s2); border-radius: 13px 0 0 13px; }
.tk-ort { min-width: 0; }
.tk-ort .griff { position: absolute; left: 4px; top: 14px; opacity: .55; }
.tk:hover .tk-ort .griff { opacity: 1; }
.tk-ort h3 { font-size: 14px; font-weight: 800; line-height: 1.2; overflow-wrap: normal; word-break: keep-all; hyphens: manual; text-wrap: balance; }
.team-liste.ohne-werte .tk { flex: 0 0 auto; }
.team-liste.ohne-werte .team-frei { flex: 0 0 88px; }
.tk.ohne-werte .tk-mon { padding-top: 10px; padding-bottom: 10px; }
.tk.ohne-werte .tk-link { padding-top: 10px; padding-bottom: 8px; }
.werte-knopf { gap: 6px; }
.werte-knopf[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.tk-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tk-knoepfe { margin-top: auto; display: flex; gap: 6px; }
.tk-mons { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-mon { position: relative; min-width: 0; padding: 8px 12px 8px 14px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.tk-mon + .tk-mon { border-left: 1px solid var(--line2); }
/* Jede Spalte richtet sich nach ihrer eigenen Breite: zwischen Handy und
   breitem Bildschirm (ca. 760-1200 px Fenster) sind die drei Spalten schmal. */
.tk-mon { container-type: inline-size; }
@container (max-width: 250px) {
  .tk-mon .werte-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
  .tk-mon .wr.summe { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; align-items: baseline; gap: 6px; }
  .tk-mon .wr.summe > span:last-child { display: none; }
  .tk-mon .tk-oben { gap: 8px; }
  .tk-mon .tk-oben .sprite.k56 { width: 46px; height: 46px; }
  .tk-mon .tk-name { flex-wrap: wrap; row-gap: 3px; }
  .tk-mon .name-knopf { white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.2; }
}
@container (max-width: 175px) {
  .tk-mon .tk-oben { flex-direction: column; align-items: flex-start; }
}
.kette { position: absolute; left: -11px; top: 50%; margin-top: -11px; width: 20px; height: 20px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink3); z-index: 2; }
.tk-oben { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tk-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tk-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.name-knopf { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-knopf:hover { color: var(--accent); }
.lv-chip { flex: none; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--s3); color: var(--ink2); font-variant-numeric: tabular-nums; cursor: help; }
.lv-chip.am_cap { background: var(--capBg); color: var(--capFg); }
.lv-chip.drueber { background: var(--overBg); color: var(--overFg); }
.tk-leer { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tk-leer-text { font-size: 12.5px; color: var(--ink3); }
.werte-raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 26px; gap: 4px; align-items: end; }
.wr { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-k { font-size: 9.5px; font-weight: 700; color: var(--ink3); }
.wr-v { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wr.summe { width: auto; text-align: right; }
.wr.summe .wr-v { font-weight: 800; }
.wr.summe > span:last-child { height: 3px; }
.spur { display: block; height: 3px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.spur i { display: block; height: 100%; border-radius: inherit; }
.spur.dick { height: 6px; border-radius: 99px; }
.team-frei { flex: 1 0 104px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--s2); color: var(--ink3); }
.team-frei.bereit { border: 2px dashed var(--accent); background: var(--surface); color: var(--accent); }
.team-frei.ziel { border: 2px solid var(--accent); background: var(--accentT); color: var(--accent); }
.frei-kreis { width: 32px; height: 32px; flex: none; border-radius: 99px; border: 1.5px dashed currentColor; display: flex; align-items: center; justify-content: center; }
.frei-text { display: flex; flex-direction: column; }
.frei-text b { font-size: 13px; }
.frei-text span { font-size: 12px; font-weight: 600; opacity: .85; }

/* Pokedex */
.dex { flex: 1 1 auto; min-height: 280px; }
.dex-kopf { gap: 10px; padding: 12px 12px 10px 16px; }
.dex-inhalt { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.dex-oben { display: flex; align-items: center; gap: 14px; }
.dex-buehne { position: relative; width: 96px; height: 96px; flex: none; border-radius: 20px; background: var(--s3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dex-artwork { width: 88px; height: 88px; object-fit: contain; }
.dex-sprite { position: absolute; left: -48px; top: -60px; width: 192px; height: 192px; image-rendering: pixelated; }
.dex-titel { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dex-nr { font-size: 12px; font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; }
.dex-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.dex-fakten { font-size: 12px; color: var(--ink2); }
.dex-block { display: flex; flex-direction: column; gap: 6px; }
.dex-block h3 { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink3); text-transform: uppercase; }
.dex-wert { display: grid; grid-template-columns: 38px 26px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12px; }
.dw-k { font-weight: 700; color: var(--ink2); }
.dw-v { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.faehigkeit { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line2); }
.faehigkeit.versteckt { background: transparent; border: 1px dashed var(--line); padding-right: 6px; }
.entw-reihe { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.entw { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 4px; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.entw:hover { border-color: var(--accent); }
.entw.aktuell { background: var(--s2); border-color: transparent; }
.entw-pfeil { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink3); line-height: 1.1; text-align: center; max-width: 90px; }
.wirkung { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.faktor { width: 30px; font-size: 12px; font-weight: 800; }
.faktor.schlecht { color: var(--overFg); }
.faktor.gut { color: var(--good); }
.faktor.neutral { color: var(--ink2); }

/* Fangrechner */
.rechner { flex: none; gap: 12px; padding: 14px 16px 16px; }
.rechner-kopf { display: flex; align-items: baseline; gap: 8px; }
.rechner-kopf h2 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.rechner-auswahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rechner-auswahl .feld-label { font-size: 11px; gap: 4px; color: var(--ink3); }
.kp-block { display: flex; flex-direction: column; gap: 6px; }
.kp-zeile { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--ink3); font-variant-numeric: tabular-nums; }
.kp-zeile span:last-child { color: var(--ink2); }
.kp-spur { position: relative; height: 12px; padding: 2px; border-radius: 99px; background: var(--hpTrack); }
.kp-fuell { height: 8px; border-radius: 99px; transition: width .1s, background-color .15s; }
.kp-knauf { position: absolute; top: -4px; margin-left: -10px; width: 20px; height: 20px; border-radius: 99px; background: var(--surface); border: 2px solid; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); pointer-events: none; }
.kp-regler { position: absolute; inset: -6px 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kp-spur:focus-within .kp-knauf { outline: 2px solid var(--accent); outline-offset: 2px; }
.rechner-ergebnis { display: flex; align-items: flex-end; gap: 12px; padding-top: 2px; }
.re-gross { display: flex; flex-direction: column; line-height: 1; }
.re-zahl { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.re-unter { font-size: 12px; font-weight: 600; color: var(--ink3); margin-top: 4px; }
.re-drei { flex: 1; display: flex; flex-direction: column; gap: 5px; padding-bottom: 2px; }
.re-zeile { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); }
.re-zeile b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Rueckfrage und Meldung */
.rueckfrage { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--capBg); color: var(--capFg); }
.rf-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.rf-text b { font-size: 14px; }
.rf-text span { font-size: 12.5px; font-weight: 600; }
.rueckfrage .knopf.geist { color: var(--capFg); }
.meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--toastBg); color: var(--toastFg); box-shadow: 0 12px 32px rgba(16, 22, 34, .28); animation: hoch .16s ease-out; }
.meldung.fehler-meldung { background: var(--danger); color: #fff; }
.m-text { display: flex; flex-direction: column; line-height: 1.3; }
.m-text b { font-size: 13.5px; }
.m-text span { font-size: 12px; font-weight: 500; opacity: .8; }
.meldung .knopf.umriss { height: 34px; padding: 0 14px; margin-left: 8px; border: 1px solid rgba(127, 127, 127, .45); background: transparent; color: inherit; }
@keyframes hoch { from { transform: translate(-50%, 8px); opacity: .6; } }

/* Sortierung */
.sortier-umschalter { display: flex; align-items: center; gap: 6px; }
.sortier-auswahl { height: 28px; max-width: 170px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--s2); color: var(--ink2); font-size: 12px; font-weight: 700; }
.kk-zeit { flex: none; font-size: 11px; font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Spielstand ---------- */
.spielstand-knopf { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink2); font-size: 13px; font-weight: 800; white-space: nowrap; }
.spielstand-knopf:hover { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.spielstand-knopf.fragen { border-color: var(--capFg); background: var(--capBg); color: var(--capFg); }
.sk-zahl { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--capFg); color: var(--capBg); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.dreht { display: flex; animation: drehen 1s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.knopf.klein { height: 30px; padding: 0 12px; font-size: 12.5px; }
.knopf.gefahr-voll { border: 0; background: var(--danger); color: #fff; }
.knopf.gefahr-voll:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 85%, #000); }
.seite-spielstand { max-width: 1240px; margin: 0 auto; padding: 20px 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ss-spalte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ss-inhalt { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ss-text { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.ss-ablage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 14px 14px 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--s2); }
.ss-ablage.drueber { border-color: var(--accent); background: var(--accentT); }
.ss-ablage-symbol { color: var(--ink3); }
.ss-ablage > span:nth-child(2) { display: flex; flex-direction: column; font-size: 13px; }
.ss-ablage > span:nth-child(2) span { font-size: 12px; color: var(--ink3); }
.ss-quelle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 8px 10px 14px; border: 1px solid var(--line2); border-radius: 12px; }
.ss-quelle-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.ss-quelle-text span { font-size: 12px; color: var(--ink3); }
.ss-auto { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.ss-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ss-zahlen > div { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--s2); min-width: 0; }
.ss-zahlen span { font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.ss-zahlen b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-zahlen small { font-size: 11px; color: var(--ink3); }
.ss-ergebnis { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink2); }
.ss-ergebnis b { color: var(--ink); }
.ss-liste { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ss-zeile { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border: 1px solid var(--line2); border-radius: 12px; }
.ss-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ss-zeile-text span { font-size: 12px; color: var(--ink3); }
.ss-frage { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); }
.ss-frage-kopf { display: flex; align-items: center; gap: 12px; }
.ss-frage .sprite, .ss-zeile .sprite { overflow: hidden; }
.ss-frage-kopf .rf-text b { font-size: 13.5px; }
.ss-frage-kopf .rf-text span { font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.ss-optionen { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-optionen .knopf { height: 32px; padding: 0 12px; font-size: 12.5px; }
.ss-hinweis { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--s2); font-size: 12.5px; color: var(--ink2); }
.ss-hinweis > span { flex: 1; }
.ss-aufklapp { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; border-radius: 16px; }

/* ---------- Pokedex-Seite ---------- */
.seite-dex { max-width: 1100px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }

/* ---------- Begegnungen ---------- */
.seite-orte { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 28px; max-width: 1600px; margin: 0 auto; }
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kachel { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); text-align: left; }
.kachel > span, .kn-text > span { font-size: 12px; font-weight: 700; color: var(--ink3); }
.kachel b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kachel b small { font-size: 16px; color: var(--ink3); font-weight: 800; }
.kachel.naechster { flex-direction: row; align-items: center; gap: 12px; background: var(--accentT); border-color: var(--accent); color: var(--accent); box-shadow: none; }
.kachel.naechster:hover { background: color-mix(in srgb, var(--accentT) 70%, var(--accent)); }
.kn-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kn-text > span { color: var(--accent); }
.kn-text b { font-size: 22px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.orte-tabelle { overflow: hidden; }
.orte-kopf { display: grid; grid-template-columns: 300px repeat(3, minmax(0, 1fr)); align-items: center; height: 42px; padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--s2); font-size: 12px; font-weight: 800; }
.orte-kopf > span:first-child { padding-left: 14px; color: var(--ink3); }
.orte-kopf .sp-kopf { padding-left: 12px; gap: 7px; }
.ort + .ort { border-top: 1px solid var(--line2); }
.ort-zeile { display: grid; grid-template-columns: 300px repeat(3, minmax(0, 1fr)); align-items: center; min-height: 64px; padding: 6px 8px; }
.ort-zeile:hover { background: rgba(127, 127, 127, .04); }
/* Zeile leicht nach Zustand des Links gefaerbt - nur im Filter "Alle" */
.ort-zeile.z-lebt { background: color-mix(in srgb, var(--goodT) 55%, transparent); }
.ort-zeile.z-tot { background: color-mix(in srgb, var(--dangerT) 60%, transparent); }
.ort-zeile.z-unvollstaendig { background: color-mix(in srgb, var(--capBg) 50%, transparent); }
.ort-zeile.z-verpasst, .ort-zeile.z-freigelassen { background: color-mix(in srgb, var(--s3) 55%, transparent); }
.ort-zeile.naechster { background: var(--accentT); box-shadow: inset 0 0 0 2px var(--accent); }
.ort-zeile.unter { min-height: 52px; border-top: 1px dashed var(--line2); }
.ort-info { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; min-width: 0; }
.ort-zeile.unter .ort-info { padding-left: 50px; }
.ort-nr { width: 26px; flex: none; font-size: 12px; font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; }
.ort-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ort-titel { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ort-titel b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ort-zeile.unter .ort-titel b { font-size: 12.5px; }
.ort-hinweis { font-size: 11.5px; font-weight: 600; color: var(--ink3); }
.zelle-rahmen { padding: 0 6px; min-width: 0; }
.zelle { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px 4px 4px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--ink); text-align: left; }
.zelle:hover { background: rgba(127, 127, 127, .1); }
.zelle.tot { opacity: .7; }
.zelle.verpasst .z-name b { color: var(--ink3); font-weight: 700; }
.z-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.z-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.z-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-name small { font-size: 11px; font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; }
.z-zeile { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.z-zeile .tag { font-size: 11.5px; font-weight: 700; padding: 0 6px; border-radius: 5px; }
.z-lv { font-variant-numeric: tabular-nums; }
.z-lv.am_cap { color: var(--capFg); }
.z-lv.drueber { color: var(--overFg); }
.z-sync { display: flex; color: var(--ink3); }
.zelle-leer { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--line); border-radius: 10px;
  background: transparent; color: var(--ink3); font-size: 12.5px; font-weight: 800; }
.zelle-leer:hover, .zelle-leer.naechster { border-color: var(--accent); color: var(--accent); }
.zelle-leer:hover { background: var(--accentT); }

/* ---------- Eintragsdialog ---------- */
.schleier { position: fixed; inset: 0; z-index: 50; background: rgba(15, 19, 27, .45); display: flex; align-items: flex-start; justify-content: center;
  padding: 8vh 16px 16px; overflow: auto; animation: einblenden .12s ease-out; }
@keyframes einblenden { from { opacity: 0; } }
.dialog { width: 100%; max-width: 560px; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(10, 14, 22, .32), 0 4px 14px rgba(10, 14, 22, .14); animation: dlg-hoch .16s ease-out; }
@keyframes dlg-hoch { from { transform: translateY(8px); opacity: .6; } }
.dialog-kopf { display: flex; align-items: flex-start; gap: 12px; padding: 20px 16px 14px 24px; border-bottom: 1px solid var(--line2); }
.dialog-kopf > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dialog-kopf h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.dialog-kopf span { font-size: 12.5px; color: var(--ink3); }
.dialog-kopf .ikon-flach { color: var(--ink2); }
.dialog-inhalt { display: flex; flex-direction: column; gap: 18px; padding: 18px 24px 20px; }
.dlg-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; }
.dlg-zwei .segment.drei > button { font-weight: 600; }
.art-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.art-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink2); font-size: 12.5px; font-weight: 600; }
.art-chips button[aria-pressed="true"] { border-color: var(--accent); background: var(--accentT); color: var(--accent); font-weight: 800; }
.art-chips button:disabled:not([aria-pressed="true"]) { opacity: .4; }
.trenner { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.entwickeln { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.ew-titel { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--ink3); }
.ew-knopf { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; min-height: 40px; }
.ew-knopf:hover { border-color: var(--accent); background: var(--accentT); }
.ew-knopf > span { display: flex; flex-direction: column; line-height: 1.15; }
.ew-knopf b { font-size: 13px; font-weight: 800; }
.ew-knopf small { font-size: 11px; font-weight: 600; color: var(--ink3); }
.ew-vorher { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink3); margin-left: auto; }
.gewaehlt { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accentT); }
.gw-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.gw-text b { font-size: 15px; color: var(--ink); }
.gw-text small { font-size: 12px; font-weight: 600; color: var(--ink3); }
.dlg-level { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
.dialog-fuss { display: flex; align-items: center; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--line2); }
.dialog-fuss .knopf { height: 40px; }

/* ---------- Anmeldung / Runwahl ---------- */
.mittig { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.karte { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; }
.karte .marke { margin-bottom: 22px; }
.karte h1 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.karte p { color: var(--ink2); margin: 0 0 18px; font-size: 13.5px; }
.karte label { display: block; font-size: 12px; font-weight: 800; color: var(--ink2); margin: 12px 0 6px; }
.karte .knopf.primaer { margin-top: 18px; }
.feld-titel { font-size: 12px; font-weight: 800; color: var(--ink2); margin: 14px 0 6px; }
.wahl-hinweis { font-size: 12.5px; color: var(--ink2); }
.verweis { all: unset; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); }
.verweis:hover { text-decoration: underline; }
.zeile-links { display: flex; justify-content: space-between; margin-top: 16px; }
.platzliste { display: grid; gap: 8px; margin-top: 8px; }
.platzliste .knopf { justify-content: flex-start; height: 40px; }
.anmeldung .anmelde-wahl { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.label-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.label-zeile .verweis { font-size: 12px; }
.anmelde-fuss { margin: 14px 0 0 !important; font-size: 12.5px !important; color: var(--ink3) !important; }
.pw-feld { position: relative; }
.pw-feld .eingabe { padding-right: 42px; }
.pw-auge { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink3); }
.pw-auge:hover { background: var(--s3); color: var(--ink); }
.admin-meldung { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--goodT); color: var(--goodFg); font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.dialog.klein { max-width: 440px; }
.menue-liste .menue-admin { justify-content: flex-start; gap: 8px; color: var(--accent); }

/* ---------- Doppelklick-Menue ---------- */
.doppel-menue { position: fixed; right: auto; top: auto; min-width: 220px; z-index: 60; }
.dm-kopf { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line2); }
.dm-kopf span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--ink3); font-weight: 600; }
.dm-kopf b { font-size: 13px; color: var(--ink); font-weight: 800; }

/* ---------- Pokedex: Zugang zu den Details ---------- */
.dex-oben.klickbar { cursor: pointer; border-radius: 16px; margin: -6px; padding: 6px; }
.dex-oben.klickbar:hover { background: var(--s2); }
.dex-details { width: 100%; justify-content: space-between; margin: 2px 0 4px; color: var(--accent); }

/* ---------- Pokedex-Details ---------- */
.dialog.dex-detail { max-width: 1040px; }
.dex-detail .dialog-kopf { align-items: center; }
.dd-suche { width: 240px; flex: none; }
.dd-suche .vorschlaege { right: 0; left: auto; min-width: 280px; }
.dd-raster { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 0; }
.dd-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 20px 22px 24px; border-right: 1px solid var(--line2); }
.dd-links .dex-buehne { width: 160px; height: 160px; border-radius: 26px; }
.dd-links .dex-buehne .dex-artwork { width: 148px; height: 148px; }
.dd-links .dex-buehne .sprite.k120 { width: 140px; height: 140px; background: transparent; }
.dd-name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.dd-rang { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px; margin-top: 4px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line2); }
.dd-rang > div { display: flex; flex-direction: column; gap: 1px; }
.dd-rang small { font-size: 11px; font-weight: 800; color: var(--ink3); letter-spacing: .02em; }
.dd-rang b { font-size: 18px; font-weight: 800; }
.dd-rang span { font-size: 11.5px; color: var(--ink3); }
.dd-rang > div:first-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; }
.dd-skala { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3A9E73, #79BF6A 35%, #E9B949 65%, #E27D60); }
.dd-skala i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.dd-fakten { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 6px 0 4px; font-size: 13px; }
.dd-fakten dt { color: var(--ink3); font-weight: 700; }
.dd-fakten dd { margin: 0; font-weight: 800; }
.dd-rechts { display: flex; flex-direction: column; min-width: 0; padding: 16px 24px 22px; gap: 14px; }
.dd-reiter { max-width: 420px; }
.dd-inhalt { display: flex; flex-direction: column; gap: 18px; max-height: min(66vh, 640px); overflow: auto; padding-right: 4px; }
.dd-inhalt > .leise { margin: 0; }
.dd-block h3 { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin-bottom: 8px; }
.dd-block h3 .leise-klein { text-transform: none; letter-spacing: 0; font-weight: 600; }
.dd-wert { display: grid; grid-template-columns: 128px 40px minmax(0, 1fr) 80px; align-items: center; gap: 10px; height: 26px; font-size: 13px; }
.dd-wk { color: var(--ink2); font-weight: 700; }
.dd-wv { text-align: right; font-weight: 800; }
.dd-platz { font-size: 11.5px; color: var(--ink3); font-weight: 700; text-align: right; cursor: help; }
.dd-wert.dd-summe { border-top: 1px solid var(--line2); margin-top: 4px; padding-top: 4px; height: 32px; }
.typ-faktoren { display: flex; flex-wrap: wrap; gap: 6px; }
.typ-faktor { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line2); }
.typ-faktor b { font-size: 12px; font-weight: 800; }
.typ-faktor b.schlecht { color: var(--overFg); } .typ-faktor b.gut { color: var(--good); } .typ-faktor b.neutral { color: var(--ink2); }
.attacken-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.attacken-tabelle th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; font-size: 11px; font-weight: 800; color: var(--ink3); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.attacken-tabelle td { padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.at-zeile { cursor: pointer; }
.at-zeile:hover, .at-zeile.offen { background: var(--s2); }
.at-zeile:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.at-lv { width: 48px; font-weight: 800; color: var(--ink2); }
.at-name { font-weight: 800; }
.at-kat { color: var(--ink2); }
.at-auf td { background: var(--s2); padding: 4px 12px 14px; }
.dd-attacken-kopf { display: flex; align-items: center; gap: 10px; }
.dd-attacken-kopf .suchfeld { flex: 1; max-width: 420px; }
.ks-attacken-liste .vs-nr { white-space: nowrap; }
.ad-detail { display: flex; flex-direction: column; gap: 8px; }
.ad-detail p { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.ad-zahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ad-zahlen span { display: flex; flex-direction: column; }
.ad-zahlen small { font-size: 10.5px; font-weight: 800; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.ad-zahlen b { font-size: 13.5px; }
.ad-wirkung { margin: 0; padding-left: 18px; font-size: 13px; font-weight: 700; }
.ek-kette { overflow-x: auto; padding: 4px 2px 8px; }
.ek-stufe { display: flex; align-items: center; gap: 8px; }
.ek-weiter { display: flex; flex-direction: column; gap: 10px; }
.ek-ast { display: flex; align-items: center; gap: 8px; }
.ek-pfeil { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 86px; max-width: 120px; color: var(--ink3); text-align: center; }
.ek-pfeil small { font-size: 11px; font-weight: 700; line-height: 1.3; }
.ek-karte { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 128px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ek-karte:hover { background: var(--s2); }
.ek-karte.aktuell { border-color: var(--accent); background: var(--accentT); cursor: default; }
.ek-karte b { font-size: 13px; font-weight: 800; }
.ek-karte small { font-size: 11px; color: var(--ink3); font-weight: 700; }
.ek-karte .sprite.k64 { background: var(--s3); }

/* ---------- Kampf-Simulator ---------- */
.seite-kampf { max-width: 1240px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.ks-kopf h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ks-kopf span { display: block; max-width: 900px; margin-top: 4px; font-size: 12.5px; color: var(--ink3); line-height: 1.5; }
.ks-raster { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.ks-seite .tafel-kopf h2 { font-size: 15px; }
.ks-seite.eigen { border-top: 3px solid var(--accent); }
.ks-seite.gegner { border-top: 3px solid var(--danger); }
.ks-inhalt { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ks-wahl { display: flex; flex-direction: column; gap: 8px; }
.ks-team { display: flex; flex-wrap: wrap; gap: 6px; }
.ks-team-mon { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.ks-team-mon:hover { background: var(--s2); }
.ks-team-mon.gewaehlt { border-color: var(--accent); background: var(--accentT); }
.ks-team-mon span { display: flex; flex-direction: column; line-height: 1.2; }
.ks-team-mon b { font-size: 12.5px; } .ks-team-mon small { font-size: 11px; color: var(--ink3); font-weight: 700; }
.ks-lv-schnell { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink3); }
.ks-mon { display: flex; align-items: center; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line2); }
.ks-mon .sprite.k64 { --pt: var(--s3); }
.ks-mon-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ks-mon-text b { font-size: 17px; font-weight: 800; }
.ks-level { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink2); }
.ks-level .eingabe { width: 72px; text-align: center; }
.ks-echt { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 8px; border-radius: 8px; background: var(--goodT); color: var(--goodFg); font-size: 12px; font-weight: 800; }
.ks-werte { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ks-werte span { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; background: var(--s2); }
.ks-werte small { font-size: 10.5px; font-weight: 800; color: var(--ink3); }
.ks-werte b { font-size: 15px; font-weight: 800; }
.ks-werte i { font-style: normal; font-size: 10px; color: var(--ink3); font-weight: 600; cursor: help; }
.ks-attacken { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ks-attacken .auswahl { width: 100%; }
.ks-mitte { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 60px; }
.ks-vs { width: 56px; height: 56px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: var(--primaryBg); color: var(--primaryFg); font-weight: 800; font-size: 16px; }
.ks-tempo { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; text-align: center; color: var(--ink2); }
.ks-ergebnisse { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ks-leer { padding: 0 16px 16px; margin: 0; }
.ke-liste { list-style: none; margin: 0; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.ke { border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); }
.ke.ko-sicher { border-color: color-mix(in srgb, var(--danger) 45%, var(--line2)); background: var(--dangerT); }
.ke.ko-moeglich { border-color: color-mix(in srgb, #E9B949 60%, var(--line2)); background: var(--capBg); }
.ke-zeile { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; flex-wrap: wrap; }
.ke-zeile:focus-visible { outline: 2px solid var(--accent); border-radius: 12px; }
.ke-name { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 160px; }
.ke-name b { font-size: 13.5px; font-weight: 800; }
.ke-name small { font-size: 11px; color: var(--ink3); font-weight: 700; }
.ke-schaden b { font-size: 14px; font-weight: 800; } .ke-schaden small { color: var(--ink2); font-weight: 700; }
.ke-status { font-size: 12px; color: var(--ink2); font-weight: 600; }
.ke-ko { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.ke-ko.sicher { background: var(--danger); color: #fff; }
.ke-ko.moeglich { background: #E9B949; color: #3A2A00; }
.ke-eff { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.ke-eff.gut { background: var(--goodT); color: var(--goodFg); } .ke-eff.schlecht { background: var(--s3); color: var(--ink2); }
.ke-detail { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 12px 12px; font-size: 12.5px; color: var(--ink2); }
.ke-detail p { flex-basis: 100%; margin: 0; line-height: 1.5; }

/* Schnellauswahl links, daneben alles wie bisher */
.seite-kampf { max-width: 1500px; }
.ks-gesamt { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
.ks-haupt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ks-schnell { position: sticky; top: calc(var(--kopf) + 16px); }
.ks-schnell-inhalt { padding: 0 12px 14px; display: flex; flex-direction: column; gap: 16px; }
.ks-schnell h3 { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin-bottom: 8px; }
.ks-schnell h3.p1, .ks-schnell h3.p2, .ks-schnell h3.p3 { color: var(--pc); }
.ks-schnell .sp-punkt, .ks-schnell-spieler .sp-punkt { width: 8px; height: 8px; border-radius: 99px; background: var(--pd); display: inline-block; }
.ks-schnell-spieler { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ks-schnell-spieler .knopf { gap: 6px; }
.ks-schnell-spieler .knopf.an { border-color: var(--pd); background: var(--pt); color: var(--pc); }
.ks-schnell-liste { display: flex; flex-direction: column; gap: 4px; }
.ks-schnell-mon { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; }
.ks-schnell-mon:hover { background: var(--s2); }
.ks-schnell-mon.gewaehlt { border-color: var(--accent); background: var(--accentT); }
.ks-schnell-mon span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ks-schnell-mon b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-schnell-mon small { font-size: 11px; color: var(--ink3); font-weight: 700; }
.ks-schnell .leise { margin: 0; }

/* Attackenfeld mit Suche */
.ks-attacke .suchfeld { height: 40px; }
.ks-attacke .suchfeld input::placeholder { color: var(--ink); font-weight: 700; }
.ks-attacke .suchfeld input:focus::placeholder { color: var(--ink3); font-weight: 600; }
.ks-attacken-liste { max-height: 320px; overflow: auto; min-width: 280px; }
.vorschlaege .vs-titel { font-size: 11px; font-weight: 800; color: var(--ink3); cursor: default; padding: 6px 10px; }
.vorschlaege .vs-titel:hover { background: transparent; }

/* Statusprobleme */
.ks-status { display: flex; flex-direction: column; gap: 8px; }
.ks-status-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ks-st { height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); font-size: 12px; font-weight: 800; }
.ks-st:hover { background: var(--s2); }
.ks-st.an { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.ks-st.st-PAR.an { background: #E8B51E; border-color: #E8B51E; color: #2E2400; }
.ks-st.st-BRN.an { background: #E0663A; border-color: #E0663A; color: #fff; }
.ks-st.st-PSN.an, .ks-st.st-TOX.an { background: #9B4FB3; border-color: #9B4FB3; color: #fff; }
.ks-st.st-SLP.an { background: #8A94A6; border-color: #8A94A6; color: #fff; }
.ks-st.st-FRZ.an { background: #5DB7D6; border-color: #5DB7D6; color: #06303D; }
.ks-st.st-VER.an { background: #D0539A; border-color: #D0539A; color: #fff; }
.ks-status-text { margin: 0; padding: 8px 12px 8px 26px; border-radius: 10px; background: var(--s2); font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.ks-werte span.gesenkt { background: var(--overBg); }
.ks-werte span.gesenkt b { color: var(--overFg); }
.ks-werte span.gesenkt i { color: var(--overFg); }
.ks-hinweis { display: flex; align-items: center; gap: 6px; margin: 0 16px 8px; padding: 6px 10px; border-radius: 8px; background: var(--capBg); color: var(--capFg); font-size: 12px; font-weight: 700; }
.ke-ko.rundenende { background: var(--overBg); color: var(--overFg); }

@media (max-width: 1000px) {
  .ks-raster { grid-template-columns: 1fr; }
  .ks-gesamt { grid-template-columns: 1fr; }
  .ks-schnell { position: static; }
  .ks-schnell-inhalt { flex-direction: row; flex-wrap: wrap; }
  .ks-schnell-inhalt > section { flex: 1 1 260px; }
  .ks-mitte { flex-direction: row; padding: 0; justify-content: center; }
  .ks-ergebnisse { grid-template-columns: 1fr; }
  .dd-raster { grid-template-columns: 1fr; }
  .dd-links { border-right: 0; border-bottom: 1px solid var(--line2); display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .dd-links .dex-buehne { grid-row: span 3; width: 110px; height: 110px; }
  .dd-links .dex-buehne .dex-artwork { width: 100px; height: 100px; }
  .dd-rang, .dd-fakten, .dd-links > .knopf { grid-column: 1 / -1; }
  .dd-inhalt { max-height: none; }
}
@media (max-width: 760px) {
  .seite-kampf { padding: 12px 12px 96px; }
  .ks-werte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ks-attacken { grid-template-columns: 1fr; }
  .dd-suche { display: none; }
  .dd-wert { grid-template-columns: 96px 36px minmax(0, 1fr) 64px; gap: 8px; }
  .dd-rechts { padding: 14px 16px 18px; }
}

/* ---------- Box-Titel als Knopf ---------- */
.tafel-titel-knopf { display: flex; align-items: center; gap: 8px; padding: 2px 6px; margin: -2px -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); }
.tafel-titel-knopf:hover { background: var(--s2); color: var(--accent); }
.kampfmodus-knopf { flex: none; }

/* ---------- Kampf-/Fangmodus ---------- */
.kampf-rahmen { display: grid; grid-template-columns: 236px minmax(0, 1fr) 352px; gap: 16px; padding: 16px; align-items: start; }
.km-leiste { position: sticky; top: calc(var(--kopf) + 16px); padding: 12px; gap: 10px; max-height: calc(100dvh - var(--kopf) - 32px); overflow: auto; }
.km-zurueck { width: 100%; justify-content: center; }
.km-wer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.km-sp { height: 28px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink2); font-size: 11.5px; font-weight: 800; overflow: hidden; }
.km-sp .sp-punkt, .km-mon .sp-punkt { width: 7px; height: 7px; border-radius: 99px; background: var(--pd); flex: none; }
.km-sp.an { border-color: var(--pd); background: var(--pt); color: var(--pc); }
.km-leiste h2 { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--pc, var(--ink)); }
.km-team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.km-mon { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.km-mon:hover { background: var(--s2); }
.km-mon.gewaehlt { border-color: var(--accent); background: var(--accentT); }
.km-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.km-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-zeile { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.seite-kampf.eingebettet { padding: 0; max-width: none; margin: 0; }
.seite-kampf.eingebettet .ks-kopf h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.seite-kampf.eingebettet .ks-gesamt { grid-template-columns: 1fr; }
.seite-kampf.eingebettet .ks-raster { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 10px; }
.seite-kampf.eingebettet .ks-vs { width: 44px; height: 44px; font-size: 14px; }
.km-rechts { position: sticky; top: calc(var(--kopf) + 16px); max-height: calc(100dvh - var(--kopf) - 32px); }
@media (max-width: 1400px) {
  .kampf-rahmen { grid-template-columns: 210px minmax(0, 1fr); }
  .km-rechts { grid-column: 1 / -1; position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
}
@media (max-width: 1000px) {
  .kampf-rahmen { grid-template-columns: 1fr; padding: 12px 12px 96px; }
  .km-leiste { position: static; max-height: none; }
  .km-team { flex-direction: row; overflow-x: auto; }
  .km-team li { flex: 0 0 180px; }
  .seite-kampf.eingebettet .ks-raster { grid-template-columns: 1fr; }
}

/* ---------- Karte ---------- */
.seite-karte { max-width: 1500px; margin: 0 auto; padding: 16px 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.kt-buehne { padding: 0 12px; }
.kt-buehne svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.kt-meer { fill: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.kt-land { fill: color-mix(in srgb, #7FB069 26%, var(--surface)); stroke: color-mix(in srgb, #7FB069 45%, var(--surface)); stroke-width: .6; }
.kt-weg { fill: none; stroke: #E9B949; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.kt-seeweg { fill: none; stroke: #E9B949; stroke-width: 1.1; stroke-dasharray: 1.6 1.8; stroke-linecap: round; opacity: .9; }
.kt-stadt circle { fill: var(--surface); stroke: #C9962A; stroke-width: .9; }
.kt-stadt text { font-size: 3.4px; font-weight: 800; fill: var(--ink2); paint-order: stroke; stroke: var(--surface); stroke-width: .9; }
.kt-ort { cursor: pointer; outline: none; }
.kt-punkt { fill: var(--surface); stroke: var(--ink3); stroke-width: .8; transition: stroke-width .12s; }
.kt-nr { font-size: 3.2px; font-weight: 800; fill: var(--ink); pointer-events: none; }
.kt-name { font-size: 3.4px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 1; pointer-events: none; }
.kt-kreuz { stroke: #fff; stroke-width: .9; stroke-linecap: round; pointer-events: none; }
.kt-ort.z-team .kt-punkt { fill: var(--accent); stroke: var(--accent); } .kt-ort.z-team .kt-nr { fill: #fff; }
.kt-ort.z-box .kt-punkt { fill: var(--good); stroke: var(--good); } .kt-ort.z-box .kt-nr { fill: #fff; }
.kt-ort.z-tot .kt-punkt { fill: var(--danger); stroke: var(--danger); }
.kt-ort.z-unvollstaendig .kt-punkt { fill: #E9B949; stroke: #C9962A; }
.kt-ort.z-verpasst .kt-punkt, .kt-ort.z-freigelassen .kt-punkt { fill: var(--s3); stroke: var(--ink3); stroke-dasharray: 1 .8; }
.kt-ort:hover .kt-punkt, .kt-ort:focus-visible .kt-punkt { stroke-width: 1.6; }
.kt-ort.gewaehlt .kt-punkt { stroke: var(--ink); stroke-width: 1.4; }
.kt-puls { fill: none; stroke: var(--accent); stroke-width: .9; animation: kt-puls 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes kt-puls { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .kt-puls { animation: none; } }
.kt-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px 14px; font-size: 12px; color: var(--ink2); }
.kt-legende span { display: inline-flex; align-items: center; gap: 6px; }
.kt-l { width: 12px; height: 12px; border-radius: 99px; border: 1.5px solid var(--ink3); background: var(--surface); }
.kt-l.z-team { background: var(--accent); border-color: var(--accent); } .kt-l.z-box { background: var(--good); border-color: var(--good); }
.kt-l.z-tot { background: var(--danger); border-color: var(--danger); } .kt-l.z-unvollstaendig { background: #E9B949; border-color: #C9962A; }
.kt-l.z-verpasst, .kt-l.z-freigelassen { background: var(--s3); border-style: dashed; }
.kt-l.raute { border-radius: 2px; transform: rotate(45deg) scale(.85); }
.kt-tafel { position: sticky; top: calc(var(--kopf) + 16px); }
.kt-tafel .tafel-kopf h2 { font-size: 16px; }
.kt-chip { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--s3); color: var(--ink2); }
.kt-chip.z-team { background: var(--accentT); color: var(--accent); } .kt-chip.z-box { background: var(--goodT); color: var(--goodFg); }
.kt-chip.z-tot { background: var(--dangerT); color: var(--danger); } .kt-chip.z-unvollstaendig { background: var(--capBg); color: var(--capFg); }
.kt-inhalt { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.kt-inhalt > p { margin: 0; }
.kt-hinweis { padding: 6px 10px; border-radius: 8px; background: var(--accentT); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.kt-gruppe { display: flex; flex-direction: column; gap: 6px; }
.kt-gruppe h3 { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.kt-zelle { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.kt-zelle:hover { background: var(--s2); }
.kt-zelle .sp-punkt { width: 8px; height: 8px; border-radius: 99px; background: var(--pd); flex: none; }
.kt-leer { width: 36px; height: 36px; border-radius: 10px; border: 1.5px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink3); font-weight: 800; flex: none; }
.kt-zt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kt-zt b { font-size: 13px; } .kt-zt small { font-size: 11.5px; color: var(--ink3); font-weight: 600; }
@media (max-width: 1000px) {
  .seite-karte { grid-template-columns: 1fr; padding: 12px 12px 96px; }
  .kt-tafel { position: static; }
}

/* ---------- Box-Analyse ---------- */
.seite-box { max-width: 1400px; margin: 0 auto; padding: 16px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.ba-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ba-titel h1 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ba-titel > span { font-size: 12.5px; color: var(--ink3); }
.ba-lagen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 16px 8px; }
.ba-lage { border: 1px solid var(--line2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--s2); }
.ba-lage h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--pc); }
.ba-lage h3 .sp-punkt, .ba-zelle .sp-punkt { width: 8px; height: 8px; border-radius: 99px; background: var(--pd); }
.ba-lage h3 .leise-klein { margin-left: auto; }
.ba-lage-team { display: flex; flex-wrap: wrap; gap: 2px; min-height: 32px; }
.ba-zeile { display: flex; flex-direction: column; gap: 4px; }
.ba-zeile small { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.ba-typen { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.ba-zaehl { display: inline-flex; align-items: center; gap: 2px; } .ba-zaehl b { font-size: 11px; color: var(--overFg); }
.ba-erklaerung { padding: 0 16px 12px; margin: 0; }
.ba-liste { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.ba-link { border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.ba-link-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; background: var(--s2); border-bottom: 1px solid var(--line2); }
.ba-rang { width: 26px; height: 26px; border-radius: 99px; background: var(--primaryBg); color: var(--primaryFg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.ba-ort { display: flex; flex-direction: column; min-width: 140px; } .ba-ort b { font-size: 14.5px; } .ba-ort small { font-size: 11.5px; color: var(--ink3); font-weight: 700; }
.ba-summen { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 280px; }
.ba-summen > span { display: flex; flex-direction: column; } .ba-summen small { font-size: 10.5px; font-weight: 800; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.ba-summen b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ba-balken { flex: 1; flex-direction: row !important; height: 8px; border-radius: 99px; background: var(--s3); overflow: hidden; min-width: 80px; }
.ba-balken i { display: block; height: 100%; background: var(--accent); } .ba-balken i.voll { background: color-mix(in srgb, var(--accent) 35%, var(--s3)); }
.ba-punkte.gut b { color: var(--good); } .ba-punkte.schlecht b { color: var(--danger); }
.ba-zellen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ba-zelle { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ba-zelle + .ba-zelle { border-left: 1px solid var(--line2); }
.ba-mon { display: flex; align-items: center; gap: 8px; }
.ba-mon-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ba-mon-text b { font-size: 13.5px; }
.ba-bst { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.ba-bst > b { font-size: 15px; color: var(--ink); }
.ba-beitrag { display: flex; flex-direction: column; gap: 5px; }
.ba-plus, .ba-minus { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ba-plus small, .ba-minus small { font-size: 10.5px; font-weight: 800; min-width: 74px; }
.ba-plus small { color: var(--good); } .ba-minus small { color: var(--danger); }
@media (max-width: 1000px) {
  .ba-lagen, .ba-zellen { grid-template-columns: 1fr; }
  .ba-zelle + .ba-zelle { border-left: 0; border-top: 1px solid var(--line2); }
  .seite-box { padding: 12px 12px 96px; }
}

/* ---------- Regeln ---------- */
.seite-regeln { max-width: 1240px; margin: 0 auto; padding: 16px 24px 120px; display: flex; flex-direction: column; gap: 16px; }
.rg-kopf h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.rg-kopf > span { display: block; max-width: 860px; margin-top: 4px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.rg-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rg-regeln { list-style: none; margin: 0; padding: 0 16px 14px; display: flex; flex-direction: column; }
.rg-regeln > li.leise { margin: 0 0 8px; }
.rg-regel { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line2); }
.rg-regel:first-child { border-top: 0; }
.rg-regel.geaendert { background: var(--capBg); margin: 0 -10px; padding: 10px; border-radius: 10px; border-top-color: transparent; }
.rg-regel.fest { opacity: .85; }
.rg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rg-text b { font-size: 14px; font-weight: 800; }
.rg-text span { font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.rg-text small { font-size: 11.5px; color: var(--ink3); }
.rg-schalter { flex: none; width: 44px; height: 26px; border-radius: 99px; border: 0; background: var(--s3); position: relative; padding: 0; }
.rg-schalter i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 99px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.rg-schalter.an { background: var(--good); } .rg-schalter.an i { left: 21px; }
.rg-schalter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rg-zahl { flex: none; display: flex; align-items: center; gap: 8px; } .rg-zahl b { min-width: 20px; text-align: center; font-size: 16px; }
.rg-regel .segment { flex: none; }
.rg-neu { display: flex; gap: 8px; padding: 0 16px 16px; } .rg-neu .knopf { height: 40px; }
.rg-liste { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.rg-vorschlag { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.rg-vorschlag.st-offen { border-color: color-mix(in srgb, #E9B949 60%, var(--line2)); background: color-mix(in srgb, var(--capBg) 45%, var(--surface)); }
.rg-v-kopf { display: flex; align-items: center; gap: 8px; } .rg-v-kopf b { font-size: 13.5px; }
.rg-status { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--s3); color: var(--ink2); }
.rg-status.st-offen { background: var(--capBg); color: var(--capFg); } .rg-status.st-angenommen { background: var(--goodT); color: var(--goodFg); }
.rg-status.st-abgelehnt { background: var(--dangerT); color: var(--danger); }
.rg-aenderungen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.rg-aenderungen li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.rg-aenderungen li > span { color: var(--ink2); font-weight: 700; } .rg-aenderungen s { color: var(--ink3); }
.rg-begruendung { margin: 0; font-size: 12.5px; color: var(--ink2); font-style: italic; }
.rg-stimmen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rg-stimme { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--s2); color: var(--ink3); border: 1px solid var(--line2); }
.rg-stimme .sp-punkt { width: 7px; height: 7px; border-radius: 99px; background: var(--pd); }
.rg-stimme.ja { background: var(--goodT); color: var(--goodFg); border-color: transparent; }
.rg-stimme.nein { background: var(--dangerT); color: var(--danger); border-color: transparent; }
.rg-entwurf { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; width: min(960px, calc(100% - 32px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.rg-entwurf-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rg-entwurf-text b { font-size: 13.5px; } .rg-entwurf-text span { font-size: 12px; color: var(--ink2); }
.rg-entwurf .eingabe { flex: 1 1 200px; }
@media (max-width: 900px) {
  .rg-raster { grid-template-columns: 1fr; }
  .seite-regeln { padding: 12px 12px 180px; }
  .rg-entwurf { bottom: 84px; }
}

/* ---------- Admin-Bereich ---------- */
.seite-admin { max-width: 980px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.seite-admin.zugang { min-height: calc(100vh - 140px); align-items: center; justify-content: center; }
.seite-admin > .fehler-box, .seite-admin > .admin-meldung { margin: 0; }
.admin-symbol { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--accentT); color: var(--accent); margin-bottom: 14px; }
.admin-symbol.klein { width: 40px; height: 40px; border-radius: 12px; margin: 0; flex: none; }
.admin-kopf { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.admin-kopf-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-kopf-text h1 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.admin-kopf-text span { font-size: 12.5px; color: var(--ink3); }
.admin-inhalt { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.admin-inhalt > .leise { margin: 0; }
.admin-neu { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; }
.admin-neu .knopf { height: 40px; }
.admin-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.admin-liste > li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line2); }
.admin-liste > li:first-child { border-top: 0; }
.admin-protokoll .admin-liste { padding: 0 16px 12px; }
.al-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.al-text b { font-size: 13.5px; font-weight: 800; overflow-wrap: anywhere; }
.al-text span { font-size: 12px; color: var(--ink3); }
.admin-konten { list-style: none; margin: 0; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.konto { border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--s2); }
.konto.gesperrt { border-color: color-mix(in srgb, var(--danger) 40%, var(--line2)); }
.konto > .leise { margin: 0; }
.konto-kopf { display: flex; align-items: flex-start; gap: 12px; }
.konto-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.konto-name b { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.konto-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.konto-zeit { flex: none; text-align: right; font-size: 11.5px; color: var(--ink3); line-height: 1.5; }
.konto-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.konto-pw { display: flex; flex-direction: column; gap: 6px; }
.konto-pw .leise { margin: 0; }
.konto-pw-zeile { display: flex; gap: 6px; }
.konto-pw-zeile .eingabe { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.konto-pw-zeile .knopf { height: 40px; flex: none; }
.konto-gesetzt { padding: 10px 12px; border-radius: 10px; background: var(--goodT); color: var(--goodFg); font-size: 12.5px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.konto-gesetzt code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--surface); color: var(--ink); user-select: all; }
.konto-gesetzt span { flex-basis: 100%; font-weight: 600; }
@media (max-width: 760px) {
  .seite-admin { padding: 12px 12px 96px; }
  .admin-neu { grid-template-columns: 1fr; }
  .konto-kopf { flex-direction: column; gap: 6px; }
  .konto-zeit { text-align: left; }
  .konto-pw-zeile { flex-wrap: wrap; }
  .konto-pw-zeile .eingabe { flex-basis: 100%; }
}
.platzliste .knopf:disabled { opacity: .45; }
.lade { color: var(--ink3); text-align: center; padding: 60px 0; }

/* ---------- Kopf in EINER Zeile: je schmaler, desto knapper ---------- */
@media (max-width: 1920px) {
  .kopf { gap: 10px; }
  .kopf .spielstand-knopf .sk-text, .wd-zahl { display: none; }
  .wer-da { padding: 2px 4px 2px 9px; gap: 0; }
  .wd-sp { margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
}
@media (max-width: 1760px) { .kopf .bilanz small { display: none; } .run-titel { max-width: 110px; } }
@media (max-width: 1640px) { .kopf .bilanz { display: none; } }
@media (max-width: 1500px) { .kopf .cap-text, .kopf .karten-knopf .kb-text { display: none; } }
@media (max-width: 1300px) { .kopf .run-titel { display: none; } }
@media (max-width: 1220px) { .kopf .orden-zahl { display: none; } }

/* ---------- Mittlere Breiten (760–1180): Pokedex und Rechner unter das Team ---------- */
@media (max-width: 1400px) {
  .marke-text span { display: none; }
  .bilanz { gap: 10px; }
}
@media (max-width: 1180px) {
  .kopf { height: auto; min-height: var(--kopf); flex-wrap: wrap; padding: 10px 16px; row-gap: 8px; }
  .bilanz { display: none; }
  .orden-gruppe { order: 5; margin-left: 0; }
  .karten-knopf { order: 6; }
  .team-rahmen { height: auto; }
  .team-seite { height: auto; }
  /* Das Team bekommt die volle Breite - neben der Box waeren seine drei
     Spalten nur gut 100 px breit. Box und Friedhof darunter, dann Pokedex. */
  .team-raster { grid-template-columns: minmax(0, 1fr); }
  .team-tafel { order: 1; min-height: 0; }
  .team-tafel .tafel-liste { overflow: visible; }
  .tk { flex: 0 0 auto; }
  .spalte.links { order: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
  .spalte.links .box-tafel { max-height: 520px; }
  .spalte.rechts { order: 3; overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seite-spielstand { grid-template-columns: 1fr; }
  .orte-kopf, .ort-zeile { grid-template-columns: 220px repeat(3, minmax(0, 1fr)); }
  .seite-dex { grid-template-columns: 1fr; }
}

/* ---------- Handy (< 760) ---------- */
@media (max-width: 760px) {
  .kopf { flex-wrap: nowrap; height: 60px; min-height: 60px; padding: 0 12px 0 16px; gap: 10px; }
  .kopf .logo, .kopf-nav, .kopf .orden-gruppe, .kopf .bilanz, .kopf .karten-knopf { display: none; }
  .run-titel { max-width: 92px; }
  .kopf { gap: 8px; padding: 0 10px 0 14px; }
  .run-knopf { padding: 0 8px 0 10px; gap: 6px; }
  .run-knopf .tag { display: none; }
  .spielstand-knopf { padding: 0 8px; }
  body { padding-bottom: 72px; }
  .handy-team { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 24px; }
  .orden-karte { padding: 12px 14px; gap: 10px; }
  .ok-cap { display: flex; align-items: center; gap: 10px; }
  .ok-cap .cap-chip { flex: 1; padding: 8px 12px; border-radius: 12px; }
  .ok-cap .cap-zahl b { font-size: 22px; }
  .ok-cap .cap-text { font-size: 12px; line-height: 1.3; }
  .handy-team .segment button { height: 40px; font-size: 13.5px; }
  .handy-team .kk { border-radius: 16px; padding: 0; overflow: visible; border-color: var(--line); box-shadow: var(--shadow); }
  .handy-team .kk-kopf { height: auto; padding: 6px 6px 6px 14px; background: var(--s2); border-bottom: 1px solid var(--line2); border-radius: 16px 16px 0 0; }
  .handy-team .kk-kopf h3 { font-size: 15px; }
  .handy-team .kk-kopf .griff { display: none; }
  .handy-team .kk-zeile { min-height: 58px; padding: 6px 14px 6px 12px; gap: 10px; }
  .handy-team .kk-zeile:first-of-type { border-top: 0; }
  .handy-team .initiale { width: 24px; height: 24px; font-size: 11px; }
  .handy-team .sprite.k34 { width: 44px; height: 44px; border-radius: 12px; background: var(--pt); }
  .handy-team .kk-name > span:first-child { font-size: 14.5px; font-weight: 800; }
  .unten-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 4px 8px 14px; background: var(--surface); border-top: 1px solid var(--line); }
  .unten-nav > a, .un-mehr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; height: 100%;
    text-decoration: none; border: 0; background: transparent; color: var(--ink2); font-size: 11px; font-weight: 600; }
  .unten-nav > .menue { display: flex; }
  .unten-nav > a[aria-current="page"] { color: var(--ink); font-weight: 800; }
  .un-symbol { width: 52px; height: 28px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
  .unten-nav > a[aria-current="page"] .un-symbol { background: var(--s3); }
  .unten-nav .menue-liste { right: 0; }
  .meldung { bottom: 86px; }

  .seite-orte { padding: 12px 12px 24px; gap: 12px; }
  .kacheln { gap: 10px; }
  .kachel { padding: 12px 14px; }
  .kachel b { font-size: 22px; }
  .leiste .suchfeld.breit { width: 100%; }
  .leiste .segment { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .sortier-umschalter { width: 100%; }
  .sortier-umschalter .segment { flex: 1; }
  .handy-team .sortier-auswahl { max-width: none; height: 36px; }
  .orte-kopf { display: none; }
  .ort-zeile { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; padding: 10px 6px; }
  .ort-zeile .ort-info { grid-column: 1 / -1; padding: 0 6px; }
  .ort-zeile.unter .ort-info { padding-left: 6px; }
  .zelle { flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px; }
  .zelle .sprite.k40 { width: 36px; height: 36px; }
  .z-name small { display: none; }
  .z-zeile { flex-wrap: wrap; }

  .seite-dex { padding: 12px 16px; }
  .seite-spielstand { padding: 12px 12px 24px; }
  .spielstand-knopf .sk-text { display: none; }
  .ss-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlg-zwei { grid-template-columns: 1fr; }
  .dialog-inhalt { padding: 16px; }
  .schleier { padding: 0; align-items: flex-end; }
  .dialog { border-radius: 20px 20px 0 0; max-height: 100dvh; overflow: auto; }
}

/* Team-Kopf: Hinweis nur, wenn Platz ist - sonst steht er im Tooltip jeder Karte */
.team-tafel .tafel-kopf .chip-ueber, .werte-knopf, .kampfmodus-knopf { white-space: nowrap; }
.team-tipp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1700px) { .team-tipp { display: none; } }

/* Neuer Run (neuer-run.js) */
.nr-dialog { max-width: 620px; }
.nr-bilanz { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--s2); }
.nr-zahlen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.nr-zahlen b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.nr-zahlen .punkt { display: inline-block; margin-right: 4px; }
.nr-team { display: flex; flex-wrap: wrap; gap: 6px; }
.nr-link { display: inline-flex; gap: 1px; padding: 2px 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line2); }
.nr-schuld { display: flex; flex-wrap: wrap; gap: 8px; }
.nr-schuld button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); font-weight: 700; }
.nr-schuld button[aria-pressed="true"] { border-color: var(--pd); background: var(--pt); color: var(--pc); }
.nr-uebernahme { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.nr-sp { color: var(--pc); font-weight: 800; }
.nr-haken { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.nr-haken input { width: 18px; height: 18px; accent-color: var(--accent); }
.nr-info p { margin: 0; }
.nr-info p + p { margin-top: 6px; }
.beendet-leiste { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--capBg); color: var(--capFg); font-size: 13px; font-weight: 600; }
.beendet-leiste > span { flex: 1; min-width: 0; }
.beendet-leiste .knopf { flex: none; }
.runliste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.runliste-eintrag { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); text-align: left; width: 100%; color: var(--ink); }
.runliste-eintrag:hover { border-color: var(--accent); }
.runliste-eintrag .rl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.runliste-eintrag b { font-size: 14px; }
.runliste-eintrag small { font-size: 12px; color: var(--ink3); font-weight: 600; }

/* Kampf-Simulator: gespeicherte Attacken (19_attacken.sql) */
.ks-sichern { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; min-height: 30px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.ks-sichern > span { flex: 1; min-width: 0; }
.ks-sichern.ok { color: var(--good); }
.ks-sichern.fehler { color: var(--danger); }

/* ---------------------------------------------------------------------------
   Startseite vor dem Anmelden (startseite.js, Entwurf design/redesign/Start.dc.html)
   --------------------------------------------------------------------------- */
.st-seite { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; }
.st-kopf, .st-haupt, .st-fuss { width: 100%; max-width: 1240px; margin: 0 auto; }
.st-kopf { display: flex; align-items: center; gap: 10px; padding: 20px 24px 0; }
.st-kopf .marke { display: flex; align-items: center; gap: 10px; }
.st-haupt { flex: 1; padding: 36px 24px 48px; }
.st-held { display: flex; flex-direction: column; align-items: center; text-align: center; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ink2); }
.st-wort { margin: 26px 0 6px; display: flex; justify-content: center; font-family: "Luckiest Guy", var(--font); font-weight: 400;
  font-size: clamp(50px, 13vw, 184px); letter-spacing: .02em; line-height: 1; color: #FFCB05; }
.st-wort span { display: inline-block; -webkit-text-stroke: .13em #2F64C0; paint-order: stroke fill;
  text-shadow: 0 .06em 0 #183A78, 0 .1em .12em rgba(16, 28, 60, .28); }
.st-unter { margin: 16px 0 0; font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; color: var(--ink2); }
.st-karten { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; margin-top: 52px; }
.st-karte { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(28, 35, 49, .05), 0 8px 28px rgba(28, 35, 49, .06); }
.st-karte-kopf { min-height: 88px; display: flex; flex-direction: column; gap: 6px; }
.st-karte h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.22; }
.st-karte-kopf p { margin: 0; font-size: 14px; color: var(--ink2); }
.st-akzent { color: var(--accent); }
.st-felder { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.st-feld { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.st-feld .eingabe { height: 46px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.st-feld textarea.eingabe { height: auto; min-height: 104px; padding: 12px 14px; line-height: 1.5; resize: vertical; font-family: inherit; }
.st-nachricht { flex: 1; }
.st-nachricht textarea { flex: 1; }
.st-label-zeile { display: flex; justify-content: space-between; align-items: baseline; }
.st-label-zeile .verweis { font-size: 12.5px; }
.st-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.st-feld-fehler { font-size: 12px; font-weight: 700; color: var(--danger); }
.st-feld .eingabe[aria-invalid="true"] { border-color: var(--danger); }
.st-knopf { height: 48px; width: 100%; border-radius: 12px; font-size: 14px; font-weight: 800; justify-content: center; }
.st-senden { border: 0; background: var(--accent); color: #fff; gap: 8px; }
:root[data-theme="dunkel"] .st-senden { color: #0F131B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) .st-senden { color: #0F131B; } }
.st-wechsel { margin: 0; min-height: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink3); text-align: center; }
.st-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.st-gesendet { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 12px 0; }
.st-gesendet h2 { font-size: 18px; }
.st-haken { width: 52px; height: 52px; border-radius: 99px; background: var(--goodT); color: var(--goodFg); display: flex; align-items: center; justify-content: center; }
.st-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 0 24px 24px; font-size: 12px; color: var(--ink3); text-align: center; }
.st-fuss a { color: var(--ink2); text-decoration: none; font-weight: 700; }
.st-fuss a:hover { color: var(--accent); }
@media (max-width: 520px) {
  .st-kopf { padding: 14px 16px 0; }
  .st-haupt { padding: 24px 16px 32px; }
  .st-karten { margin-top: 36px; gap: 16px; }
  .st-karte { padding: 22px 18px; flex-basis: 100%; }
  .st-karte-kopf { min-height: 0; }
  .st-karte h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: no-preference) {
  .st-wort span { animation: st-rein .5s cubic-bezier(.2, .9, .3, 1.3) both; }
  .st-wort span:nth-child(2) { animation-delay: .04s; } .st-wort span:nth-child(3) { animation-delay: .08s; }
  .st-wort span:nth-child(4) { animation-delay: .12s; } .st-wort span:nth-child(5) { animation-delay: .16s; }
  .st-wort span:nth-child(6) { animation-delay: .2s; } .st-wort span:nth-child(7) { animation-delay: .24s; }
  .st-wort span:nth-child(8) { animation-delay: .28s; }
}
@keyframes st-rein { from { opacity: 0; translate: 0 .3em; } }
.st-feld .pw-auge { top: 7px; right: 6px; }
.st-kopf .marke-text span { display: block; }
.st-feld .eingabe::placeholder { color: var(--ink3); font-weight: 500; opacity: .8; }
.kt-naechster { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kt-naechster > span { flex: 1; min-width: 180px; }
.kt-markieren { align-self: flex-start; }

/* Wer ist online? (Kopf, oben rechts) */
.wer-da { display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 5px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.wd-sp { position: relative; width: 28px; height: 28px; border-radius: 99px; display: flex; align-items: center; justify-content: center;
  background: var(--pt); color: var(--pc); font-size: 12px; font-weight: 800; opacity: .4; filter: grayscale(.6); transition: opacity .2s, filter .2s; cursor: default; }
.wd-sp.an { opacity: 1; filter: none; }
.wd-sp i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 99px; background: var(--ink3); border: 2px solid var(--surface); }
.wd-sp.an i { background: var(--good); }
.wd-zahl { margin-left: 2px; font-size: 12px; font-weight: 800; color: var(--ink3); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .wd-zahl { display: none; } .wer-da { padding: 3px; gap: 2px; } .wd-sp { width: 24px; height: 24px; font-size: 11px; } }
/* Handy: Kreise ueberlappen, Run-Name kuerzer - der Kopf passt in 360 px */
@media (max-width: 760px) {
  .kopf { gap: 8px; }
  .wer-da { padding: 2px 4px 2px 9px; gap: 0; }
  .wd-sp { width: 24px; height: 24px; font-size: 11px; margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
  .run-titel { max-width: 58px; }
}
