:root {
  /* Farben und Schriften kommen aus oetztal.css (--oe-…); die alten Namen bleiben, damit die Regeln unten gleich bleiben. */
  --grund: var(--oe-grund); --flaeche: var(--oe-flaeche); --rand: var(--oe-rand); --text: var(--oe-text); --leise: var(--oe-leise);
  --akzent: var(--oe-tuerkis); --akzent-text: var(--oe-grund); --warn: var(--oe-warn); --gut: var(--oe-gut);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* Was ausgeblendet ist, bleibt es, auch wenn eine andere Regel eine Anzeigeart setzt. */
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.4 var(--oe-schrift);
  padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 84px);
}
main { max-width: 560px; margin: 0 auto; }
.spalte { min-width: 0; }
h1 { font-size: 1.5rem; margin: 16px 0 0; }
h2 { font-size: 1.05rem; margin: 28px 0 10px; color: var(--leise); font-weight: 600; }
#datum { margin: 2px 0 0; color: var(--leise); }
#garmin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
#garmin div { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 6px 4px; text-align: center; }
#garmin dt { font-size: 0.68rem; color: var(--leise); white-space: nowrap; }
#garmin dd { margin: 0; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
#garmin .stufe-gruen { border-bottom: 4px solid #3fbf6f; } #garmin .stufe-gruen dd { color: #3fbf6f; }
#garmin .stufe-gelb { border-bottom: 4px solid #f0b429; } #garmin .stufe-gelb dd { color: #f0b429; }
#garmin .stufe-rot { border-bottom: 4px solid #ff5a5a; } #garmin .stufe-rot dd { color: #ff5a5a; }
/* Erholungsscore oben auf "Werte" */
#erholung { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 12px; margin: 12px 0; }
#erholung-skala svg { display: block; width: 100%; max-width: 320px; margin: 0 auto; }
#erholung-skala .strich { stroke: var(--leise); stroke-width: 1; }
#erholung-skala .strich.gross { stroke: var(--text); stroke-width: 2; }
#erholung-skala .beschriftung { fill: var(--leise); font-size: 11px; text-anchor: middle; dominant-baseline: middle; }
#erholung-skala .zeiger, #erholung-skala .nabe { fill: var(--text); }
#erholung-skala .zahl { font-size: 44px; font-weight: 700; text-anchor: middle; font-variant-numeric: tabular-nums; }
#erholung-skala .zahl.gruen { fill: #3fbf6f; } #erholung-skala .zahl.gelb { fill: #f0b429; } #erholung-skala .zahl.rot { fill: #ff5a5a; } #erholung-skala .zahl.leer { fill: var(--leise); }
#erholung-hinweis { margin: 4px 0 8px; text-align: center; font-size: 0.85rem; }
#erholung-bausteine { list-style: none; padding: 0; margin: 8px 0; }
#erholung-bausteine li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--rand); font-size: 0.9rem; }
#erholung-bausteine .punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--rand); align-self: center; }
#erholung-bausteine .punkt.gruen { background: #3fbf6f; } #erholung-bausteine .punkt.gelb { background: #f0b429; } #erholung-bausteine .punkt.rot { background: #ff5a5a; }
#auffaelligkeiten h3 { margin: 14px 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--leise); }
#auffaelligkeiten-liste { list-style: none; padding: 0; margin: 0 0 8px; }
#auffaelligkeiten-liste li { padding: 6px 0 6px 10px; border-left: 3px solid #f0b429; margin: 4px 0; font-size: 0.88rem; }
#auffaelligkeiten-liste li.fehler { border-left-color: #ff5a5a; }
#auffaelligkeiten-liste b { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--leise); }
#erholung-bausteine small { display: block; color: var(--leise); font-size: 0.78rem; }
#erholung-bausteine .note { font-variant-numeric: tabular-nums; font-weight: 600; }
/* Auswertung einer erledigten Rad-Einheit */
.auswertung { margin-top: 10px; }
.auswertung h3 { font-size: 0.95rem; margin: 16px 0 6px; color: var(--leise); }
.auswertung .klein { font-size: 0.78rem; margin: 6px 0; }
.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; }
.kennzahlen div { background: var(--grund); border: 1px solid var(--rand); border-radius: 8px; padding: 3px 2px; text-align: center; }
.kennzahlen dt { font-size: 0.6rem; color: var(--leise); line-height: 1.2; }
.kennzahlen dd { margin: 0; font-size: 0.82rem; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entkopplung { margin: 12px 0 6px; }
.entkopplung b { font-size: 1.05rem; }
.entkopplung small { color: var(--leise); }
table.haelften, table.vergleich { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
table.haelften th, table.haelften td { padding: 4px 6px; border-top: 1px solid var(--rand); text-align: right; }
table.haelften th:first-child { text-align: left; font-weight: 400; color: var(--leise); }
table.vergleich { font-size: 0.74rem; }
table.vergleich th { font-weight: 600; color: var(--leise); font-size: 0.66rem; text-align: right; padding: 4px 2px; }
table.vergleich td { padding: 5px 2px; border-top: 1px solid var(--rand); text-align: right; white-space: nowrap; }
table.vergleich th:first-child, table.vergleich td:first-child { text-align: left; }
table.vergleich td:first-child { white-space: normal; min-width: 4.2rem; }
table.vergleich.schmal td { white-space: normal; }
table.vergleich.schmal td:nth-child(n+2):nth-child(-n+5) { white-space: nowrap; }
table.vergleich tr.schnitt td { color: var(--leise); font-style: italic; }
table.vergleich tr.aktuell td { font-weight: 700; background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.tabellenrahmen { overflow-x: auto; }
/* Krafttraining: eine Karte je Übung */
.kraft-uebung { background: var(--grund); border: 1px solid var(--rand); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.kraft-uebung-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.kraft-marke { font-size: 0.68rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--rand); color: var(--leise); white-space: nowrap; }
.kraft-marke.mehr, .kraft-marke.gleich { color: #3fbf6f; border-color: #3fbf6f; }
.kraft-marke.weniger, .kraft-marke.ausgelassen { color: #f0b429; border-color: #f0b429; }
.kraft-marke.neu { color: var(--akzent); border-color: var(--akzent); }
.kraft-satz { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--leise); padding: 2px 0; font-variant-numeric: tabular-nums; }
.kraft-satz.heute { color: var(--text); font-size: 0.9rem; }
.kraft-satz span:last-child, .kraft-satz b { text-align: right; }
/* Tagesleiste auf "Plan" */
#ernaehrung .ernaehrung-leiste { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
#ernaehrung .ernaehrung-leiste button { min-width: 48px; min-height: 44px; border-radius: 12px; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); font: inherit; font-size: 1.3rem; }
#ernaehrung .ernaehrung-leiste button:disabled { opacity: 0.35; }
#ern-tag { flex: 1; text-align: center; font-weight: 600; }
.ern-summe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ern-summe > div { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 8px; text-align: center; }
.ern-summe strong { display: block; font-size: 1.1rem; }
.ern-summe small { display: block; color: var(--leise); font-size: 0.72rem; }
.ern-einheiten { margin: 6px 0; padding-left: 18px; font-size: 0.9rem; }
.ern-mahlzeiten { display: grid; gap: 4px; margin: 8px 0; }
.ern-mahlzeit { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; grid-template-areas: "zeit name stufe" "zeit menge menge" "zeit ist ist"; column-gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--flaeche); border-left: 4px solid var(--rand); font-size: 0.9rem; }
.ern-mahlzeit .zeit { grid-area: zeit; color: var(--leise); }
.ern-mahlzeit .name { grid-area: name; overflow-wrap: anywhere; }
.ern-mahlzeit .stufe { grid-area: stufe; font-weight: 600; }
.ern-mahlzeit .menge { grid-area: menge; color: var(--leise); font-size: 0.82rem; }
.ern-mahlzeit.stufe-wenig { border-left-color: #ff5a5a; }
.ern-mahlzeit.stufe-mittel { border-left-color: #f0b429; }
.ern-mahlzeit.stufe-viel { border-left-color: #3fbf6f; }
/* KH-Stufe als Punkt (Andreas: wenig rot, mittel gelb, viel grün) */
.ern-mahlzeit .punkt { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; margin-right: 0.35em; vertical-align: 0.05em; }
.ern-mahlzeit .punkt.wenig { background: #ff5a5a; } .ern-mahlzeit .punkt.mittel { background: #f0b429; } .ern-mahlzeit .punkt.viel { background: #3fbf6f; }
.ern-balken-box { margin: 10px 0 4px; }
.ern-balken-text { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; margin-bottom: 4px; }
.ern-balken-text .ueber { color: #ff5a5a; font-weight: 600; }
.ern-balken { height: 14px; border-radius: 7px; background: var(--flaeche); border: 1px solid var(--rand); overflow: hidden; }
.ern-balken .fuellung { height: 100%; border-radius: 7px; transition: width 0.3s; }
.ern-balken .fuellung.gruen { background: #3fbf6f; } .ern-balken .fuellung.gelb { background: #f0b429; } .ern-balken .fuellung.rot { background: #ff5a5a; }
.ern-verpflegung { font-size: 0.9rem; margin: 4px 0; }
.ern-mahlzeit .ist { grid-area: ist; font-size: 0.82rem; }
.ern-mahlzeit .ist.abweichung { color: var(--warn); font-weight: 600; }
.ern-uebersicht-titel { font-size: 1rem; margin: 14px 0 6px; }
.ern-uebersicht { display: grid; gap: 4px; }
.ern-eintrag { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 6px 8px; font-size: 0.9rem; }
.ern-eintrag summary { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); grid-template-areas: "zeit name" "zeit menge"; column-gap: 8px; cursor: pointer; list-style: none; }
.ern-eintrag summary::-webkit-details-marker { display: none; }
.ern-eintrag .zeit { grid-area: zeit; color: var(--leise); }
.ern-eintrag .name { grid-area: name; overflow-wrap: anywhere; }
.ern-eintrag .menge { grid-area: menge; color: var(--leise); font-size: 0.82rem; }
.ern-eintrag ul { margin: 6px 0 2px; padding-left: 18px; font-size: 0.82rem; color: var(--leise); }
#tagesleiste { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
#tagesleiste button { min-width: 48px; min-height: 44px; border-radius: 12px; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); font: inherit; font-size: 1.3rem; }
#tagesleiste button:disabled { opacity: 0.35; }
#tagesleiste #tag-heute { font-size: 0.9rem; min-width: 64px; margin: 0; width: auto; }
#tag-name { flex: 1; text-align: center; font-weight: 600; }
/* Montis neben dem Erholungsscore */
#montis { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 12px; margin: 12px 0; }
#montis .montis-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
#montis .montis-kopf span { font-size: 0.8rem; }
#montis-wert { margin: 6px 0 2px; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
#montis-wert small { font-size: 0.85rem; font-weight: 400; color: var(--leise); }
#montis-wert .punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--rand); flex: none; }
#montis-wert .punkt.gruen { background: #3fbf6f; } #montis-wert .punkt.gelb { background: #f0b429; } #montis-wert .punkt.rot { background: #ff5a5a; }
#montis-zustand { margin: 0 0 6px; font-size: 0.85rem; }
#montis-fehler { margin: 6px 0; font-size: 0.85rem; padding: 8px 10px; }
#montis-kannsoll { margin: 4px 0; }
#montis-kannsoll p { margin: 4px 0; font-size: 0.82rem; }
#montis-rechnen { margin-top: 6px; }
.hinweis { background: var(--flaeche); border: 1px solid var(--akzent); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; font-size: 0.85rem; }
.hinweis a { color: var(--akzent); }
#werte-eingaben { margin: 8px 0 16px; }
#werte-eingaben > summary { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 12px; }
#werte-eingaben[open] > summary { color: var(--leise); }
#ernaehrungsziel-regler { width: 100%; accent-color: var(--akzent); margin: 8px 0; }
#ernaehrungsziel-wert { display: block; font-weight: 600; margin-top: 8px; }
.bereich { margin: 0 0 12px; }
.bereich strong { display: block; margin-bottom: 4px; }
.bereich .zeile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bereich label { font-size: 0.75rem; color: var(--leise); display: block; }
.bereich input { width: 100%; box-sizing: border-box; background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); border-radius: 8px; padding: 8px; font: inherit; }
#garmin-hinweis { margin: 6px 0 0; font-size: 0.8rem; }
.feld { margin-bottom: 14px; }
.feld > span, .feld > label { display: block; margin-bottom: 6px; font-weight: 600; }
.stufen { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.stufen button {
  min-height: 48px; padding: 4px; border-radius: 12px; border: 1px solid var(--rand);
  background: var(--flaeche); color: var(--text); font: inherit; font-size: 0.9rem;
}
.stufen button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.feld input {
  width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--rand);
  background: var(--flaeche); color: var(--text); font: inherit;
}
#bmi { margin: -6px 0 8px; color: var(--leise); }
details { margin: 8px 0 16px; }
#tagesdaten { margin: 16px 0 8px; }
#tagesdaten > summary { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 12px; }
#tagesdaten[open] > summary { color: var(--leise); }
summary { padding: 12px 0; font-weight: 600; color: var(--akzent); }
#speichern, #erneut {
  width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: var(--akzent);
  color: var(--akzent-text); font: inherit; font-weight: 700;
}
#speichern:disabled { opacity: 0.45; }
#meldung { background: var(--flaeche); border: 1px solid var(--warn); color: var(--warn); border-radius: 12px; padding: 12px; }
#gespeichert { color: var(--gut); min-height: 1.4em; text-align: center; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.karte strong { display: block; }
.karte small { color: var(--leise); }
.karte p { margin: 6px 0 0; white-space: pre-wrap; font-size: 0.9rem; }
.leer { color: var(--leise); }
#chat { display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow-y: auto; padding: 2px; }
.blase { max-width: 92%; border-radius: 14px; padding: 10px 12px; border: 1px solid var(--rand); background: var(--flaeche); }
.blase.coach { align-self: flex-start; border-bottom-left-radius: 4px; }
.blase.andreas { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.blase p { margin: 0 0 6px; }
.blase p.text { white-space: pre-wrap; }
.blase h4.antwort-kopf { margin: 12px 0 4px; font-size: 1rem; }
.blase .fett { display: inline; font-size: inherit; margin: 0; }
.blase ul.antwortliste, .blase ol.antwortliste { margin: 0 0 8px; padding-left: 20px; font-size: inherit; }
.blase .antwortliste li { margin-bottom: 4px; }
.blase > :last-child:not(.zeit) { margin-bottom: 0; }
.blase > strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.blase details { margin: 4px 0; }
.blase summary { padding: 6px 0; }
.blase ul { margin: 0; padding-left: 20px; font-size: 0.9rem; }
.blase li { margin-bottom: 4px; }
.blase small { display: block; }
.blase small.zeit { font-size: 0.72rem; opacity: 0.7; text-align: right; }
.blase small.stand { color: var(--leise); margin-top: 6px; }
.blase.andreas small.stand { color: inherit; }
.blase .vorschau { margin: 8px 0; background: var(--grund); }
.blase .vorschau small { font-weight: 600; margin-top: 6px; }
.blase .vorschau strong { font-size: 1rem; }
.blase .vorschau pre { margin: 4px 0 0; white-space: pre-wrap; font: 0.85rem/1.35 ui-monospace, Menlo, monospace; }
.blase .vorschau ol { margin: 4px 0 0; padding-left: 22px; font-size: 0.9rem; }
.blase .vorschau .stufen { margin-top: 10px; }
.blase .zweit { margin: 6px 0 0; }
#chat-gestern { margin: 0 0 10px; }
#chat-gestern > summary { padding: 10px 0; }
#chat-gestern-liste { display: flex; flex-direction: column; gap: 10px; }
#chat-eingabe { margin-top: 12px; }
#chat-eingabe textarea {
  width: 100%; margin: 6px 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rand);
  background: var(--flaeche); color: var(--text); font: inherit; resize: vertical;
}
#chat-status { min-height: 1.4em; margin: 8px 0 0; }
#coach .karte strong { font-size: 1.1rem; }
#coach .karte details { margin: 6px 0 0; }
#coach .karte summary { padding: 6px 0; }
#coach .karte ul { margin: 0; padding-left: 20px; font-size: 0.9rem; }
#coach .karte li { margin-bottom: 4px; }
#coach-vorschlag .stufen { margin-top: 8px; }
.warnung { background: var(--flaeche); border: 1px solid var(--warn); color: var(--warn); border-radius: 12px; padding: 12px; }
.zweit {
  width: 100%; min-height: 44px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--rand);
  background: var(--flaeche); color: var(--akzent); font: inherit; font-weight: 600;
}
.zweit:disabled { opacity: 0.45; }
a.knopf { display: flex; align-items: center; justify-content: center; text-decoration: none; }
#anpassen h3 { font-size: 1rem; margin: 20px 0 8px; }
#anpassen textarea {
  width: 100%; margin: 6px 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rand);
  background: var(--flaeche); color: var(--text); font: inherit; resize: vertical;
}
#anpassen-antwort { margin: 8px 0; }
#anpassen .karte small { display: block; font-weight: 600; margin-bottom: 4px; }
#anpassen .karte pre { margin: 6px 0 0; white-space: pre-wrap; font: 0.85rem/1.35 ui-monospace, Menlo, monospace; }
#anpassen-vorschau .stufen { margin-bottom: 8px; }
#anpassen .karte ol { margin: 6px 0 0; padding-left: 22px; font-size: 0.9rem; }
#anpassen .karte li { margin-bottom: 3px; }
#coach-zaehler { font-size: 0.8rem; margin: 4px 0 0; }
.blase .vorschau .schritt + .schritt { border-top: 1px solid var(--rand); margin-top: 10px; padding-top: 4px; }
.blase .vorschau small.kopfzeile { color: var(--akzent); }
.blase .vorschau small.angaben { font-weight: 400; margin-top: 0; }
.blase .vorschau ul { margin: 4px 0 0; padding-left: 20px; font-size: 0.9rem; }
#woche { margin: 16px 0 0; }
#woche > summary { padding: 10px 0; font-weight: 600; }
.wochentag { padding: 8px 0; border-top: 1px solid var(--rand); }
.wochenkopf { display: flex; justify-content: space-between; align-items: baseline; }
.wochentag p { margin: 4px 0 0; }
.wochentag p span { display: block; }
.wochentag small { color: var(--leise); }
.wochenzeile { margin: 6px 0 0; }
.wochenzeile span { display: block; }
.wochenzeile.bleibt { color: var(--leise); }
.wochenzeile.entfaellt span { text-decoration: line-through; color: var(--leise); }
.wochenzeile .marke { font-size: 0.72rem; font-weight: 600; padding: 1px 6px; border-radius: 8px; border: 1px solid var(--akzent); color: var(--akzent); }
.wochenzeile.entfaellt .marke { border-color: var(--warn); color: var(--warn); text-decoration: none; display: inline-block; }
.wochenzeile details { margin: 2px 0 0; }
.wochenzeile summary { padding: 4px 0; font-size: 0.85rem; color: var(--akzent); }
.blase .vorschau.woche .wochentag small { font-weight: 400; margin-top: 0; }
.blase .vorschau.woche .wochenkopf strong { font-size: 0.95rem; }
#block { margin: 16px 0 0; }
#block > summary { padding: 10px 0; font-weight: 600; }
.blockwoche span { display: block; margin: 2px 0; }
.blockwoche small { display: block; color: var(--leise); }
.blockwoche small.ist { color: var(--text); }
.blockwoche.laufend { border-left: 3px solid var(--akzent); padding-left: 10px; }
.blockwoche.vorbei { opacity: 0.7; }
.blase .vorschau.woche .blockwoche small.ist { font-weight: 600; }

/* Drei Seiten mit fester Leiste unten */
#leiste {
  position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: calc(env(safe-area-inset-bottom) + 58px);
  background: var(--flaeche); border-top: 1px solid var(--rand); padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px); z-index: 5;
}
#leiste button { position: relative; min-height: 46px; padding: 0 2px; border: 0; background: none; color: var(--leise); font: inherit; font-size: 0.78rem; font-weight: 600; border-radius: 10px; white-space: nowrap; }
@media (max-width: 420px) {
  #leiste button { font-size: 0.66rem; letter-spacing: -0.01em; }
  /* Sechs Knöpfe: "Einstellungen" passt nicht in die Breite, daher kurz. */
  #leiste button[data-seite=einstellungen] { font-size: 0; }
  #leiste button[data-seite=einstellungen]::before { content: 'Einst.'; font-size: 0.66rem; }
}
@media (max-width: 380px) { #leiste button { font-size: 0.6rem; } }
#leiste button.offen::after { content: ''; position: absolute; top: 7px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--akzent); }
#leiste button[aria-current="page"] { color: var(--akzent); background: var(--grund); }
#seite-plan section, #seite-einstellungen h2:first-child { margin-top: 0; }
#seite-einstellungen p { margin: 0 0 10px; }

/* Fitness, Ermüdung, Form, Rampe */
#form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; }
#form div { background: var(--flaeche); border: 1px solid var(--rand); border-bottom-width: 4px; border-radius: 10px; padding: 6px 4px 5px; text-align: center; }
#form dt { font-size: 0.7rem; color: var(--leise); }
#form dd { margin: 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
#form small { display: block; font-size: 0.66rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#form-plan { margin: 8px 0 0; font-size: 0.88rem; }
#wochenbalken { margin: 10px 0 0; display: grid; gap: 8px; }
.balken .kopf { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--leise); margin-bottom: 3px; }
.balken .kopf b { color: var(--text); font-variant-numeric: tabular-nums; }
.balken .spur { height: 8px; border-radius: 4px; background: var(--rand); overflow: hidden; }
.balken .fuellung { display: block; height: 100%; border-radius: 4px; }
.balken.tss .fuellung { background: #4da3ff; }
.balken.intensitaet .fuellung { background: #b07cf0; }
.balken .fuellung.ueber { background: #3fbf6f; }
.balken small { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--leise); }
#form .fitness { border-bottom-color: #4da3ff; } #form .fitness dd { color: #4da3ff; }
#form .ermuedung { border-bottom-color: #b07cf0; } #form .ermuedung dd { color: #b07cf0; }
#form .stufe-uebergang, #form .rampe-haltend { border-bottom-color: #8a94a6; } #form .stufe-uebergang dd, #form .rampe-haltend dd, b.stufe-uebergang { color: #8a94a6; }
#form .stufe-frisch, #form .rampe-abbau { border-bottom-color: #4da3ff; } #form .stufe-frisch dd, #form .rampe-abbau dd, b.stufe-frisch { color: #4da3ff; }
#form .stufe-neutral { border-bottom-color: #9aa5b5; } #form .stufe-neutral dd, b.stufe-neutral { color: #9aa5b5; }
#form .stufe-optimal, #form .rampe-aufbau { border-bottom-color: #3fbf6f; } #form .stufe-optimal dd, #form .rampe-aufbau dd, b.stufe-optimal { color: #3fbf6f; }
#form .rampe-zuegig { border-bottom-color: #f0b429; } #form .rampe-zuegig dd { color: #f0b429; }
#form .stufe-risiko, #form .rampe-steil { border-bottom-color: #ff5a5a; } #form .stufe-risiko dd, #form .rampe-steil dd, b.stufe-risiko { color: #ff5a5a; }

/* Einheiten zum Antippen, mit Grafik */
details.einheit { margin-bottom: 8px; }
details.einheit > summary { padding: 0; color: var(--text); font-weight: 400; list-style: none; cursor: pointer; }
details.einheit > summary::-webkit-details-marker { display: none; }
details.einheit > summary strong::after { content: ' ›'; color: var(--akzent); }
details.einheit[open] > summary strong::after { content: ' ⌄'; }
details.einheit pre { margin: 8px 0 0; white-space: pre-wrap; font: 0.85rem/1.35 ui-monospace, Menlo, monospace; }
svg.workout { display: block; width: 100%; height: auto; margin: 10px 0 4px; }
p.zonen { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; white-space: normal; }
p.zonen i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.wochentag details.einheit, .wochentag > .karte { margin: 6px 0 0; }

/* Seite "Heute": Leiste oben, Chat füllt den Rest, die Eingabe steht ohne Scrollen direkt über der Leiste unten. */
body.heute { padding-bottom: 0; }
body.heute main { display: flex; flex-direction: column; height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 58px); }
body.heute header { display: flex; align-items: baseline; gap: 10px; }
body.heute h1 { margin-top: 10px; font-size: 1.25rem; }
body.heute #inhalt, body.heute #seite-heute, body.heute #coach { display: flex; flex-direction: column; flex: 1; min-height: 0; }
body.heute #chat { flex: 1; min-height: 0; max-height: none; }
body.heute #chat-gestern { margin: 0 0 6px; }
body.heute #chat-gestern > summary { padding: 4px 0; }
body.heute #chat-gestern[open] { max-height: 40%; overflow-y: auto; }
#chat-status { min-height: 0; margin: 4px 0 0; font-size: 0.85rem; }
#chat-status:empty { display: none; }
#chat-eingabe { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; margin: 8px 0 10px; }
#chat-eingabe textarea { margin: 0; resize: none; }
#chat-eingabe .zweit { width: auto; min-width: 84px; margin: 0; }
#seite-werte h2:first-child, #seite-ernaehrung h2:first-child, #seite-plan h2:first-child, #seite-plan .spalte > h2:first-child { margin-top: 14px; }

/* Platzhalter am Ende des Chats, damit der Anfang der letzten Antwort oben stehen kann. */
#chat .platz { flex: none; }

/* Karte zum Krafttraining im Chat */
.kraftkarte { margin: 8px 0 4px; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 10px; background: var(--grund); }
.kraftkarte > strong { display: block; font-size: 0.92rem; }
.kraftkarte .angaben { display: block; color: var(--leise); margin-bottom: 6px; }
.kraftzeile { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 5px 0; border-top: 1px solid var(--rand); font-size: 0.86rem; }
.kraftzeile .uebung { font-weight: 600; }
.kraftzeile .marke { font-weight: 700; text-align: right; min-width: 2.2em; }
.kraftzeile .saetze { grid-column: 1 / -1; font-variant-numeric: tabular-nums; }
.kraftzeile .davor { display: block; color: var(--leise); font-size: 0.8rem; }
.marke-mehr .marke { color: #3fbf6f; } .marke-weniger .marke { color: #f0b429; } .marke-gleich .marke { color: var(--leise); }
.marke-neu .marke, .marke-ausgelassen .marke { color: #4da3ff; font-size: 0.78rem; }
.kraftkarte details summary { cursor: pointer; padding: 5px 0; color: var(--leise); font-size: 0.82rem; }

#habits { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
#habits > summary { font-weight: 600; cursor: pointer; }
#habits h3 { font-size: 1rem; margin: 12px 0 4px; }
.habit-liste, .habit-vorschlaege { list-style: none; padding: 0; margin: 8px 0; }
.habit { padding: 8px 0; border-top: 1px solid var(--rand); }
.habit:first-child { border-top: 0; }
.habit-heute { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; text-align: left; background: transparent; border: 1px solid var(--rand); border-radius: 12px; padding: 8px 12px; color: var(--text); font: inherit; }
.habit-heute.getan { border-color: var(--gut); }
.habit-heute .haken { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--leise); border-radius: 8px; font-weight: 700; flex: none; }
.habit-heute.getan .haken { background: var(--gut); border-color: var(--gut); color: var(--grund); }
.habit-meta { margin: 4px 0; font-size: 0.85rem; }
.habit-tage { display: flex; gap: 6px; margin: 4px 0 6px; }
.habit-tag { flex: 1; min-height: 36px; border: 1px solid var(--rand); border-radius: 8px; background: transparent; color: var(--leise); font: inherit; font-size: 0.8rem; }
.habit-tag.getan { background: var(--gut); border-color: var(--gut); color: var(--grund); font-weight: 600; }
.habit.fokus .habit-heute { min-height: 60px; font-size: 1.1rem; border-width: 2px; }
.habit-marke { margin: 0 0 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gut); }
.habit-zwischen { margin: 14px 0 0; font-size: 0.9rem; color: var(--leise); }
.habit.aelter .habit-heute { min-height: 44px; }
.habit-statistik { margin: 2px 0 6px; }
.habit-wochen { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; }
.habit-woche { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 28px; }
.habit-woche small { font-size: 0.7rem; color: var(--leise); }
.habit-balken { display: flex; align-items: flex-end; width: 18px; height: 32px; border: 1px solid var(--rand); border-radius: 4px; overflow: hidden; }
.habit-balken span { display: block; width: 100%; background: var(--leise); }
.habit-woche.erfuellt .habit-balken span { background: var(--gut); }
.habit-tag:disabled { opacity: 0.35; }
.habit-tag.heute-nur-anzeige { display: flex; align-items: center; justify-content: center; border-style: dashed; }
.habit-pause { font-size: 0.85rem; }
.habit-vorschlaege li { padding: 8px 0; border-top: 1px solid var(--rand); }
.habit-eigen { display: flex; gap: 8px; margin: 8px 0; }
.habit-eigen input { flex: 1; min-width: 0; }
.habit-eigen input { background: transparent; border: 1px solid var(--rand); border-radius: 10px; color: var(--text); padding: 10px; font: inherit; min-height: 44px; }
.habit-eigen button { width: auto; }

/* Fokus: Habit-Coaching (habitcoach.js) */
#fokus { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
#fokus > summary { font-weight: 600; cursor: pointer; }
#fokus h3 { font-size: 1rem; margin: 12px 0 4px; }
#fokus p { margin: 6px 0; }
#fokus select, #fokus input[type="text"], #fokus textarea { width: 100%; background: transparent; border: 1px solid var(--rand); border-radius: 10px; color: var(--text); padding: 10px; font: inherit; min-height: 44px; margin: 6px 0; }
.fokus-reiter, .fokus-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.fokus-chip { min-height: 40px; padding: 6px 12px; border: 1px solid var(--rand); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 0.85rem; }
.fokus-chip.gewaehlt, .fokus-option.gewaehlt, .fokus-zahl.gewaehlt { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 18%, transparent); }
.fokus-karte { border: 1px solid var(--rand); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.fokus-karte.innen { background: var(--grund); }
.fokus-karte.erste { border-color: var(--akzent); }
.fokus-karte.pruefung { border-color: var(--akzent); }
.fokus-zeile { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.fokus-zeile.umbruch { flex-wrap: wrap; }
.fokus-zeile > button, .fokus-zeile > a { width: auto; flex: 1 1 auto; }
.fokus-leise { opacity: 0.8; }
.fokus-frage { font-weight: 600; font-size: 0.92rem; }
.fokus-text { font-size: 0.95rem; }
.fokus-wenn { background: var(--grund); border-left: 3px solid var(--akzent); border-radius: 6px; padding: 8px 10px; font-weight: 600; }
.fokus-zahlen { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fokus-zahl { min-width: 44px; min-height: 44px; border: 1px solid var(--rand); border-radius: 10px; background: transparent; color: var(--text); font: inherit; }
.fokus-optionen { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.fokus-option { min-height: 44px; text-align: left; border: 1px solid var(--rand); border-radius: 10px; background: transparent; color: var(--text); font: inherit; padding: 8px 12px; }
.fokus-option.empfohlen { border-style: dashed; }
.fokus-checkin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.fokus-ergebnis { display: flex; align-items: center; gap: 8px; min-height: 52px; text-align: left; border: 1px solid var(--rand); border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 0.9rem; padding: 6px 10px; }
.fokus-ergebnis .haken { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--leise); border-radius: 8px; font-weight: 700; flex: none; }
.fokus-ergebnis.gewaehlt { border-color: var(--gut); }
.fokus-ergebnis.gewaehlt .haken { background: var(--gut); border-color: var(--gut); color: var(--grund); }
.fokus-woche { display: flex; gap: 6px; margin: 8px 0; }
.fokus-tag { flex: 1; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--rand); border-radius: 8px; padding: 2px 0; color: var(--leise); }
.fokus-tag small { font-size: 0.68rem; }
.fokus-tag.erledigt { border-color: var(--gut); color: var(--text); background: color-mix(in srgb, var(--gut) 18%, transparent); }
.fokus-tag.teilweise { border-color: var(--gut); color: var(--text); }
.fokus-block progress { width: 100%; height: 10px; accent-color: var(--akzent); }
.fokus-mehr summary { cursor: pointer; font-size: 0.9rem; color: var(--leise); padding: 6px 0; }
.fokus-habit { border-top: 1px solid var(--rand); padding: 6px 0; }
.fokus-habit summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; min-height: 44px; align-items: center; }
.fokus-status { color: var(--leise); white-space: nowrap; }
.fokus-status.aktiv, .fokus-status.erhaltung { color: var(--akzent); }
.fokus-stufen { padding-left: 20px; font-size: 0.9rem; }
.fokus-liste { padding-left: 18px; font-size: 0.9rem; }
.fokus-balken { display: flex; gap: 6px; align-items: flex-end; height: 90px; margin: 8px 0 14px; }
.fokus-balkenspalte { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; align-items: center; }
.fokus-balkenspalte .balken { width: 100%; background: var(--akzent); border-radius: 4px 4px 0 0; min-height: 4px; }
.fokus-balkenspalte .balken.leer { background: var(--rand); }
.fokus-balkenspalte small { font-size: 0.65rem; color: var(--leise); }
.fokus-schalter { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.fokus-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 44px; border: 1px solid var(--rand); border-radius: 10px; padding: 6px 12px; color: var(--text); }

/* Regelprüfung der Tagesbereitschaft */
#bereitschaft h3 { margin: 14px 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--leise); }
#bereitschaft .bereitschaft-titel { font-weight: 600; margin: 4px 0; }
#bereitschaft p { margin: 4px 0; }
#bereitschaft-gruende { list-style: none; padding: 0; margin: 6px 0 8px; }
#bereitschaft-gruende li { padding: 6px 0 6px 10px; border-left: 3px solid #3fbf6f; margin: 4px 0; font-size: 0.88rem; }
#bereitschaft[data-art="anpassen"] #bereitschaft-gruende li, #bereitschaft[data-art="verschieben"] #bereitschaft-gruende li { border-left-color: #f0b429; }
#bereitschaft[data-art="erholung"] #bereitschaft-gruende li, #bereitschaft[data-art="abklaerung"] #bereitschaft-gruende li { border-left-color: #ff5a5a; }
#bereitschaft-gruende b { display: block; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--leise); }

/* Seite "Coach" wie in der Claude-App: wenig Rand, kleinere Schrift, Antworten über die volle Breite, schlanke Eingabe. */
body.heute { padding-left: 10px; padding-right: 10px; }
body.heute main { max-width: none; }
body.heute h1 { display: none; }
body.heute #datum { font-size: 0.8rem; margin: 6px 0 4px; }
body.heute #chat { font-size: 0.94rem; line-height: 1.42; gap: 8px; padding: 0; }
body.heute #chat .blase.coach { align-self: stretch; max-width: 100%; background: none; border: 0; border-radius: 0; padding: 2px 2px 6px; }
body.heute #chat .blase.andreas { max-width: 88%; padding: 7px 11px; }
body.heute #chat .blase ul, body.heute #chat .blase .vorschau ol { font-size: inherit; }
body.heute #chat .blase.coach .vorschau, body.heute #chat .blase.coach .kraftkarte { background: var(--flaeche); }
body.heute #chat-eingabe { grid-template-columns: 1fr auto; align-items: end; gap: 6px; margin: 6px 0 8px; padding: 4px 4px 4px 14px; border: 1px solid var(--rand); border-radius: 24px; background: var(--flaeche); }
body.heute #chat-eingabe textarea { border: 0; background: transparent; padding: 7px 0; font-size: 0.94rem; line-height: 1.4; height: calc(1.4em + 14px); min-height: 0; outline: none; }
#chat-senden { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--akzent); color: var(--akzent-text); font: inherit; font-size: 1.2rem; font-weight: 700; padding: 0; }
#chat-senden:disabled { opacity: 0.4; }
@media (min-width: 700px) { body.heute { padding-left: 24px; padding-right: 24px; } }

/* Drei Punkte, solange der Coach überlegt */
.blase.denkt { display: flex; gap: 5px; align-items: center; height: 24px; }
.blase.denkt span { width: 7px; height: 7px; border-radius: 50%; background: var(--leise); animation: denkt 1.2s infinite ease-in-out; }
.blase.denkt span:nth-child(2) { animation-delay: 0.18s; }
.blase.denkt span:nth-child(3) { animation-delay: 0.36s; }
@keyframes denkt { 0%, 70%, 100% { opacity: 0.25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .blase.denkt span { animation: none; opacity: 0.6; } }

/* Kleiner Knopf oben auf "Plan" und Zurück-Knopf auf "Jahr" */
.zweit.klein { width: auto; min-height: 36px; padding: 0 14px; margin: 12px 0 0; font-size: 0.9rem; grid-column: 1 / -1; justify-self: start; }
.jr-zurueck { margin-bottom: 12px; }

/* Einstellungen: Zielbereiche zum Einklappen */
#bereiche-box { margin: 0 0 12px; }
#bereiche-box > summary { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 12px; }
#bereiche-box[open] > summary { color: var(--leise); margin-bottom: 10px; }
#seite-habits { padding-top: 12px; }

/* Coach-Seite: nichts darf über den Rand hinausragen; Tabellen und lange Wörter brechen im Chat um, statt seitlich zu wischen. */
body.heute { padding-left: 14px; padding-right: 14px; }
body.heute #chat { overflow-x: hidden; }
body.heute #chat .blase { min-width: 0; overflow-wrap: anywhere; }
body.heute #chat .blase.coach { padding-left: 4px; padding-right: 4px; }
body.heute #chat .tabellenrahmen { overflow-x: visible; }
body.heute #chat table { table-layout: auto; width: 100%; }
body.heute #chat table.vergleich td, body.heute #chat table.vergleich th { white-space: normal; padding-left: 3px; padding-right: 3px; }
body.heute #chat table.vergleich td:first-child { min-width: 0; }
body.heute #chat pre, body.heute #chat .vorschau pre { white-space: pre-wrap; overflow-wrap: anywhere; }
body.heute #chat svg { max-width: 100%; height: auto; }

/* Training: Jahresstatistik und Diagnostik nebeneinander oben */
#training-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; grid-column: 1 / -1; }
#training-wahl button { margin: 0; width: 100%; }
/* Ernährung: eigene Seite, die Karte steht oben */
#seite-ernaehrung { max-width: 640px; }
#seite-ernaehrung section { margin-top: 12px; }
#seite-ernaehrung #ernaehrung h2 { margin-top: 0; }

.ern-karten { display: grid; gap: 8px; }
.ern-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 10px 12px; }
.ern-karte-art { margin: 0; color: var(--leise); font-size: 0.8rem; font-weight: 600; }
.ern-karte-titel { margin: 1px 0 2px; font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ern-karte-bogen { position: relative; max-width: 150px; margin: 0 auto; }
.ern-bogen { display: block; width: 100%; }
.ern-bogen path { fill: none; stroke-width: 22; stroke-linecap: round; }
.ern-bogen .spur { stroke: var(--rand); opacity: 0.6; }
.ern-bogen .fuell.gruen { stroke: #3fbf6f; } .ern-bogen .fuell.gelb { stroke: #f0b429; } .ern-bogen .fuell.rot { stroke: #ff5a5a; }
.ern-karte-mitte { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ern-karte-mitte strong { font-size: 1.35rem; line-height: 1.05; }
.ern-karte-mitte small { color: var(--leise); font-size: 0.7rem; }
.ern-karte-prozent { font-size: 0.65rem; font-weight: 700; border-radius: 999px; padding: 0 6px; margin-bottom: 1px; background: rgba(63, 191, 111, 0.18); color: #3fbf6f; }
.ern-karte-prozent.gelb { background: rgba(240, 180, 41, 0.18); color: #f0b429; } .ern-karte-prozent.rot { background: rgba(255, 90, 90, 0.18); color: #ff5a5a; }
.ern-karte-zeile { text-align: center; margin: 4px 0; font-size: 0.82rem; }
.ern-karte-zeile .ueber { color: #ff5a5a; }
.ern-karte-mehr { display: block; margin: 0 auto; min-height: 40px; padding: 6px 18px; font-size: 0.85rem; border: 0; border-radius: 999px; background: rgba(63, 191, 111, 0.16); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.ern-karte-mehr-inhalt { margin-top: 10px; border-top: 1px solid var(--rand); padding-top: 10px; }
.ern-karte-mehr-inhalt[hidden] { display: none; }
.ern-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-radius: 14px; padding: 10px 14px; margin-bottom: 6px; }
.ern-zeile .plus { font-size: 0.85rem; font-weight: 600; opacity: 0.8; }
.ern-zeile .proz { font-weight: 700; font-size: 0.9rem; }
.ern-zeile b { font-size: 1.15rem; }
.ern-zeile.n-e { background: rgba(124, 108, 255, 0.16); } .ern-zeile.n-kh { background: rgba(63, 191, 111, 0.16); } .ern-zeile.n-f { background: rgba(231, 76, 138, 0.16); }
.ern-karte-mehr-inhalt ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.85rem; color: var(--leise); }

/* Mahlzeiten planen */
.mz-liste { display: grid; gap: 6px; margin: 8px 0; }
.mz-zeile { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.mz-zeile select { grid-column: 1 / 3; }
.mz-zeile input, .mz-zeile select { min-width: 0; font: inherit; }
.mz-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ern-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; font-size: 0.9rem; }
.ern-hinweis p { margin: 0; flex: 1 1 14em; }
.ern-hinweis button { flex: 0 0 auto; }
#mz-wochentage { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
#mz-wochentage label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--rand); }
.mz-wochentage { border: 0; padding: 0; margin: 8px 0; }
.mz-wochentage legend { color: var(--leise); font-size: 0.9rem; padding: 0; }

/* Morgenempfehlung: Tagesspruch oben, Tagesblick zu Habits und Ernährung dezent darunter */
.blase .tagesspruch { margin: 0 0 6px; font-style: italic; color: var(--leise); }
.blase .tagesblick { margin: 6px 0 0; color: var(--leise); }

/* Zahlen unter der Fahrt-Auswertung im Chat */
.blase .eckdaten { margin: 6px 0 4px; }
.blase .eckdaten .kennzahlen.fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.blase .eckdaten table { width: 100%; font-size: 0.8rem; font-variant-numeric: tabular-nums; border-collapse: collapse; }
.blase .eckdaten th { color: var(--leise); font-weight: 400; text-align: left; padding: 2px 4px; }
.blase .eckdaten td { padding: 2px 4px; }
.blase .eckdaten th:not(:first-child), .blase .eckdaten td:not(:first-child) { text-align: right; }
/* Hinweis: Abnahmeziel wegen möglicher Energielücke ausgesetzt */
.ern-luecke { margin: 10px 0; font-size: 0.9rem; background: var(--flaeche); border: 1px solid var(--rand); border-left: 4px solid var(--warn); border-radius: 12px; padding: 12px; }
.ern-luecke p { margin: 6px 0; }
.ern-luecke ul { margin: 6px 0; padding-left: 0; list-style: none; }
.ern-luecke li { margin: 3px 0; opacity: 0.7; }
.ern-luecke li.trifft { opacity: 1; font-weight: 600; }
.ern-luecke-wann { font-weight: 600; }
.ern-luecke-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ern-luecke-knoepfe button { flex: 1 1 auto; min-height: 44px; }
