/* Kochbuch – Gestaltung (ab 1.3): Basilikum & Safran */

@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-bold.woff") format("woff"); }

:root {
  --bg: #F3F5F1;
  --fl: #FFFFFF;
  --fl2: #E9EEEA;
  --text: #17231C;
  --text2: #5C6B62;
  --linie: #DFE6E0;
  --akz: #24704D;
  --akz-dunkel: #1B5A3D;
  --akz-weich: #E1EFE6;
  --akz-text: #FFFFFF;
  --safran: #F0A92A;
  --safran-text: #8A5A00;
  --safran-weich: #FFF1D4;
  --gruen: #24704D;
  --gruen-weich: #E1EFE6;
  --rot: #C9412C;
  --rot-weich: #FBE7E3;
  --gold: #F0A92A;
  --schatten: 0 1px 2px rgba(23, 35, 28, .05), 0 4px 14px rgba(23, 35, 28, .06);
  --schatten-hoch: 0 10px 30px rgba(23, 35, 28, .16);
  --display: "Poppins", ui-rounded, system-ui, sans-serif;
  --serif: var(--display);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --nav-h: 66px;
  --nav-abstand: 10px;
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1712;
    --fl: #18231C;
    --fl2: #213027;
    --text: #EAF1EC;
    --text2: #9DB0A4;
    --linie: #2A3A30;
    --akz: #6CC296;
    --akz-dunkel: #8BD3AE;
    --akz-weich: #1E3A2B;
    --akz-text: #0F1712;
    --safran: #F2B544;
    --safran-text: #F6C870;
    --safran-weich: #3A2E14;
    --gruen: #6CC296;
    --gruen-weich: #1E3A2B;
    --rot: #F08A78;
    --rot-weich: #3D211C;
    --schatten: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .25);
    --schatten-hoch: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  min-height: 100vh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--akz); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.verborgen { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--akz) 55%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Kopf, Inhalt, Navigation ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  padding: calc(var(--st) + 10px) 12px 8px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  min-height: 60px;
}
.top.mit-linie { box-shadow: 0 1px 0 var(--linie); }
.top h1 { flex: 1; margin: 0; font-size: 1.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .ic-btn:first-child + h1 { font-size: 1.25rem; }
.top-akt { display: flex; gap: 6px; }
.ic-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 10px; border-radius: 21px;
  border: 0; background: var(--fl); color: var(--text); text-decoration: none;
  font-size: 1.05rem; box-shadow: var(--schatten);
}
.ic-btn:active { transform: scale(.95); }
.ic-btn svg { width: 22px; height: 22px; }
.ic-btn.text { font-weight: 700; color: var(--akz); padding: 0 16px; }
.sheet .ic-btn, .sortliste .ic-btn, .eintrag .ic-btn, .ek-item .ic-btn, .woche-nav .ic-btn { box-shadow: none; background: transparent; }

main { padding: 6px 16px calc(var(--nav-h) + var(--nav-abstand) + var(--sb) + 96px); max-width: 1100px; margin: 0 auto; }
body.ohne-nav main { padding-bottom: calc(var(--sb) + 40px); }
body.mit-leiste main { padding-bottom: calc(var(--sb) + 110px); }

.tabbar {
  position: fixed; left: 12px; right: 12px; z-index: 30;
  bottom: calc(var(--sb) + var(--nav-abstand));
  display: flex; justify-content: space-around; align-items: center;
  height: var(--nav-h); padding: 0 6px;
  max-width: 520px; margin: 0 auto;
  background: color-mix(in srgb, var(--fl) 90%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-radius: 24px; box-shadow: var(--schatten-hoch);
  border: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}
body.ohne-nav .tabbar, body.mit-leiste .tabbar { display: none; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text2); text-decoration: none; font-size: .7rem; font-weight: 700; height: 100%;
}
.tabbar a svg { width: 24px; height: 24px; padding: 3px 14px; box-sizing: content-box; border-radius: 15px; transition: background .2s; }
.tabbar a.aktiv { color: var(--akz); }
.tabbar a.aktiv svg { background: var(--akz-weich); }

