/* =====================================================================
   Sattify · Gestaltungssystem (Richtung D "Warme Klarheit")
   Von Hand geschrieben statt mit einem Werkzeug erzeugt: damit braucht
   die Auslieferung auf all-inkl keinen Bauschritt, und es gibt kein
   Fremdgerüst, das beim Laden im Supermarkt Zeit kostet.

   Regel des Systems: Kacheln nur für Objekte (Score, persönliche Werte),
   niemals für Listen. Listen liegen ohne Rahmen auf dem Papier.
   ===================================================================== */

:root {
  /* Flächen — sandiger Grund, cremefarbene Karten darauf.
     Reines Weiss kommt bewusst nirgends vor; es wirkt auf warmem
     Papier kühl und klinisch. */
  --paper:        #F3ECE0;
  --card:         #FCFAF5;
  --sunken:       #E9E0CF;
  --line:         #E7DDCA;
  --line-soft:    #EFE7D8;
  --line-strong:  #DCD0B8;

  /* Schrift */
  --ink:          #23281F;
  --muted:        #8A8074;
  --faint:        #A99E8C;

  /* Kennzahlen tragen Waldgrün, alles Anfassbare Terrakotta. */
  --green:        #2F5D3A;
  --green-ink:    #2F5D3A;
  --green-tint:   #E2EAE1;
  --terra:        #C05F3C;
  --terra-dark:   #A44B2B;
  --terra-tint:   #F3E3D6;
  --terra-line:   #E6CFBC;
  --warn:         #9A6B12;
  --warn-tint:    #F6EBD3;

  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  18px;
  --radius-xl:  22px;

  --shadow:     0 1px 2px rgba(35, 40, 31, .07);
  --shadow-lg:  0 8px 28px rgba(35, 40, 31, .14);

  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Auf echten Geräten liegt unten der Home-Streifen und oben die
     Statusleiste. Ohne das rutscht der Weiter-Knopf darunter. */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height:  62px;

  color-scheme: light dark;
}

/* Abends in der Küche. Dieselbe Wärme, nur andersherum. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #191B16;
    --card:        #222520;
    --sunken:      #2B2F26;
    --line:        #33372C;
    --line-soft:   #2B2F26;
    --line-strong: #3E4335;
    --ink:         #EDE9DE;
    --muted:       #9C9585;
    --faint:       #766F62;
    --green:       #7FB68C;
    --green-ink:   #8FC79B;
    --green-tint:  #253326;
    --terra:       #E08258;
    --terra-dark:  #EE9670;
    --terra-tint:  #33241C;
    --terra-line:  #4A3226;
    --warn:        #D5A94A;
    --warn-tint:   #332A16;
    --shadow:      0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg:   0 8px 28px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --paper: #191B16; --card: #222520; --sunken: #2B2F26; --line: #33372C;
  --line-soft: #2B2F26; --line-strong: #3E4335; --ink: #EDE9DE; --muted: #9C9585;
  --faint: #766F62; --green: #7FB68C; --green-ink: #8FC79B; --green-tint: #253326;
  --terra: #E08258; --terra-dark: #EE9670; --terra-tint: #33241C; --terra-line: #4A3226;
  --warn: #D5A94A; --warn-tint: #332A16;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 8px 28px rgba(0,0,0,.5);
}

/* --- Grundlagen --------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  /* Kein Gummiband-Scrollen über die App hinaus — im Supermarkt mit
     einer Hand wirkt das wie ein Fehler. */
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 29px; line-height: 1.1; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p  { margin: 0; }
a  { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 6px; }

/* Wer Bewegung abgestellt hat, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 11px; }
.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--accent { color: var(--terra); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Gerüst ------------------------------------------------------- */

.app {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}
.screen { display: none; }
.screen.is-active { display: block; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 6px) 8px 6px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
}
.topbar__title { flex: 1; font-size: 13px; font-weight: 700; color: var(--muted); }

.wrap { padding: 0 20px; }
.stack { display: flex; flex-direction: column; }
.stack--sm { gap: 8px; }
.stack--md { gap: 14px; }
.stack--lg { gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.spacer { flex: 1 1 auto; }

/* --- Tastflächen --------------------------------------------------
   Nie unter 44 px. Das ist keine Empfehlung, sondern die Grenze, ab
   der man mit einer Hand am Einkaufswagen daneben trifft. */

.iconbtn {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--ink);
}
.iconbtn:active { background: var(--sunken); }

.btn {
  min-height: 52px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--radius-lg);
  font-size: 16px; font-weight: 700;
  transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--terra); color: #FFF6EF; }
