@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/schrift/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/schrift/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/schrift/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/schrift/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/schrift/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #0b0d10;
  --flaeche: #13161b;
  --flaeche-2: #1a1e25;
  --flaeche-3: #242a33;
  --linie: #2a303a;
  --text: #eef1f5;
  --text-2: #a5aebb;
  --text-3: #6f7886;
  --akzent: #c8f31d;
  --akzent-tief: #c8f31d;
  --akzent-text: #0b0d10;
  --akzent-weich: color-mix(in srgb, var(--akzent) 14%, transparent);
  --gefahr: #ff5d4e;
  --warn: #ffb020;
  --koerper-grund: #20252d;
  --koerper-muskel: #2d333d;
  --koerper-linie: #3a414c;
  --schatten: 0 10px 30px rgb(0 0 0 / 0.35);
  --r: 18px;
  --r-s: 12px;
  --schrift: 'Barlow', system-ui, -apple-system, sans-serif;
  --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
  color-scheme: dark;
}

:root[data-akzent='orange'] { --akzent: #ff7a1a; --akzent-tief: #ff7a1a; }
:root[data-akzent='eis'] { --akzent: #4cc9ff; --akzent-tief: #4cc9ff; }
:root[data-akzent='koralle'] { --akzent: #ff5f7e; --akzent-tief: #ff5f7e; --akzent-text: #160308; }
:root[data-akzent='minze'] { --akzent: #3ee6b0; --akzent-tief: #3ee6b0; }

:root[data-thema='hell'] {
  --bg: #eef0f3;
  --flaeche: #ffffff;
  --flaeche-2: #f3f5f8;
  --flaeche-3: #e7eaef;
  --linie: #dde1e7;
  --text: #11151b;
  --text-2: #4a5361;
  --text-3: #7a8392;
  --akzent-tief: #5d7a00;
  --koerper-grund: #e3e6eb;
  --koerper-muskel: #cfd4dc;
  --koerper-linie: #b9c0ca;
  --schatten: 0 10px 30px rgb(20 30 50 / 0.12);
  color-scheme: light;
}
:root[data-thema='hell'][data-akzent='orange'] { --akzent-tief: #c2540a; }
:root[data-thema='hell'][data-akzent='eis'] { --akzent-tief: #0a7fb5; }
:root[data-thema='hell'][data-akzent='koralle'] { --akzent-tief: #c62a4c; }
:root[data-thema='hell'][data-akzent='minze'] { --akzent-tief: #0c8f67; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: var(--akzent-tief); }
svg { display: block; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-k { width: 18px; height: 18px; }
.i-g { width: 28px; height: 28px; }
[hidden] { display: none !important; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; }
.seite { padding: calc(var(--oben) + 18px) 16px calc(var(--nav-h) + var(--unten) + 28px); }
.seite.ohne-nav { padding-bottom: calc(var(--unten) + 120px); }
#app[data-band] .seite:not(.ohne-nav) { padding-bottom: calc(var(--nav-h) + var(--unten) + 100px); }

/* Typografie */
.titel { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; margin: 0; }
.titel-m { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.titel-s { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
.etikett { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.etikett.akzent { color: var(--akzent-tief); }
.leise { color: var(--text-2); }
.sehr-leise { color: var(--text-3); }
.zahl { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.gross-zahl { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 0.95; font-variant-numeric: tabular-nums; }
.klein { font-size: 14px; }
.mini { font-size: 12.5px; }
.fett { font-weight: 600; }

/* Kopf */
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.kopf-zurueck { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; min-height: 44px; }
.kopf-zurueck .titel-m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Flächen */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; }
.karte + .karte, .karte + .abschnitt, .abschnitt + .karte { margin-top: 12px; }
.karte.dicht { padding: 12px 14px; }
.karte.klickbar { display: block; width: 100%; text-align: left; transition: transform 0.12s ease, border-color 0.15s ease; }
.karte.klickbar:active { transform: scale(0.985); }
.abschnitt { margin-top: 26px; }
.abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; min-height: 28px; }
.stapel > * + * { margin-top: 10px; }
.reihe { display: flex; align-items: center; gap: 10px; }
.reihe.zwischen { justify-content: space-between; }
.wachsen { flex: 1; min-width: 0; }
.trenner { height: 1px; background: var(--linie); margin: 14px 0; border: 0; }

/* Held-Karte mit technischem Raster */
.held {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--akzent) 10%, transparent), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--text) 4%, transparent) 23px 24px),
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--text) 4%, transparent) 23px 24px),
    var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 22px;
  padding: 18px;
}
.held::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 46px;
  height: 3px;
  background: var(--akzent);
  border-radius: 0 0 3px 0;
}
.held-inhalt { display: grid; grid-template-columns: 1fr 104px; gap: 12px; align-items: center; }
.held .figur { height: 150px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 14px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  background: var(--flaeche-3); color: var(--text);
  transition: transform 0.12s ease, background-color 0.15s ease, opacity 0.15s ease;
  user-select: none;
}
.knopf:active { transform: scale(0.97); }
.knopf:disabled { opacity: 0.45; pointer-events: none; }
.knopf.haupt { background: var(--akzent); color: var(--akzent-text); }
.knopf.gross { min-height: 58px; font-family: var(--display); font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 16px; }
.knopf.breit { width: 100%; }
.knopf.rand { background: transparent; border: 1px solid var(--linie); }
.knopf.gefahr { background: color-mix(in srgb, var(--gefahr) 16%, transparent); color: var(--gefahr); }
.knopf.klein { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.ikon-knopf { width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--flaeche-2); color: var(--text); transition: transform 0.12s ease; flex: none; }
.ikon-knopf:active { transform: scale(0.94); }
.ikon-knopf.flach { background: transparent; }
.text-knopf { color: var(--akzent-tief); font-weight: 600; font-size: 15px; padding: 8px 4px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.knopf-reihe { display: flex; gap: 10px; }
.knopf-reihe > * { flex: 1; }

/* Chips & Auswahl */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--text-2); font-weight: 500; font-size: 15px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip[aria-pressed='true'], .chip.an { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 600; }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 14px; padding: 4px; gap: 4px; }
.segment button { min-height: 38px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.segment button[aria-pressed='true'] { background: var(--flaeche-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
.wahl-liste { display: grid; gap: 8px; }
.wahl {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px;
  border-radius: 14px; background: var(--flaeche-2); border: 1px solid var(--linie); transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wahl[aria-pressed='true'] { border-color: var(--akzent); background: var(--akzent-weich); }
.wahl .punkt { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-3); flex: none; display: grid; place-items: center; }
.wahl[aria-pressed='true'] .punkt { border-color: var(--akzent); }
.wahl[aria-pressed='true'] .punkt::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); }

/* Formulare */
.feld { display: grid; gap: 6px; }
.feld + .feld, .feld + .reihe, .reihe + .feld { margin-top: 14px; }
.feld > span { font-size: 14px; color: var(--text-2); font-weight: 500; }
.eingabe {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 13px;
  background: var(--flaeche-2); border: 1px solid var(--linie); outline: none; font-size: 16px;
  transition: border-color 0.15s ease;
}
.eingabe:focus { border-color: var(--akzent); }
textarea.eingabe { min-height: 92px; resize: vertical; line-height: 1.4; }
select.eingabe { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.hinweis { font-size: 13.5px; color: var(--text-3); }
.fehler-text { color: var(--gefahr); font-size: 14.5px; font-weight: 500; }
.schalter-zeile { display: flex; align-items: center; gap: 14px; justify-content: space-between; min-height: 52px; }
.schalter-zeile + .schalter-zeile { border-top: 1px solid var(--linie); }
.schalter { width: 50px; height: 30px; border-radius: 999px; background: var(--flaeche-3); position: relative; flex: none; transition: background-color 0.18s ease; }
.schalter::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform 0.18s ease; }
.schalter[aria-checked='true'] { background: var(--akzent); }
.schalter[aria-checked='true']::after { transform: translateX(20px); background: var(--akzent-text); }

/* Navigation */
.nav {
  position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 560px; padding: 8px 12px calc(var(--unten) + 8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--linie);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.nav a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--text-3); text-decoration: none; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page'] .i { color: var(--akzent); }
.laeuft-band {
  position: fixed; z-index: 19; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--unten) + 10px); width: calc(100% - 32px); max-width: 528px;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: var(--akzent); color: var(--akzent-text); box-shadow: var(--schatten); text-decoration: none; font-weight: 600;
}
.laeuft-band .zahl { font-family: var(--display); font-size: 22px; font-weight: 700; }
.puls { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: 0.25; } }

