/* Grow-Begleiter — Oberflaeche.
   Farbwelt B "Klar & Kobalt" (gewaehlt am 29.07.2026): kuehles Hellgrau als Grund,
   reinweisse Flaechen, ein kraeftiges Blau als einziger Farbton. Engere Kanten,
   klarere Trennung.

   Aufgewertet gegenueber der ersten Fassung, ohne die Bedienung zu aendern:
   echte Icons statt Schriftzeichen, feine Tiefe statt nur Flaechen, Federung beim
   Antippen, eine Fortschrittsleiste durch den Grow, versetztes Einblenden. */

:root {
  --grund:      #F4F5F7;
  --flaeche:    #FFFFFF;
  --flaeche2:   #F7F8FA;
  --trenner:    #E4E6EB;
  --text:       #0D1117;
  --grau:       #6B7280;   /* 4.6:1 auf Weiss — reicht auch fuer 13px */
  --grau-tief:  #4B5163;
  --akzent:     #1257E6;
  --akzent-hell:#3B7BFF;
  --akzent-weich: #E8F0FE;
  --auf-akzent: #FFFFFF;   /* Text auf blauem Grund */
  --gut:        #127A3D;
  --warn:       #C0392B;

  --r-gross: 13px;
  --r-klein: 9px;
  --luft:    24px;

  --leiste-h: 56px;

  /* Tiefe: sehr flach gehalten. Zwei Ebenen reichen, mehr wirkt unruhig. */
  --tiefe-1: 0 1px 2px rgba(13, 17, 23, .05), 0 0 0 .5px rgba(13, 17, 23, .04);
  --tiefe-2: 0 4px 16px rgba(13, 17, 23, .09), 0 1px 3px rgba(13, 17, 23, .06);
  --tiefe-akzent: 0 4px 14px rgba(18, 87, 230, .30);

  --schnell: 140ms;
  --feder: cubic-bezier(.22, 1, .28, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:    #0A0C10;
    --flaeche:  #15181E;
    --flaeche2: #1C2027;
    --trenner:  #262B33;
    --text:     #F0F2F5;
    --grau:     #949BAA;
    --grau-tief: #B4BAC6;
    --akzent:   #5B92FF;
    --akzent-hell: #7FAAFF;
    --akzent-weich: #111C33;
    --auf-akzent: #08111F;  /* helles Blau braucht dunklen Text, sonst 3:1 */
    --gut:      #3FA463;
    --warn:     #E0614C;

    --tiefe-1: 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .06);
    --tiefe-2: 0 6px 20px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .4);
    --tiefe-akzent: 0 4px 16px rgba(91, 146, 255, .28);
  }
}
:root[data-theme="dark"] {
  --grund:#0A0C10; --flaeche:#15181E; --flaeche2:#1C2027; --trenner:#262B33;
  --text:#F0F2F5; --grau:#949BAA; --grau-tief:#B4BAC6;
  --akzent:#5B92FF; --akzent-hell:#7FAAFF; --akzent-weich:#111C33; --auf-akzent:#08111F;
  --gut:#3FA463; --warn:#E0614C;
  --tiefe-1: 0 1px 2px rgba(0,0,0,.5), 0 0 0 .5px rgba(255,255,255,.06);
  --tiefe-2: 0 6px 20px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
  --tiefe-akzent: 0 4px 16px rgba(91,146,255,.28);
}
:root[data-theme="light"] {
  --grund:#F4F5F7; --flaeche:#FFF; --flaeche2:#F7F8FA; --trenner:#E4E6EB;
  --text:#0D1117; --grau:#6B7280; --grau-tief:#4B5163;
  --akzent:#1257E6; --akzent-hell:#3B7BFF; --akzent-weich:#E8F0FE; --auf-akzent:#FFFFFF;
  --gut:#127A3D; --warn:#C0392B;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}

/* ── Grundgeruest ───────────────────────────────────────────────────── */

.seite {
  max-width: 540px;
  margin: 0 auto;
  padding: 6px 0 calc(var(--leiste-h) + 34px + env(safe-area-inset-bottom));
}
.seite.mit-aktion {
  padding-bottom: calc(var(--leiste-h) + 112px + env(safe-area-inset-bottom));
}

.block { margin: 0 0 var(--luft); padding: 0 16px; }

.gruppen-titel {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--grau);
  margin: 0 0 9px 3px;
  letter-spacing: .005em;
}

/* Karte: weiche Flaeche mit sehr feiner Tiefe, Trenner nur ZWISCHEN den Zeilen. */
.karte {
  background: var(--flaeche);
  border-radius: var(--r-gross);
  overflow: hidden;
  box-shadow: var(--tiefe-1);
}
.karte > * + * { border-top: 1px solid var(--trenner); }

.zeile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  min-height: 56px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  transition: background-color var(--schnell) ease;
}
button.zeile { cursor: pointer; }
button.zeile:active { background: var(--flaeche2); }

.zeile-text { flex: 1; min-width: 0; }
.zeile-titel { font-size: 15.5px; }
.zeile-unter { font-size: 13px; color: var(--grau); margin-top: 2px; }

/* ── Kopf: Tag, Phase, Fortschritt ──────────────────────────────────── */

.kopf { padding: 16px 20px 6px; }

.kopf-tag {
  font-size: clamp(56px, 16.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .12em;
}
.kopf-tag .wort {
  font-size: 0.245em;
  font-weight: 590;
  letter-spacing: .01em;
  color: var(--grau);
}
.kopf-phase {
  font-size: 21px;
  font-weight: 640;
  margin-top: 7px;
  letter-spacing: -0.018em;
}
.kopf-unter { font-size: 14px; color: var(--grau); margin-top: 3px; }

/* Fortschritt durch den Grow — zeigt nur an, wird nicht bedient. */
.fortschritt { padding: 16px 20px 4px; }
.f-schiene {
  height: 5px;
  border-radius: 3px;
  background: var(--trenner);
  overflow: hidden;
  position: relative;
}
.f-fuellung {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--akzent), var(--akzent-hell));
  transform-origin: left;
  animation: fuellen 900ms var(--feder) both;
}
@keyframes fuellen { from { transform: scaleX(0); } }
.f-marken {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--grau);
  font-variant-numeric: tabular-nums;
}

