/* Layout und Komponenten. Farben und Schriften kommen aus thema.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  /* weicher Farbschimmer wie auf den Folien: oben rechts blau, unten links lila */
  background:
    radial-gradient(60vmax 45vmax at 100% 0%, var(--c-glanz-1), transparent 70%),
    radial-gradient(50vmax 40vmax at 0% 100%, var(--c-glanz-2), transparent 70%),
    var(--c-bg);
  background-attachment: fixed;
  color: var(--c-text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c-fokus); outline-offset: 2px; border-radius: 10px; }

.ansicht {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 112px);
}

/* ---------- Typo im Folien-Stil: kleine Kategorie in Versalien + große Aussage ---------- */
.kicker {
  margin: 0 0 6px;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-kicker);
}
.titel {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--c-text);
}
/* Abschnittsüberschriften („Filter“, „Prüfungsmodule“, „Nach Modul“ …): echte Überschrift statt kleiner
   Versalien-Zeile; die Kategorie-Zeile über den großen Titeln (p.kicker) bleibt klein. */
h2.kicker {
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--c-text);
}

.kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

.icon-knopf {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--c-linie);
  border-radius: 14px;
  background: var(--c-flaeche);
  cursor: pointer;
}
.icon-knopf svg { width: 24px; height: 24px; fill: none; stroke: var(--c-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.karte {
  background: var(--c-flaeche);
  border: 1px solid var(--c-linie);
  border-radius: 20px;
  box-shadow: var(--schatten);
  padding: 16px;
}

/* ---------- aus dem bim-trainer übernommen ---------- */

.segmente { display: flex; gap: 6px; padding: 4px; background: var(--c-flaeche-2); border-radius: 14px; }
.segmente button {
  flex: 1; min-height: 48px; border: 0; border-radius: 10px; background: transparent;
  font-weight: 600; font-size: 15px; color: var(--c-text-2); cursor: pointer;
}
.segmente button[aria-checked="true"] { background: var(--c-flaeche); color: var(--c-primaer); box-shadow: var(--schatten); }

/* ---------- Aktionsleiste (Daumenzone unten) ---------- */
.aktionsleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; gap: 10px;
  max-width: 560px; margin: 0 auto;
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: linear-gradient(to top, var(--c-bg) 70%, transparent);
}
.knopf {
  flex: 1; min-height: 56px; padding: 0 18px;
  border-radius: 16px; border: 2px solid transparent;
  font-weight: 700; font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .08s, background .15s, opacity .15s;
}
.knopf:active:not(:disabled) { transform: scale(.98); }
.knopf:disabled { opacity: .45; cursor: default; }
.knopf.primaer { background: var(--c-primaer); color: var(--c-auf-primaer); }
.knopf.primaer:hover:not(:disabled) { background: var(--c-primaer-hover); }
.knopf.sekundaer { background: var(--c-flaeche); border-color: var(--c-linie); color: var(--c-text); }
.knopf.gefahr { background: transparent; border-color: var(--c-falsch); color: var(--c-falsch); }
.knopf.breit { width: 100%; }

.blatt {
  width: 100%; max-width: 560px; margin: auto auto 0;
  border: 0; border-radius: 22px 22px 0 0;
  padding: 22px 16px calc(env(safe-area-inset-bottom) + 16px);
  background: var(--c-bg); color: var(--c-text);
  max-height: 90dvh;
}
.blatt::backdrop { background: rgb(0 0 0 / .45); }
.blatt form { display: grid; gap: 12px; }
.blatt-titel { margin: 12px 0 0; font-size: 19px; }
.blatt-text { margin: 0; color: var(--c-text-2); font-size: 15px; }
.blatt-fuss { margin: 8px 0 0; color: var(--c-text-2); font-size: 13px; text-align: center; }
.schalter { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; cursor: pointer; }
.schalter input { width: 22px; height: 22px; accent-color: var(--c-primaer); }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 92px); z-index: 20;
  max-width: 528px; margin: 0 auto; padding: 12px 16px; border-radius: 14px;
  background: var(--c-text); color: var(--c-bg); font-size: 15px; text-align: center; box-shadow: var(--schatten);
}
.noscript { padding: 24px; text-align: center; }

/* ---------- Versionsnummer (Startansicht) ---------- */
.version-hinweis { margin: 28px 0 0; color: var(--c-text-3); font-size: 12px; text-align: center; letter-spacing: .02em; }

