/* Rezeptwelt · Gestaltung
   Warm, ruhig, hochwertig: Papier-Creme, Salbei, Waldgrün, ein Hauch Terrakotta.
   Schriften: Fraunces (Überschriften), Inter (Text) – lokal eingebunden, keine externen Abrufe. */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font-scale: 1;
  --primary: #2f5d46; --primary-ink: #ffffff; --forest: #1f3d2f; --accent: #8fae8b; --terra: #b8643a; --gold: #c99a2e;
  --bg-light: #f7f2e8;
  --bg: var(--bg-light); --paper: #fffdf8; --surface: #fffdf8; --surface-2: #f1ebdd; --sage-50: #eaf0e7; --sage-100: #dbe6d6;
  --text: #1d2420; --muted: #5f6a63; --line: #e6dfcf; --line-strong: #d6cdb8;
  --danger: #a23d30; --warn: #8a5d00; --warn-bg: #fbf1d6; --ok: #2c7a4b; --ok-bg: #e3f1e7;
  --radius: 18px; --radius-s: 12px;
  --shadow-1: 0 1px 1px rgb(40 30 10 / .04), 0 2px 6px rgb(40 30 10 / .05);
  --shadow-2: 0 2px 4px rgb(40 30 10 / .05), 0 12px 32px rgb(40 30 10 / .08);
  --tap: 48px; --sidebar: 252px;
  --serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: calc(16.5px * var(--font-scale));
  color-scheme: light;
}
:root[data-theme=dark], :root.dark-auto {
  --bg: #141a17; --paper: #1b231e; --surface: #1b231e; --surface-2: #232d27; --sage-50: #22302a; --sage-100: #2b3b33;
  --text: #edf0ea; --muted: #a7b2aa; --line: #2e3a33; --line-strong: #3b4a41; --primary: #9fd0b2; --primary-ink: #0f1d16; --forest: #9fd0b2;
  --warn-bg: #3a3120; --ok-bg: #1f3a2b; --shadow-1: none; --shadow-2: 0 8px 30px rgb(0 0 0 / .35); color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]):not([data-theme=dark]) {
  --bg: #141a17; --paper: #1b231e; --surface: #1b231e; --surface-2: #232d27; --sage-50: #22302a; --sage-100: #2b3b33;
  --text: #edf0ea; --muted: #a7b2aa; --line: #2e3a33; --line-strong: #3b4a41; --primary: #9fd0b2; --primary-ink: #0f1d16; --forest: #9fd0b2;
  --warn-bg: #3a3120; --ok-bg: #1f3a2b; --shadow-1: none; --shadow-2: 0 8px 30px rgb(0 0 0 / .35); color-scheme: dark; } }
:root.simple { font-size: calc(19.5px * var(--font-scale)); --tap: 58px; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: .3em 0 .35em; font-variation-settings: "opsz" 72, "SOFT" 50; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); } h2 { font-size: 1.35rem; } h3 { font-size: 1.08rem; }
a { color: var(--primary); text-underline-offset: 3px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .pre { white-space: pre-wrap; } .hidden { display: none !important; }
.error { color: var(--danger); } .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 600; color: var(--muted); margin: 0; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px; z-index: 99; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, white); outline-offset: 2px; border-radius: 8px; }
.ico { flex: none; vertical-align: -.2em; }

