/* Tischlein — „Tageslicht“: warmes Leinen, weiße Blätter, Amber. Im Dunkelmodus: „Herdlicht“. */

:root {
  --grund: #f7f0e6;
  --tinte: #2b201b;
  --tinte-2: #5b4c43;
  --tinte-3: #6e5e54;
  --tinte-4: #9a8a7f;
  --akzent: #a8501a;
  --amber: #f0912f;
  --amber-hell: #ffb763;
  --amber-text: #2a1406;
  --gruen: #3f7a35;
  --gruen-text: #ffffff;
  --rot: #a8401f;
  --blatt: rgba(255, 255, 255, .72);
  --blatt-fest: #fffdf9;
  --linie: rgba(80, 50, 20, .09);
  --feld: #f3ebe0;
  --leer-rand: rgba(43, 32, 27, .35);
  --glut-1: rgba(244, 166, 74, .30);
  --glut-2: rgba(229, 122, 90, .10);
  --teller-matte: #ecdcc7;
  --teller: #ffffff;
  --teller-rand: #efe6da;
  --schatten: inset 0 1px 0 #fff, 0 1px 2px rgba(80, 50, 20, .06), 0 16px 30px -18px rgba(120, 70, 30, .35);
  --schatten-knopf: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 22px -8px rgba(240, 145, 47, .65);
  --rund: 22px;
  --display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --text: 'Onest', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --unten: env(safe-area-inset-bottom, 0px);
  --oben: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #201b1e;
    --tinte: #f6ece2;
    --tinte-2: #d8c9be;
    --tinte-3: #c4b4a9;
    --tinte-4: #8e7f76;
    --akzent: #f4a64a;
    --amber: #f09a3a;
    --amber-hell: #ffbe6b;
    --amber-text: #2a1a0c;
    --gruen: #9fd08e;
    --gruen-text: #1d2a17;
    --rot: #f0a088;
    --blatt: rgba(255, 244, 232, .06);
    --blatt-fest: #2b2427;
    --linie: rgba(255, 244, 232, .08);
    --feld: rgba(0, 0, 0, .25);
    --leer-rand: rgba(246, 236, 226, .45);
    --glut-1: rgba(244, 166, 74, .24);
    --glut-2: rgba(200, 90, 60, .10);
    --teller-matte: rgba(255, 244, 232, .06);
    --teller: #f7f1ea;
    --teller-rand: #e4d8ca;
    --schatten: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 30px -18px rgba(0, 0, 0, .7);
    --schatten-knopf: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px -8px rgba(244, 166, 74, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--text);
  color: var(--tinte);
  background-color: var(--grund);
  min-height: 100dvh;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overflow-x: clip;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 36% at 85% 8%, var(--glut-1), transparent 70%),
    radial-gradient(ellipse 60% 26% at 5% 70%, var(--glut-2), transparent 70%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--akzent); }

/* ---------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--oben) + 12px) 20px 10px;
  background: color-mix(in srgb, var(--grund) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.kopf-zeile { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.marke-name { font-family: var(--display); font-size: 24px; line-height: 1; }
.kw-pille { font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--akzent); }
.kopf-rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--tinte-3); }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--rot) 14%, transparent); color: var(--rot); }

main { max-width: 760px; margin: 0 auto; padding: 14px 20px calc(116px + var(--unten)); }

/* ---------- Unterleiste */
.leiste {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--unten)); z-index: 30;
  width: min(calc(100% - 32px), 460px); height: 72px; padding: 0 8px;
  display: flex; align-items: center; justify-content: space-around;
  background: var(--blatt); box-shadow: var(--schatten);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-radius: 28px;
}
@media (prefers-color-scheme: light) { .leiste { background: rgba(255, 255, 255, .86); } }
.leiste button {
  position: relative; border: 0; background: transparent; min-width: 56px; min-height: 48px; padding: 0 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--tinte-3); transition: color .15s, transform .1s;
}
.leiste button:active { transform: scale(.95); }
.leiste button svg { width: 22px; height: 22px; }
.leiste button[aria-current='page'] { color: var(--akzent); }
.leiste button.plus { width: 52px; height: 52px; min-width: 0; border-radius: 18px; color: var(--amber-text);
  background: linear-gradient(180deg, var(--amber-hell), var(--amber)); box-shadow: var(--schatten-knopf); }