/* Woche */
.woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.woche-tag { display: grid; justify-items: center; gap: 6px; padding: 8px 0 10px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid transparent; }
.woche-tag.heute { border-color: var(--linie); background: var(--flaeche-3); }
.woche-tag .k { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.woche-tag .z { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1; }
.woche-tag .m { width: 8px; height: 8px; border-radius: 50%; background: var(--flaeche-3); }
.woche-tag .m.ja { background: var(--akzent); box-shadow: 0 0 10px color-mix(in srgb, var(--akzent) 60%, transparent); }
.woche-tag .m.geplant { background: transparent; border: 2px solid var(--akzent); width: 9px; height: 9px; }

/* Ring */
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bahn { stroke: var(--flaeche-3); }
.ring .wert { stroke: var(--akzent); transition: stroke-dashoffset 0.4s ease; }
.ring-mitte { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring-mitte b { font-family: var(--display); font-size: 26px; }
.ring-mitte small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Körperfigur */
.figur { display: flex; justify-content: center; gap: 6px; height: 180px; }
.figur svg { height: 100%; width: auto; }
.figur .u { fill: var(--koerper-grund); stroke: var(--koerper-linie); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.figur .m { fill: var(--koerper-muskel); transition: fill 0.2s ease, fill-opacity 0.2s ease; }
.figur .n { fill: var(--koerper-grund); }
.figur .p { fill: var(--akzent); }
.figur .s { fill: var(--akzent); fill-opacity: 0.42; }
.figur .h { fill: var(--akzent); }
.figur.waehlbar .m { cursor: pointer; }
.figur.gross { height: 300px; }
.figur.mini { height: 64px; gap: 2px; }
.figur.klein { height: 110px; }
.figur-legende { display: flex; gap: 14px; justify-content: center; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.figur-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--akzent); margin-right: 6px; vertical-align: -1px; }
.figur-legende i.s { opacity: 0.42; }
.muskel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--flaeche-3); color: var(--text-2); letter-spacing: 0.02em; }
.tag.p { background: var(--akzent-weich); color: var(--akzent-tief); }