.btn--primary:hover { background: var(--terra-dark); }
.btn--secondary { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn--ghost { color: var(--terra); font-weight: 600; min-height: 44px; }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 44px; font-size: 14.5px; padding: 0 14px; border-radius: var(--radius); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip {
  min-height: 34px; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.chip--on { background: var(--green); border-color: var(--green); color: var(--paper); }
.chip--terra { background: var(--terra); border-color: var(--terra); color: #FFF6EF; }

/* Segmentierter Umschalter. Steht seit dem Wegfall des Ernährungs-
   Umschalters im Rezept nur noch dort, wo wirklich eine Wahl getroffen
   wird: Ernährungsform im Editor, Sichtbarkeit, Ansicht der Einkaufsliste. */
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--sunken); border-radius: var(--radius); }
.segmented button {
  flex: 1; min-height: 40px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: var(--card); box-shadow: var(--shadow);
  font-weight: 700; color: var(--green-ink);
}

/* --- Karten (nur für Objekte) -------------------------------------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.card--flush { padding: 0; overflow: hidden; }
.card--terra { background: var(--terra-tint); border-color: var(--terra-line); }
.card--green { background: var(--green); border-color: var(--green); color: var(--paper); }
.card--warn  { background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }

/* --- Listen (ohne Karten) ------------------------------------------
   Zeilen liegen direkt auf dem Papier, getrennt durch Haarlinien.
   Ein Gang-Band bleibt beim Scrollen oben kleben: die Frage "in
   welchem Gang bin ich?" stellt man sich alle drei Sekunden. */

.aisle {
  position: sticky; top: calc(var(--safe-top) + 56px); z-index: 10;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 20px; background: var(--sunken);
}
.aisle__name { font-family: var(--serif); font-size: 15px; color: var(--green-ink); }
.aisle__count { font-size: 11px; font-weight: 700; color: var(--faint); }

.item {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 6px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.item:first-of-type { border-top: 0; }
.item__body { flex: 1; min-width: 0; }
.item__name { font-size: 15.5px; font-weight: 600; }
.item__sub  { font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.item__amount { font-size: 15px; font-weight: 700; }
.item--done .item__name,
.item--done .item__amount { color: var(--faint); text-decoration: line-through; }

.check {
  width: 26px; height: 26px; flex: 0 0 26px;
  border: 2px solid var(--line-strong); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .12s ease, border-color .12s ease;
}
.check[aria-checked="true"], .check.is-on { background: var(--terra); border-color: var(--terra); }
.check svg { opacity: 0; }
.check[aria-checked="true"] svg, .check.is-on svg { opacity: 1; }
/* Einfachauswahl als Karten: für Fragen, bei denen die Antwort erklärt
   werden muss und ein Segmentumschalter zu wenig Platz für den Satz hat.
   Bewusst ohne Vorauswahl — nichts ist angewählt, bis jemand tippt. */
.ni-dot {
  width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px;
  border: 2px solid var(--line-strong); border-radius: 999px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
#ni-diet [data-diet][aria-pressed="true"] {
  border-color: var(--terra); background: var(--terra-tint);
}
#ni-diet [data-diet][aria-pressed="true"] .ni-dot {
  border-color: var(--terra); box-shadow: inset 0 0 0 4px var(--terra);
}

/* Die Tastfläche ist grösser als das, was man sieht. */
.item__hit { display: flex; align-items: center; padding: 15px 8px 15px 0; margin: -15px -8px -15px 0; }

/* --- Kennzahlen ---------------------------------------------------- */

.ring { position: relative; flex: 0 0 auto; }
.ring__value {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--green-ink); line-height: 1;
}
.ring__label { font-family: var(--sans); font-size: 8.5px; font-weight: 700;
               letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }

.bar { height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--green); transition: width .3s ease; }
.bar__fill--terra { background: var(--terra); }
.bar__fill--warn { background: var(--warn); }

.stat { display: flex; align-items: baseline; justify-content: space-between; }
.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat__value { font-size: 15px; font-weight: 700; }
.stat__unit  { font-size: 11px; font-weight: 500; color: var(--faint); }

.hairline { height: 1px; background: var(--line-soft); }

/* --- Kochmodus ----------------------------------------------------- */

.cook { position: fixed; inset: 0; z-index: 60; background: var(--paper);
        display: flex; flex-direction: column; }
.cook__step { font-family: var(--serif); font-size: 27px; line-height: 1.27; }
.cook__timer { font-family: var(--serif); font-size: 42px; line-height: 1; color: var(--paper); }