/* ---------- Knöpfe & Felder ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 0; background: var(--akz-weich); color: var(--akz);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .1s;
}
.btn:active { transform: scale(.97); }
.btn.primaer { background: var(--akz); color: var(--akz-text); box-shadow: 0 4px 14px color-mix(in srgb, var(--akz) 30%, transparent); }
.btn.primaer:active { background: var(--akz-dunkel); }
.btn.gefahr { background: var(--rot-weich); color: var(--rot); }
.btn.voll { width: 100%; white-space: normal; text-align: center; }
.btn.klein { min-height: 36px; padding: 0 14px; font-size: .88rem; border-radius: 11px; }
.btn:disabled { opacity: .45; box-shadow: none; }
.btn-reihe { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-reihe > .btn { flex: 1; }
.btn-reihe.links > .btn { flex: none; }

.feld { display: block; margin: 0 0 14px; }
.feld > span { display: block; font-size: .85rem; font-weight: 700; color: var(--text2); margin: 0 0 6px; }
.feld small { display: block; color: var(--text2); font-size: .8rem; margin-top: 5px; font-weight: 400; }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid transparent; border-radius: 14px; background: var(--fl);
  font-size: 16px; outline: none; box-shadow: inset 0 0 0 1px var(--linie);
  transition: box-shadow .15s, border-color .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--akz); box-shadow: 0 0 0 4px var(--akz-weich); }
.feld-reihe { display: flex; gap: 10px; }
.feld-reihe > .feld { flex: 1; min-width: 0; }

/* ---------- Liste ---------- */
.suche { position: relative; margin: 2px 0 12px; }
.suche input { padding-left: 44px; border-radius: 16px; min-height: 50px; box-shadow: var(--schatten); }
.suche svg { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; color: var(--text2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 12px; }
.chip-mehr { background: transparent; color: var(--akz); box-shadow: inset 0 0 0 1px var(--akz); }
.besitzer-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; border-radius: 20px; padding: 8px 15px; font-size: .9rem; font-weight: 700; background: var(--fl); box-shadow: inset 0 0 0 1px var(--linie); }
.chip-check input:checked + span { background: var(--akz); color: var(--akz-text); box-shadow: none; }
.chip-check input:checked + span::before { content: "✓ "; }
.chip-check input:focus-visible + span { outline: 3px solid var(--akz-weich); }
.link-box input { font-size: 16px; }
.einl-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.einl-knoepfe .btn { width: 100%; justify-content: center; }
.status-warte { color: var(--safran-text); font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; color: var(--akz); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.chip {
  flex: none; border: 0; background: var(--fl); color: var(--text);
  border-radius: 20px; padding: 8px 15px; font-size: .9rem; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--linie);
}
.chip.an { background: var(--akz); color: var(--akz-text); box-shadow: none; }
.liste-kopf { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; color: var(--text2); font-size: .9rem; }
.liste-kopf select { width: auto; min-height: 36px; padding: 4px 12px; font-size: 16px; border-radius: 12px; font-weight: 700; }

/* Heute-Karte */
.heute-karte {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text);
  background: var(--safran-weich); border-radius: 22px; padding: 12px; margin: 0 0 16px;
}
.heute-karte .mini { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; flex: none; background: var(--fl2); }
.heute-karte .mini img { width: 100%; height: 100%; object-fit: cover; }
.heute-t { flex: 1; min-width: 0; }
.heute-t small { display: block; color: var(--safran-text); font-weight: 700; font-size: .82rem; }
.heute-t b { font-family: var(--display); font-size: 1.12rem; line-height: 1.25; margin: 1px 0 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.heute-t .btn { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px 12px; }
.karte { display: block; text-decoration: none; color: var(--text); position: relative; }
.karte:active { transform: scale(.98); }
.karte-bild { position: relative; aspect-ratio: 1 / 1; background: var(--fl2); border-radius: 22px; overflow: hidden; box-shadow: var(--schatten); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.platzhalter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.mini .platzhalter { font-size: 1.6rem; }
.herz {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 17px; border: 0;
  background: rgba(255, 255, 255, .88); color: #8A968F; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 0;
}
.herz.an { color: #D8452F; }
.karte-text { padding: 8px 4px 0; }
.karte-text h3 { margin: 0; font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.karte-text p { margin: 2px 0 0; font-size: .8rem; color: var(--text2); }
.st { color: var(--safran); letter-spacing: -1px; }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + var(--nav-abstand) + var(--sb) + 14px); z-index: 25;
  height: 56px; padding: 0 22px 0 18px; border-radius: 20px; border: 0;
  background: var(--akz); color: var(--akz-text); font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--akz) 40%, transparent);
  display: flex; align-items: center; gap: 8px;
}
.fab span { font-size: 1.7rem; line-height: 1; margin-top: -3px; }
.fab:active { transform: scale(.95); }
body.timer-aktiv .fab { bottom: calc(var(--nav-h) + var(--nav-abstand) + var(--sb) + 70px); }

.leer { text-align: center; color: var(--text2); padding: 40px 10px; grid-column: 1 / -1; }
.willkommen { background: var(--fl); border-radius: 24px; padding: 24px 18px; box-shadow: var(--schatten); grid-column: 1 / -1; }
.willkommen h2 { margin: 0 0 6px; font-size: 1.5rem; }
.willkommen p { color: var(--text2); margin: 0 0 16px; }
.wahl { display: grid; gap: 10px; }
.wahl button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  width: 100%; padding: 14px; border-radius: 18px; border: 0; background: var(--fl); box-shadow: inset 0 0 0 1px var(--linie);
}
.wahl button:active { background: var(--fl2); }
.wahl .wi { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--akz-weich); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.wahl b { display: block; font-weight: 700; }
.wahl small { color: var(--text2); }