/* Listen */
.liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 60px; width: 100%; text-align: left; background: transparent; }
.zeile + .zeile { border-top: 1px solid var(--linie); }
button.zeile:active, a.zeile:active { background: var(--flaeche-2); }
a.zeile { color: inherit; text-decoration: none; }
.zeile .nr { width: 30px; height: 30px; border-radius: 9px; background: var(--flaeche-3); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; flex: none; color: var(--text-2); }
.zeile .titel-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .chev { color: var(--text-3); }

/* Training */
.training-kopf { position: sticky; top: 0; z-index: 15; margin: calc(-1 * (var(--oben) + 18px)) -16px 14px; padding: calc(var(--oben) + 12px) 16px 12px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linie); }
.uhr-gross { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.fortschritt { display: flex; gap: 4px; margin-top: 12px; }
.fortschritt i { flex: 1; height: 5px; border-radius: 3px; background: var(--flaeche-3); }
.fortschritt i.teil { background: color-mix(in srgb, var(--akzent) 45%, var(--flaeche-3)); }
.fortschritt i.voll { background: var(--akzent); }
.fortschritt i.weg { background: var(--flaeche-2); opacity: 0.6; }
.ueb { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.ueb + .ueb { margin-top: 10px; }
.ueb.offen { border-color: color-mix(in srgb, var(--akzent) 55%, var(--linie)); }
.ueb.fertig:not(.offen) { opacity: 0.72; }
.ueb-kopf { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: 68px; }
.ueb-kopf .status { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--linie); display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text-2); }
.ueb.fertig .status { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.ueb.uebersprungen .status { border-style: dashed; }
.ueb-koerper { padding: 0 14px 14px; }
.ueb-info { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; }
.ueb-info .figur { height: 120px; }
.letztes { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--flaeche-2); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.vorschlag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--akzent-weich); color: var(--akzent-tief); font-weight: 600; font-size: 14px; }
.tipps { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.tipps li + li { margin-top: 3px; }
.einstellung { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--text); padding: 6px 10px; border-radius: 9px; background: var(--flaeche-3); }
.saetze { margin-top: 14px; display: grid; gap: 8px; }
.satz { display: grid; grid-template-columns: 30px 1fr 1fr 52px; gap: 8px; align-items: center; }
.satz.eins { grid-template-columns: 30px 1fr 52px; }
.satz .nr { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text-3); text-align: center; }
.stepper { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; height: 52px; border-radius: 13px; background: var(--flaeche-2); border: 1px solid var(--linie); overflow: hidden; }
.stepper button { height: 100%; color: var(--text-2); font-size: 22px; font-weight: 500; display: grid; place-items: center; }
.stepper button:active { background: var(--flaeche-3); }
.stepper label { display: grid; justify-items: center; line-height: 1; }
.stepper input { width: 100%; text-align: center; border: 0; background: transparent; outline: none; font-family: var(--display); font-weight: 700; font-size: 22px; padding: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper small { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-top: 1px; }
.haken { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--flaeche-3); color: var(--text-3); transition: background-color 0.15s ease, transform 0.12s ease; }
.haken:active { transform: scale(0.93); }
.haken[aria-pressed='true'] { background: var(--akzent); color: var(--akzent-text); }
.satz.erledigt .stepper { border-color: color-mix(in srgb, var(--akzent) 40%, var(--linie)); }
.ueb-aktionen { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* Pausen-Timer */
.pause-leiste {
  position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(var(--unten) + 12px);
  width: calc(100% - 24px); max-width: 536px; border-radius: 20px; padding: 12px; overflow: hidden;
  background: var(--flaeche-3); border: 1px solid var(--linie); box-shadow: var(--schatten);
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
}
.pause-leiste::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--anteil, 0%); background: var(--akzent-weich); transition: width 1s linear; }
.pause-leiste > * { position: relative; }
.pause-leiste.fertig { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.pause-leiste.fertig .ikon-knopf { background: rgb(0 0 0 / 0.12); color: inherit; }
.pause-zeit { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.pause-leiste .ikon-knopf { width: 46px; height: 46px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.unten-leiste { position: fixed; z-index: 18; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; padding: 12px 16px calc(var(--unten) + 12px); background: linear-gradient(transparent, var(--bg) 30%); }

/* Kennzahlen */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 14px; min-height: 92px; display: grid; align-content: space-between; gap: 6px; }
.kachel b { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kachel b small { font-size: 16px; color: var(--text-2); margin-left: 3px; font-weight: 600; }

/* Diagramme */
.diagramm { width: 100%; height: auto; overflow: visible; }
.diagramm .achse { stroke: var(--linie); stroke-width: 1; }
.diagramm .gitter { stroke: var(--linie); stroke-width: 1; stroke-dasharray: 2 4; }
.diagramm .balken { fill: var(--akzent); }
.diagramm .balken.leise { fill: var(--akzent); fill-opacity: 0.32; }
.diagramm .linie { fill: none; stroke: var(--akzent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.diagramm .flaeche { fill: var(--akzent); fill-opacity: 0.1; }
.diagramm .punkt { fill: var(--akzent); stroke: var(--flaeche); stroke-width: 2; }
.diagramm .ziel { stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.diagramm text { fill: var(--text-3); font-size: 11px; font-family: var(--schrift); font-variant-numeric: tabular-nums; }
.diagramm text.wert { fill: var(--text-2); font-weight: 600; }

/* Kalender */
.kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.kalender .k { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 4px; }
.kalender .t { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--flaeche-2); color: var(--text-2); font-variant-numeric: tabular-nums; position: relative; }
.kalender .t.leer { background: transparent; }
.kalender .t.ja { background: var(--akzent); color: var(--akzent-text); }
.kalender .t.geplant { box-shadow: inset 0 0 0 2px var(--akzent); }
.kalender .t.heute { outline: 2px solid var(--text-2); outline-offset: 1px; }
.kalender button.t:active { transform: scale(0.95); }

/* Blatt (Bottom Sheet) */
.blatt-hinter { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.55); opacity: 0; transition: opacity 0.2s ease; }
.blatt-hinter.an { opacity: 1; }
.blatt {
  position: fixed; z-index: 41; left: 50%; bottom: 0; width: 100%; max-width: 560px;
  max-height: calc(100dvh - var(--oben) - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--flaeche); border: 1px solid var(--linie); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(var(--unten) + 20px);
  transform: translate(-50%, 100%); transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blatt.an { transform: translate(-50%, 0); }
.blatt-griff { width: 40px; height: 5px; border-radius: 3px; background: var(--flaeche-3); margin: 0 auto 12px; }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }

/* Toast */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--oben) + 12px); transform: translate(-50%, -24px);
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 15px; box-shadow: var(--schatten); pointer-events: none;
  opacity: 0; visibility: hidden; transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
}
.toast.an { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform 0.22s ease, opacity 0.22s ease; }
.toast.fehler { background: var(--gefahr); color: #fff; }

/* Leerer Zustand */
.leer-zustand { text-align: center; padding: 28px 16px; color: var(--text-2); }
.leer-zustand .i { margin: 0 auto 10px; width: 34px; height: 34px; color: var(--text-3); }

/* Hinweis-Band */
.band { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--akzent-weich); border: 1px solid color-mix(in srgb, var(--akzent) 30%, transparent); font-size: 14.5px; }
.band .i { color: var(--akzent-tief); margin-top: 1px; }
.band.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.band.warn .i { color: var(--warn); }
.offline-pille { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie); font-size: 12.5px; font-weight: 600; color: var(--text-2); }

