/* Rezepte (rezepte.marinoswelt.de) – Aufbau aus der Homeserver-App, Farben aus Design B „Feldnotizen“. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F6F1E7; --surface: #FFFFFF; --surface-2: #ECE4D4; --line: #E3D8C4; --line-strong: #D9CBB0;
  --text: #2A2925; --muted: #5E5A52; --accent: #2F5D50; --accent-hover: #24493F; --accent-ink: #FFFFFF;
  --accent-soft: #DCE5DD; --ok: #2F5D50; --ok-soft: #DCE5DD; --warn: #8A4E14; --warn-soft: #F6E6C4;
  --danger: #A3271B; --shadow: 0 10px 30px rgba(42, 41, 37, .12); --topbar: rgba(246, 241, 231, .9);
  --t0: #C7772A; --t1: #2F5D50; --t2: #6F7D45; --t3: #C99A3F; --t4: #A8674A; --t5: #6E8A83; --t6: #9B4A5A; --t7: #8A7A66;
  --radius: 16px; --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1F1C; --surface: #2B312C; --surface-2: #252A26; --line: #3C443D; --line-strong: #4A534B;
    --text: #EDE7DA; --muted: #B9B2A3; --accent: #8CC2AE; --accent-hover: #A6D3C2; --accent-ink: #12201B;
    --accent-soft: #2E3D36; --ok: #8CC2AE; --ok-soft: #2E3D36; --warn: #E8B57C; --warn-soft: #3B2F17;
    --danger: #F2A196; --shadow: 0 10px 30px rgba(0, 0, 0, .35); --topbar: rgba(28, 31, 28, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1F1C; --surface: #2B312C; --surface-2: #252A26; --line: #3C443D; --line-strong: #4A534B;
    --text: #EDE7DA; --muted: #B9B2A3; --accent: #8CC2AE; --accent-hover: #A6D3C2; --accent-ink: #12201B;
    --accent-soft: #2E3D36; --ok: #8CC2AE; --ok-soft: #2E3D36; --warn: #E8B57C; --warn-soft: #3B2F17;
    --danger: #F2A196; --shadow: 0 10px 30px rgba(0, 0, 0, .35); --topbar: rgba(28, 31, 28, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); min-height: 100vh; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); }
.display { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 4px 0 0; letter-spacing: -.01em; }
.eyebrow { margin: 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.lead { font-size: 17px; color: var(--text); max-width: 62ch; }
.h-sec { font-size: 21px; font-weight: 600; margin: 0 0 12px; }
.ic { flex-shrink: 0; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 64px; }
.narrow { max-width: 760px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  background: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(47, 93, 80, .2); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-soft { background: var(--surface); border-color: var(--line-strong); color: var(--accent); }
.btn-soft:hover { border-color: var(--accent); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-outline { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.btn-danger { background: var(--danger); color: #fff; }
.btn.wide { width: 100%; }
.btn.big { min-height: 58px; font-size: 17px; border-radius: 18px; }
.grow { flex: 1 1 auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.round { width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--accent); font-size: 20px; line-height: 1; cursor: pointer; }
.round:hover { border-color: var(--accent); }
.round:disabled { opacity: .4; cursor: default; }

/* Kopfleiste */
.mockup-band { background: var(--accent); color: var(--accent-ink); font-size: 13px; text-align: center; padding: 6px 12px; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--topbar); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-in { max-width: 1240px; margin: 0 auto; height: 60px; padding: 0 clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-recipe .topbar-in { max-width: none; }
.page-recipe .topbar-actions .show-sm { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 20px; min-height: 44px; }
.brand .ic { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu summary { cursor: pointer; }
.menu-pop { position: absolute; right: 0; top: 52px; min-width: 250px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 6px; z-index: 40; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--text); }
.menu-pop .danger { color: var(--danger); }
.menu-pop form { margin: 0; }

/* Meldungen */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  pointer-events: none; z-index: 60; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px;
  font-size: 15px; max-width: min(92vw, 480px); box-shadow: var(--shadow); transition: opacity .2s, transform .2s; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.alert { background: var(--accent-soft); color: var(--text); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.alert.soft { background: var(--warn-soft); }

/* Übersicht */
.ov-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 0 14px; }
.ov-count { margin: 0 0 6px; }
.ov-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); flex: 1; min-width: 0; }
.search-sm { height: 42px; flex: none; }
.ov-selects { display: flex; gap: 10px; flex: 0 1 auto; flex-wrap: wrap; }
.select select { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: 15px; max-width: 220px; }
.chips { display: flex; gap: 8px; padding: 14px 0 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px; border-radius: 20px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-n { font-size: 12px; opacity: .8; }
.last { padding-top: 14px; }
.last-card { display: flex; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); max-width: 560px; }
.last-card:hover { border-color: var(--line-strong); color: var(--text); }
.last-img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.last-txt { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.last-title { font-size: 19px; font-weight: 600; line-height: 1.2; }
section > .h-sec { margin-top: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: 18px 14px; }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); min-width: 0; }
.card:hover { color: var(--text); }
.card:hover .card-img { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 3.2; border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; background: var(--surface-2); }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; }
.card-fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 14px; background: var(--surface);
  color: var(--accent); display: flex; align-items: center; justify-content: center; }