.leiste button.plus svg { width: 24px; height: 24px; }
.leiste .zahl { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gruen); color: var(--gruen-text); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- Typo & Bausteine */
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--akzent); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 { font-size: 44px; line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: 28px; line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.2; }
.leise { color: var(--tinte-2); }
.sehr-leise { color: var(--tinte-3); font-size: 14px; }

.knopf {
  appearance: none; border: 0; border-radius: 18px; min-height: 52px; padding: 0 20px; font-weight: 700; font-size: 16px;
  background: linear-gradient(180deg, var(--amber-hell), var(--amber)); color: var(--amber-text); box-shadow: var(--schatten-knopf);
  display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; transition: transform .1s, filter .2s;
}
.knopf:active { transform: translateY(1px) scale(.99); filter: brightness(.97); }
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf[disabled] { opacity: .55; }
.knopf.zweit { background: var(--blatt); color: var(--tinte); box-shadow: var(--schatten); font-weight: 600; }
.knopf.gruen { background: var(--gruen); color: var(--gruen-text); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--gruen) 70%, transparent); }
.knopf.breit { width: 100%; }
.knopf.klein { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }

.karte { background: var(--blatt); border-radius: var(--rund); box-shadow: var(--schatten); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pille {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--tinte) 7%, transparent); color: var(--tinte-2); white-space: nowrap;
}
.pille.rot { background: color-mix(in srgb, var(--rot) 13%, transparent); color: var(--rot); }
.pille.gruen { background: color-mix(in srgb, var(--gruen) 14%, transparent); color: var(--gruen); }
.pille.senf { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--akzent); }
.hart { color: var(--rot); }