/* Anmeldung */
.anmelden { min-height: 100dvh; display: grid; align-content: center; padding: calc(var(--oben) + 24px) 20px calc(var(--unten) + 24px); }
.marke { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.marke-zeichen { width: 52px; height: 52px; border-radius: 15px; background: var(--akzent); color: var(--akzent-text); display: grid; place-items: center; }
.marke-zeichen .i { width: 30px; height: 30px; stroke-width: 2.4; }
.marke b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; display: block; }

/* Gefühl */
.gefuehle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gefuehl { display: grid; justify-items: center; gap: 5px; padding: 10px 2px; border-radius: 13px; background: var(--flaeche-2); border: 1px solid var(--linie); font-size: 12px; font-weight: 600; color: var(--text-2); }
.gefuehl svg { width: 30px; height: 30px; }
.gefuehl[aria-pressed='true'] { background: var(--akzent-weich); border-color: var(--akzent); color: var(--text); }
.gefuehl[aria-pressed='true'] svg { color: var(--akzent-tief); }

/* Zusammenfassung */
.erfolg-kopf { text-align: center; padding: 18px 0 8px; }
.erfolg-kopf .marke-zeichen { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 20px; }
.bestwert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--akzent-weich); }
.bestwert .i { color: var(--akzent-tief); }

.sortier { display: flex; flex-direction: column; gap: 2px; }
.sortier button { width: 34px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); background: var(--flaeche-2); }
.sortier button:disabled { opacity: 0.3; }
.link-zeile { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--flaeche-2); font-size: 13px; word-break: break-all; }

@media (min-width: 600px) {
  .seite { padding-top: calc(var(--oben) + 32px); }
}

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