/* ---------- Rezept ---------- */
.r-kopf { position: relative; margin: 0 -16px; }
.hero { aspect-ratio: 4 / 3.2; max-height: 58vh; background: var(--fl2); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .platzhalter { font-size: 5rem; }
.r-kopf-knoepfe { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 8px; padding: calc(var(--st) + 10px) 14px 0; }
.r-kopf-knoepfe .ic-btn { background: rgba(255, 255, 255, .92); color: #17231C; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.r-kopf-knoepfe .platz { flex: 1; }
.r-kopf-knoepfe .ic-btn.fav-an { color: #D8452F; }
.r-kopf.ohne-bild { height: calc(var(--st) + 62px); }
.r-kopf.ohne-bild .r-kopf-knoepfe .ic-btn { background: var(--fl); color: var(--text); box-shadow: var(--schatten); }
.r-karte { position: relative; margin: -28px -16px 0; background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 16px 0; }
.r-kopf.ohne-bild + .r-karte { margin-top: 0; padding-top: 4px; }
body.rezept main { padding-top: 0; }
@media (min-width: 760px) {
  .r-kopf { margin: 12px 0 0; }
  .hero { border-radius: 26px; max-height: 46vh; }
  .r-kopf-knoepfe { padding: 12px; }
  .r-karte { margin: 0; padding: 20px 0 0; border-radius: 0; }
  .r-kopf.ohne-bild { margin: 0; height: 66px; }
}
.r-titel { font-size: 1.85rem; line-height: 1.15; margin: 0 0 6px; }
.r-quelle { font-size: .9rem; color: var(--text2); margin: 0 0 12px; }
.r-quelle a { color: var(--text2); }
.r-beschr { color: var(--text2); margin: 0 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.meta span { background: var(--fl); border-radius: 12px; padding: 6px 11px; font-size: .84rem; color: var(--text2); box-shadow: inset 0 0 0 1px var(--linie); }
.meta b { font-weight: 700; color: var(--text); }
.bewertung-reihe { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.sterne { display: flex; }
.sterne button { border: 0; background: none; font-size: 1.7rem; padding: 0 3px; color: var(--linie); line-height: 1; }
.sterne button.an { color: var(--safran); }
.fav-btn { border: 0; background: var(--fl); border-radius: 22px; height: 40px; padding: 0 15px; font-weight: 700; color: var(--text2); box-shadow: inset 0 0 0 1px var(--linie); }
.fav-btn.an { color: #D8452F; background: var(--rot-weich); box-shadow: none; }
.kat-reihe { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.kat { font-size: .8rem; padding: 5px 11px; border-radius: 12px; background: var(--akz-weich); color: var(--akz); font-weight: 700; text-decoration: none; border: 0; }
.kat.samml { background: var(--safran-weich); color: var(--safran-text); }
.kat-plus { background: none; color: var(--text2); box-shadow: inset 0 0 0 1.5px var(--linie); cursor: pointer; font-family: inherit; }

/* Aktionsleiste unten (Rezept) */
.aktionsleiste {
  position: fixed; left: 12px; right: 12px; z-index: 30; bottom: calc(var(--sb) + 10px);
  max-width: 560px; margin: 0 auto; display: flex; gap: 8px; align-items: center;
  padding: 8px; border-radius: 24px;
  background: color-mix(in srgb, var(--fl) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: var(--schatten-hoch); border: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}
.aktionsleiste .btn.primaer { flex: 1; min-height: 54px; font-size: 1.05rem; border-radius: 17px; box-shadow: none; }
.aktionsleiste .rund {
  flex: none; width: 54px; height: 54px; border-radius: 17px; border: 0; background: var(--fl2); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.15rem; line-height: 1; gap: 4px;
}
.aktionsleiste .rund small { font-size: .6rem; font-weight: 700; color: var(--text2); }
body.mit-leiste #timerbar { bottom: calc(var(--sb) + 90px); }
body.mit-leiste #toast { bottom: calc(var(--sb) + 96px); }

.r-spalten { display: grid; gap: 8px; }
@media (min-width: 860px) { .r-spalten { grid-template-columns: minmax(280px, 2fr) 3fr; gap: 36px; align-items: start; } .r-spalten > section:first-child { position: sticky; top: 76px; } }
.abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.abschnitt-kopf h2 { margin: 0; font-size: 1.3rem; }
.stepper { display: flex; align-items: center; background: var(--fl); border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--linie); }
.stepper button { width: 42px; height: 40px; border: 0; background: none; font-size: 1.35rem; color: var(--akz); font-weight: 700; }
.stepper button:active { background: var(--fl2); }
.stepper span { min-width: 96px; text-align: center; font-size: .88rem; font-weight: 700; }

.zutaten { list-style: none; margin: 0 0 18px; padding: 4px 0; background: var(--fl); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.zutaten li { display: flex; gap: 12px; align-items: baseline; padding: 11px 16px; position: relative; }
.zutaten li[data-i] { padding-left: 48px; cursor: pointer; }
.zutaten li + li { border-top: 1px solid var(--linie); }
.zutaten li[data-i]::before {
  content: ""; position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--linie); transition: background .15s;
}
.zutaten li.ab::before { background: var(--akz); box-shadow: none; }
.zutaten li.ab::after { content: "✓"; position: absolute; left: 21px; top: 11px; color: var(--akz-text); font-size: .8rem; font-weight: 800; }
.zutaten li.gruppe { cursor: default; background: var(--fl2); font-family: var(--display); font-weight: 700; padding: 8px 16px; font-size: .92rem; }
.zutaten .menge { flex: none; min-width: 74px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zutaten li.ab .menge, .zutaten li.ab .zname { opacity: .45; text-decoration: line-through; }

.schritte { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: s; }
.schritte li.schritt { position: relative; padding: 4px 0 20px 46px; counter-increment: s; line-height: 1.65; }
.schritte li.schritt::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 11px; background: var(--akz); color: var(--akz-text);
  font-family: var(--display); font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: center;
}
.schritte li.schritt:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--linie); }
.schritte li.gruppe { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 2px 0 12px; }
.tchip {
  display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 10px;
  background: var(--safran-weich); color: var(--safran-text); font-weight: 700; padding: 1px 9px; margin: 0 1px; font-size: .95em;
}
.notizen { background: var(--safran-weich); border-radius: var(--radius); padding: 13px 15px; white-space: pre-wrap; margin: 0 0 18px; }
.fuss { color: var(--text2); font-size: .85rem; margin: 10px 0 0; }
.einheiten { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; font-size: .85rem; color: var(--text2); flex-wrap: wrap; }
.einheiten .chip { font-size: .82rem; padding: 5px 11px; }
.nw-box { background: var(--fl); border-radius: var(--radius); box-shadow: var(--schatten); padding: 12px 16px 4px; margin: 0 0 18px; }
.nw-box h3 { margin: 0; font-size: 1rem; }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px 12px; margin: 10px 0 0; }
.nw-grid div small { display: block; color: var(--text2); font-size: .74rem; }
.nw-grid div b { font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 700; }
.nw-box .fuss { font-size: .76rem; margin: 10px 0 10px; }

/* ---------- Editor ---------- */
.ed-bild { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; }
.ed-bild .vorschau { width: 112px; height: 88px; border-radius: 16px; background: var(--fl2); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: .8rem; text-align: center; }
.ed-bild .vorschau img { width: 100%; height: 100%; object-fit: cover; }
.ed-bild .btn-reihe { flex-direction: column; flex: 1; }
.kat-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kat-vorschlaege .chip { font-size: .8rem; padding: 5px 11px; }
.ed-hinweis { background: var(--safran-weich); border-radius: 14px; padding: 11px 14px; font-size: .9rem; margin: 0 0 14px; }
.ed-fuss { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--linie); }

/* ---------- Kochmodus (immer dunkel, ruhig) ---------- */
body.kochmodus { overflow: hidden; }
.koch {
  --k-bg: #0F1A14; --k-fl: #18261D; --k-text: #F1F6F2; --k-text2: #A7B9AD; --k-linie: #2A3C31;
  position: fixed; inset: 0; z-index: 40; background: var(--k-bg); color: var(--k-text);
  display: flex; flex-direction: column; padding-top: var(--st);
}
.koch-kopf { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.koch-kopf .ic-btn { background: var(--k-fl); color: var(--k-text); box-shadow: none; }
.koch-kopf .ic-btn.text { color: var(--safran); }
.koch-kopf .titel { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--k-text2); font-size: .95rem; }
.fortschritt { height: 5px; background: var(--k-linie); margin: 0 16px; border-radius: 3px; overflow: hidden; }
.fortschritt div { height: 100%; background: var(--safran); transition: width .3s; border-radius: 3px; }
.koch-inhalt { flex: 1; overflow-y: auto; padding: 26px 24px 20px; max-width: 760px; width: 100%; margin: 0 auto; }
.koch-nr { color: var(--safran); font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 0 0 6px; }
.koch-gruppe { color: var(--k-text2); font-family: var(--display); font-size: 1rem; margin: 0 0 8px; }
.koch-text { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 5.6vw, 2.1rem); line-height: 1.42; margin: 0 0 26px; letter-spacing: -.01em; }
.koch .tchip { background: var(--safran); color: #2A1C00; font-family: var(--sans); }
.koch-zutaten { background: var(--k-fl); border-radius: 18px; padding: 6px 16px; }
.koch-zutaten div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--k-linie); }
.koch-zutaten div:last-child { border-bottom: 0; }
.koch-zutaten b { min-width: 74px; color: var(--safran); }
.koch-fuss { display: flex; gap: 10px; padding: 12px 16px calc(var(--sb) + 14px); }
.koch-fuss .btn { flex: 1; min-height: 60px; font-size: 1.08rem; border-radius: 18px; }
.koch-fuss .btn.zurueck { flex: 0 0 34%; background: var(--k-fl); color: var(--k-text); }
.koch-fuss .btn.primaer { background: var(--safran); color: #2A1C00; box-shadow: none; }
.koch-ende { text-align: center; padding-top: 30px; }
.koch-ende .gross { font-size: 4rem; }
.koch-ende .klein-text { color: var(--k-text2); }

/* ---------- Timer ---------- */
#timerbar {
  position: fixed; left: 12px; right: 12px; z-index: 35;
  bottom: calc(var(--nav-h) + var(--nav-abstand) + var(--sb) + 8px);
  display: flex; gap: 8px; overflow-x: auto; padding: 0; scrollbar-width: none;
  max-width: 520px; margin: 0 auto;
}
#timerbar::-webkit-scrollbar { display: none; }
body.ohne-nav #timerbar { bottom: calc(var(--sb) + 10px); }
body.kochmodus #timerbar { bottom: calc(var(--sb) + 92px); z-index: 45; }
.timer {
  flex: none; display: flex; align-items: center; gap: 8px;
  background: var(--safran); color: #2A1C00; border-radius: 18px; padding: 6px 6px 6px 14px; font-weight: 700;
  box-shadow: var(--schatten-hoch);
}
.timer .zeit { font-variant-numeric: tabular-nums; font-size: 1.1rem; font-family: var(--display); }
.timer .lbl { font-weight: 600; font-size: .78rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .75; }
.timer button { border: 0; background: rgba(0, 0, 0, .1); color: inherit; border-radius: 13px; height: 34px; min-width: 34px; padding: 0 9px; font-weight: 700; }
.timer.fertig { background: var(--rot); color: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .7; } }