/* ---------- Heute */
.heute-hero { position: relative; height: 330px; margin: 0 -20px; overflow-x: clip; }
.heute-hero .teller-svg { position: absolute; left: 124px; top: -18px; width: 350px; height: 350px; }
.heute-text { position: absolute; left: 20px; top: 10px; display: flex; flex-direction: column; gap: 6px; max-width: 190px; }
.countdown { font-family: var(--display); font-size: 84px; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.countdown.klein { font-size: 64px; }
.heute-text .unter { font-size: 15px; color: var(--tinte-2); line-height: 1.35; }
.heute-text .unter strong { color: var(--tinte); }
.heute-gericht { display: flex; flex-direction: column; gap: 12px; margin-top: -8px; }
.heute-gericht h1 { font-size: 36px; line-height: 1.08; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--blatt); box-shadow: var(--schatten); }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.reihe .knopf:first-child { flex: 1 1 auto; }
.heute-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.heute-karten .karte { padding: 16px; display: flex; flex-direction: column; gap: 6px; text-align: left; border: 0; width: 100%; }
.heute-karten .karte:only-child { grid-column: 1 / -1; }
.heute-karten .karte .klein-titel { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--akzent); }
.heute-karten .karte .klein-titel.gruen { color: var(--gruen); }
.heute-karten .karte .klein-titel.rot { color: var(--rot); }
.heute-karten .karte .name { font-family: var(--display); font-size: 19px; line-height: 1.15; }
.heute-karten .karte .info { font-size: 13px; color: var(--tinte-3); line-height: 1.35; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; }
.abschnitt-kopf h3 { font-size: 22px; }
.text-knopf { border: 0; background: none; padding: 8px 0; font-weight: 600; font-size: 14px; color: var(--akzent); }
.tagestreifen { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.tagestreifen button { border: 0; padding: 10px 0; border-radius: 14px; background: var(--blatt); box-shadow: var(--schatten); color: var(--tinte);
  display: flex; flex-direction: column; gap: 4px; align-items: center; }
.tagestreifen .wt { font-size: 11px; font-weight: 600; color: var(--tinte-3); text-transform: uppercase; }
.tagestreifen .dt { font-size: 17px; font-weight: 700; }
.tagestreifen .punkt { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.tagestreifen .punkt.p-rot { background: var(--rot); } .tagestreifen .punkt.p-gruen { background: var(--gruen); } .tagestreifen .punkt.p-leer { background: var(--tinte-4); opacity: .5; }
.tagestreifen .vorbei { background: transparent; box-shadow: none; color: var(--tinte-4); }
.tagestreifen .vorbei .wt { color: var(--tinte-4); }
.tagestreifen .ist-heute { background: var(--tinte); color: var(--grund); box-shadow: none; }
.tagestreifen .ist-heute .wt { color: var(--grund); }
.tagestreifen .ist-heute .punkt { background: var(--amber); }
.naechste { margin-top: 12px; padding: 6px 16px; }
.naechste button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 0; border: 0; background: none; text-align: left;
  border-bottom: 1px solid var(--linie); font-size: 15px; }
.naechste button:last-child { border-bottom: 0; }
.naechste .rechts { font-size: 13px; color: var(--tinte-3); white-space: nowrap; }
.naechste .rechts.rot { color: var(--rot); font-weight: 600; }
.einkauf-hinweis { margin-top: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; }
.icon-kachel { width: 44px; height: 44px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--gruen) 13%, transparent); color: var(--gruen); }
.icon-kachel svg { width: 22px; height: 22px; }
.icon-kachel.amber { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--akzent); }
.einkauf-hinweis .was { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.einkauf-hinweis .was b { font-weight: 600; font-size: 15px; }
.einkauf-hinweis .was span { font-size: 13px; color: var(--tinte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfeil { width: 20px; height: 20px; color: var(--tinte-3); flex: none; }
.heute-leer { padding: 26px 22px; display: grid; gap: 12px; margin-top: 8px; }

/* ---------- Wochenkopf */
.wochenkopf { display: grid; gap: 12px; margin: 6px 0 20px; }
.segment { display: flex; padding: 4px; gap: 4px; border-radius: 16px; background: var(--blatt); box-shadow: var(--schatten); }
.segment button { flex: 1 1 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--tinte-2); font-weight: 600; font-size: 14px; white-space: nowrap; padding: 0 10px; }
.segment button[aria-pressed='true'] { background: var(--tinte); color: var(--grund); font-weight: 700; }
.segment.schmal { width: fit-content; }
.segment.schmal button { flex: 0 0 auto; padding: 0 16px; }
.wochen-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.hero { padding: 26px 22px; position: relative; overflow: hidden; display: grid; gap: 10px; }
.hero h2 { max-width: 14ch; }
.hero p { margin: 0; max-width: 42ch; }

/* ---------- Tage */
.tag { margin: 28px 0 0; scroll-margin-top: 80px; }
.tag-kopf { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 10px; }
.tag-kopf h3 { font-size: 23px; }
.tag-kopf .datum { color: var(--tinte-3); font-weight: 500; font-size: 14px; }
.tag.heute .tag-kopf h3::after { content: 'heute'; font-family: var(--text); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--amber-text); background: var(--amber); padding: 3px 8px; border-radius: 99px; margin-left: 10px; vertical-align: 4px; }
.tag.vorbei { opacity: .6; }
.mahlzeiten { display: grid; gap: 10px; }
.mahlzeit {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 14px 14px 10px;
  text-align: left; width: 100%; border: 0; background: var(--blatt); border-radius: 20px; box-shadow: var(--schatten);
  transition: transform .12s; position: relative; color: var(--tinte);
}
.mahlzeit:active { transform: scale(.99); }
.mahlzeit .zeit { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-3); }
.mahlzeit .zeit svg { width: 24px; height: 24px; color: var(--amber); }
.mahlzeit.abend .zeit svg { color: var(--akzent); }
.mahlzeit .gericht { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.mahlzeit .zusatz { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mahlzeit .kids { display: block; font-size: 13px; color: var(--tinte-2); margin-top: 6px; }
.mahlzeit.jause .gericht { color: var(--tinte-2); }
.mahlzeit .bewertet { position: absolute; top: -6px; right: -4px; font-size: 18px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.esser { display: flex; }
.esser span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
  border: 2px solid var(--blatt-fest); margin-left: -6px; }
.esser span:first-child { margin-left: 0; }
.p-alex { background: #3f6fa8; } .p-babsi { background: #b4507a; } .p-lotti { background: #c9711f; } .p-lili { background: #4f8f3c; }

.kochen { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 14px 14px 10px; border-radius: 20px;
  background: color-mix(in srgb, var(--amber) 11%, var(--blatt)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 45%, transparent); }
.kochen .zeit { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--akzent); }
.kochen .zeit svg { width: 26px; height: 26px; color: var(--amber); }
.kochen strong { font-family: var(--display); font-weight: 400; font-size: 17px; }
.kochen ul { margin: 6px 0 0; padding-left: 18px; color: var(--tinte-2); font-size: 15px; }

/* ---------- Status-Banner */
.banner { padding: 16px; display: grid; gap: 12px; margin-bottom: 10px; }
.banner.warnung { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rot) 45%, transparent), var(--schatten); }
.banner.entwurf { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 50%, transparent), var(--schatten); }
.idee { padding: 16px 18px; font-size: 15px; color: var(--tinte-2); position: relative; }
.idee::before { content: '“'; position: absolute; left: 10px; top: -4px; font-family: var(--display); font-size: 48px; color: color-mix(in srgb, var(--amber) 60%, transparent); }
.idee p { margin: 0 0 0 18px; }
details.hinweise { margin-top: 10px; }
details.hinweise summary { cursor: pointer; font-weight: 600; color: var(--tinte-2); font-size: 14px; list-style: none; }
details.hinweise summary::-webkit-details-marker { display: none; }
details.hinweise ul { margin: 8px 0 0; padding-left: 18px; color: var(--tinte-2); font-size: 14px; }