/* ── Gerüst ─────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 650; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, var(--primary), var(--forest)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-1); }
:root[data-theme=dark] .brand-mark { color: var(--primary-ink); }
.sync { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted); font: 500 .8rem var(--sans); cursor: pointer; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: #b9b9b0; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }
.sync.ok .dot { background: #3cae6b; } .sync.busy .dot { background: #e1a72b; animation: pulse 1s infinite; } .sync.err .dot { background: #d9573f; } .sync.off .dot { background: #a3a39a; }
@keyframes pulse { 50% { opacity: .35; } }

.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around; gap: 2px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.nav a { flex: 1 1 0; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; min-height: 54px;
  color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 550; border-radius: 14px; }
.nav a .ic { display: grid; place-items: center; width: 46px; height: 28px; border-radius: 99px; transition: background .2s; }
.nav a.active { color: var(--forest); } .nav a.active .ic { background: var(--sage-100); }
.nav .desk-only, .nav .nav-sec { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: 18px 18px 120px; outline: none; }
.foot { text-align: center; padding-bottom: 96px; }
@media (min-width: 960px) {
  .topbar { margin-left: var(--sidebar); }
  .nav { top: 0; bottom: 0; right: auto; width: var(--sidebar); flex-direction: column; justify-content: flex-start; gap: 2px; padding: 18px 14px;
    border-top: 0; border-right: 1px solid var(--line); background: var(--paper); backdrop-filter: none; }
  .nav a.nav-brand { display: flex; margin: 4px 8px 20px; color: var(--text); font-size: 1.15rem; min-height: 40px; padding: 0; }
  .nav a.nav-brand .ic { display: none; }
  .nav .desk-only { display: flex; } .nav .nav-sec { display: block; margin: 16px 12px 6px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .nav a { flex: 0 0 auto; max-width: none; flex-direction: row; gap: 12px; font-size: .95rem; padding: 0 12px; min-height: 46px; }
  .nav a .ic { width: auto; height: auto; background: none !important; }
  .nav a.active { background: var(--sage-50); }
  .topbar .brand { visibility: hidden; }
  main { margin-left: var(--sidebar); padding: 28px 40px 64px; max-width: calc(1180px + var(--sidebar)); }
  .foot { margin-left: var(--sidebar); padding-bottom: 20px; }
}
.nav a.nav-brand { display: none; }
body.no-chrome .nav, body.no-chrome .topbar, body.no-chrome .foot { display: none; }
body.no-chrome main { margin: 0 auto; max-width: none; padding: 0; }

/* ── Bausteine ──────────────────────────────────────── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; } .card.tint { background: var(--sage-50); border-color: var(--sage-100); }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.center { justify-content: center; }
.stack > * + * { margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--text); font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--forest) 80%, transparent); }
:root[data-theme=dark] .btn.primary { color: var(--primary-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--forest) 88%, black); }
.btn.soft { background: var(--sage-50); border-color: var(--sage-100); color: var(--forest); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); } .btn.primary.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .85rem; border-radius: 11px; } .btn.big { min-height: 60px; font-size: 1.1rem; padding: 0 30px; border-radius: 18px; }
.btn.full { width: 100%; margin: 4px 0; } .btn.left { justify-content: flex-start; } .btn.icon { padding: 0; width: var(--tap); }
.btn.small.icon { width: 38px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; flex: 1 1 220px; } .field.small { flex: 0 1 150px; }
.field > span { font-weight: 600; font-size: .88rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; min-height: var(--tap); width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; } textarea.mono { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: .9rem; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--forest); flex: none; }
input[type=color] { padding: 4px; width: 72px; } input[type=range] { padding: 0; border: 0; accent-color: var(--forest); }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin: 14px 0; } legend { font-weight: 600; padding: 0 6px; font-size: .9rem; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 99px; background: var(--sage-50); color: var(--forest); font-size: .78rem; font-weight: 550; margin: 2px 4px 2px 0; text-decoration: none; border: 0; }
.chip.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; } .chip-check input { position: absolute; opacity: 0; inset: 0; }
.chip-check span { display: inline-block; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line-strong); cursor: pointer; background: var(--paper); font-size: .9rem; }
.chip-check input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); } .chip-check input:focus-visible + span { outline: 3px solid var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.failed { background: #f6dcd6; color: var(--danger); } .badge.done, .badge.needs_review, .badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.processing, .badge.queued { background: #f8edcc; color: #7a5b00; }
.hint { background: var(--sage-50); border: 1px solid var(--sage-100); padding: 12px 16px; border-radius: 14px; font-size: .94rem; } .hint.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.lead { font-size: 1.12rem; color: var(--muted); }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.plain li:last-child { border-bottom: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } .table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.page-head { margin: 4px 0 14px; } .page-head h1 { margin: 2px 0 4px; } .back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; min-height: 34px; font-weight: 550; color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; } .empty .big-ic { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 22px; background: var(--sage-50); color: var(--forest); display: grid; place-items: center; }
.big-ic { font-size: 2.4rem; }
.sticky-actions { position: sticky; bottom: 76px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); padding: 12px 0; margin-top: 12px; border-top: 1px solid var(--line); z-index: 5; }
@media (min-width: 960px) { .sticky-actions { bottom: 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--paper), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Meldungen & Dialoge ────────────────────────────── */
.toasts { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 520px); }
@media (min-width: 960px) { .toasts { bottom: 24px; left: calc(50% + var(--sidebar) / 2); } }
.toast { background: #1f2a24; color: #fff; padding: 12px 16px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--shadow-2); animation: rise .2s ease-out; }
.toast.err { background: var(--danger); } .toast.warn { background: #7a5600; } .toast .btn { color: #fff; border-color: rgb(255 255 255 / .35); background: transparent; min-height: 36px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.modal-back { position: fixed; inset: 0; background: rgb(20 24 20 / .5); z-index: 70; display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: fade .15s; }
@media (min-width: 640px) { .modal-back { align-items: center; padding: 16px; } }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--paper); border-radius: 22px 22px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); width: min(560px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow-2); animation: rise .2s; }
@media (min-width: 640px) { .modal { border-radius: 22px; } }
.modal.wide { width: min(1100px, 100%); } .zoom img { width: 100%; border-radius: 10px; } .menu .btn { justify-content: flex-start; }
.pick-list { max-height: 50vh; overflow: auto; margin: 8px 0; }