/* ---------- Update-Hinweis: Leiste über der Aktionsleiste ---------- */
.update-leiste {
  position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 88px); z-index: 15;
  max-width: 528px; margin: 0 auto; padding: 8px 8px 8px 16px; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--c-text); color: var(--c-bg); font-size: 15px; font-weight: 600; box-shadow: var(--schatten);
}
.update-knopf {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--c-primaer); color: var(--c-auf-primaer); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.update-knopf:disabled { opacity: .6; cursor: default; }

.ansicht { position: relative; z-index: 1; }
.fx-ebene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.welle {
  position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--welle-farbe) 45%, transparent), transparent 70%);
  animation: welle .9s ease-out forwards;
}
@keyframes welle { from { transform: scale(1); opacity: .6; } to { transform: scale(30); opacity: 0; } }

body { font-size: 18px; }
.titel { font-weight: 600; font-size: 32px; letter-spacing: -.02em; }
.kicker { font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; }
.knopf { font-weight: 600; font-size: 18px; border-radius: 16px; }
.knopf.primaer { box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--c-primaer) 75%, transparent); }
.icon-knopf svg { stroke: var(--c-text-2); }
.segmente button { min-height: 44px; font-size: 17px; }

/* ---------- Startseite: Rollenkarten ---------- */
.start-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.start-kopf h1 { margin: 0; font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; }
.rollenkarte {
  margin-top: 12px; overflow: hidden; border: 2px solid var(--c-primaer); border-radius: 22px; background: var(--c-flaeche);
}
.rollenkarte.offen { box-shadow: 0 10px 36px -8px color-mix(in srgb, var(--c-primaer) 45%, transparent); }
.rolle-knopf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 76px;
  padding: 12px 18px 12px 20px; border: 0; background: none; text-align: left; cursor: pointer;
}
.rolle-knopf b { display: block; font-weight: 600; font-size: 24px; line-height: 1.2; }
.rolle-knopf:focus-visible { outline-offset: -5px; border-radius: 20px; }
.meta { display: block; font-size: 15px; line-height: 1.35; font-weight: 400; color: var(--c-text-2); }
.pfeil { flex: none; color: var(--k-farbe, var(--c-primaer)); transition: rotate .2s; }
.pfeil svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rolle-knopf[aria-expanded="true"] .pfeil { rotate: 90deg; }
.rolle-bereiche { display: grid; gap: 8px; padding: 0 12px 12px; animation: einblenden .3s ease-out; }
.bereich-zeile-link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 70px; padding: 10px 14px 10px 12px;
  border-radius: 16px; border: 2px solid transparent; color: var(--c-text); text-decoration: none;
  background: color-mix(in srgb, var(--c-primaer) 10%, var(--c-flaeche)); transition: transform .1s;
}
.bereich-zeile-link:active { transform: scale(.985); }
.bereich-zeile-link .name { display: block; font-weight: 600; font-size: 19px; line-height: 1.2; }
.bereich-zeile-link.leer { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--c-primaer) 45%, var(--c-linie)); }
.bereich-zeile-link.leer .kachel { background: var(--c-flaeche-2); color: var(--c-primaer); }
.kachel {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--k-farbe, var(--c-primaer)); color: var(--c-auf-primaer); font-weight: 700; font-size: 20px;
  transition: background .2s, color .2s;
}
.kachel svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bereich-zeile-link .kachel { font-size: 16px; }

