/* Rechentrainer – Gestaltung angelehnt an klassische Finanztaschenrechner:
   warmes Graphit-Gehäuse, champagnerfarbene Beschriftung, LCD-Anzeige. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(fonts/archivo-latin-wdth-normal.woff2) format('woff2');
}

:root {
  --body: #1b1916;
  --panel: #24211d;
  --raise: #2e2a25;
  --line: #3b362f;
  --text: #f0e9dc;
  --muted: #a39a8b;
  --gold: #d4b37a;
  --gold-ink: #2a2115;
  --orange: #e58a3c;
  --blue: #6aa6d9;
  --good: #63c98f;
  --bad: #ea6a54;
  --lcd: #c4c9ab;
  --lcd-2: #b1b895;
  --lcd-ink: #1c2015;
  --lcd-dim: #5c634d;
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --pad: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--body);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 14px) calc(env(safe-area-inset-right) + var(--pad)) calc(env(safe-area-inset-bottom) + 24px) calc(env(safe-area-inset-left) + var(--pad));
  display: flex;
  flex-direction: column;
}

/* ---------- Typografie ---------- */
.wordmark {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark svg { width: 22px; height: 22px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: 30px; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: 20px; font-stretch: 108%; line-height: 1.2; }
h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 26px 0 10px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  border: 0;
  border-radius: var(--r-m);
  padding: 14px 18px;
  font-weight: 650;
  font-size: 16px;
  background: var(--raise);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 #12100e;
  transition: transform .06s ease;
  width: 100%;
}
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 0 #12100e; }
.btn.gold { background: linear-gradient(#dcbd86, #c9a76c); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 #7c6339; }
.btn.gold:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #7c6339; }
.btn[disabled] { opacity: .5; cursor: default; }
.link {
  background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 15px;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
}
.link:hover { color: var(--text); }

/* ---------- Formulare ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 13px 14px;
  font-size: 17px;
}
.input:focus { border-color: var(--gold); outline: none; }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.45; }
.form-hint { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.success { color: var(--good); font-size: 15px; margin: 10px 0; }

.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 3px; gap: 3px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* ---------- Auth ---------- */
.auth { margin: auto 0; padding: 24px 0; }
.auth h1 { margin: 30px 0 10px; }
.auth .lead { color: var(--muted); margin-bottom: 28px; max-width: 34ch; }
.auth .foot { font-size: 13px; color: var(--muted); margin-top: 22px; }
.banner { background: var(--panel); border-left: 3px solid var(--orange); padding: 10px 12px; font-size: 14px; border-radius: 0 var(--r-s) var(--r-s) 0; margin-bottom: 18px; }

/* ---------- Kopfzeile ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.streak { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-stretch: 112%; color: var(--orange); }
.streak svg { width: 16px; height: 18px; }
.streak.off { color: var(--muted); }

.player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 22px; }
.player .lvl { font-stretch: 125%; font-weight: 800; font-size: 22px; line-height: 1; }
.player .lvl small { font-size: 13px; font-weight: 500; font-stretch: 100%; color: var(--muted); margin-right: 4px; }
.player .xp { font-size: 13px; color: var(--muted); }
.track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

/* ---------- LED-Segmentbalken ---------- */
.led { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.led i { height: 8px; border-radius: 2px; background: var(--line); }
.led i.on { background: var(--gold); box-shadow: 0 0 6px rgba(212,179,122,.25); }
.led.orange i.on { background: var(--orange); box-shadow: 0 0 6px rgba(229,138,60,.3); }

/* ---------- Tagesziel ---------- */
.goal { background: var(--panel); border-radius: var(--r-l); padding: 18px; margin-bottom: 12px; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.goal-time { font-stretch: 125%; font-weight: 800; font-size: 22px; }
.goal-time small { font-size: 14px; font-weight: 500; font-stretch: 100%; color: var(--muted); }
.goal .led i { height: 12px; }
.goal p { font-size: 14px; color: var(--muted); margin: 10px 0 14px; }

/* ---------- Smart-Mix-Taste ---------- */
.mixkey {
  display: block; width: 100%; text-align: left; border: 0;
  border-radius: var(--r-l); padding: 18px 20px;
  background: linear-gradient(#dcbd86, #c6a368);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #7c6339;
  margin-bottom: 8px;
}
.mixkey:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #7c6339; }
.mixkey b { display: block; font-stretch: 125%; font-weight: 800; font-size: 24px; line-height: 1.1; }
.mixkey span { font-size: 14px; opacity: .8; }

/* ---------- Bereichsliste ---------- */
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: 1fr 112px 34px; align-items: center; gap: 4px 12px;
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 2px;
}
.area:hover .area-name { color: var(--gold); }
.area-name { font-weight: 650; font-size: 17px; }
.area-desc { grid-column: 1; font-size: 13px; color: var(--muted); }
.area .led { grid-column: 2; grid-row: 1 / span 2; }
.area-val { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-stretch: 112%; font-weight: 700; font-size: 15px; }
.area-val.new { font-weight: 500; font-size: 13px; color: var(--muted); font-stretch: 100%; }
.area.locked { cursor: default; opacity: .55; grid-template-columns: 1fr 112px 52px; }
.area.locked:hover .area-name { color: inherit; }
.area.locked .area-val { white-space: nowrap; font-size: 12px; font-weight: 500; font-stretch: 100%; color: var(--muted); }

/* ---------- Fußnavigation ---------- */
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 28px; padding-top: 16px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.nav a:hover { color: var(--gold); }
.sync { font-size: 12px; color: var(--muted); margin-top: 10px; }
.sync.offline { color: var(--orange); }

/* ---------- Unterseiten ---------- */
.sub-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.back { background: none; border: 0; padding: 6px 8px 6px 0; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 15px; }
.back svg { width: 18px; height: 18px; }
.block { background: var(--panel); border-radius: var(--r-m); padding: 16px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv div b { display: block; font-stretch: 125%; font-weight: 800; font-size: 24px; line-height: 1.15; }
.kv div span { display: block; font-size: 13px; line-height: 1.3; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 500; color: var(--muted); font-size: 12px; }
td.num, th.num { text-align: right; white-space: nowrap; }
td .led { min-width: 70px; }
td .led i { height: 6px; }
.slow { color: var(--orange); }

.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; font-family: 'Archivo', sans-serif; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* ---------- Bereichsseite ---------- */
.area-lead { margin: -8px 0 20px; max-width: 52ch; }
.area-hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--panel); border-radius: var(--r-l); padding: 18px 20px; margin-bottom: 14px; }
.hero-val b { display: block; font-stretch: 125%; font-weight: 800; font-size: 44px; line-height: 1; }
.hero-val span { font-size: 13px; color: var(--muted); }
.hero-bar { display: grid; gap: 8px; }
.hero-bar .led i { height: 12px; }
.start-btn { font-size: 18px; padding: 16px 18px; }
.start-note { margin: 10px 0 6px; }
.desk-only { display: none; }
body:not(.touch) .desk-only { display: inline; }
.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: 1fr auto 90px 28px; gap: 12px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.skill-name small { display: block; font-size: 12px; color: var(--muted); }
.skill-lvl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.skill-val { text-align: right; font-weight: 700; font-stretch: 112%; }
.skill-row .led i { height: 6px; }

/* ---------- Training ---------- */
.train { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.train-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 10px; }
.train-top .link { justify-self: start; text-decoration: none; }
.train-title { font-weight: 650; font-size: 15px; text-align: center; }
.train-pts { justify-self: end; font-stretch: 125%; font-weight: 800; font-size: 20px; color: var(--gold); }
.train-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); margin-bottom: 8px; min-height: 22px; }
.combo { color: var(--orange); font-weight: 700; font-stretch: 112%; }
.combo.pop { animation: pop .28s ease-out; }
@keyframes pop { 40% { transform: scale(1.25); } }

.lcd {
  position: relative;
  background: linear-gradient(170deg, var(--lcd), var(--lcd-2));
  color: var(--lcd-ink);
  border-radius: var(--r-m);
  padding: 22px 18px 16px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 6px #14120f, 0 0 0 7px #3a352e;
  margin: 8px 7px 18px;
  min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background-color .2s;
}
.lcd-prompt {
  text-align: center; font-weight: 650; font-size: 20px; line-height: 1.3; font-stretch: 100%;
  white-space: pre-line; min-height: 2.6em; display: flex; align-items: center; justify-content: center;
}
.lcd-prompt.big { font-stretch: 125%; font-weight: 800; font-size: clamp(38px, 11vw, 54px); letter-spacing: -0.01em; }
.lcd-input {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 6px;
  border-top: 1px solid rgba(28,32,21,.25); padding-top: 10px; margin-top: 14px;
  font-stretch: 125%; font-weight: 800; font-size: 34px; min-height: 52px;
}
.lcd-input .ph { color: var(--lcd-dim); font-weight: 500; font-size: 16px; font-stretch: 100%; align-self: center; margin-right: auto; }
.caret { width: 3px; height: 30px; background: var(--lcd-ink); align-self: center; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lcd-unit { align-self: center; font-size: 18px; font-weight: 600; font-stretch: 100%; color: var(--lcd-dim); }
.lcd.ok { box-shadow: inset 0 2px 6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 6px #14120f, 0 0 0 7px var(--good); }
.lcd.bad { box-shadow: inset 0 2px 6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 6px #14120f, 0 0 0 7px var(--bad); }
.lcd.shake { animation: shake .25s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tag { position: absolute; top: 8px; left: 12px; font-size: 12px; color: var(--lcd-dim); }

.result { min-height: 64px; text-align: center; }
.result .plus { font-stretch: 125%; font-weight: 800; font-size: 26px; color: var(--good); display: inline-block; animation: rise .5s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.result .lvlup { display: block; color: var(--gold); font-weight: 650; font-size: 15px; margin-top: 4px; }
.result .sol { font-size: 15px; color: var(--muted); }
.result .sol b { color: var(--text); font-stretch: 112%; font-size: 22px; font-weight: 800; margin-left: 4px; }
.result .yours { font-size: 13px; color: var(--muted); }
.result details { margin-top: 8px; text-align: left; background: var(--panel); border-radius: var(--r-s); padding: 0 12px; }
.result summary { padding: 10px 0; cursor: pointer; color: var(--gold); font-size: 15px; font-weight: 600; }
.result ol { margin: 0 0 12px; padding-left: 20px; font-size: 15px; }
.result li { margin: 3px 0; }

.train-tools { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 4px; min-height: 30px; }
.train-tools .link { font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }

.keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: auto; padding-top: 12px; }
.key {
  border: 0; border-radius: 10px; padding: 0; height: 58px;
  background: linear-gradient(#3b3630, #2a2621);
  color: var(--text);
  font-stretch: 112%; font-weight: 700; font-size: 25px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #0f0d0b;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.key:active, .key.down { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 0 #0f0d0b; }
.key.fn { color: var(--gold); font-size: 21px; }
.key.wide { grid-column: span 2; }
.key.ok { background: linear-gradient(#dcbd86, #c6a368); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #7c6339; font-size: 20px; }
.key.ok:active, .key.ok.down { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #7c6339; }
.key svg { width: 26px; height: 26px; vertical-align: middle; }
body:not(.touch) .keypad { display: none; }
body.touch .hint { display: none; }

/* ---------- Bottom Sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,9,8,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 20; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto;
  background: var(--panel); border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 22px var(--pad) calc(env(safe-area-inset-bottom) + 22px);
  animation: up .2s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } }
.sheet h2 { margin-bottom: 14px; }
.sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--body); border-radius: 999px; padding: 8px 13px; font-size: 14px; }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.qbox { background: var(--body); border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; color: var(--muted); margin-bottom: 14px; white-space: pre-line; }
.summary-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.summary-big div b { display: block; font-stretch: 125%; font-weight: 800; font-size: 26px; }
.summary-big div span { font-size: 13px; color: var(--muted); }
.changes { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.changes li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.up { color: var(--good); font-weight: 650; }
.down { color: var(--bad); font-weight: 650; }

/* ---------- Admin ---------- */
.fb { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fb-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fb-kind { font-weight: 700; color: var(--text); }
.fb-kind.k-bug { color: var(--bad); } .fb-kind.k-idee { color: var(--blue); } .fb-kind.k-aufgabe { color: var(--orange); }
.fb-msg { white-space: pre-wrap; margin-bottom: 6px; }
.fb .qbox { margin: 8px 0; }
.fb.done { opacity: .5; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translateX(-50%); background: var(--text); color: var(--body); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 30; animation: drop .2s ease-out; max-width: 90vw; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
kbd {
  font: inherit; font-size: 12px; font-weight: 650; color: var(--text);
  padding: 1px 6px; border-radius: 5px; background: var(--raise);
  border: 1px solid var(--line); box-shadow: 0 1px 0 #0f0d0b;
}
.auth-demo { display: none; }

@media (min-width: 700px) {
  :root { --pad: 28px; }
  #app { padding-top: 40px; }
}

/* ---------- Laptop & Desktop ---------- */
@media (min-width: 960px) {
  :root { --pad: 40px; }
  #app { max-width: 1160px; padding-top: 36px; }
  #app.page-train, #app.page-area, #app.page-feedback, #app.page-konto, #app.page-admin { max-width: 780px; }
  .skill-row { grid-template-columns: 1fr auto 140px 32px; }

  /* Anmeldung: links Marke mit Beispielanzeige, rechts Formular */
  #app.page-auth { max-width: 1060px; }
  .auth { display: grid; grid-template-columns: 1fr 400px; gap: 88px; align-items: center; }
  .auth h1 { font-size: 46px; margin-top: 36px; }
  .auth .lead { font-size: 18px; margin-bottom: 36px; }
  .auth-demo { display: flex; max-width: 460px; min-height: 0; margin: 0 7px; pointer-events: none; }
  .auth-demo .lcd-prompt { font-size: 22px; }
  .auth-form { background: var(--panel); border-radius: var(--r-l); padding: 28px; }

  /* Startseite: links Tagesziel und Smart Mix, rechts die Bereiche */
  #app.page-home {
    display: grid; grid-template-columns: 380px 1fr; column-gap: 64px;
    grid-template-rows: auto auto auto auto auto 1fr; align-content: start;
  }
  .page-home .top { grid-column: 1 / -1; margin-bottom: 30px; }
  .page-home .wordmark { font-size: 20px; }
  .page-home .player { grid-column: 1; grid-row: 2; }
  .page-home .goal { grid-column: 1; grid-row: 3; }
  .page-home .mixkey { grid-column: 1; grid-row: 4; }
  .page-home .nav { grid-column: 1; grid-row: 5; margin-top: 24px; }
  .page-home .sync { grid-column: 1; grid-row: 6; align-self: start; }
  .page-home .home-main { grid-column: 2; grid-row: 2 / span 5; }
  .page-home .home-main > h3:first-child { margin-top: 0; }
  .page-home .area { grid-template-columns: 1fr 180px 64px; padding: 17px 4px; column-gap: 20px; }
  .page-home .area-name { font-size: 19px; }
  .page-home .area-desc { font-size: 14px; }
  .page-home .area .led i { height: 10px; }
  .page-home .area-val { font-size: 17px; }

  /* Training: größere Anzeige, Tastatur statt Keypad */
  .page-train .train-top { margin-bottom: 16px; }
  .page-train .lcd { min-height: 290px; padding: 32px 30px 22px; margin-top: 14px; }
  .page-train .lcd-prompt { font-size: 28px; }
  .page-train .lcd-prompt.big { font-size: 84px; }
  .page-train .lcd-input { font-size: 50px; min-height: 72px; }
  .page-train .caret { height: 44px; }
  .page-train .result { min-height: 130px; }
  .page-train .result .plus { font-size: 36px; }
  .page-train .result .sol b { font-size: 28px; }

  /* Statistik: Überblick und Verlauf nebeneinander, Bereiche in drei Spalten */
  .stats-top { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; align-items: start; }
  .stats-top h3 { margin-top: 0; }
  .stats-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; margin-top: 10px; }
}