/* ── Start ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(22px, 4vw, 40px); margin: 4px 0 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #6f9a77 0%, transparent 55%), linear-gradient(135deg, #2f5d46, #1c3729); box-shadow: var(--shadow-2); }
.hero h1 { color: #fff; margin: 4px 0 6px; } .hero .eyebrow { color: rgb(255 255 255 / .75); } .hero p { color: rgb(255 255 255 / .85); margin: 0 0 16px; }
.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgb(255 255 255 / .06); }
.search-hero { display: flex; gap: 8px; max-width: 640px; position: relative; z-index: 1; }
.search-hero input { border: 0; background: rgb(255 255 255 / .96); color: #1d2420; font-size: 1.05rem; padding-left: 44px; border-radius: 16px; }
.search-hero .sico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #5f6a63; pointer-events: none; }
.search-hero .btn { background: var(--terra); border-color: var(--terra); color: #fff; border-radius: 16px; }
.quick, .menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin: 0 0 22px; }
.qtile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-1); font: inherit; text-align: left; cursor: pointer; transition: transform .12s, box-shadow .15s; }
.qtile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.qtile .qi { width: 42px; height: 42px; border-radius: 13px; background: var(--sage-50); color: var(--forest); display: grid; place-items: center; }
.qtile b { font-weight: 650; } .qtile small { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 8px; } .section-head h2 { margin: 0; }
.today { display: grid; gap: 10px; } .today a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.today .meal-tag { font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--terra); width: 92px; flex: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* ── Rezeptkarten ───────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-1); transition: transform .14s ease, box-shadow .14s ease; }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rcard { --tone: var(--primary); position: relative; }
.rcard .rtop { position: relative; height: 62px; flex: none; background:
    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--tone) 32%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 16%, var(--paper)), color-mix(in srgb, var(--tone) 6%, var(--paper)));
  border-bottom: 1px solid color-mix(in srgb, var(--tone) 18%, var(--line)); }
.rcard .rtop::after { content: ""; position: absolute; left: 64px; right: 16px; bottom: 10px; height: 1px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tone) 40%, transparent) 0 6px, transparent 6px 11px); opacity: .55; }
.rcard .remoji { position: absolute; left: 14px; top: 10px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--paper); box-shadow: var(--shadow-1); }
.rcard .rhint { position: absolute; right: 12px; bottom: 18px; font-size: .7rem; font-weight: 650; letter-spacing: .04em; color: #7a5600; background: #fbefd0; border-radius: 999px; padding: 2px 9px; }
.rcard .rbody h3 { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; letter-spacing: -.005em; }
.rcard .rbody { flex: 1; display: flex; flex-direction: column; } .rcard .chips { margin-top: auto; padding-top: 8px; }
.rcard .fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--gold); display: grid; place-items: center; z-index: 1; box-shadow: var(--shadow-1); }
.rbody { padding: 12px 16px 14px; } .rbody h3 { margin: 0 0 4px; font-size: 1.06rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin: 0; color: var(--muted); font-size: .84rem; display: flex; gap: 12px; flex-wrap: wrap; } .meta span { display: inline-flex; gap: 4px; align-items: center; } .chips { margin: 8px 0 0; }
.list .rcard { flex-direction: row; margin-bottom: 10px; } .list .rcard .rtop { width: 76px; height: auto; border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--tone) 18%, var(--line)); } .list .rcard .rtop::after, .list .rcard .rhint { display: none; }
.filters { position: sticky; top: 62px; z-index: 6; } .filters .searchbox { position: relative; } .filters .searchbox .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters input[type=search] { padding-left: 44px; font-size: 1.02rem; }
.filters select { width: auto; flex: 1 1 150px; min-height: 42px; padding: 6px 12px; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; } .cat-strip button { white-space: nowrap; }
.cat-strip .on { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ── Rezeptansicht ──────────────────────────────────── */
.r-hero { --tone: var(--primary); position: relative; overflow: hidden; border-radius: 26px; padding: clamp(22px, 4vw, 42px); margin: 4px 0 14px;
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--tone) 26%, transparent), transparent 62%), linear-gradient(160deg, color-mix(in srgb, var(--tone) 12%, var(--paper)), var(--paper));
  border: 1px solid color-mix(in srgb, var(--tone) 22%, var(--line)); box-shadow: var(--shadow-1); }