/* ── Zielwerte ──────────────────────────────────────────────────────── */

.werte { display: grid; grid-template-columns: 1fr 1fr; }
.werte > * { border-top: 1px solid var(--trenner); }
.werte > *:nth-child(-n+2) { border-top: none; }
.werte > *:nth-child(odd) { border-right: 1px solid var(--trenner); }

.wert { padding: 13px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.wert-kopf { display: flex; align-items: center; gap: 6px; }
.wert-kopf svg { flex: 0 0 auto; color: var(--grau); }
.wert-name { font-size: 12.5px; color: var(--grau); }
.wert-zahl {
  font-size: 19px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.wert-zusatz { font-size: 12px; color: var(--grau); line-height: 1.35; }

/* ── Termin-Anker ───────────────────────────────────────────────────── */

.anker {
  background: var(--flaeche);
  border-radius: var(--r-gross);
  overflow: hidden;
  box-shadow: var(--tiefe-1);
  position: relative;
}
.anker::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--akzent), var(--akzent-hell));
}
.anker.fertig::before { background: var(--gut); opacity: .5; }
.anker + .anker { margin-top: 11px; }

.anker-oben { padding: 15px 16px 13px 18px; display: flex; flex-direction: column; gap: 7px; }
.anker-kopf { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.anker-titel { font-size: 16.5px; font-weight: 640; letter-spacing: -0.012em; }
.anker-frist {
  font-size: 12px;
  font-weight: 550;
  color: var(--akzent);
  background: var(--akzent-weich);
  padding: 3px 9px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.anker-text { font-size: 14px; color: var(--grau-tief); line-height: 1.45; }

.anker.fertig .anker-frist { color: var(--gut); background: color-mix(in srgb, var(--gut) 12%, transparent); }
.anker.fertig .anker-titel { color: var(--grau); }

/* ── Haken ──────────────────────────────────────────────────────────── */

.haken {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border: 1.8px solid color-mix(in srgb, var(--grau) 65%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color var(--schnell) ease, border-color var(--schnell) ease, transform var(--schnell) var(--feder);
}
.haken svg { width: 13px; height: 13px; }
[aria-pressed="true"] .haken {
  background: var(--gut);
  border-color: var(--gut);
  color: var(--flaeche);
  transform: scale(1.06);
}
[aria-pressed="true"] .zeile-titel { color: var(--grau); text-decoration: line-through; }

/* ── Aktionsleiste: Daumenreichweite ────────────────────────────────── */

.aktion {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom));
  padding: 10px 16px 12px;
  background: color-mix(in srgb, var(--grund) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.aktion-innen { max-width: 540px; margin: 0 auto; display: flex; gap: 10px; }

.knopf {
  flex: 1;
  min-height: 58px;
  border: none;
  border-radius: var(--r-gross);
  background: linear-gradient(180deg, var(--akzent-hell), var(--akzent));
  color: var(--auf-akzent);
  font: inherit;
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: -0.012em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--tiefe-akzent);
  transition: transform var(--schnell) var(--feder), box-shadow var(--schnell) ease, opacity var(--schnell) ease;
}
.knopf:active { transform: scale(.972); box-shadow: var(--tiefe-1); }
.knopf svg { flex: 0 0 auto; }
.knopf-stapel { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.knopf .klein { font-size: 12.5px; font-weight: 450; opacity: .88; font-variant-numeric: tabular-nums; }

.knopf.getan {
  background: var(--flaeche);
  color: var(--text);
  box-shadow: var(--tiefe-1);
}
.knopf.getan svg { color: var(--gut); }
.knopf.getan .klein { color: var(--grau); opacity: 1; }

.knopf.zweit {
  flex: 0 0 58px;
  background: var(--flaeche);
  color: var(--akzent);
  box-shadow: var(--tiefe-1);
}

/* ── Tab-Leiste: Icon plus Beschriftung ─────────────────────────────── */

.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--leiste-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--grund) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--trenner);
  display: flex;
}
.tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 520;
  color: var(--grau);
  text-decoration: none;
  transition: color var(--schnell) ease;
}
.tabs a svg { transition: transform var(--schnell) var(--feder); }
.tabs a[aria-current="page"] { color: var(--akzent); font-weight: 620; }
.tabs a[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }
.tabs a:active svg { transform: scale(.9); }

/* ── Verlauf ────────────────────────────────────────────────────────── */

.tag-gruppe { margin-bottom: 18px; }
.tag-marke {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--grau);
  margin: 0 0 8px 19px;
  font-variant-numeric: tabular-nums;
}
.v-zeile { padding: 13px 16px; display: flex; gap: 12px; }
.v-punkt { flex: 0 0 auto; margin-top: 3px; color: var(--grau); }
.v-punkt.giessung { color: var(--akzent); }
.v-inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v-kopf { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--grau); }
.v-zeit { font-variant-numeric: tabular-nums; }
.v-text { font-size: 15px; line-height: 1.4; }
.v-foto { margin-top: 8px; border-radius: var(--r-klein); max-width: 100%; display: block; }
.v-detail { font-size: 12.5px; color: var(--grau); font-variant-numeric: tabular-nums; }

/* ── Formulare ──────────────────────────────────────────────────────── */

input[type="text"], input[type="password"], input[type="number"], input[type="date"], textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  width: 100%;
  padding: 0;
  min-height: 26px;
}
input:focus, textarea:focus { outline: none; }
input::placeholder, textarea::placeholder { color: var(--grau); }

.feld { display: flex; align-items: center; gap: 13px; padding: 13px 16px; min-height: 56px; }
.feld label { flex: 0 0 44%; font-size: 15px; }
.feld input { text-align: right; font-variant-numeric: tabular-nums; }

.absenden {
  width: 100%;
  min-height: 54px;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 620;
  color: var(--akzent);
  cursor: pointer;
  transition: background-color var(--schnell) ease;
}
.absenden:active { background: var(--flaeche2); }

/* ── Anmeldung ──────────────────────────────────────────────────────── */