/* ---------- Plan ---------- */
.woche-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; background: var(--fl); border-radius: 18px; padding: 4px; box-shadow: var(--schatten); }
.woche-nav b { font-family: var(--display); font-size: 1.02rem; }
.tag { background: var(--fl); border-radius: var(--radius); box-shadow: var(--schatten); margin: 0 0 10px; padding: 12px 12px 12px 14px; }
.tag.heute { box-shadow: 0 0 0 2px var(--safran), var(--schatten); }
.tag.heute .tag-kopf h3::after { content: "Heute"; margin-left: 8px; font-family: var(--sans); font-size: .7rem; font-weight: 800; background: var(--safran); color: #2A1C00; border-radius: 8px; padding: 2px 7px; vertical-align: 2px; }
.tag-kopf { display: flex; align-items: center; justify-content: space-between; }
.tag-kopf h3 { margin: 0; font-size: 1.02rem; }
.tag-kopf h3 small { font-family: var(--sans); color: var(--text2); font-weight: 500; font-size: .85rem; margin-left: 4px; }
.tag-kopf .ic-btn { width: 38px; min-width: 38px; height: 38px; color: var(--akz); font-size: 1.5rem; background: var(--akz-weich); box-shadow: none; }
.eintrag { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.eintrag a { flex: 1; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.eintrag .mini { width: 50px; height: 50px; border-radius: 14px; background: var(--fl2); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.eintrag .mini img { width: 100%; height: 100%; object-fit: cover; }
.eintrag .et { min-width: 0; }
.eintrag .et b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .et small { color: var(--text2); }
.eintrag.notiz .mini { background: var(--safran-weich); font-size: 1.2rem; }
.tag-leer { color: var(--text2); font-size: .85rem; margin: 4px 0 0; }

/* ---------- Einkauf ---------- */
.ek-eingabe { display: flex; gap: 8px; margin: 2px 0 16px; }
.ek-eingabe input { flex: 1; min-width: 0; }
.ek-eingabe .btn { flex: none; }
.ek-gruppe { margin: 0 0 16px; }
.ek-gruppe h3 { margin: 0 0 7px 6px; font-size: .92rem; color: var(--text2); }
.ek-liste { background: var(--fl); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.ek-item { display: flex; align-items: center; gap: 13px; padding: 10px 6px 10px 16px; cursor: pointer; user-select: none; -webkit-user-select: none; min-height: 58px; }
.ek-item + .ek-item { border-top: 1px solid var(--linie); }
.ek-item .kreis { flex: none; width: 26px; height: 26px; border-radius: 13px; box-shadow: inset 0 0 0 2px var(--linie); display: flex; align-items: center; justify-content: center; color: var(--akz-text); font-size: .85rem; font-weight: 800; transition: background .15s; }
.ek-item.ab .kreis { background: var(--akz); box-shadow: none; }
.ek-item .ek-t { flex: 1; min-width: 0; }
.ek-item .ek-t small { display: block; color: var(--text2); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-item.ab .ek-t { opacity: .5; text-decoration: line-through; }
.ek-item .ic-btn { width: 40px; min-width: 40px; height: 40px; color: var(--text2); }
.ek-erledigt-kopf { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 8px; }
.ek-erledigt-kopf button.link { border: 0; background: none; color: var(--text2); font-weight: 700; padding: 6px 0; }

.auswahl { list-style: none; padding: 0; margin: 0 0 14px; max-height: 55vh; overflow-y: auto; }
.auswahl li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.auswahl li.gruppe { font-family: var(--display); font-weight: 700; border-bottom: 0; padding-top: 14px; }
.auswahl input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--akz); flex: none; }
.auswahl label { flex: 1; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.vorr-ja { color: var(--akz); font-weight: 700; }
.vorr-nein { color: var(--text2); }

/* ---------- Mehr / Blöcke / Menüs ---------- */
.block { background: var(--fl); border-radius: 22px; box-shadow: var(--schatten); padding: 18px 16px; margin: 0 0 14px; }
.block h2 { margin: 0 0 8px; font-size: 1.15rem; }
.block p { margin: 0 0 12px; color: var(--text2); font-size: .92rem; }
.block > :last-child { margin-bottom: 0; }
.menue { background: var(--fl); border-radius: 22px; box-shadow: var(--schatten); overflow: hidden; margin: 0 0 14px; }
.menue a, .menue button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 10px 16px; border: 0; background: none; color: var(--text); text-decoration: none; text-align: left; font-size: 1rem; font-weight: 600; }
.menue > * + * { border-top: 1px solid var(--linie) !important; }
.menue a:active, .menue button:active { background: var(--fl2); }
.menue a > span:first-child, .menue button > span:first-child { display: flex; align-items: center; min-width: 0; }
.menue .mi { width: 34px; height: 34px; border-radius: 11px; background: var(--fl2); display: inline-flex; align-items: center; justify-content: center; margin-right: 12px; flex: none; font-size: 1.05rem; }
.menue .pfeil { color: var(--text2); white-space: nowrap; margin-left: 8px; font-size: .88rem; font-weight: 500; }
.menue-titel { font-size: .95rem; color: var(--text2); margin: 22px 6px 8px; }
.status-ok { color: var(--akz); font-weight: 700; }
.status-nein { color: var(--rot); font-weight: 700; }
.version { text-align: center; color: var(--text2); font-size: .8rem; margin: 20px 0; }
.ich-kopf { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; background: var(--fl); border-radius: 22px; padding: 14px; box-shadow: var(--schatten); }
.ich-kopf b { display: block; font-family: var(--display); font-size: 1.15rem; }
.ich-kopf small { color: var(--text2); }
.avatar { width: 50px; height: 50px; border-radius: 17px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.3rem; flex: none; }
.avatar.klein { width: 36px; height: 36px; border-radius: 12px; font-size: 1rem; margin-right: 12px; }
.b-t { display: flex; flex-direction: column; min-width: 0; }
.b-t small { color: var(--text2); font-size: .8rem; font-weight: 500; }
.hinweis-block { background: var(--safran-weich); box-shadow: none; }
.hinweis-block p { color: var(--text); }
.klein-liste { color: var(--text2); font-size: .9rem; padding-left: 20px; margin: 0 0 10px; }
.klein-liste li { margin: 0 0 6px; }
.schalter { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.schalter input { width: 22px; height: 22px; accent-color: var(--akz); }
.kopierfeld { display: flex; gap: 8px; align-items: center; background: var(--fl2); border-radius: 14px; padding: 8px 10px; }
.kopierfeld code { flex: 1; min-width: 0; word-break: break-all; font-size: .8rem; }
.anl-kap h2 { font-size: 1.45rem; margin: 6px 0 8px; }
.anl-kap ol { padding-left: 22px; }
.anl-kap ol li { margin: 0 0 10px; }
.anl-kap .hinweise { background: var(--safran-weich); border-radius: 16px; padding: 12px 16px 12px 32px; }
.anl-kap .hinweise li { margin: 4px 0; }
.segment { display: flex; background: var(--fl2); border-radius: 15px; padding: 4px; margin: 0 0 12px; }
.segment button { flex: 1; border: 0; background: none; border-radius: 12px; padding: 8px; font-weight: 700; font-size: .9rem; color: var(--text2); }
.segment button.an { background: var(--fl); color: var(--text); box-shadow: var(--schatten); }
.sortliste { list-style: none; padding: 0; margin: 0 0 14px; background: var(--fl); border-radius: 18px; box-shadow: var(--schatten); overflow: hidden; }
.sortliste li { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 16px; min-height: 52px; }
.sortliste li + li { border-top: 1px solid var(--linie); }
.sortliste li > span:first-child { flex: 1; min-width: 0; font-weight: 600; }
.sortliste .ic-btn { min-width: 40px; height: 40px; padding: 0; color: var(--text2); }
.sortliste .ic-btn:disabled { opacity: .3; }

/* KI-Kosten */
.kk-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.kk-kachel { background: var(--fl); border-radius: 18px; box-shadow: var(--schatten); padding: 12px; min-width: 0; }
.kk-kachel b { display: block; font-size: 1.2rem; font-family: var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-kachel small { display: block; color: var(--text2); font-size: .74rem; line-height: 1.3; }
@media (max-width: 380px) { .kk-kacheln { grid-template-columns: 1fr 1fr; } .kk-kachel:first-child { grid-column: 1 / -1; } }
.kk-limit-kopf { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: .92rem; }
.kk-limit { height: 10px; border-radius: 5px; background: var(--fl2); overflow: hidden; }
.kk-limit span { display: block; height: 100%; background: var(--akz); border-radius: 5px; }
.kk-limit span.warn { background: var(--safran); }
.kk-limit span.voll { background: var(--rot); }
.kk-tage { display: flex; align-items: flex-end; gap: 2px; height: 110px; padding-bottom: 16px; }
.kk-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.kk-bar span { display: block; background: var(--akz); border-radius: 3px 3px 0 0; }
.kk-bar small { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: .65rem; color: var(--text2); }
.kk-tab { width: 100%; border-collapse: collapse; font-size: .88rem; }
.kk-tab th { text-align: left; font-weight: 600; color: var(--text2); font-size: .78rem; padding: 4px 6px 6px 0; border-bottom: 1px solid var(--linie); }
.kk-tab td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.kk-tab tr:last-child td { border-bottom: 0; }
.kk-tab td:nth-child(n+2), .kk-tab th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.kk-text2 td:nth-child(2), .kk-text2 th:nth-child(2) { text-align: left; white-space: normal; }
.kk-tab.kk-klein { font-size: .8rem; }
.kk-tab.kk-klein td:first-child { white-space: nowrap; }
.kk-fehler td { color: var(--rot); }
.kk-scroll { max-height: 420px; overflow: auto; }
.kk-warn { box-shadow: 0 0 0 2px var(--safran), var(--schatten); }

/* Vorschläge */
.vk-liste { display: grid; gap: 8px; margin-top: 8px; }
.vk { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--text); padding: 8px; border-radius: 16px; background: var(--bg); }
.vk .mini { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; flex: none; background: var(--fl2); display: flex; align-items: center; justify-content: center; }
.vk .mini img { width: 100%; height: 100%; object-fit: cover; }
.vk-t { min-width: 0; flex: 1; }
.vk-t b { display: block; }
.vk-t small { color: var(--text2); font-size: .8rem; display: block; }
.vk-grund { display: block; font-size: .85rem; color: var(--akz); margin-top: 3px; }
.vk-plan { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--safran-text); background: var(--safran-weich); border-radius: 10px; padding: 3px 10px; cursor: pointer; }

/* ---------- Sheet, Toast, Lade-Anzeige ---------- */
.sheet-ov { position: fixed; inset: 0; z-index: 60; background: rgba(10, 18, 13, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-ov.open { background: rgba(10, 18, 13, .45); }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px calc(var(--sb) + 20px);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .9, .3, 1);
}
.sheet-ov.open .sheet { transform: none; }
@media (min-width: 700px) { .sheet-ov { align-items: center; } .sheet { border-radius: 28px; } }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--linie); margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 12px; font-size: 1.3rem; }
.sheet-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-kopf h2 { margin: 0; }
.klein-text { color: var(--text2); font-size: .88rem; }
.sheet .klein-text { margin: 0 0 12px; }
.suchliste { max-height: 45vh; overflow-y: auto; margin: 8px 0 14px; }
.suchliste button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--linie); background: none; text-align: left; font-weight: 600; }
.suchliste .mini { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--fl2); flex: none; display: flex; align-items: center; justify-content: center; }
.suchliste .mini img { width: 100%; height: 100%; object-fit: cover; }
.tage-wahl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 14px; }
.tage-wahl button { padding: 11px 12px; border-radius: 14px; border: 0; background: var(--fl); text-align: left; box-shadow: inset 0 0 0 1px var(--linie); }
.tage-wahl button b { font-weight: 700; }
.tage-wahl button small { display: block; color: var(--text2); }
.tage-wahl button.heute { box-shadow: inset 0 0 0 2px var(--safran); }
.tage-wahl button.an { background: var(--akz-weich); box-shadow: inset 0 0 0 2px var(--akz); }
.stepper.klein button { width: 34px; height: 34px; font-size: 1.1rem; }
.stepper.klein span { min-width: 26px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--nav-abstand) + var(--sb) + 18px); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 16px; font-weight: 600; font-size: .94rem;
  max-width: calc(100vw - 32px); transition: all .2s; text-align: center; box-shadow: var(--schatten-hoch);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.timer-aktiv #toast { bottom: calc(var(--nav-h) + var(--nav-abstand) + var(--sb) + 70px); }