/* ---------- Einkauf */
.ek-kopf { display: flex; align-items: center; gap: 18px; margin: 6px 0 18px; }
.ek-kopf .links { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ek-kopf .eyebrow { color: var(--gruen); }
.ek-kopf h1 { font-size: 46px; line-height: 1; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 104px; height: 104px; }
.ring .mitte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .mitte b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.ring .mitte span { font-size: 12px; color: var(--tinte-3); }
.gruppen-hinweis { margin: 10px 4px 0; }
.abteilung { margin-top: 14px; padding: 6px 16px 8px; }
.abteilung-kopf { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 6px; }
.abteilung-kopf h4 { font-size: 19px; }
.abteilung-kopf span { font-size: 13px; color: var(--tinte-3); }
.posten { display: flex; align-items: center; gap: 12px; padding: 11px 0; width: 100%; background: none; border: 0; border-top: 1px solid var(--linie); text-align: left; color: var(--tinte); font-size: 16px; }
.abteilung-kopf + .posten { border-top: 0; }
.haken { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--leer-rand); flex: none; display: grid; place-items: center; transition: background .15s, box-shadow .15s; }
.posten[aria-checked='true'] .haken { background: var(--gruen); box-shadow: none; }
.posten[aria-checked='true'] .haken::after { content: ''; width: 6px; height: 11px; border: solid var(--gruen-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.posten .was { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.posten .name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.posten .menge { font-size: 14px; color: var(--tinte-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.posten .fuer { font-size: 12.5px; color: var(--tinte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posten .marke-klein { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; text-transform: uppercase;
  background: color-mix(in srgb, var(--rot) 12%, transparent); color: var(--rot); }
.posten[aria-checked='true'] .name, .posten[aria-checked='true'] .menge { text-decoration: line-through; color: var(--tinte-4); }
.hinzu { display: flex; gap: 10px; margin-top: 18px; }
.hinzu .feld { flex: 1; min-width: 0; }
.hinzu .knopf { flex: none; width: 52px; padding: 0; border-radius: 16px; }
.feld {
  width: 100%; min-height: 52px; border: 0; background: var(--blatt); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--schatten); outline: none; color: var(--tinte); font-size: 16px;
}
.feld::placeholder { color: var(--tinte-4); }
.feld:focus { box-shadow: 0 0 0 2px var(--amber), var(--schatten); }
textarea.feld { min-height: 84px; resize: vertical; }
select.feld { appearance: none; }

/* ---------- Rezepte */
.import-karte { padding: 16px; display: grid; gap: 12px; margin-top: 4px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 45%, transparent), var(--schatten); }
.import-karte .kopfzeile { display: flex; align-items: center; gap: 10px; }
.import-karte .kopfzeile b { display: block; font-weight: 600; font-size: 15px; }
.import-karte .kopfzeile span { font-size: 13px; color: var(--tinte-3); }
.link-feld { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 4px 5px 4px 14px; border-radius: 14px; background: var(--feld); }
.link-feld input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--tinte); }
.link-feld input::placeholder { color: var(--tinte-4); }
.link-feld .knopf { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.link-knopf { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--tinte-3); text-align: left; }
.link-knopf svg { width: 16px; height: 16px; flex: none; }
.link-knopf u { text-underline-offset: 3px; color: var(--akzent); }
.abschnitt { margin: 0 2px 12px; font-family: var(--display); font-weight: 400; font-size: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.abschnitt small { font-family: var(--text); font-size: 13px; color: var(--tinte-3); }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kachel { border: 0; padding: 0; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-align: left; color: var(--tinte); }
.kachel-bild { height: 120px; display: block; position: relative; overflow: hidden; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachel-bild svg { width: 100%; height: 100%; display: block; }
.kachel-bild .neu { position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 4px 7px; border-radius: 999px; background: var(--tinte); color: var(--grund); }
.kachel-text { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.kachel-text b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.2; }
.kachel-text span { font-size: 12px; color: var(--tinte-3); }
.suche { margin: 22px 0 10px; }
.filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 10px; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--blatt); box-shadow: var(--schatten); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--tinte); }
.filter button[aria-pressed='true'] { background: var(--tinte); color: var(--grund); box-shadow: none; font-weight: 700; }
.rezept-liste { padding: 4px 16px; margin-top: 6px; }
.rezept-zeile { display: flex; align-items: center; gap: 12px; padding: 13px 0; width: 100%; border: 0; background: none; text-align: left; color: var(--tinte); border-top: 1px solid var(--linie); }
.rezept-zeile:first-child { border-top: 0; }
.rezept-zeile .mini { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.rezept-zeile .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rezept-zeile .was { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rezept-zeile .was b { font-weight: 600; font-size: 16px; }
.rezept-zeile .was span { font-size: 13px; color: var(--tinte-3); }
.marke-hit, .marke-neu, .marke-flop { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; text-transform: uppercase; }
.marke-hit { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--akzent); }
.marke-neu { background: color-mix(in srgb, var(--gruen) 14%, transparent); color: var(--gruen); }
.marke-flop { background: color-mix(in srgb, var(--rot) 13%, transparent); color: var(--rot); }
.import-status { margin: 0; font-size: 13px; color: var(--tinte-3); }

/* ---------- Sheet (von unten) */
.sheet-hinter { position: fixed; inset: 0; z-index: 50; background: rgba(30, 18, 8, .38); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s; }
.sheet-hinter.offen { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--grund); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5);
  padding: 10px 20px calc(24px + var(--unten)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .9, .25, 1);
  max-width: 760px; margin: 0 auto; overflow-x: hidden;
}
.sheet::before { content: ''; position: absolute; inset: 0 0 auto; height: 260px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 90% 70% at 70% 0%, var(--glut-1), transparent 70%); }
.sheet > * { position: relative; z-index: 1; }
.sheet.offen { transform: none; }
.sheet .griff { width: 44px; height: 5px; border-radius: 9px; background: var(--leer-rand); margin: 0 auto 14px; opacity: .6; }
.sheet h2 { margin-bottom: 4px; }
.sheet section { margin-top: 18px; }
.sheet .zu { position: absolute; right: 14px; top: 12px; z-index: 2; border: 0; background: var(--blatt); box-shadow: var(--schatten); width: 40px; height: 40px; border-radius: 14px; font-size: 20px; color: var(--tinte-2); }
.fakten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; margin-top: 14px; }
.fakten div { padding: 10px 4px; border-radius: 16px; background: var(--blatt); box-shadow: var(--schatten); }
.fakten b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; }
.fakten span { font-size: 11px; color: var(--tinte-3); }
.tipp { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.tipp .icon-kachel { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.zutaten-karte { padding: 6px 16px 10px; }
.zutaten-karte .abteilung-kopf { padding-bottom: 4px; }
.zutaten { list-style: none; padding: 0; margin: 0; }
.zutaten li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 15px; }
.zutaten li:first-child { border-top: 0; }
.zutaten li b { font-weight: 400; color: var(--tinte-2); white-space: nowrap; font-variant-numeric: tabular-nums; order: 2; }
.quelle { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--akzent); }
.bewertung { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.bewertung button { border: 0; background: var(--blatt); box-shadow: var(--schatten); border-radius: 14px; min-height: 56px; padding: 8px 4px; display: grid; justify-items: center; gap: 2px; font-size: 22px; color: var(--tinte); }
.bewertung button small { font-size: 12px; font-weight: 600; color: var(--tinte-2); }
.bewertung button[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--amber), var(--schatten); background: color-mix(in srgb, var(--amber) 12%, var(--blatt)); }
.sheet-bild { margin: -10px -20px 16px; height: 220px; overflow: hidden; border-radius: 28px 28px 0 0; }
.sheet-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.formular { display: grid; gap: 14px; min-width: 0; }
.formular > * { min-width: 0; }
.formular label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--tinte-2); }
.formular .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.formular .drei { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl button { border: 0; background: var(--blatt); box-shadow: var(--schatten); min-height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--tinte-2); }
.wahl button[aria-pressed='true'] { background: var(--tinte); color: var(--grund); box-shadow: none; }
.zutat-zeile { display: grid; grid-template-columns: 64px 64px 1fr 34px; gap: 6px; align-items: center; }
.zutat-zeile .feld { min-height: 44px; padding: 9px 10px; font-size: 15px; }
.zutat-zeile button { border: 0; background: none; color: var(--tinte-3); font-size: 20px; min-height: 44px; }
.tage-ausnahmen { display: grid; gap: 8px; }
.tage-ausnahmen .zeile { display: grid; grid-template-columns: 34px 1fr 1fr; align-items: center; gap: 8px; padding: 10px 12px; }
.tage-ausnahmen .zeile label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; color: var(--tinte-3); min-width: 0; }
.tage-ausnahmen select.feld { width: 100%; min-width: 0; min-height: 40px; padding: 8px; font-size: 14px; }
.schalter { position: relative; width: 52px; height: 32px; flex: none; }
.schalter input { opacity: 0; width: 0; height: 0; position: absolute; }
.schalter i { position: absolute; inset: 0; border-radius: 99px; background: var(--leer-rand); transition: background .2s; }
.schalter i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.schalter input:checked + i { background: var(--gruen); }
.schalter input:checked + i::after { transform: translateX(20px); }