.anmelden {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 30px 22px calc(30px + env(safe-area-inset-bottom));
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}
.anmelden-zeichen {
  width: 62px; height: 62px;
  border-radius: 17px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--akzent-hell), var(--akzent));
  color: var(--auf-akzent);
  box-shadow: var(--tiefe-akzent);
  animation: auftauchen 600ms var(--feder) both;
}
.anmelden h1 { font-size: 25px; font-weight: 670; letter-spacing: -0.025em; margin: 0; }
.anmelden p { font-size: 14.5px; color: var(--grau); margin: 6px 0 0; line-height: 1.45; }
.anmelden form { width: 100%; display: flex; flex-direction: column; gap: 11px; }
.pw-feld {
  background: var(--flaeche);
  border-radius: var(--r-gross);
  box-shadow: var(--tiefe-1);
  padding: 16px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: box-shadow var(--schnell) ease;
}
.pw-feld:focus-within { box-shadow: var(--tiefe-1), 0 0 0 2.5px var(--akzent-weich), 0 0 0 3.5px var(--akzent); }
.pw-feld svg { flex: 0 0 auto; color: var(--grau); }
.pw-feld input { font-size: 17px; }
.pw-zeigen {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  color: var(--grau); padding: 4px; display: grid; place-items: center;
}
.anmelden .knopf { min-height: 54px; }
.anmelden-fehler {
  color: var(--warn);
  font-size: 14px;
  font-weight: 520;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  animation: wackeln 380ms ease both;
}
@keyframes wackeln {
  0%,100% { transform: translateX(0); }
  22% { transform: translateX(-6px); }
  44% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}
@keyframes auftauchen { from { opacity: 0; transform: scale(.86) translateY(8px); } }

/* ── Fragen an den Assistenten ──────────────────────────────────────── */

.chat { padding: 0 16px; display: flex; flex-direction: column; gap: 13px; }

.blase {
  border-radius: var(--r-gross);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  animation: blase-auf 340ms var(--feder) both;
}
@keyframes blase-auf { from { opacity: 0; transform: translateY(9px) scale(.985); } }

.blase.frage {
  background: linear-gradient(170deg, var(--akzent-hell), var(--akzent));
  color: var(--auf-akzent);
  margin-left: 32px;
  border-bottom-right-radius: 5px;
  box-shadow: var(--tiefe-akzent);
  align-self: stretch;
}
.blase.antwort {
  background: var(--flaeche);
  box-shadow: var(--tiefe-1);
  border-bottom-left-radius: 5px;
}
.blase.antwort h2, .blase.antwort h3 { font-size: 15.5px; font-weight: 640; margin: 13px 0 5px; }
.blase.antwort h2:first-child, .blase.antwort h3:first-child { margin-top: 0; }
.blase.antwort ul { margin: 5px 0; padding-left: 19px; }
.blase.antwort li { margin: 3px 0; }
.blase.antwort p { margin: 7px 0; }
.blase.antwort p:first-child { margin-top: 0; }
.blase.antwort p:last-child { margin-bottom: 0; }
.blase.antwort code {
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--flaeche2);
  padding: 1.5px 5px;
  border-radius: 5px;
  color: var(--grau-tief);
}
.blase.fehler { color: var(--warn); box-shadow: var(--tiefe-1), inset 0 0 0 1px color-mix(in srgb, var(--warn) 26%, transparent); }

.laeuft { display: flex; align-items: center; gap: 10px; color: var(--grau); font-size: 14px; padding: 3px 2px; }
.punkte { display: inline-flex; gap: 4px; }
.punkte i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--akzent);
  animation: pulsen 1.25s ease-in-out infinite;
}
.punkte i:nth-child(2) { animation-delay: .16s; }
.punkte i:nth-child(3) { animation-delay: .32s; }
@keyframes pulsen { 0%, 60%, 100% { opacity: .25; transform: scale(.82); } 30% { opacity: 1; transform: scale(1); } }

.frage-leiste {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom));
  padding: 10px 16px 12px;
  background: color-mix(in srgb, var(--grund) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.frage-innen { max-width: 540px; margin: 0 auto; display: flex; gap: 9px; align-items: flex-end; }
.frage-feld {
  flex: 1;
  background: var(--flaeche);
  border-radius: 22px;
  padding: 11px 17px;
  box-shadow: var(--tiefe-1);
  min-height: 46px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--schnell) ease;
}
.frage-feld:focus-within { box-shadow: var(--tiefe-1), 0 0 0 2px var(--akzent-weich); }
.frage-feld textarea { resize: none; max-height: 110px; line-height: 1.35; }
.senden {
  flex: 0 0 46px; height: 46px;
  border: none; border-radius: 50%;
  background: linear-gradient(170deg, var(--akzent-hell), var(--akzent));
  color: var(--auf-akzent);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--tiefe-akzent);
  transition: transform var(--schnell) var(--feder), opacity var(--schnell) ease;
}
.senden:active { transform: scale(.92); }
.senden:disabled { opacity: .38; box-shadow: none; cursor: default; }
.senden.still {
  background: var(--flaeche);
  color: var(--akzent);
  box-shadow: var(--tiefe-1);
}
.senden.still.dran { color: var(--gut); }

/* ── Kleinkram ──────────────────────────────────────────────────────── */

.hinweis { padding: 14px 16px; font-size: 14px; color: var(--grau-tief); line-height: 1.45; }
.hinweis strong { color: var(--text); font-weight: 620; }
.leer {
  text-align: center; color: var(--grau);
  padding: 46px 26px; font-size: 14.5px; line-height: 1.55;
}
.leer svg { display: block; margin: 0 auto 14px; color: var(--trenner); }

.merken {
  align-self: flex-start;
  margin-top: 5px;
  border: none;
  background: none;
  color: var(--akzent);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  padding: 5px 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity var(--schnell) ease;
}
.merken:active { opacity: .55; }
.merken[disabled] { color: var(--gut); cursor: default; }

a.schlicht { color: var(--akzent); text-decoration: none; font-weight: 550; }

:focus-visible { outline: 2.5px solid var(--akzent); outline-offset: 2px; border-radius: 5px; }