body.kochmodus #toast { bottom: calc(var(--sb) + 100px); }
body.kochmodus.timer-aktiv #toast { bottom: calc(var(--sb) + 150px); }
body:has(.sheet-ov.open) #toast { top: calc(var(--st) + 14px); bottom: auto; }
#busy { position: fixed; inset: 0; z-index: 90; background: rgba(10, 18, 13, .45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.busy-box { background: var(--bg); border-radius: 22px; padding: 26px; text-align: center; max-width: 300px; box-shadow: var(--schatten-hoch); white-space: pre-line; }
.busy-box p { margin: 14px 0 0; font-weight: 600; }
.spinner { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--fl2); border-top-color: var(--akz); animation: dreh .8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.start-laden { min-height: 80vh; display: flex; align-items: center; justify-content: center; }

/* Hinweis: neues App-Symbol (iPhone) */
.symbol-hinweis { display: flex; gap: 12px; align-items: center; background: var(--fl); border-radius: 20px; padding: 12px; margin: 0 0 14px; box-shadow: var(--schatten); }
.symbol-hinweis img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.symbol-hinweis p { margin: 0; font-size: .86rem; color: var(--text2); flex: 1; }
.symbol-hinweis b { color: var(--text); }
.symbol-hinweis button { flex: none; border: 0; background: var(--fl2); border-radius: 12px; width: 36px; height: 36px; color: var(--text2); }