/* Laufende Timer, die zur Sitzung gehören und nicht zum Schritt:
   sie bleiben sichtbar, egal auf welchem Schritt man steht. */
.timers { display: flex; gap: 8px; }
.timer-chip {
  flex: 1; min-width: 0; padding: 9px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left;
}
.timer-chip--active { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.timer-chip--done { border-color: var(--terra); background: var(--terra-tint); }
.timer-chip__where { font-size: 10.5px; color: var(--faint); }
.timer-chip__time  { font-size: 18px; font-weight: 700; margin-top: 1px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.timer-chip--done .timer-chip__time { color: var(--terra); animation: pulse 1s ease-in-out infinite; }

/* --- Wochenplan ----------------------------------------------------
   Bewusst Zeilen mit kleinem Vorschaubild, kein Kachelraster: sieben
   Tage mit je bis zu drei Mahlzeiten passen sonst nie auf ein Handy. */

.day { padding: 14px 20px 4px; }
.day__head { display: flex; align-items: baseline; gap: 8px; }
.day__name { font-family: var(--serif); font-size: 17px; }
.day--today .day__name { color: var(--terra); }
.day__date { font-size: 11.5px; color: var(--faint); }

.plan-item { display: flex; align-items: center; gap: 12px; padding: 8px 0;
             border-top: 1px solid var(--line-soft); }
.plan-item__thumb {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  background: var(--sunken); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.plan-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Untere Leiste -------------------------------------------------- */

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; padding-bottom: var(--safe-bottom);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.nav button {
  flex: 1; height: var(--nav-height);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--muted);
}
.nav button[aria-current="page"] { color: var(--terra); }
.nav__badge {
  position: absolute; transform: translate(14px, -12px);
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--terra); color: #FFF6EF;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}

/* --- Overlays ------------------------------------------------------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(35, 40, 31, .45);
  display: flex; align-items: flex-end;
}
.sheet {
  width: 100%; max-height: 88dvh; overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 8px 0 calc(20px + var(--safe-bottom));
  box-shadow: var(--shadow-lg);
  animation: sheet-in .22s ease;
}
@keyframes sheet-in { from { transform: translateY(18px); opacity: .4; } }
.sheet__grip { width: 38px; height: 4px; border-radius: 999px; background: var(--line-strong);
               margin: 6px auto 12px; }

.toast {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
  z-index: 80;
  padding: 13px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: sheet-in .2s ease;
}
.toast button { color: var(--terra-dark); font-weight: 700; }
@media (prefers-color-scheme: dark) { .toast button { color: var(--terra); } }

/* --- Formulare ------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input {
  min-height: 52px; padding: 0 15px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 15.5px; width: 100%;
}
.input::placeholder { color: var(--faint); }

/* Ankreuzfelder und Radios tragen die Farbe der App.
   Ohne das nimmt der Browser die Akzentfarbe des Betriebssystems — auf den
   meisten Geräten ein kaltes Blau, das in dieser Farbtafel nirgends
   vorkommt und sofort auffällt. Eine Zeile, und die nativen Bedienelemente
   bleiben nativ: eigengebaute Ankreuzfelder verlieren Tastatur und
   Vorlesehilfe, wenn man nicht aufpasst. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--terra); }

/* --- Passwort mit „Zeigen" -------------------------------------------
   Es gibt bewusst KEIN zweites Feld zum Wiederholen. Dessen einzige
   Aufgabe ist, einen Tippfehler zu fangen — und das tut ein Blick auf das
   Getippte besser, ohne dass jemand beide Felder aus der Zwischenablage
   füllt und damit denselben Fehler zweimal einträgt. Beides zugleich
   wegzulassen wäre falsch gewesen: dann legt ein Vertipper still ein
   Konto an, dessen Passwort niemand reproduzieren kann. */
.pw { position: relative; }
.pw .input { padding-right: 104px; }
.pw__zeigen {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; color: var(--terra);
}
.pw__zeigen:active { background: var(--sunken); }
.input:focus { outline: none; border-color: var(--terra); }
textarea.input { padding: 13px 15px; min-height: 96px; line-height: 1.5; resize: vertical; }

/* Schnelleingabe oben auf der Einkaufsliste */
.quickadd { display: flex; align-items: center; gap: 10px;
            background: var(--card); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 6px 6px 6px 15px; }
.quickadd input { flex: 1; min-width: 0; border: 0; background: none; min-height: 40px; font-size: 15px; }
.quickadd input:focus { outline: none; }
.quickadd__go { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--radius-sm);
                background: var(--terra); color: #FFF6EF;
                display: flex; align-items: center; justify-content: center; }

/* --- Zustände ------------------------------------------------------- */

.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }

.offline-badge {
  display: none; align-items: center; gap: 7px;
  padding: 7px 20px; background: var(--warn-tint); color: var(--warn);
  font-size: 12px; font-weight: 600;
}
body.is-offline .offline-badge { display: flex; }

.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, var(--sunken) 50%, var(--line-soft) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Grössere Bildschirme -------------------------------------------
   Kein eigenes Layout, nur eine Spalte, die nicht auseinanderläuft. */

@media (min-width: 720px) {
  .app { max-width: 560px; margin: 0 auto;
         border-inline: 1px solid var(--line); min-height: 100dvh; }
  .nav { max-width: 560px; margin: 0 auto; }
}

/* --- Vorschläge beim Tippen ------------------------------------------ */

.suggest {
  margin-top: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.suggest__hit {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 46px; padding: 0 15px; text-align: left;
  font-size: 15px; font-weight: 600; border-top: 1px solid var(--line-soft);
}
.suggest__hit:first-child { border-top: 0; }
.suggest__hit:active { background: var(--sunken); }

/* --- Rezeptkarte ------------------------------------------------------
   Eine Karte je Rezept, quer: Bild links, Titel und Kennzahlen rechts,
   darunter eine Fusszeile. Ein Rezept IST ein Objekt — dafür sind Karten
   da. Listen bleiben rahmenlos. */

.rcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; width: 100%; text-align: left;
  transition: transform .08s ease;
}
.rcard:active { transform: scale(.99); }
.rcard__top { display: flex; gap: 14px; padding: 14px; align-items: flex-start; }
.rcard__art {
  width: 92px; height: 92px; flex: 0 0 92px;
  border-radius: 14px; overflow: hidden; background: var(--sunken);
}
.rcard__body { flex: 1; min-width: 0; }
.rcard__title { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.rcard__foot {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-top: 1px solid var(--line-soft); background: var(--paper);
}
.rcard__fav {
  width: 40px; height: 40px; flex: 0 0 40px; margin: -8px -6px -8px 0;
  display: flex; align-items: center; justify-content: center; color: var(--faint);
}
.rcard__fav[aria-pressed="true"] { color: var(--terra); }

/* Rubriken-Leiste, waagerecht scrollend */
.chiprow {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chiprow::-webkit-scrollbar { display: none; }
.chiprow .chip { flex: 0 0 auto; }

/* Reiter im Kochbuch */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--sunken);
        border-radius: var(--radius); margin: 0 20px; }
.tabs button {
  flex: 1; min-height: 40px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tabs button[aria-pressed="true"] {
  background: var(--card); box-shadow: var(--shadow); font-weight: 700; color: var(--ink);
}
.tabs .count { font-size: 11px; color: var(--faint); }

/* Startseite */
.hero-greeting { font-family: var(--serif); font-size: 27px; line-height: 1.15; }
.tile {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px 16px; width: 100%; text-align: left;
}
.tile--accent { background: var(--terra-tint); border-color: var(--terra-line); }
.avatar {
  width: 34px; height: 34px; border-radius: 999px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  color: #FFF6EF; font-size: 13px; font-weight: 700;
}

/* Mengenspalte in Zutatenlisten: feste Breite, rechtsbündig. Ohne das
   springt die Zahl je nach Länge des Namens hin und her, und die Spalte
   liest sich als Schlangenlinie statt als Liste. */
.item__amount--col {
  min-width: 86px; text-align: right; white-space: nowrap; flex: 0 0 auto;
}

/* --- Verlauf ----------------------------------------------------------
   Ein senkrechter Strich mit Punkten. Die Linie trägt die Zeit, damit man
   Abstände sieht statt nur Datumsangaben zu lesen. */

.tl-day {
  position: sticky; top: calc(var(--safe-top) + 52px); z-index: 5;
  font-family: var(--serif); font-size: 16px; color: var(--green-ink);
  padding: 10px 0 6px; background: var(--paper);
}
.tl-entry { position: relative; padding-left: 22px; padding-bottom: 12px; }
.tl-entry::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: -6px;
  width: 2px; background: var(--line);
}
.tl-entry:last-child::before { bottom: 12px; }
.tl-dot {
  position: absolute; left: 0; top: 14px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--terra); border: 3px solid var(--paper);
}
.tl-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
}