/* Versetztes Einblenden — die Seite baut sich auf, statt zu erscheinen. */
.seite > * { animation: rein 420ms var(--feder) both; }
.seite > *:nth-child(1) { animation-delay: 0ms; }
.seite > *:nth-child(2) { animation-delay: 45ms; }
.seite > *:nth-child(3) { animation-delay: 90ms; }
.seite > *:nth-child(4) { animation-delay: 135ms; }
.seite > *:nth-child(5) { animation-delay: 180ms; }
.seite > *:nth-child(6) { animation-delay: 215ms; }
@keyframes rein { from { opacity: 0; transform: translateY(11px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .seite > * { opacity: 1; transform: none; }
  .f-fuellung { animation: none; }
}

/* ── Handlungstipps ─────────────────────────────────────────────────── */

.tipps { padding: 4px 0; }
.tipps > * + * { border-top: none; }
.tipp {
  display: flex;
  gap: 11px;
  padding: 9px 16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--grau-tief);
}
.tipp-punkt {
  flex: 0 0 auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--akzent);
  margin-top: 8px;
  opacity: .55;
}

/* ── Prüfung: bist du soweit? ───────────────────────────────────────── */

.pruefung { padding: 15px 16px; }
.pruefung.dran { box-shadow: var(--tiefe-1), inset 3px 0 0 var(--akzent); }
.pruef-inhalt { display: flex; flex-direction: column; gap: 7px; }
.pruef-kopf {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--grau);
  text-transform: none;
}
.pruefung.dran .pruef-kopf { color: var(--akzent); }
.pruefung p { margin: 0; font-size: 15px; line-height: 1.45; }
.pruef-zusatz { color: var(--grau); font-size: 13.5px !important; }

/* ── Der Weg bis Tag 1 ──────────────────────────────────────────────── */

.schritte > * + * { border-top: 1px solid var(--trenner); }
.schritt {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; min-height: 56px;
}
.schritt-punkt {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--flaeche2);
  box-shadow: inset 0 0 0 1px var(--trenner);
  color: var(--grau);
}
.schritt-nr { font-size: 12.5px; font-weight: 620; }
.schritt.dran .schritt-punkt {
  background: var(--akzent); color: var(--auf-akzent); box-shadow: none;
}
.schritt.dran .zeile-titel { font-weight: 620; }
.schritt.durch .schritt-punkt { background: var(--gut); color: var(--flaeche); box-shadow: none; }
.schritt.durch .zeile-titel { color: var(--grau); }
.schritt:not(.dran):not(.durch) .zeile-titel { color: var(--grau-tief); }

/* ── Fortschritt, wenn eine Etappe soweit ist ───────────────────────── */

.f-fuellung.reif { background: linear-gradient(90deg, var(--gut), var(--gut)); }

/* ── Gedämpfter Knopf (Weiterschalten vor der Mindestzeit) ──────────── */

.knopf.gedaempft {
  background: var(--flaeche);
  color: var(--grau-tief);
  box-shadow: var(--tiefe-1);
}
.knopf.gedaempft svg { color: var(--grau); }
.etappe-form { flex: 1; display: flex; }

/* ── Fußnote ────────────────────────────────────────────────────────── */

.fussnote {
  font-size: 12.5px;
  color: var(--grau);
  line-height: 1.45;
  margin: 9px 3px 0;
}

/* ── Foto-Vorschau vor dem Absenden ─────────────────────────────────── */

.foto-vorschau {
  max-width: 540px;
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--flaeche);
  border-radius: var(--r-gross);
  padding: 9px 11px;
  box-shadow: var(--tiefe-1);
}
.foto-vorschau img {
  width: 46px; height: 46px;
  border-radius: var(--r-klein);
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}
.foto-vorschau-text { flex: 1; min-width: 0; font-size: 13.5px; }
.foto-vorschau-text b { display: block; font-weight: 550; }
.foto-vorschau-text span { color: var(--grau); font-size: 12.5px; }
.foto-weg {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: var(--flaeche2);
  color: var(--grau-tief);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 17px; line-height: 1;
}
.foto-weg:active { background: var(--trenner); }

/* Foto in der Frage-Blase */
.blase-foto {
  display: block;
  margin-top: 9px;
  border-radius: var(--r-klein);
  max-width: 190px;
  width: 100%;
}

/* ── Grow-Leiste: in welchem Durchgang bin ich? ─────────────────────── */

.grow-leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 16px 0;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--flaeche);
  box-shadow: var(--tiefe-1);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--schnell) ease;
}
.grow-leiste:active { background: var(--flaeche2); }
.grow-leiste-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.grow-leiste-mehr {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--akzent); font-weight: 550;
}

/* ── Grow-Verwaltung ────────────────────────────────────────────────── */

.grow-karte {
  background: var(--flaeche);
  border-radius: var(--r-gross);
  overflow: hidden;
  box-shadow: var(--tiefe-1);
  position: relative;
}
.grow-karte + .grow-karte { margin-top: 11px; }
.grow-karte.aktiv { box-shadow: var(--tiefe-1), inset 3px 0 0 var(--akzent); }

.grow-oben { padding: 15px 16px 13px; display: flex; flex-direction: column; gap: 4px; }
.grow-karte.aktiv .grow-oben { padding-left: 18px; }
.grow-kopf { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.grow-name { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; margin: 0; }
.grow-marke {
  font-size: 11.5px; font-weight: 600;
  color: var(--akzent); background: var(--akzent-weich);
  padding: 2.5px 8px; border-radius: 20px;
}
.grow-zeit { margin: 0; font-size: 13.5px; color: var(--grau-tief); }
.grow-zahlen { margin: 0; font-size: 12.5px; color: var(--grau); font-variant-numeric: tabular-nums; }

.grow-knoepfe {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--trenner);
}
.grow-knoepfe > form { flex: 1; display: flex; }
.grow-knoepfe > form + form { flex: 0 0 auto; border-left: 1px solid var(--trenner); }
.grow-knopf {
  flex: 1;
  min-height: 50px;
  border: none;
  background: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
  padding: 0 18px;
  transition: background-color var(--schnell) ease;
}
.grow-knopf.haupt { color: var(--akzent); }
.grow-knopf.loeschen { color: var(--warn); }
.grow-knopf:active { background: var(--flaeche2); }
.grow-hinweis {
  flex: 1;
  display: flex; align-items: center; gap: 7px;
  min-height: 50px; padding: 0 16px;
  font-size: 13.5px; color: var(--grau);
}
.grow-hinweis svg { color: var(--gut); }

/* ── Gieß-Stand: die erste Frage beim Öffnen ────────────────────────── */