/* ---------- Anmeldung ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 360px; text-align: center; }
.login-box img { width: 92px; height: 92px; border-radius: 24px; margin: 0 auto 16px; box-shadow: var(--schatten-hoch); }
.login-box h1 { margin: 0 0 4px; font-size: 2rem; }
.login-box p { color: var(--text2); margin: 0 0 22px; }
.login-box form { text-align: left; }
.fehler-text { color: var(--rot); font-size: .9rem; min-height: 1.3em; margin: 0 0 8px; }

/* ---------- Drucken ---------- */
@media print {
  :root { --bg: #fff; --fl: #fff; --fl2: #f3f3f3; --text: #000; --text2: #444; --linie: #ccc; --schatten: none; }
  body { font-size: 11pt; }
  .top, .tabbar, #timerbar, #toast, .fab, .nicht-drucken, .stepper button, .kat-plus, .aktionsleiste, .r-kopf-knoepfe { display: none !important; }
  main { padding: 0 !important; max-width: none; }
  .r-kopf, .r-karte { margin: 0 !important; padding: 0 !important; border-radius: 0; }
  .hero { max-height: 7cm; border-radius: 10px; }
  .r-kopf.ohne-bild { display: none; }
  .r-spalten { grid-template-columns: 2fr 3fr !important; gap: 24px !important; display: grid !important; }
  .r-spalten > section:first-child { position: static !important; }
  .zutaten, .nw-box { box-shadow: none; border: 1px solid #ccc; }
  .zutaten li[data-i] { padding-left: 16px; }
  .zutaten li::before, .zutaten li::after { display: none; }
  .schritte li { break-inside: avoid; }
  .schritte li.schritt::before { background: #fff; color: #000; box-shadow: inset 0 0 0 1.5px #000; }
  .tchip { background: none; color: inherit; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
.ek-eingabe select { flex: 1; min-width: 0; }
.wf-liste { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.wf-zeile { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: var(--bg); }
.wf-tag { flex: none; width: 42px; text-align: center; line-height: 1.1; }
.wf-tag small { display: block; color: var(--text2); font-size: .75rem; }
.wf-zeile .mini { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--fl2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wf-zeile .mini img { width: 100%; height: 100%; object-fit: cover; }
.wf-t { flex: 1; min-width: 0; font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.wf-t small { display: block; font-weight: 400; color: var(--text2); font-size: .78rem; }
.wf-t.leise { color: var(--text2); font-weight: 400; font-style: italic; }
.wf-zeile .ic-btn { flex: none; }

/* ---------- 1.7: Kommentare, KI-Hilfe, Würfeln, Einkaufen, Menüs, Sprache ---------- */
.leise { color: var(--text2); font-weight: 400; }
.komm { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.komm .avatar { flex: none; }
.komm-t { flex: 1; min-width: 0; background: var(--fl2); border-radius: 4px 16px 16px 16px; padding: 8px 12px; }
.komm-t small { color: var(--text2); font-size: .78rem; }
.komm-t p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.komm-neu { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.komm-neu textarea { flex: 1; min-height: 46px; resize: none; }
.ki-antwort { background: var(--akz-weich); border-radius: 14px; padding: 12px 14px; margin-top: 4px; white-space: pre-line; line-height: 1.5; }
.wf-opt { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; }
.wf-tag em { display: block; font-style: normal; font-size: .62rem; color: var(--safran-text); margin-top: 3px; line-height: 1.15; }
.regel-tage { display: flex; flex-direction: column; gap: 8px; }
.regel-tag { display: grid; grid-template-columns: minmax(70px, 96px) 1fr 116px; gap: 8px; align-items: center; }
.regel-tag b { font-size: .92rem; }
.regel-kopf small { color: var(--text2); font-size: .75rem; font-weight: 700; padding-left: 4px; }
.regel-tag select { min-width: 0; }
@media (max-width: 360px) { .regel-tag { grid-template-columns: 1fr 1fr; } .regel-tag b, .regel-kopf span { grid-column: 1 / -1; } }
.ek-wer { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-radius: 16px; padding: 10px 12px; margin: 0 0 12px; background: var(--safran-weich); }
.ek-wer small { display: block; color: var(--text2); font-size: .8rem; }
.ek-wer-knopf { margin: 0 0 12px; }
.ek-laden { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--akz); background: var(--akz-weich); border-radius: 8px; padding: 1px 7px; vertical-align: 1px; }
.chip small { opacity: .75; font-weight: 700; }
.gang-zeile { background: var(--fl); border-radius: 16px; padding: 10px 12px; margin: 0 0 10px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 8px; }
.gang-kopf { display: flex; gap: 6px; align-items: center; }
.gang-kopf select { flex: 1; min-width: 0; font-weight: 700; color: var(--akz); }
.gang-rezept { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); }
.gang-rezept .mini { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: var(--fl2); flex: none; display: flex; align-items: center; justify-content: center; }
.gang-rezept .mini img { width: 100%; height: 100%; object-fit: cover; }
.gang-zusatz { font-size: .9rem; }
.gang-zeile .link-btn { align-self: flex-start; font-size: .85rem; }
.menue-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.menue-aktionen .btn:first-child { grid-column: 1 / -1; }
.sprach-leiste { margin: 0 16px 6px; padding: 8px 12px; border-radius: 14px; background: rgba(240, 169, 42, .16); color: inherit; font-size: .88rem; line-height: 1.4; }
#mik.an { background: var(--safran); color: #1b1b1b; animation: mikpuls 1.6s ease-in-out infinite; }
@keyframes mikpuls { 50% { box-shadow: 0 0 0 7px rgba(240, 169, 42, .25); } }
@media print { .kommentare .komm-neu { display: none; } }

/* ---------- 1.8: Einfache Ansicht ---------- */
body.einfach .nur-voll { display: none !important; }
.hallo { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 2px 0 14px; letter-spacing: -.01em; }
.gross-kacheln { display: grid; gap: 10px; margin: 0 0 18px; }
@media (min-width: 700px) { .gross-kacheln { grid-template-columns: repeat(3, 1fr); } }
.gk { display: flex; align-items: center; gap: 14px; text-align: left; border: 0; width: 100%; padding: 16px 16px; border-radius: 20px;
  background: var(--fl); color: var(--text); text-decoration: none; box-shadow: var(--schatten); font: inherit; cursor: pointer; min-height: 76px; }
.gk:active { transform: scale(.985); }
.gk-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--akz-weich); }
.gk:nth-child(2) .gk-ic { background: var(--safran-weich); }
.gk:nth-child(3) .gk-ic { background: var(--fl2); }
.gk b { display: block; font-family: var(--display); font-size: 1.12rem; }
.gk small { display: block; color: var(--text2); font-size: .9rem; margin-top: 2px; }
.abschnitt-titel { font-size: 1.2rem; margin: 6px 0 12px; }
.abschnitt-titel:empty { display: none; }
body.einfach .karte-text h3 { font-size: 1.02rem; }
body.einfach .aktionsleiste .btn.primaer { font-size: 1.08rem; }
.tour { text-align: center; padding: 6px 4px 4px; }
.tour-ic { font-size: 3rem; line-height: 1; margin: 6px 0 10px; }
.tour h2 { margin: 0 0 8px; }
.tour p { color: var(--text2); font-size: 1.02rem; line-height: 1.5; margin: 0 0 16px; }
.tour-punkte { display: flex; justify-content: center; gap: 7px; margin: 0 0 16px; }
.tour-punkte span { width: 8px; height: 8px; border-radius: 50%; background: var(--linie); }
.tour-punkte span.an { background: var(--akz); width: 22px; border-radius: 4px; }
.wf-mehr { margin: 0 0 12px; }
.wf-mehr summary { cursor: pointer; font-weight: 700; color: var(--akz); padding: 6px 0; list-style: none; }
.wf-mehr summary::before { content: "▸ "; }
.wf-mehr[open] summary::before { content: "▾ "; }
.wf-mehr summary::-webkit-details-marker { display: none; }

/* ---------- 1.8.1: Sicherungen zurückspielen ---------- */
.sich-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sich-zeile { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 14px; padding: 8px 10px; }
.sich-t { flex: 1; min-width: 0; }
.sich-t b { display: block; font-size: .92rem; }
.sich-t small { color: var(--text2); font-size: .8rem; }
.sich-zeile .ic-btn { text-decoration: none; }
