/* DK-Freunde – dunkles, ruhiges Design im Stil von Poker-Apps */
:root {
  color-scheme: dark;
  --bg: #0a0d11; --bg-2: #0e1217;
  --surface: #13181f; --surface-2: #1a2129; --surface-3: #222b35;
  --line: #27313d; --line-2: #34404e;
  --text: #e8ecf1; --muted: #8b97a6; --faint: #5c6776;
  --gold: #d6b25e; --gold-2: #b38f3e; --gold-ink: #17120a; --gold-soft: rgba(214, 178, 94, .14);
  --felt: #0f5539; --felt-2: #062a1c; --rail: #1e1611; --rail-2: #3b2b20;
  --pos: #3cc98f; --neg: #f0645f;
  --re: #6b97f2; --kontra: #e8786a;
  --radius: 16px; --radius-s: 11px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .5);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --topbar-h: 56px; --tabbar-h: 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--text); font: 15px/1.45 var(--font);
  background: radial-gradient(1200px 600px at 50% -200px, #16202a 0%, var(--bg) 60%) fixed;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: var(--gold); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.klein { font-size: 13px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Kopfzeile & Tab-Leiste ---------- */
.topbar { position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t);
  background: rgba(10, 13, 17, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .05); }
.topbar-innen { height: var(--topbar-h); max-width: 1180px; margin: 0 auto; padding: 0 8px 0 12px; display: flex; align-items: center; gap: 6px; }
.titelblock { flex: 1; min-width: 0; padding-left: 4px; }
.titel { font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.untertitel { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.untertitel:empty { display: none; }
.rechts { display: flex; gap: 2px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--text); background: transparent; border: 0; cursor: pointer; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn .ic { width: 22px; height: 22px; }

.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding-bottom: var(--safe-b);
  background: rgba(13, 17, 22, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex; justify-content: center; }
.tabbar a { flex: 1; max-width: 140px; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tabbar a .ic { width: 23px; height: 23px; }
.tabbar a.aktiv { color: var(--gold); }
@media (min-width: 900px) {
  .tabbar { position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); bottom: auto; border-top: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); padding: 0; }
  .tabbar a { flex-direction: row; height: 46px; gap: 8px; font-size: 12px; max-width: 170px; }
  .tabbar a .ic { width: 18px; height: 18px; }
}

main { max-width: 1180px; margin: 0 auto; padding: 16px 14px calc(var(--tabbar-h) + var(--safe-b) + 28px); }
body.mit-aktion main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 96px); }
body.ohne-tabbar main { padding-bottom: calc(var(--safe-b) + 110px); }
@media (min-width: 900px) { main { padding-bottom: 120px; } }
.laden { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Karten, Listen, Raster ---------- */
.karte { background: linear-gradient(180deg, var(--surface) 0%, #11161c 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.karte.eng { padding: 6px 0; }
.karte.schmal { max-width: 440px; margin-left: auto; margin-right: auto; }
.label { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin: 0 0 10px; }
.karte.eng > .label { padding: 10px 16px 0; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kopf .label { margin: 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.zeile { display: flex; align-items: center; gap: 10px; }
.zeile.zw { justify-content: space-between; }
.umbruch { flex-wrap: wrap; }
.spacer { flex: 1; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.liste { list-style: none; margin: 0; padding: 0; }
.eintrag { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text); }
.eintrag:first-child { border-top: 0; }
a.eintrag:active, button.eintrag:active { background: var(--surface-2); }
button.eintrag { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; }
.eintrag .haupt { flex: 1; min-width: 0; }
.eintrag .haupt b, .eintrag .name { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .sub { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .wert { font-weight: 700; font-size: 16px; }
.eintrag .ic.pfeil { color: var(--faint); width: 18px; height: 18px; }
.leer { color: var(--muted); padding: 14px 16px; }

.kacheln { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.kachel { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kachel .k-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.kachel .k-wert { font-size: 20px; font-weight: 700; margin-top: 2px; }
.kachel .k-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- Bedienelemente ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 15px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(1px); background: var(--surface-3); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primaer { background: linear-gradient(180deg, #e2c272 0%, var(--gold) 45%, var(--gold-2) 100%); color: var(--gold-ink); border-color: #e9cd85; box-shadow: 0 6px 18px rgba(214, 178, 94, .22); }
.btn.geist { background: transparent; border-color: transparent; color: var(--gold); }
.btn.gefahr { color: var(--neg); }
.btn.klein { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }

label.feld { display: block; margin-bottom: 12px; }
label.feld > span, .feld-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: 16px var(--font); color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-s); outline: none; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input[type=number] { -moz-appearance: textfield; }
input[type=date] { min-height: 46px; }

/* Schalter (Checkbox) */
.schalter-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--line); }
.schalter-zeile:first-child { border-top: 0; }
.schalter-zeile .txt { flex: 1; }
.schalter-zeile .txt small { display: block; color: var(--muted); font-size: 12.5px; }
input.schalter { width: 50px; min-width: 50px; height: 30px; min-height: 30px; padding: 0; border-radius: 30px; background: var(--surface-3); border: 1px solid var(--line-2);
  position: relative; cursor: pointer; transition: background .2s; }
input.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #cfd6de; transition: transform .2s; }
input.schalter:checked { background: var(--gold-2); border-color: var(--gold); }
input.schalter:checked::after { transform: translateX(20px); background: #fff; }

/* Segmente */
.segment { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.segment button, .segment a { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 8px; white-space: nowrap; }
.segment .aktiv { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.segment.gold .aktiv { color: var(--gold); }
.tisch-tabs { position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 20; margin: -16px -14px 14px; padding: 8px 14px; background: rgba(10, 13, 17, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 500 14px var(--font);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip.an { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.chip small { color: var(--muted); }

/* Badges & Ränge */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface-3); color: var(--muted); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.live { background: rgba(240, 100, 95, .14); color: #ff8a85; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5c56; margin-right: 6px; }
.rang { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.rang.r1 { background: linear-gradient(160deg, #f0d48a, #b8913a); color: #1d1607; }
.rang.r2 { background: linear-gradient(160deg, #e5e9ee, #9aa4b0); color: #15191e; }
.rang.r3 { background: linear-gradient(160deg, #e0a878, #96603a); color: #1c1008; }
.live-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
body.live-an .live-punkt { background: #ff5c56; animation: puls 2s infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(255, 92, 86, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 92, 86, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 92, 86, 0); } }

.hinweis { border: 1px solid rgba(214, 178, 94, .35); background: var(--gold-soft); color: #ecd9a6; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.hinweis.rot { border-color: rgba(240, 100, 95, .35); background: rgba(240, 100, 95, .1); color: #ffb4b0; }

/* ---------- Tisch ---------- */
.statuszeile { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.statuszeile b { color: var(--text); font-weight: 600; }
/* seitlicher Rand, damit die Plätze nie über den Bildschirmrand ragen */
.tisch-wrap { position: relative; width: calc(100% - 56px); margin: 30px auto 0; }
.tisch-wrap.rund, .tisch-wrap.quadratisch { aspect-ratio: 1 / 1; max-width: 500px; }
.tisch-wrap.oval, .tisch-wrap.rechteckig { aspect-ratio: 1 / 1.02; max-width: 500px; }
/* Hochformat (iPhone): oval/rechteckig als längliche Platte im fast quadratischen Feld */
.tisch-wrap.oval .platte, .tisch-wrap.rechteckig .platte { inset: 24% 17%; }
@media (min-width: 700px) {
  .tisch-wrap.oval, .tisch-wrap.rechteckig { aspect-ratio: 16 / 10; max-width: 720px; }
  .tisch-wrap.oval .platte, .tisch-wrap.rechteckig .platte { inset: 19%; }
}
.platte { position: absolute; inset: 19%; display: grid; place-items: center; text-align: center; padding: 6px;
  background: radial-gradient(ellipse at 50% 38%, #177250 0%, var(--felt) 38%, var(--felt-2) 100%);
  border: 12px solid var(--rail); box-shadow: 0 0 0 1px var(--rail-2), inset 0 0 0 1px rgba(214, 178, 94, .28), inset 0 0 50px rgba(0, 0, 0, .55), var(--shadow); }
.tisch-wrap.rund .platte, .tisch-wrap.oval .platte { border-radius: 50%; }
.tisch-wrap.quadratisch .platte, .tisch-wrap.rechteckig .platte { border-radius: 26px; }
.platte .info { color: rgba(255, 255, 255, .82); font-size: clamp(10px, 2.4vw, 13px); line-height: 1.35; }
.platte .info .klein-caps { font-size: clamp(9px, 2vw, 11px); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.bock-chip { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; padding: 3px 10px; border-radius: 14px; background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(214, 178, 94, .55); color: var(--gold); font-weight: 700; font-size: clamp(11px, 2.6vw, 14px); letter-spacing: .06em; }
.chipstapel { display: inline-flex; }
.chipstapel i { width: 10px; height: 10px; border-radius: 50%; margin-left: -3px; background: radial-gradient(circle at 50% 40%, #f2d78f, #a8822f); border: 1px dashed rgba(0, 0, 0, .45); }
.queue { display: flex; gap: 3px; justify-content: center; margin-top: 4px; }
.queue i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.queue i.b1 { background: rgba(214, 178, 94, .55); } .queue i.b2 { background: rgba(214, 178, 94, .8); } .queue i.b3 { background: var(--gold); }

.platz { position: absolute; transform: translate(-50%, -50%); width: clamp(76px, 21%, 124px); padding: 7px 6px 6px; text-align: center; border-radius: 13px;
  background: rgba(19, 24, 31, .94); border: 1px solid var(--line-2); box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.platz .name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platz .pkt { font-size: clamp(15px, 3.6vw, 19px); font-weight: 750; letter-spacing: -.01em; }
.platz .markierung { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-height: 12px; }
.platz.geber { border-color: rgba(214, 178, 94, .8); box-shadow: 0 0 0 1px rgba(214, 178, 94, .35), 0 8px 18px rgba(0, 0, 0, .45); }
.platz.aus { opacity: .5; }
.dealer { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #ffffff, #d9dde2); color: #111; font: 800 11px var(--font); border: 2px solid #9aa3ad; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.ps-punkt { display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--gold); margin-left: 4px; vertical-align: middle; }
.platz.sitz { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.platz.markiert { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.platz .nr { font-size: 10px; color: var(--faint); }

/* Untere Aktionsleiste (über der Tab-Leiste) */
.aktionsleiste { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); padding: 10px 14px;
  background: linear-gradient(180deg, rgba(10, 13, 17, 0), rgba(10, 13, 17, .92) 35%); }
body.ohne-tabbar .aktionsleiste { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); }
.aktionsleiste-innen { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.aktionsleiste .btn { min-height: 52px; font-size: 16px; border-radius: 14px; }
.aktionsleiste .btn.primaer { flex: 1; }
@media (min-width: 900px) { .aktionsleiste { bottom: 0; padding-bottom: 16px; } }

/* Verlauf als Karten */
.spiel-karte { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 16px; cursor: pointer; }
.spiel-karte:first-child { border-top: 0; }
.spiel-karte:active { background: var(--surface-2); }
.spiel-karte .k { display: flex; align-items: baseline; gap: 10px; }
.spiel-karte .nr { color: var(--faint); font-weight: 700; min-width: 26px; }
.spiel-karte .titel-z { flex: 1; font-weight: 600; }
.spiel-karte .faktor { color: var(--gold); font-size: 13px; font-weight: 700; }
.punkte-reihe { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 0 36px; font-size: 13.5px; }
.punkte-reihe span { color: var(--muted); }
.punkte-reihe b { font-weight: 700; margin-left: 4px; }
.runden-kopf { padding: 10px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: rgba(214, 178, 94, .06); border-top: 1px solid var(--line); }

/* Tabellen */
table.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab th, .tab td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tab th { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tab th:first-child, .tab td:first-child, .tab td.l, .tab th.l { text-align: left; }
.tab tr:last-child td { border-bottom: 0; }
.tab td.sortiert, .tab th.sortiert { color: var(--gold); }
.tab a { color: var(--text); }

/* ---------- Sheets (aufgleitende Fenster) ---------- */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 92dvh; padding: 0; border: 0; color: var(--text);
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; overflow: hidden; }
dialog.sheet:not([open]) { display: none; }
dialog.sheet[open] { animation: hoch .26s cubic-bezier(.2, .9, .3, 1); }
@keyframes hoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.sheet-kopf { padding: 8px 12px 6px 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.sheet-kopf::before { content: ""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); }
.sheet-kopf h3 { flex: 1; margin: 12px 0 6px; font-size: 17px; }
.sheet-inhalt { padding: 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-fuss { padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 700px) {
  dialog.sheet { inset: 0; margin: auto; width: min(600px, 94vw); max-height: 88dvh; height: fit-content; border-radius: 20px; }
  .sheet-kopf::before { display: none; }
  .sheet-fuss { padding-bottom: 14px; }
}
.abschnitt { margin-bottom: 20px; }
.abschnitt:last-child { margin-bottom: 0; }

/* Eingabe: Parteien */
.partei { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--line); }
.partei:first-child { border-top: 0; }
.partei .name { flex: 1; font-weight: 600; }
.partei .wahl { display: flex; gap: 6px; }
.partei .wahl button { min-width: 74px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font: 650 14px var(--font); cursor: pointer; }
.partei .wahl button.re.an { background: rgba(107, 151, 242, .18); border-color: var(--re); color: #a9c3ff; }
.partei .wahl button.kontra.an { background: rgba(232, 120, 106, .16); border-color: var(--kontra); color: #ffb3a9; }
.partei .wahl button:disabled { opacity: .35; }
/* Soloarten als 3-Spalten-Raster */
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.raster-3.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster-knopf:disabled { opacity: .35; cursor: default; }
.eintrag .sub.neg { color: var(--neg); }
.raster-knopf { min-height: 54px; padding: 6px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: 600 13.5px/1.25 var(--font); text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  overflow-wrap: anywhere; hyphens: auto; }
.raster-knopf small { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.raster-knopf.an { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.raster-knopf.an small { color: var(--gold-2); }
/* Gewinner: zwei große Knöpfe */
.gewinner-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gewinner-wahl button { min-height: 56px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font: 700 16px var(--font); cursor: pointer; }
.gewinner-wahl button.re.an { background: rgba(107, 151, 242, .18); border-color: var(--re); color: #a9c3ff; }
.gewinner-wahl button.kontra.an { background: rgba(232, 120, 106, .16); border-color: var(--kontra); color: #ffb3a9; }
/* hinzugefügte Bockgründe mit Entfernen-Knopf, Auswahlliste unter „… hinzufügen“ */
.chip .chip-weg { border: 0; background: transparent; color: inherit; padding: 0 0 0 4px; margin-right: -6px; display: inline-grid; place-items: center; cursor: pointer; }
.chip .chip-weg .ic { width: 16px; height: 16px; }
.punkte-reihe-wahl { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.punkte-reihe-wahl .chip { padding: 0; justify-content: center; }
.platte .info[role=button] { cursor: pointer; border-radius: 14px; padding: 4px 6px; -webkit-tap-highlight-color: transparent; }
.platte .info[role=button]:active { background: rgba(0, 0, 0, .18); }
.eintrag.vs { min-height: 52px; }
.eintrag.vs .nr { min-width: 30px; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.eintrag.vs.jetzt { background: rgba(214, 178, 94, .06); }
.eintrag.vs.vorf b { color: var(--gold); }
.bock-mini { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-wahl { display: grid; gap: 8px; }
.ab-wahl > button:not(.btn) { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.ab-wahl > button:not(.btn):active { background: var(--surface-3); border-color: var(--gold); }
.ab-wahl > button b { display: block; font-weight: 650; }
.ab-wahl > button span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ab-wahl .hinweis { margin: 0; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { text-align: center; font-size: 22px; font-weight: 700; min-height: 52px; }
.stepper button { width: 52px; min-width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 20px var(--font); cursor: pointer; }
.ergebnis-leiste { display: flex; align-items: center; gap: 12px; }
.ergebnis-leiste .zusammenfassung { flex: 1; min-width: 0; }
.ergebnis-leiste .gross { font-size: 19px; font-weight: 750; }
.ergebnis-leiste .klein { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ergebnis-leiste .btn { min-height: 50px; padding: 0 22px; }

/* Assistent */
.schritte { display: flex; gap: 6px; margin-bottom: 16px; }
.schritte div { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.schritte div.fertig { background: var(--gold-2); } .schritte div.aktiv { background: var(--gold); }
.schritt-titel { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.auswahl-zeile { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 4px; border-top: 1px solid var(--line); cursor: pointer; }
.auswahl-zeile:first-child { border-top: 0; }
.auswahl-zeile .kreis { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; }
.auswahl-zeile.an .kreis { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.auswahl-zeile .name { flex: 1; font-weight: 600; }
.formen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.formen button { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font: 600 11.5px var(--font);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.formen button.an { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.formen i { display: block; background: var(--felt); border: 3px solid var(--rail-2); }
.formen .rund { width: 34px; height: 34px; border-radius: 50%; } .formen .oval { width: 44px; height: 28px; border-radius: 50%; }
.formen .quadratisch { width: 32px; height: 32px; border-radius: 5px; } .formen .rechteckig { width: 46px; height: 28px; border-radius: 5px; }
.listen-zeile { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.listen-zeile:first-child { border-top: 0; }
.listen-zeile input[type=text] { flex: 1; min-width: 0; }
.listen-zeile input[type=number] { width: 62px; text-align: center; }
.listen-zeile .mini { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.reihenfolge-knopf { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.reihenfolge-knopf .ic { width: 16px; height: 16px; }

/* Diagramm */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .gitter { stroke: var(--line); stroke-width: 1; }
.chart .achse { stroke: var(--line-2); stroke-width: 1.2; }
.chart .balken { fill: var(--gold-2); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; }
.legende i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Toast */
#toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); max-width: calc(100% - 32px);
  background: #232b35; color: var(--text); border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; text-align: center; }

/* Anmeldung */
.marke { text-align: center; margin: 18px 0 22px; }
.marke .logo { width: 72px; height: 72px; margin: 0 auto 10px; display: block; border-radius: 18px; }
.marke .name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.marke .claim { color: var(--muted); font-size: 14px; }