/* Der Markierungsstreifen als ::before wie bei .anker — ein inset-Schatten wird von
   den Hintergruenden der inneren Bloecke uebermalt und bricht dann in der Mitte ab. */
.giess-stand { overflow: hidden; position: relative; }
.giess-stand.faellig::before,
.giess-stand.nie::before,
.giess-stand.lange::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--akzent);
  z-index: 1;
}
/* Bewusst NICHT rot: wer nach einer Pause zurueckkommt, soll keinen Warnbalken sehen.
   Der Text sagt sachlich, was Sache ist — die Farbe muss nicht nachtreten (BRIEFING.md). */
.giess-stand.lange::before { background: var(--grau); }

.gs-kopf {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 13px;
}
.giess-stand.faellig .gs-kopf,
.giess-stand.nie .gs-kopf,
.giess-stand.lange .gs-kopf { padding-left: 18px; }

.gs-symbol { flex: 0 0 auto; margin-top: 1px; color: var(--grau); }
.giess-stand.faellig .gs-symbol,
.giess-stand.nie .gs-symbol { color: var(--akzent); }
.giess-stand.lange .gs-symbol { color: var(--warn); }

.gs-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gs-titel { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.gs-unter { font-size: 13.5px; color: var(--grau-tief); line-height: 1.4; }

.gs-marke {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 600;
  color: var(--akzent); background: var(--akzent-weich);
  padding: 3px 9px; border-radius: 20px;
  margin-top: 1px;
}
.giess-stand.lange .gs-marke {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
}

.gs-pruefung {
  border-top: 1px solid var(--trenner);
  padding: 12px 16px 13px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 13.5px; color: var(--grau-tief); line-height: 1.45;
  background: var(--flaeche2);
}
.giess-stand.faellig .gs-pruefung,
.giess-stand.nie .gs-pruefung,
.giess-stand.lange .gs-pruefung { padding-left: 18px; }
.gs-frage { font-size: 12px; font-weight: 600; color: var(--grau); }

/* ── Zelt-Uebersicht ────────────────────────────────────────────────────
   Portiert aus dem Design-Projekt "Zelt-Uebersicht v2". Der Zeltboden ist
   bewusst in beiden Modi gleich dunkel: das ist eine Zeichnung vom Zelt, kein
   Flaechenelement der Oberflaeche. Nur Rahmen, Text und Detailfeld folgen dem
   hellen bzw. dunklen Modus. */

.zelt { overflow: hidden; }

.zelt-boden {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background:
    repeating-linear-gradient(97deg, rgba(255,255,255,.2) 0 1px, rgba(0,0,0,.045) 1px 7px),
    linear-gradient(135deg, #9BA1A9, #DADEE4 18%, #8F959D 38%, #CBD0D7 58%, #979DA5 80%, #C4C9D0);
}

.zelt-marke {
  position: absolute; left: 0; right: 0;
  text-align: center;
  font-size: 10.5px; font-weight: 600;
  color: rgba(20, 23, 28, .6);
  letter-spacing: .06em;
}
.zelt-marke.hinten { top: 9px; }
.zelt-marke.vorne  { bottom: 9px; }

.zelt-flaeche {
  position: absolute; inset: 5.5%;
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 70% at 50% 46%, #262B32 0%, #171B20 62%, #0B0D11 100%);
  box-shadow: inset 0 0 46px rgba(0,0,0,.78), inset 0 0 0 1px rgba(255,255,255,.07);
}

.zelt-licht {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 56% 56% at 50% 50%,
    rgba(255,246,220,.24) 0%, rgba(255,246,220,.09) 46%, rgba(255,246,220,0) 74%);
  animation: lichtAtmen 7s ease-in-out infinite;
}
@keyframes lichtAtmen { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }

.zelt-kern {
  position: absolute; inset: 10%;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,234,185,.22);
}
.zelt-kern-marke {
  position: absolute; left: 50%; top: 11.4%;
  transform: translateX(-50%);
  font-size: 9.5px; font-weight: 600;
  color: rgba(255,234,185,.58);
  white-space: nowrap; letter-spacing: .05em;
}

/* ── Ein Topf ───────────────────────────────────────────────────────── */

.zelt-topf {
  position: absolute;
  width: 29%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  animation: topfRein 520ms var(--feder) both;
}
@keyframes topfRein {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.84); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.topf {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: none; background: none;
  border-radius: 50%;
  font-family: inherit;
  cursor: pointer;
  transition: opacity var(--schnell) ease;
}
.topf:active { opacity: .85; }

.topf-stoff {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.035) 0deg 4deg, rgba(0,0,0,.05) 4deg 8deg),
    radial-gradient(circle at 36% 28%, #5D6067, #3A3D43 52%, #1F2226 100%);
  box-shadow: 0 14px 26px rgba(0,0,0,.66), inset 0 0 0 2px rgba(255,255,255,.10);
}

/* Der Auswahlring haengt immer im Markup und wird nur sichtbar geschaltet —
   so muss der Browser beim Antippen nichts nachladen oder neu berechnen. */
.topf-ring {
  position: absolute; inset: -4%;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--akzent-hell), 0 0 26px rgba(91,146,255,.7);
  opacity: 0;
  transition: opacity var(--schnell) ease;
}
.topf[aria-pressed="true"] .topf-ring { opacity: 1; }