.r-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; margin: 6px 0 8px; max-width: 22ch; text-wrap: balance; }
.r-hero .eyebrow { color: color-mix(in srgb, var(--tone) 70%, var(--text)); }
.r-hero .lead { font-size: 1.1rem; max-width: 60ch; }
.btn.big { min-height: 54px; font-size: 1.05rem; padding-inline: 22px; }
.hintbox { border-radius: 18px; padding: 16px 18px; margin: 0 0 16px; background: #fdf6e3; border: 1px solid #ecd9a6; color: #4d3a0b; }
.hintbox b { display: block; margin-bottom: 4px; } .hintbox p { margin: 4px 0; } .hintbox .btn { margin-top: 8px; }
:root[data-theme=dark] .hintbox { background: #2c2715; border-color: #5a4c22; color: #f0e3bd; }
.steps .uses { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; } .steps .uses span { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.steps li p { margin: 0; } .steps li { font-size: 1.06rem; line-height: 1.6; }
.original .btn { flex: none; }
.orig-page { min-height: 50vh; display: grid; place-items: center; margin: 10px 0; background: var(--surface-2); border-radius: 12px; overflow: auto; max-height: 72vh; }
.orig-page img { width: 100%; display: block; background: #fff; }
.timer-pick .presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px; } .timer-pick .presets .btn { white-space: nowrap; padding-inline: 6px; justify-content: center; }
.orig-page img { transition: transform .2s; }
.recipe .actions { margin: 14px 0 6px; }
.rating { display: flex; gap: 2px; } .rating .star { background: none; border: 0; color: var(--line-strong); cursor: pointer; min-width: 40px; min-height: 40px; display: grid; place-items: center; }
.rating .star.on { color: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 14px 0; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.facts li b { color: var(--text); font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.two-col { display: grid; gap: 18px; } @media (min-width: 860px) { .two-col { grid-template-columns: minmax(300px, .9fr) 1.6fr; align-items: start; } .two-col .ingredients { position: sticky; top: 78px; } }
.ing { list-style: none; padding: 0; margin: 0 0 8px; } .ing li { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; align-items: center; gap: 8px; }
.ing label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; flex: 1; } .ing .q { font-weight: 650; font-variant-numeric: tabular-nums; }
.ing input:checked + span { text-decoration: line-through; color: var(--muted); }
.steps ol { padding: 0; margin: 0; list-style: none; counter-reset: s; } .steps li { counter-increment: s; position: relative; padding: 2px 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--sage-50); color: var(--forest); display: grid; place-items: center; font: 650 .95rem var(--serif); }
.stepper { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 14px; padding: 4px; } .stepper .btn { min-height: 36px; width: 36px; padding: 0; }
.pages { display: flex; gap: 12px; flex-wrap: wrap; } .page-thumb { width: 124px; aspect-ratio: .707; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2) center / cover no-repeat; cursor: zoom-in; box-shadow: var(--shadow-1); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .photos button { aspect-ratio: 1; border-radius: 12px; border: 0; background: var(--surface-2) center / cover; cursor: zoom-in; }
.family { background: linear-gradient(180deg, #fbf5e6, var(--paper)); } :root[data-theme=dark] .family { background: var(--paper); }
.family .story { font-family: var(--serif); font-style: italic; font-size: 1.12rem; }

/* ── Kochmodus ──────────────────────────────────────── */
.cook { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.cook-head { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 18px 10px; border-bottom: 1px solid var(--line); background: var(--paper); }
.cook-head h1 { flex: 1; font-size: 1.25rem; margin: 0; }
.cook-body { flex: 1; display: grid; grid-template-columns: 1fr; }
.cook-ing { display: none; padding: 18px; border-right: 1px solid var(--line); overflow: auto; background: var(--paper); } .cook-ing.open { display: block; }
.cook-ing ul { list-style: none; padding: 0; } .cook-ing li { padding: 9px 8px; font-size: 1.12rem; border-radius: 10px; transition: background .2s; } .cook-ing label { display: flex; gap: 12px; cursor: pointer; }
.cook-ing li.now { background: color-mix(in srgb, var(--terra) 14%, transparent); }
.cook-ing input:checked + span { text-decoration: line-through; color: var(--muted); }
@media (min-width: 900px) and (orientation: landscape) { .cook-body { grid-template-columns: minmax(300px, 30%) 1fr; } .cook-ing { display: block; } }
body.no-chrome .cook .cook-step { margin: 0 auto; width: 100%; padding: 24px clamp(18px, 6vw, 80px); display: flex; flex-direction: column; justify-content: flex-start; max-width: 980px; }
@media (min-height: 700px) and (orientation: landscape) { .cook-step { justify-content: center; } }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; } .progress .bar { height: 100%; background: var(--forest); transition: width .3s; }
.step-no { color: var(--terra); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin-top: 18px; }
.step-text { font-size: clamp(1.45rem, 3.3vw, 2.35rem); line-height: 1.45; font-family: var(--serif); font-weight: 450; margin: 8px 0 18px; }
.step-ing { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .step-ing .lbl { width: 100%; margin: 0; color: var(--muted); font-size: .85rem; }
.step-ing .chip { font-size: 1rem; padding: 6px 12px; }
.cook-nav { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.cook-nav .btn.big { flex: 1; } .cook-nav #addtimer { flex: none; }
@media (max-width: 480px) { .cook-nav { gap: 8px; padding-inline: 12px; } .cook-nav #addtimer { padding-inline: 12px; } .cook-nav .btn.big { padding-inline: 10px; } }
.timers { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 10px; }
.timer { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 2px solid var(--forest); border-radius: 16px; padding: 8px 12px; box-shadow: var(--shadow-1); }
.timer .t { font-size: 1.5rem; font-variant-numeric: tabular-nums; font-weight: 700; } .timer.done { border-color: var(--danger); animation: pulse .8s infinite; }

/* ── Einkauf, Plan, Vorräte ─────────────────────────── */
.add-item { position: sticky; top: 62px; z-index: 5; background: var(--bg); padding: 8px 0; }
.area h2 { font-family: var(--sans); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 22px 0 8px; font-weight: 650; }
.shop { list-style: none; padding: 0; margin: 0; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.shop li { padding: 4px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; } .shop li:last-child { border: 0; }
.shop label { display: flex; align-items: center; gap: 14px; min-height: var(--tap); cursor: pointer; font-size: 1.06rem; flex: 1; }
.shop .src { color: var(--muted); font-size: .78rem; display: block; }
.shop.done .name { text-decoration: line-through; color: var(--muted); }
.plan { display: grid; gap: 12px; } .plan.week { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .plan.month { grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: .8rem; }
.day { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; } .day.today { border: 2px solid var(--forest); }
.day h2 { font-family: var(--sans); font-size: .95rem; margin: 0 0 6px; font-weight: 650; } .meal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--line); }
.meal .ml { width: 70px; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; } .pe { background: var(--sage-50); border-radius: 10px; padding: 3px 4px 3px 10px; display: inline-flex; align-items: center; }
.pe a { text-decoration: none; color: var(--forest); font-weight: 550; }
.pe .x, .meal .add { background: none; border: 0; cursor: pointer; color: var(--muted); min-width: 34px; min-height: 34px; font: inherit; display: inline-grid; place-items: center; }
.meal .add { border: 1px dashed var(--line-strong); border-radius: 10px; }
.pantry { list-style: none; padding: 0; } .pantry li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pantry li.soon small { color: var(--danger); font-weight: 700; }

/* ── Import & Prüfung ───────────────────────────────── */
.drop { text-align: center; border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); background: var(--sage-50); } .drop.over { background: var(--sage-100); }
.upl { display: grid; grid-template-columns: 1fr 120px auto; gap: 10px; align-items: center; padding: 6px 0; text-align: left; } .upl.err .st { color: var(--danger); }
progress { accent-color: var(--forest); width: 100%; }
.review-list { list-style: none; padding: 0; } .review-list li { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; padding: 10px; }
.review-list .rv { display: flex; gap: 14px; text-decoration: none; color: var(--text); flex: 1; align-items: center; }
.review-list .thumb { width: 72px; height: 100px; flex: none; border-radius: 8px; background: var(--surface-2) center top / cover no-repeat; border: 1px solid var(--line); }
.review { display: grid; gap: 18px; } @media (min-width: 1100px) { .review { grid-template-columns: 1fr 1fr; align-items: start; } .review .original { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; } }
.pages-full { overflow: auto; max-height: 78vh; } .pages-full figure { margin: 0 0 14px; } .pages-full img { width: 100%; display: block; border: 1px solid var(--line); background: #fff; transform-origin: center; border-radius: 8px; }
.raw { white-space: pre-wrap; font-size: .8rem; max-height: 300px; overflow: auto; background: var(--surface-2); padding: 10px; border-radius: 10px; }
.verified { color: var(--ok); }

/* ── Verwaltung ─────────────────────────────────────── */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 550; } .tabs a.active { color: var(--forest); border-color: var(--forest); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; } .stat b { display: block; font: 650 1.8rem var(--serif); } .stat span { color: var(--muted); font-size: .86rem; } .stat.warn { border-color: var(--warn); }
.meter { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; margin-bottom: 12px; } .meter div { height: 100%; background: var(--ok); } .meter .warn { background: #d89a1e; } .meter .crit { background: var(--danger); }
.flags li { justify-content: flex-start; flex-wrap: nowrap; }
.switch { position: relative; width: 52px; height: 30px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.switch input:checked + span { background: var(--forest); } .switch input:checked + span::before { transform: translateX(22px); } .switch input:focus-visible + span { outline: 3px solid var(--accent); }
.logs li { display: block; font-size: .86rem; }
.qrbox { display: grid; gap: 16px; justify-items: center; text-align: center; } .qrbox img { width: min(280px, 70vw); background: #fff; padding: 12px; border-radius: 16px; }
.code-big { font: 700 2rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }

/* ── Anmeldung ──────────────────────────────────────── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(90% 70% at 15% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), radial-gradient(70% 60% at 100% 100%, color-mix(in srgb, var(--terra) 16%, transparent), transparent 60%), var(--bg); }
.login-card { width: min(460px, 100%); padding: 30px 28px; } .login-card .brand-mark { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 10px; }
.login-card h1 { text-align: center; margin-bottom: 0; } .login-card .muted.center { text-align: center; margin-top: 4px; }
.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; margin: 16px 0 4px; } .seg button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 11px; font: 600 .9rem var(--sans); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--paper); color: var(--text); box-shadow: var(--shadow-1); }

/* ── Familienkochbuch & Druck ───────────────────────── */
.book .cover { text-align: center; padding: 28vh 0 18vh; } .book .cover h1 { font-size: 3rem; }
.bk-recipe { break-before: page; padding-top: 12px; } .bk-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; } .bk-orig img { max-width: 100%; margin-top: 12px; border: 1px solid var(--line); }
.story { font-style: italic; }
@media print {
  .topbar, .nav, .foot, .toasts, .no-print, .actions, .rating, #cooked, .btn, .cover-actions { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; max-width: none; } body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; padding: 0; } .two-col { grid-template-columns: 1fr 2fr; } a { color: #000; text-decoration: none; }
  .toc, .cover { break-after: page; } .r-hero .cover { box-shadow: none; max-height: 9cm; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Start: Rezept des Tages & Kategorien ───────────── */
.daily { --tone: var(--primary); display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 60%), var(--paper); border: 1px solid color-mix(in srgb, var(--tone) 24%, var(--line)); box-shadow: var(--shadow-1); }
.daily .remoji { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: color-mix(in srgb, var(--tone) 12%, var(--paper)); }
.daily > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } .daily b { font: 600 1.35rem/1.25 var(--serif); } .daily small { color: var(--muted); }
.daily .go { color: var(--tone); flex: none; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; margin-bottom: 8px; }
.cat-tile { --tone: var(--primary); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: color-mix(in srgb, var(--tone) 8%, var(--paper)); border: 1px solid color-mix(in srgb, var(--tone) 20%, var(--line)); }
.cat-tile span { font-size: 1.35rem; } .cat-tile b { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cat-tile small { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .quick { grid-template-columns: 1fr 1fr; } .qtile { padding: 14px; } .cat-tiles { grid-template-columns: 1fr 1fr; } }

/* ── Begrüßung ──────────────────────────────────────── */
.welcome { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(120% 90% at 100% 0%, #6f9a77 0%, transparent 55%), linear-gradient(150deg, #2f5d46, #1c3729); animation: fade .3s; }
.welcome.out { opacity: 0; transition: opacity .25s; }
.welcome-card { width: min(560px, 100%); background: var(--paper); border-radius: 28px; padding: clamp(26px, 5vw, 44px); box-shadow: 0 30px 80px rgb(0 0 0 / .3); text-align: center; animation: rise .35s; }
.welcome-card h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 4px 0 12px; }
.welcome-card .w-lead { font-size: 1.12rem; line-height: 1.6; color: var(--text); margin: 0 0 18px; }
.welcome-card .w-sign { font: italic 1.25rem var(--serif); color: var(--terra); margin: -4px 0 22px; }
.welcome-card .btn.full { width: 100%; justify-content: center; margin-top: 10px; }
.w-mark, .w-step { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: var(--sage-50); color: var(--forest); }
.w-dots { display: flex; justify-content: center; gap: 8px; margin: 4px 0 14px; } .w-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); } .w-dots .on { background: var(--forest); width: 26px; border-radius: 5px; }
[hidden] { display: none !important; }
.filters .ftoggle { display: none; }
@media (max-width: 640px) {
  .filters { position: static; } .filters .searchbox { display: flex; gap: 8px; align-items: center; } .filters .searchbox input { flex: 1; }
  .filters .ftoggle { display: inline-flex; flex: none; } .filters .fmore { display: none; margin-top: 10px; } .filters.open .fmore { display: flex; }
  .filters .fmore select { flex: 1 1 45%; }
}