/* ---------- Planen-Animation */
.planen { text-align: center; padding: 50px 20px; }
.teller { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, var(--teller) 0 46%, var(--teller-rand) 47% 58%, var(--teller-matte) 59% 66%, transparent 67%);
  box-shadow: var(--schatten); animation: drehen 3.2s linear infinite; }
.teller::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--amber); }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .teller { animation: none; } }

.anmeldung { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.anmeldung .karte { padding: 28px 22px; max-width: 420px; width: 100%; display: grid; gap: 14px; }
.meldung { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--unten)); z-index: 60; background: var(--tinte); color: var(--grund);
  padding: 12px 18px; border-radius: 16px; font-weight: 600; box-shadow: var(--schatten); max-width: calc(100% - 32px); }
.leer { text-align: center; padding: 30px 10px; color: var(--tinte-2); }
.versteckt { display: none !important; }
code { font-family: ui-monospace, 'SF Mono', monospace; font-size: .86em; background: var(--feld); padding: 1px 5px; border-radius: 5px; word-break: break-all; }

@media (min-width: 560px) {
  .heute-hero .teller-svg { left: auto; right: -60px; }
  .heute-text { max-width: 260px; }
}

/* ---------- Gezeichneter Teller & Ringe */
.t-matte { fill: var(--teller-matte); }
.t-naht { fill: none; stroke: color-mix(in srgb, var(--akzent) 28%, transparent); stroke-width: 1.5; stroke-dasharray: 5 6; }
.r-striche line { stroke: color-mix(in srgb, var(--tinte) 22%, transparent); stroke-width: 2; stroke-linecap: round; }
.r-bahn, .ring-bahn { fill: none; stroke: color-mix(in srgb, var(--amber) 18%, transparent); stroke-width: 8; }
.r-wert { fill: none; stroke-width: 8; stroke-linecap: round; }
.r-knopf { fill: #fff; stroke: var(--amber); stroke-width: 4; filter: drop-shadow(0 2px 3px rgba(120, 60, 10, .35)); }
.dampf path { fill: none; stroke: color-mix(in srgb, var(--tinte) 22%, transparent); stroke-width: 5; stroke-linecap: round; opacity: 0; animation: dampf 3.6s ease-in-out infinite; }
.dampf path:nth-child(2) { animation-delay: 1.2s; }
.dampf path:nth-child(3) { animation-delay: 2.4s; }
@keyframes dampf { 0% { opacity: 0; transform: translateY(14px); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .dampf path { animation: none; opacity: .6; } }
.ring-bahn { stroke: color-mix(in srgb, var(--gruen) 18%, transparent); fill: var(--blatt); }
.ring-wert { fill: none; stroke: var(--gruen); stroke-width: 8; stroke-linecap: round; }
.tint-a { background: linear-gradient(135deg, #dbe9d9, #c4dbc3); }
.tint-b { background: linear-gradient(135deg, #f8dccb, #f0c6ad); }
@media (prefers-color-scheme: dark) { .tint-a { background: linear-gradient(135deg, #2f5c58, #213f3d); } .tint-b { background: linear-gradient(135deg, #6a3c2c, #4a2a20); } }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gemalte Tellerbilder */
.heute-text { z-index: 2; }
.kachel-bild img.gemalt { width: 100%; height: 100%; object-fit: contain; padding: 8px; filter: drop-shadow(0 6px 8px rgba(90, 50, 20, .25)); }
.rezept-zeile .mini.gemalt { border-radius: 0; overflow: visible; }
.rezept-zeile .mini.gemalt img { object-fit: contain; filter: drop-shadow(0 3px 4px rgba(90, 50, 20, .25)); }
.sheet-teller { display: grid; place-items: center; margin: -4px 0 8px; }
.sheet-teller img { width: min(62vw, 250px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 14px 16px rgba(90, 50, 20, .3)); }
.mahlzeit .zeit img.mini-teller { width: 46px; height: 46px; filter: drop-shadow(0 3px 4px rgba(90, 50, 20, .25)); }