.topf-schild {
  position: absolute; left: 50%; bottom: -15%;
  transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(8,10,14,.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16);
  white-space: nowrap;
}
.topf-id {
  font-size: 13.5px; font-weight: 680; line-height: 1;
  color: #FFFFFF; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.topf-kuerzel { font-size: 11px; font-weight: 550; line-height: 1; color: rgba(255,255,255,.74); }

/* Die Pflanzenteile aus zelt-pflanzen.js. Nur das, was 176-mal identisch waere —
   alles Eigene setzen die Zeichnungen selbst inline, und inline gewinnt. */
.zt { position: absolute; transform-origin: 50% 100%; }
.zb { clip-path: polygon(50% 100%, 40% 84%, 15% 69%, 34% 70%, 10% 45%, 36% 60%, 23% 20%, 44% 52%, 50% 8%, 56% 52%, 77% 20%, 64% 60%, 90% 45%, 66% 70%, 85% 69%, 60% 84%); }
.zs { border-radius: 0 100% 0 100%; }
@keyframes wiegen { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }

/* ── Das Feld unter dem Zelt ────────────────────────────────────────── */

.zelt-info {
  border-top: 1px solid var(--trenner);
  min-height: 148px;
  display: flex; flex-direction: column;
}

/* [hidden] muss hier ausdruecklich stehen: das Attribut setzt nur display:none mit
   Standard-Spezifitaet, und ein display:flex aus der Klasse gewinnt sonst. */
.zelt-uebersicht { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.zelt-uebersicht[hidden] { display: none; }
.zelt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zelt-chip {
  display: flex; align-items: center;
  padding: 6px 11px;
  border-radius: 20px;
  background: var(--flaeche2);
  font-size: 12.5px; color: var(--grau-tief);
}
.zelt-hinweis { margin: 0; font-size: 13.5px; color: var(--grau); line-height: 1.45; }

.zelt-karte { display: flex; flex-direction: column; flex: 1; }
.zelt-karte[hidden] { display: none; }

.zi-kopf { padding: 15px 16px 6px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.zi-id    { font-size: 17px; font-weight: 660; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.zi-sorte { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.zi-welle {
  font-size: 11.5px; font-weight: 600;
  color: var(--akzent); background: var(--akzent-weich);
  padding: 2.5px 9px; border-radius: 20px;
}

.zi-werte {
  display: grid; grid-template-columns: auto 1fr;
  gap: 5px 16px;
  padding: 8px 16px 15px;
  font-size: 13.5px; line-height: 1.45;
}
.zi-marke { color: var(--grau); }
.zi-wert  { color: var(--grau-tief); }

.zelt-fuss {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; min-height: 50px;
  border: none; border-top: 1px solid var(--trenner);
  background: none;
  font: inherit; font-size: 14.5px; font-weight: 550;
  color: var(--akzent);
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color var(--schnell) ease;
}
.zelt-fuss:active { background: var(--flaeche2); }
.zelt-fuss.still { margin-top: auto; color: var(--grau); }

.zelt-fussnote {
  font-size: 12.5px; color: var(--grau); line-height: 1.45;
  margin: 9px 3px 0; padding: 0 16px;
}

/* ── Loeschen, Aendern, Mengenformular ──────────────────────────────────
   Der Papierkorb steht rechts aussen und bleibt bewusst blass: er soll
   erreichbar sein, aber nicht der erste Blickfang der Zeile. */

.v-weg { flex: 0 0 auto; display: flex; align-items: flex-start; }
.v-weg button {
  border: none; background: none;
  color: var(--grau);
  padding: 4px 2px 4px 8px;
  min-width: 34px; min-height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color var(--schnell) ease;
}
.v-weg button:active { color: var(--warn); }

.v-aendern {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13.5px; font-weight: 550;
  color: var(--akzent); text-decoration: none;
}

.blase-fuss { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.blase-weg { display: inline-flex; }
.blase-weg button {
  border: none; background: none;
  color: var(--grau);
  font: inherit; font-size: 14px; font-weight: 550;
  padding: 5px 0;
  margin-top: 5px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: color var(--schnell) ease;
}
.blase-weg button:active { color: var(--warn); }

.feld-unter { font-size: 13px; color: var(--grau); }

/* Die Einheit steht neben dem Feld, nicht darin: so bleibt der Wert rechtsbuendig
   unter den anderen Zahlen stehen. */
.feld-einheit { flex: 0 0 auto; color: var(--grau); font-size: 15px; }

.mengen-summe {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--trenner);
  background: var(--flaeche2);
  font-size: 14px; color: var(--grau);
}
.mengen-summe strong {
  font-size: 15px; font-weight: 620; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Wachstum, Durst und Wasser im Zelt ─────────────────────────────────
   Die Zeichnung waechst aus der Erde nach oben: transform-origin steht in .zt
   schon auf 50% 100%. --wuchs kommt aus views/zelt.js. */

.topf-wuchs {
  position: absolute; inset: 0;
  transform: scale(var(--wuchs, 1));
  transform-origin: 50% 78%;
  transition: transform 600ms var(--feder);
}

/* Der Durstring: laeuft von "gerade gegossen" bis "dran" voll und bleibt dann
   stehen. Bewusst in Rot NICHT — die App mahnt nicht.
   Er sitzt INNEN auf dem Topfrand, waehrend der Auswahlring aussen liegt. Sonst
   sind beide blaue Kreise um denselben Topf und man verwechselt sie. */
.topf-durst {
  position: absolute; inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(224, 238, 255, .95) 0 var(--anteil, 0%),
    rgba(0, 0, 0, .34) var(--anteil, 0%) 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 79%, #000 81%);
  mask: radial-gradient(circle, transparent 0 79%, #000 81%);
  pointer-events: none;
}

.zi-wasser {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 5px 10px;
  padding: 0 16px 15px;
  font-size: 13.5px;
}
.zi-wasser-zahl { font-weight: 620; font-variant-numeric: tabular-nums; }
.zi-wasser-schiene {
  height: 6px;
  border-radius: 3px;
  background: var(--flaeche2);
  box-shadow: inset 0 0 0 1px var(--trenner);
  overflow: hidden;
}
.zi-wasser-fuellung {
  display: block; height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--akzent), var(--akzent-hell));
}
.zi-wasser-gaben { font-size: 12.5px; color: var(--grau); font-variant-numeric: tabular-nums; }

/* ── Wie war die Erde: drei Knoepfe je Pflanze ──────────────────────────
   Radios statt Knoepfe — dann traegt das Formular die Wahl von allein mit. */

.mengen-topf + .mengen-topf { border-top: 1px solid var(--trenner); }
.mengen-topf .feld { padding-bottom: 4px; }

.zw-reihe {
  display: flex; gap: 7px;
  margin: 0; padding: 0 16px 12px;
  border: none;
}
.zw-wahl { flex: 1; }
.zw-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.zw-wahl span {
  display: flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 6px;
  border-radius: var(--r-klein);
  background: var(--flaeche2);
  box-shadow: inset 0 0 0 1px var(--trenner);
  font-size: 12.5px; color: var(--grau-tief);
  cursor: pointer;
  transition: background-color var(--schnell) ease, color var(--schnell) ease;
}
.zw-wahl input:checked + span {
  background: var(--akzent-weich);
  box-shadow: inset 0 0 0 1px var(--akzent);
  color: var(--akzent);
  font-weight: 600;
}
.zw-wahl input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ── Was dabei herauskam: Erntevergleich ────────────────────────────────
   Waagerechte Balken fuer den Groessenvergleich. Die Farbe haengt an der SORTE,
   nicht am Platz — sonst wechselt eine Pflanze die Farbe, sobald sie ueberholt
   wird. Die drei Werte sind gegen Rot-Gruen-, Blau-Gelb- und Rot-Blindheit
   geprueft (OKLab-Abstand >= 14 in jeder Sehweise, Kontrast >= 3:1 zur Flaeche);
   hell und dunkel sind getrennt gewaehlt, nicht umgeklappt. */

:root {
  --sorte-1: #1257E6;
  --sorte-2: #B45309;
  --sorte-3: #7C3AED;
}
@media (prefers-color-scheme: dark) {
  :root { --sorte-1: #4A7FE8; --sorte-2: #C4841F; --sorte-3: #8B63E8; }
}
:root[data-theme="dark"]  { --sorte-1: #4A7FE8; --sorte-2: #C4841F; --sorte-3: #8B63E8; }
:root[data-theme="light"] { --sorte-1: #1257E6; --sorte-2: #B45309; --sorte-3: #7C3AED; }

.sorte-1 { background: var(--sorte-1); }
.sorte-2 { background: var(--sorte-2); }
.sorte-3 { background: var(--sorte-3); }

.ernte-kopf { padding: 16px 16px 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ernte-summe {
  font-size: 30px; font-weight: 680;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ernte-unter { font-size: 13.5px; color: var(--grau); font-variant-numeric: tabular-nums; }

.ernte-balken { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 11px; }

.eb-zeile { display: flex; flex-direction: column; gap: 5px; }
.eb-kopf { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.eb-id { font-weight: 640; font-variant-numeric: tabular-nums; }
.eb-sorte { flex: 1; min-width: 0; color: var(--grau); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-wert { font-weight: 620; font-variant-numeric: tabular-nums; }

/* 2px Abstand zwischen Fuellung und Schiene, 4px runde Enden am Datenende. */
.eb-schiene { display: block; height: 12px; border-radius: 4px; background: var(--flaeche2); }
.eb-fuellung {
  display: block; height: 100%;
  min-width: 6px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--flaeche);
  animation: ebRein 700ms var(--feder) both;
}
@keyframes ebRein { from { transform: scaleX(0); transform-origin: left; } }

.ernte-legende {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  padding: 13px 16px;
  border-top: 1px solid var(--trenner);
  background: var(--flaeche2);
  font-size: 13px;
}
.el-eintrag { display: flex; align-items: center; gap: 7px; }
.el-punkt { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.el-name { color: var(--grau-tief); }
.el-wert { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.ernte-fuss {
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid var(--trenner);
  font-size: 13.5px; color: var(--grau-tief); line-height: 1.45;
}

/* Nur fuer Vorleseprogramme sichtbar. Stand bisher nur eingebettet in der
   Anmeldeseite — wird inzwischen auch im Mengenformular gebraucht. */
.nur-vorleser {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Tap-Ziele ──────────────────────────────────────────────────────────
   DESIGN.md fordert mindestens 56 px, ausdruecklich "fuer nasse Finger".
   Gemessen wurden 20 bis 34 px. Vergroessert wird die TREFFFLAECHE ueber
   Polsterung — die Symbole bleiben so klein wie vorher. */

.v-weg button { min-width: 48px; min-height: 56px; padding: 0 4px 0 12px; }

.v-aendern {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 2px;
  margin-top: 0;
}

.zw-wahl span { min-height: 48px; font-size: 13px; }

.merken, .blase-weg button { min-height: 44px; padding: 8px 0; }

.feld input, .mengen-topf .feld input { min-height: 44px; }
.frage-feld textarea, #frage-text { min-height: 44px; }

/* ── Wie war die Erde: direkt nach dem Ein-Tap-Gießen ───────────────────
   Ein Tap, gilt fuer alle sechs. Ohne diesen Weg lernt die Durstuhr nie etwas,
   weil kaum jemand fuer jede Gabe das lange Mengenformular oeffnet. */

.gs-erde {
  border-top: 1px solid var(--trenner);
  padding: 12px 16px 13px;
  display: flex; flex-direction: column; gap: 8px;
}
.gs-erde-frage { font-size: 12.5px; font-weight: 600; color: var(--grau); }
.gs-erde-wahl { display: flex; gap: 7px; }
.gs-erde-wahl button {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: var(--r-klein);
  background: var(--flaeche2);
  box-shadow: inset 0 0 0 1px var(--trenner);
  font: inherit; font-size: 13px; color: var(--grau-tief);
  cursor: pointer;
  transition: background-color var(--schnell) ease, color var(--schnell) ease;
}
.gs-erde-wahl button:active { background: var(--akzent-weich); color: var(--akzent); }

/* Woher die Wasserzahl stammt — Planwert oder wirklich eingetragen. */
.zi-quelle { padding: 0 16px 14px; font-size: 12px; color: var(--grau); line-height: 1.4; }

/* Ein Feld, das nicht stimmt: benennen statt verschlucken. */
.fehler-karte { box-shadow: var(--tiefe-1), inset 3px 0 0 var(--warn); }
.mengen-topf.stimmt-nicht { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.mengen-topf.stimmt-nicht input { box-shadow: inset 0 -2px 0 var(--warn); }

.v-foto-fehlt {
  display: block; margin-top: 8px; padding: 14px 16px;
  border-radius: var(--r-klein);
  background: var(--flaeche2);
  font-size: 13px; color: var(--grau);
}

/* Tastaturbedienung: ein sichtbarer Rahmen auf allem, was Fokus bekommen kann.
   Nur :focus-visible — mit dem Finger sieht man ihn nicht, mit der Tastatur schon. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 4px;
}
.topf:focus-visible { outline-offset: 4px; border-radius: 50%; }

/* ── Begriffe: antippen klappt die Erklärung auf ────────────────────────
   Fein gepunktet unterstrichen, damit man sieht, dass da etwas dahinter
   steckt — aber ohne den Satz zu zerreißen. Die Erklärung erscheint als
   eigener Block darunter, kein Overlay: im Zelt bedient man einhändig. */

.begriff-huelle { display: inline; }

.begriff {
  border: none;
  background: none;
  padding: 6px 0;                       /* Trefffläche, nicht Optik */
  margin: -6px 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline dotted currentColor 1.5px;
  text-underline-offset: 3px;
}
.begriff:active { color: var(--akzent); }
.begriff[aria-expanded="true"] {
  color: var(--akzent);
  text-decoration-style: solid;
}

.begriff-text {
  display: block;
  margin: 8px 0 4px;
  padding: 11px 13px;
  border-radius: var(--r-klein);
  background: var(--flaeche2);
  box-shadow: inset 2px 0 0 var(--akzent);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--grau-tief);
  animation: begriffRein 180ms var(--feder) both;
}
.begriff-text[hidden] { display: none; }
@keyframes begriffRein { from { opacity: 0; transform: translateY(-4px); } }

/* Im Zeltbild steht die Marke auf dunklem Grund. */
.zelt-kern-marke .begriff { color: inherit; }
.zelt-kern-marke .begriff-text {
  position: absolute; left: 8%; right: 8%; top: 100%;
  z-index: 2;
  background: rgba(12, 15, 20, .94);
  color: rgba(255, 255, 255, .88);
  box-shadow: inset 2px 0 0 var(--akzent-hell);
  white-space: normal;
  text-align: left;
  letter-spacing: 0;
  font-weight: 400;
}

/* ── Gießen: Liste mit Haken statt sechs Pflichtfelder ──────────────────
   Vorher musste man bei einer Teilgießung vier Felder LEEREN. Jetzt hakt man
   ab, was Wasser bekommt — vorausgewählt ist, was die App für fällig hält. */

.mt-schnellwahl { display: flex; gap: 8px; padding: 13px 16px; background: var(--flaeche2); }
.mt-schnellwahl button {
  flex: 1; min-height: 48px;
  border: none; border-radius: var(--r-klein);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--trenner);
  font: inherit; font-size: 13.5px; font-weight: 550; color: var(--akzent);
  cursor: pointer;
}
.mt-schnellwahl button:active { background: var(--akzent-weich); }

.mengen-topf.dabei { background: color-mix(in srgb, var(--akzent) 4%, transparent); }

.mt-haken {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px 6px;
  min-height: 56px;
  cursor: pointer;
}
.mt-haken input { position: absolute; opacity: 0; pointer-events: none; }
.mt-kasten {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--flaeche2);
  box-shadow: inset 0 0 0 1.5px var(--trenner);
  color: transparent;
  transition: background-color var(--schnell) ease, color var(--schnell) ease;
}
.mt-haken input:checked + .mt-kasten {
  background: var(--akzent);
  box-shadow: none;
  color: var(--auf-akzent);
}
.mt-haken input:focus-visible + .mt-kasten { outline: 2px solid var(--akzent); outline-offset: 2px; }
.mt-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 550; }
.mt-durst { flex: 0 0 auto; font-size: 12.5px; color: var(--grau); }

/* Ist der Topf nicht dabei, tritt das Mengenfeld zurück — es zählt dann nicht. */
.mengen-topf:not(.dabei) .feld,
.mengen-topf:not(.dabei) .zw-reihe { opacity: .4; }

.mt-menge {
  min-height: 0;
  padding: 2px 16px 8px 53px;      /* auf die Höhe des Hakens einrücken */
  gap: 10px;
}
.mt-menge label { flex: 0 0 auto; font-size: 13.5px; color: var(--grau); }
.mt-menge input { min-height: 44px; font-size: 16px; }

/* Der Ein-Tap-Knopf im Topf-Detail und die leisere Alternative darunter. */
.zelt-fuss-form { display: block; }
.zelt-fuss-form .zelt-fuss { border-top: 1px solid var(--trenner); }
.zelt-fuss.still { min-height: 48px; font-size: 13.5px; font-weight: 500; }

/* ── Anmeldung: erst wer, dann Passwort ─────────────────────────────────
   Der Name entscheidet nur, was später im Verlauf steht — das Passwort ist
   für beide dasselbe. Deshalb sind es keine Konten, sondern zwei Knöpfe. */

.wer-wahl { display: flex; gap: 10px; border: none; margin: 0; padding: 0; }
.wer-wahl label { flex: 1; }
.wer-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wer-wahl span {
  display: flex; align-items: center; justify-content: center;
  min-height: 58px;
  border-radius: var(--r-gross);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1.5px var(--trenner);
  font-size: 17px; font-weight: 600; color: var(--grau-tief);
  cursor: pointer;
  transition: background-color var(--schnell) ease, color var(--schnell) ease;
}
.wer-wahl input:checked + span {
  background: var(--akzent-weich);
  box-shadow: inset 0 0 0 2px var(--akzent);
  color: var(--akzent);
}
.wer-wahl input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* Wer ist angemeldet — ganz unten, klein, mit Ausstieg. */
.wer-bin-ich {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0 20px;
  font-size: 12.5px; color: var(--grau);
}
.wer-bin-ich button {
  border: none; background: none;
  min-height: 44px; padding: 0 4px;
  font: inherit; font-size: 12.5px; color: var(--akzent);
  cursor: pointer;
}
.zuletzt-eine {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; min-height: 56px;
  text-decoration: none; color: inherit;
}
.ze-text { font-size: 15px; }
.ze-wann { font-size: 12.5px; color: var(--grau); }

/* ── Aufgaben: Haken links, Text daneben ────────────────────────────────
   Vorher war die ganze Zeile ein <button>. Dann lässt sich im Text kein
   Begriff erklären — ein Knopf im Knopf ist ungültiges HTML. Der Haken ist
   jetzt ein eigenes Ziel von 56 × 56 px, wie DESIGN.md es fordert. */

.haken-knopf {
  flex: 0 0 auto;
  width: 56px; min-height: 56px;
  margin: -14px 0 -14px -16px;         /* Trefffläche bis an den Kartenrand */
  display: flex; align-items: center; justify-content: center;
  border: none; background: none;
  cursor: pointer;
  transition: background-color var(--schnell) ease;
}
.haken-knopf:active { background: var(--flaeche2); }