/* ---------- Lernfortschritt: Zahl links, Säule rechts ---------- */
.held { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 0 30px 18px 4px; }
.rollenkarte .held { padding: 0 34px 18px 20px; margin-top: -4px; }
.held p { margin: 0; }
.held-titel { font-weight: 600; font-size: 18px; }
.held-zahl { font-weight: 600; font-size: 60px; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.held-zahl small { font-size: 28px; letter-spacing: 0; }
.held-meta { font-size: 15px; line-height: 1.4; color: var(--c-text-2); }
.held-saeule { width: 56px; }
.saeule { display: block; width: 100%; height: auto; overflow: visible; }
.saeule-fuellung { transform-box: fill-box; transform-origin: 50% 100%; animation: saeule-steigen 1.4s .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes saeule-steigen { from { transform: scaleY(0); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Kopf der Bereiche ---------- */
.bereich-kopf { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 16px) 20px 0; }
.bereich-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rolle-zurueck {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px 0 12px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--c-primaer); background: var(--c-flaeche); color: var(--c-primaer); font-weight: 600; font-size: 18px;
}
.bereich-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bereich-wahl a {
  display: grid; place-items: center; min-height: 52px; border-radius: 14px; border: 2px solid var(--c-linie);
  background: var(--c-flaeche); color: var(--c-text-2); font-weight: 600; font-size: 18px; text-decoration: none; transition: background .15s;
}
.bereich-wahl a[aria-current] { background: var(--c-primaer); border-color: var(--c-primaer); color: var(--c-auf-primaer); }

/* ---------- Modulkarten: Farbe je Modul (--k-farbe) ---------- */
.modul-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.modul-karte {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; min-height: 80px;
  padding: 11px 14px 11px 12px; text-align: left; text-decoration: none; color: var(--c-text); cursor: pointer;
  background: var(--c-flaeche); border: 2px solid var(--k-farbe); border-radius: 16px;
  box-shadow: 0 4px 20px -4px color-mix(in srgb, var(--k-farbe) 34%, transparent);
  transition: border-color .2s, box-shadow .25s, transform .1s;
}
.modul-karte:active { transform: scale(.985); }
.modul-karte .name { display: block; font-weight: 600; font-size: 18px; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.modul-karte .meta { margin-top: 2px; }
.modul-karte .balken { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--c-flaeche-2); overflow: hidden; }
.modul-karte .balken i { position: relative; display: block; width: var(--anteil, 0%); height: 100%; border-radius: 3px; background: var(--k-farbe); overflow: hidden; }
.modul-karte .haken { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; border: 2px solid var(--c-linie); }
.modul-karte .haken svg { width: 17px; height: 17px; fill: none; stroke: var(--c-auf-primaer); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.modul-karte[aria-pressed="true"] .haken { background: var(--k-farbe); border-color: var(--k-farbe); }
.modul-karte[aria-pressed="true"] .haken svg { opacity: 1; }
.modul-karte[aria-pressed="false"] { border-color: var(--c-linie); box-shadow: none; }
.modul-karte[aria-pressed="false"] .kachel { background: var(--c-flaeche-2); color: var(--k-farbe); }
.modul-karte:disabled { opacity: .45; cursor: default; }
/* Balken füllen sich beim Öffnen des Bereichs (body.frisch), nicht bei jedem An-/Abwählen */
body.frisch .modul-karte .balken i { animation: balken-fuellen 1.1s .1s cubic-bezier(.2,.8,.2,1) both; }
body.frisch .modul-karte .balken i::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .7), transparent); animation: balken-schimmer 1.1s 1s ease-in-out;
}
@keyframes balken-fuellen { from { width: 0; } }
@keyframes balken-schimmer { to { transform: translateX(100%); } }
.modul-karte.leuchten { animation: karte-leuchten .8s ease-out; }
@keyframes karte-leuchten {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--k-farbe) 55%, transparent); }
  35% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--k-farbe) 22%, transparent), 0 0 26px 4px color-mix(in srgb, var(--k-farbe) 42%, transparent); }
}

/* =====================================================================================
   Nährwerk: Farben je Hauptkarte (Heute Türkis · Küche Blau · Körper Lila), eigene Bausteine.
   Orange bleibt Hinweisen vorbehalten – Essen wird nie „falsch“ eingefärbt.
   ===================================================================================== */