.card-fav svg { fill: currentColor; }
.card-title { font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.card-meta { line-height: 1.3; }
.nothing { padding: 30px 0; color: var(--muted); }
.empty { text-align: left; padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); margin-top: 10px; }
.empty h2 { margin: 0 0 6px; font-size: 24px; }

/* Platzhalter statt Foto */
.ph { display: flex; align-items: center; justify-content: center; color: rgba(255, 250, 240, .9); font-family: var(--serif);
  font-weight: 600; position: relative; overflow: hidden; }
.ph > span { font-size: clamp(34px, 9vw, 64px); line-height: 1; z-index: 1; }
.ph::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .22), transparent 45%),
  repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px); }
.tone-0 { background: var(--t0); } .tone-1 { background: var(--t1); } .tone-2 { background: var(--t2); } .tone-3 { background: var(--t3); }
.tone-4 { background: var(--t4); } .tone-5 { background: var(--t5); } .tone-6 { background: var(--t6); } .tone-7 { background: var(--t7); }
.side-img.ph > span, .last-img.ph > span { font-size: 26px; }

/* Rezeptseite */
.recipe-layout { display: grid; grid-template-columns: 1fr; }
.side { display: none; }
.hero { position: relative; height: clamp(210px, 52vw, 300px); background: var(--surface-2); }
.hero img, .hero .ph { width: 100%; height: 100%; object-fit: cover; }
.hero .ph > span { font-size: 96px; }
.hero-txt { display: none; }
.sheet { position: relative; margin-top: -28px; background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px clamp(16px, 4vw, 40px) 120px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.sheet-title .display { font-size: clamp(28px, 6vw, 40px); }
.actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.actions form { margin: 0; }
.fav.is-on { color: var(--accent); border-color: var(--accent); }
.fav.is-on svg { fill: currentColor; }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .ic { color: var(--muted); }
.times { margin: 4px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 18px; position: sticky; top: calc(60px + env(safe-area-inset-top)); background: var(--bg); z-index: 5; }
.tab { flex: 1; height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 500; font-size: 15px; cursor: pointer; }
.tab.is-on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.cols { padding-top: 16px; }
.pane { display: none; }
.pane.is-on { display: block; }
.pane > .h-sec { display: none; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pane-head .for { font-size: 15px; color: var(--muted); }
.pane-head .h-sec { display: none; margin: 0; }
.stepper { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stepper strong { font-family: var(--serif); font-size: 20px; }
.hint { margin: 10px 0 2px; }
.group { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 18px 0 4px; color: var(--accent); }
.ings { list-style: none; margin: 0; padding: 0; }
.ing { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 16px; }
.ing .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: transparent; margin-top: 1px; }
.ing .amt { width: 68px; flex-shrink: 0; font-weight: 600; }
.ing .amt:empty { width: 0; margin-right: -12px; }
.ing input:checked ~ .box { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.ing input:checked ~ .amt, .ing input:checked ~ .nm { color: var(--muted); text-decoration: line-through; }
.ing input:focus-visible ~ .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pane .btn.wide { margin-top: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 14px; cursor: pointer; }
.step:hover { background: var(--surface); }
.step .num { width: 34px; height: 34px; border-radius: 17px; background: var(--surface-2); color: var(--accent); font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step p { margin: 5px 0 0; font-size: 16.5px; line-height: 1.6; }
.step.is-done { opacity: .5; }
.step.is-done .num { background: var(--ok); color: var(--surface); }
.prose { max-width: 66ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose h3 { font-family: var(--serif); font-size: 18px; margin: 18px 0 6px; }
.source { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; word-break: break-word; margin-top: 16px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bottom-bar .btn { min-height: 54px; }

/* Formulare */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 11px 13px; font-size: 16px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; line-height: 1.5; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14.5px !important; }
.help { margin: 0; font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.photo-now { display: flex; align-items: center; gap: 14px; }
.photo-now img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: center; color: var(--accent); }
.drop:hover, .drop.is-over { border-color: var(--accent); }
.drop-title { font-size: 20px; font-weight: 600; color: var(--text); }
.explain { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.explain summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.preview-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.preview-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.preview h2 { margin: 0; font-size: 19px; }
.preview p { margin: 4px 0; }
.badge { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.warnings { margin: 8px 0; padding-left: 20px; font-size: 14px; color: var(--warn); }
.choice { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Anmeldung */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px 26px; box-shadow: var(--shadow); }
.login-mark { width: 56px; height: 56px; border-radius: 28px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Kochmodus */
.page-cook { background: var(--bg); }
.cook { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 980px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) clamp(16px, 4vw, 40px) calc(18px + env(safe-area-inset-bottom)); }
.cook-top { display: flex; align-items: center; gap: 12px; }
.cook-name { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: center; }
.cook-name .serif { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-progress { display: flex; gap: 6px; margin-top: 18px; }
.cook-progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.cook-progress span.is-done { background: var(--accent); }
.cook-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; touch-action: pan-y; }
.cook-step { color: var(--accent); font-weight: 600; font-size: 14px; }
.cook-text { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.3; margin: 14px 0 0; font-weight: 500; max-width: 30ch; }
.timers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.timer { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 16px; border: 1.5px solid var(--accent);
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 17px; cursor: pointer; font-variant-numeric: tabular-nums; }
.timer.is-running { background: var(--accent); color: var(--accent-ink); }
.timer.is-done { animation: pulse 1s infinite; background: var(--ok); border-color: var(--ok); color: var(--surface); }
@keyframes pulse { 50% { transform: scale(1.04); } }
.slide-done form { margin-top: 28px; }
.cook-nav { display: flex; gap: 12px; }
.ings-dialog { border: 0; border-radius: 22px; background: var(--surface); color: var(--text); width: min(560px, 94vw); max-height: 86vh; padding: 20px 22px 26px; box-shadow: var(--shadow); }
.ings-dialog::backdrop { background: rgba(20, 14, 10, .55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { margin: 0; font-size: 24px; }
.copy-box { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); padding: 10px; margin: 10px 0; }
.ings.plain li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.ings.plain .amt { font-weight: 700; display: inline-block; min-width: 76px; }

/* Navigation */
.navlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--muted);
  text-decoration: none; font-weight: 500; font-size: 15px; }
.navlink:hover { color: var(--text); }
.navlink.is-on { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; justify-content: space-around; background: var(--topbar);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px;
  color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 500; border-radius: 12px; }
.tabbar a.is-on { color: var(--accent); font-weight: 700; }

/* Übersicht: Suche bleibt oben stehen */
.ov-bar { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 10; background: var(--bg);
  margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: 8px clamp(16px, 4vw, 40px) 0; border-bottom: 1px solid transparent; }
.ov-bar .chips { margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding-top: 10px; padding-bottom: 10px; }
.chip-sep { flex-shrink: 0; width: 1px; height: 26px; align-self: center; background: var(--line-strong); }
.chip-fav .ic { color: var(--accent); }
.chip-fav.is-on .ic { color: var(--accent-ink); fill: currentColor; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 22px; margin-bottom: 12px; }
.list-head .h-sec { margin: 0; }
.list-head .select select { height: 42px; font-size: 14.5px; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nothing .btn { margin-top: 4px; }

/* Mengen, Sterne, Meta */
.amt, .stepper strong, .timer, .run-chip, .num { font-variant-numeric: tabular-nums; }
.amt.is-scaled, .stepper strong.is-scaled { color: var(--accent); }
.scaled-note { margin: 8px 0 0; font-size: 14px; color: var(--accent); background: var(--accent-soft); padding: 8px 12px; border-radius: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.scaled-note[hidden] { display: none; }
.linkish { border: 0; background: none; padding: 0; min-height: 32px; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 14px; }
.facts .fact { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.stars { display: flex; align-items: center; gap: 2px; margin: 10px 0 0; }
.star { width: 40px; height: 40px; border: 0; background: none; color: var(--line-strong); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 20px; padding: 0; }
.star:hover { color: var(--accent); }
.star.is-on { color: var(--accent); }
.star.is-on svg { fill: currentColor; }
.stars .small { margin-left: 6px; }

/* Kochmodus: laufende Timer */
.run-timers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.run-timers[hidden] { display: none; }
.run-chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; cursor: pointer; }
.run-hint { flex-basis: 100%; }
.run-chip.is-done { background: var(--ok); border-color: var(--ok); color: var(--surface); animation: pulse 1s infinite; }

/* Einstellungen und Import-Vorschau */
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; margin-top: 16px; }
.set-card .h-sec { margin: 0 0 10px; }
.set-card p { margin: 0 0 12px; }
.set-card .form { margin-top: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { flex: 1 1 0; min-width: 0; }
.seg span { padding: 0 8px; text-align: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-strong);
  cursor: pointer; font-weight: 500; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.peek { margin-top: 8px; }
.peek summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--accent); font-weight: 600; }
.peek-table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.peek-table td, .peek-table th { padding: 5px 8px 5px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.peek-table th { font-family: var(--serif); color: var(--accent); padding-top: 10px; }
.peek-table .num { width: 90px; font-weight: 600; white-space: nowrap; }

/* Breiten */
.show-sm { display: none !important; }
@media (max-width: 699px) {
  .hide-sm { display: none !important; }
  .has-tabbar .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .has-tabbar:not(.page-recipe) .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .list-head .ov-selects { width: 100%; }
  .show-sm { display: flex !important; }
  .menu-pop a.show-sm { display: flex !important; }
  .ov-selects { width: 100%; }
  .ov-selects .select { flex: 1; }
  .select select { width: 100%; max-width: none; }
  .field-row, .field-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row:not(.four) { grid-template-columns: 1fr; }
  .cook-nav .btn-ghost span, .cook-top .btn span { display: none; }
  .ov-head .display { font-size: 36px; }
}
@media (min-width: 700px) {
  .hero { height: 340px; }
  .hero-txt { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 80px clamp(16px, 4vw, 40px) 26px;
    background: linear-gradient(transparent, rgba(20, 12, 8, .72)); color: #fffaf0; }
  .hero-txt .eyebrow { color: rgba(255, 250, 240, .85); }
  .hero-txt .display { font-size: clamp(34px, 4.5vw, 48px); }
  .sheet { margin-top: 0; border-radius: 0; padding-top: 18px; padding-bottom: 60px; }
  .sheet-title { display: none; }
  .sheet-head { justify-content: flex-end; order: 2; }
  .sheet { display: flex; flex-direction: column; }
  .sheet > .sheet-head { margin-bottom: -6px; }
  .tabs { display: none; }
  .cols { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px 44px; padding-top: 22px; }
  .pane, .pane.is-on { display: block; }
  .pane > .h-sec, .pane-head .h-sec { display: block; }
  .pane-head { justify-content: space-between; margin-bottom: 4px; }
  .pane-head .for { display: none; }
  .pane-notes { grid-column: 2; }
  .pane[data-pane="zutaten"] { position: sticky; top: calc(76px + env(safe-area-inset-top)); align-self: start;
    max-height: calc(100vh - 92px); overflow-y: auto; padding-right: 6px; grid-row: span 2; }
  .sheet-head { position: absolute; right: clamp(16px, 4vw, 40px); top: -324px; }
  .actions .icon-btn, .actions .btn-ghost { background: rgba(255, 250, 240, .94); border-color: transparent; color: #2b2520; }
  .actions .btn-ghost:hover, .actions .icon-btn:hover { color: #9a3d22; }
  .actions .fav.is-on { color: #9a3d22; }
}
@media (min-width: 1100px) {
  .recipe-layout { grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - 61px); }
  .side { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; border-right: 1px solid var(--line);
    position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; }
  .side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .side-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid transparent; text-decoration: none; color: var(--text); }
  .side-item:hover { background: var(--surface); color: var(--text); }
  .side-item.is-on { background: var(--surface); border-color: var(--line); }
  .side-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
  .side-img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
  .side-title { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
  .hero { margin: 0; }
  .grid { gap: 22px 18px; }
}
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .topbar, .bottom-bar, .side, .actions, .tabs, .hint, .pane .btn { display: none !important; }
  .pane { display: block !important; }
  .hero { height: 200px; }
}

/* Kopf und Fuß der öffentlichen Rezeptseiten */
.theme-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .tt-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .tt-sun { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-toggle .tt-moon { display: none; }
}
.brand-sub { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 2px; }
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px clamp(16px, 4vw, 40px) calc(24px + env(safe-area-inset-bottom)); }
.site-foot-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
.page-recipe .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .page-recipe .site-foot { padding-bottom: 24px; } }
.page-cook .site-foot { display: none; }
.preview-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--text); font-size: 14px; }
.preview-note a { color: inherit; font-weight: 600; }