[data-karte="heute"], [data-rollenkarte="heute"] { --c-primaer: var(--tuerkis); --c-primaer-hover: color-mix(in srgb, var(--tuerkis) 88%, #000); }
[data-karte="kueche"], [data-rollenkarte="kueche"] { --c-primaer: var(--blau); --c-primaer-hover: color-mix(in srgb, var(--blau) 88%, #000); }
[data-karte="koerper"], [data-rollenkarte="koerper"] { --c-primaer: var(--violett); }
body { --c-kicker: var(--c-primaer); --c-fokus: var(--c-primaer); }
.ansicht { padding: calc(env(safe-area-inset-top) + 16px) 20px calc(env(safe-area-inset-bottom) + 48px); }
body.mit-kopf .ansicht { padding-top: 14px; }
body.mit-leiste .ansicht { padding-bottom: calc(env(safe-area-inset-bottom) + 116px); }
.aktionsleiste { padding-left: 20px; padding-right: 20px; }
.rolle-zurueck { gap: 8px; }
.rolle-zurueck .pfeil { color: inherit; }
.rolle-zurueck .pfeil svg { width: 20px; height: 20px; }
.bereich-wahl a { font-size: 17px; }
.version-hinweis { font-size: 13px; }
.blatt { padding: 22px 20px calc(env(safe-area-inset-bottom) + 20px); }
.blatt-titel { font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.blatt h3 { margin: 14px 0 0; font-size: 19px; font-weight: 600; }
.blatt-text { font-size: 16px; line-height: 1.4; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; text-align: left; }
.toast[hidden] { display: none; }
.toast button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.vorschau-hinweis { position: relative; z-index: 2; margin: 0; padding: calc(env(safe-area-inset-top) + 8px) 20px 8px; background: var(--c-falsch-bg); color: var(--c-text); font-size: 15px; font-weight: 600; text-align: center; }

.hinweis-karte { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--c-falsch-bg); border: 2px solid var(--c-falsch); font-size: 16px; line-height: 1.3; }
.hinweis-karte b { display: block; font-weight: 600; }
.hinweis-karte .knopf { flex: none; min-height: 48px; font-size: 16px; padding: 0 14px; }

/* Formularfelder */
.feld { display: grid; gap: 6px; font-size: 16px; font-weight: 600; min-width: 0; }
.feld small { font-weight: 400; font-size: 15px; color: var(--c-text-2); }
.eingabe { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--c-linie); border-radius: 16px; background: var(--c-flaeche); color: var(--c-text); font: inherit; font-weight: 500; font-size: 18px; }
.eingabe:focus { outline: 3px solid var(--c-fokus); outline-offset: 1px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fehler { margin: 0; color: var(--c-falsch); font-weight: 600; font-size: 16px; }
.fehler:empty { display: none; }
.knopfreihe { display: flex; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-linie); border-radius: 22px; background: var(--c-flaeche); font-weight: 600; font-size: 16px; cursor: pointer; }

/* Tag blättern */
.tag-zeile { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; margin-bottom: 12px; }
.tag-zeile button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--c-linie); border-radius: 14px; background: var(--c-flaeche); cursor: pointer; }
.tag-zeile button:disabled { opacity: .35; cursor: default; }
.tag-zeile button svg { width: 22px; height: 22px; fill: none; stroke: var(--c-text-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tag-zeile h1 { margin: 0; text-align: center; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }

/* Eiweiß-Balken und Tageswerte */
.ziel { padding: 14px 16px; border: 2px solid var(--c-primaer); border-radius: 18px; background: var(--c-flaeche); box-shadow: 0 4px 20px -6px color-mix(in srgb, var(--c-primaer) 34%, transparent); }
.ziel-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; }
.ziel-kopf b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ziel-kopf b small { font-size: 16px; font-weight: 500; color: var(--c-text-2); }
.ziel .balken, .wert-zeile .balken { display: block; height: 10px; margin-top: 10px; border-radius: 5px; background: var(--c-flaeche-2); overflow: hidden; }
.ziel .balken i { display: block; height: 100%; width: var(--anteil, 0%); border-radius: 5px; background: var(--c-primaer); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.ziel-meta { margin: 8px 0 0; font-size: 15px; color: var(--c-text-2); }
.unv { display: inline-block; padding: 1px 9px; border-radius: 9px; background: var(--c-falsch-bg); color: var(--c-text); font-size: 15px; font-weight: 600; }
.werte-reihe { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 8px 0 0; font-size: 15px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }

/* Mahlzeitenkarten */
.mahlzeit { margin-top: 12px; border: 2px solid var(--k-farbe); border-radius: 18px; background: var(--c-flaeche); overflow: hidden; box-shadow: 0 4px 20px -4px color-mix(in srgb, var(--k-farbe) 30%, transparent); }
.mahlzeit-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 8px 6px 16px; }
.mahlzeit-kopf h2 { margin: 0; font-size: 20px; font-weight: 600; }
.mahlzeit-kopf .meta { margin-top: 1px; }
.klein-knopf { min-width: 48px; min-height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px; background: none; color: var(--k-farbe, var(--c-primaer)); cursor: pointer; }
.klein-knopf svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen > li { border-top: 1px solid var(--c-linie); display: flex; align-items: stretch; }
.zeile { flex: 1; min-width: 0; min-height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.zeile .name { display: block; font-size: 17px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.zeile .rechts { text-align: right; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zeile .rechts .meta { font-weight: 400; }
.mahlzeit-fuss { padding: 8px 16px 12px; border-top: 1px solid var(--c-linie); }
.mahlzeit-fuss .werte-reihe { margin: 0; }
.liste-karte { margin-top: 8px; border: 1.5px solid var(--c-linie); border-radius: 18px; background: var(--c-flaeche); overflow: hidden; }
.liste-karte .zeilen > li:first-child { border-top: 0; }
.liste-karte .plus { flex: none; width: 60px; border: 0; border-left: 1px solid var(--c-linie); background: color-mix(in srgb, var(--c-primaer) 10%, var(--c-flaeche)); color: var(--c-primaer); cursor: pointer; display: grid; place-items: center; }
.liste-karte .plus svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.leerbox { margin: 12px 0 0; padding: 26px 20px; border: 1.5px dashed color-mix(in srgb, var(--c-primaer) 55%, var(--c-linie)); border-radius: 18px; text-align: center; color: var(--c-text-2); font-size: 17px; }
.leerbox h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; color: var(--c-text); }
.leerbox p { margin: 0; }
.abschnitt { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 2px 4px; min-height: 44px; }
.abschnitt h2 { margin: 0; font-weight: 600; font-size: 20px; }
.text-knopf { min-height: 44px; border: 0; background: none; color: var(--c-primaer); font-weight: 600; font-size: 16px; padding: 0 4px; cursor: pointer; }
.such-zeile { position: sticky; top: 0; z-index: 3; margin: 0 -20px; padding: 8px 20px; background: linear-gradient(to bottom, var(--c-bg) 80%, transparent); }
.typ-wahl button { font-size: 15.5px; padding: 0 2px; }

/* Nährwerte */
.wert-zeile { padding: 13px 16px; border-top: 1px solid var(--c-linie); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wert-zeile:first-child { border-top: 0; }
.wert-zeile b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wert-zeile .meta { flex-basis: 100%; }

/* Gewicht */
.gewicht-held { padding: 18px; border: 2px solid var(--c-primaer); border-radius: 18px; background: var(--c-flaeche); box-shadow: 0 4px 20px -6px color-mix(in srgb, var(--c-primaer) 34%, transparent); }
.gewicht-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-top: 14px; }
.gewicht-form .knopf { grid-column: 1 / -1; }
.tabelle-kopf { display: grid; grid-template-columns: 1fr 90px 100px; gap: 8px; padding: 10px 16px; font-size: 15px; color: var(--c-text-2); font-weight: 600; }
.gewicht-zeile { grid-template-columns: 1fr 90px 100px; gap: 8px; font-size: 17px; font-variant-numeric: tabular-nums; }
.gewicht-zeile .zahl-r, .tabelle-kopf .zahl-r { text-align: right; }
.gewicht-zeile .schnitt { font-weight: 600; text-align: right; }
.status-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-linie); font-size: 16px; }
.status-zeile span:last-child { text-align: right; color: var(--c-text-2); }
.knopf.klein { min-height: 50px; font-size: 17px; }
.knopfstapel { display: grid; gap: 10px; }
label.knopf:focus-within { outline: 3px solid var(--c-fokus); outline-offset: 2px; }
label.knopf input { position: absolute; opacity: 0; width: 1px; height: 1px; }
@media (prefers-reduced-motion: reduce) { .welle { display: none; } .saeule-fuellung, .rolle-bereiche, .ziel .balken i { animation: none; transition: none; } }

/* Dauerhafter Speicher */
.hinweis-hoch { flex-direction: column; align-items: stretch; }
.status-zeile span.schutz-ja:last-child { color: var(--c-richtig); font-weight: 600; }
.status-zeile span.schutz-nein:last-child { color: var(--c-falsch); font-weight: 600; }
/* Meldung als Popover: Browser-Vorgaben zurücksetzen */
.toast[popover] { inset: auto 16px calc(env(safe-area-inset-bottom) + 92px); width: auto; height: auto; border: 0; overflow: visible; }
body:has(.update-leiste:not([hidden])) .toast[popover] { bottom: calc(env(safe-area-inset-bottom) + 156px); }
