/* Vibe Chef – Oberfläche (Route C · Kochbuch: Papier, Tannengrün, Safran, Serife) */
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f8f4ea;
  --surface: #fffdf7;
  --surface-2: #efe9da;
  --text: #1d1b16;
  --muted: #665f52;
  --faint: #8d8576;
  --line: rgba(29, 27, 22, .14);
  --line-strong: #1d1b16;
  --accent: #22513e;
  --accent-ink: #f8f4ea;
  --accent-soft: rgba(34, 81, 62, .1);
  --saffron: #b7791f;
  --saffron-soft: rgba(183, 121, 31, .28);
  --green: #22513e;
  --danger: #a3321f;
  --shadow: 0 10px 24px rgba(29, 27, 22, .07);
  --radius: 4px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --surface: #1e1c17;
    --surface-2: #2a2720;
    --text: #efe8d8;
    --muted: #aaa18e;
    --faint: #7f7867;
    --line: rgba(239, 232, 216, .14);
    --line-strong: #efe8d8;
    --accent: #7db898;
    --accent-ink: #10130f;
    --accent-soft: rgba(125, 184, 152, .14);
    --saffron: #e0a43a;
    --saffron-soft: rgba(224, 164, 58, .3);
    --green: #7db898;
    --danger: #f08a74;
    --shadow: 0 10px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; flex: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
[hidden] { display: none !important; }

#view { min-height: 100vh; min-height: 100svh; padding: calc(var(--safe-t) + 14px) 20px calc(var(--tab-h) + var(--safe-b) + 28px); max-width: 760px; margin: 0 auto; }
#view.flush { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 96px); }

.boot { display: grid; place-items: center; min-height: 70vh; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typo-Bausteine ---------- */
.eyebrow, .lbl, .sec, .section-title, .group-name, .masthead, .chip, .z-group, #tabbar a, .back {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow { color: var(--accent); }
.lbl { display: block; color: var(--muted); font-size: 10.5px; margin-bottom: 6px; }

.masthead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 12px; border-bottom: 2px solid var(--line-strong); color: var(--muted); }
.masthead .mh-brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.masthead img { width: 26px; height: 26px; border-radius: 7px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px 0 18px; }
.page-head h1 { font: 400 44px/1 var(--serif); letter-spacing: -.02em; margin: 0; }
.page-head h1 em { color: var(--accent); }
.page-head .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); flex: none; background: transparent; }
.icon-btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); flex: none; }
.ring svg { width: 19px; height: 19px; }
.ring.on { color: var(--accent); }
.ring.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--text); }
.back svg { width: 16px; height: 16px; }

/* ---------- Leiste unten ---------- */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; gap: 12px; padding: 0 20px var(--safe-b); background: var(--bg); }
#tabbar::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; border-top: 1px solid var(--line); }
#tabbar a { position: relative; flex: 1; max-width: 170px; height: var(--tab-h); display: flex; justify-content: center; padding-top: 14px; color: var(--muted); border-top: 2px solid transparent; }
#tabbar a.active { color: var(--text); border-top-color: var(--text); }
#tabbar svg { display: none; }
#tabbar .badge { position: absolute; top: 9px; right: calc(50% - 44px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--saffron); color: #fff; font-size: 10px; line-height: 17px; text-align: center; letter-spacing: 0; }

/* ---------- Suche & Register ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 48px; border-bottom: 1px solid var(--line-strong); color: var(--text); }
.search svg { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: italic 19px var(--serif); color: var(--text); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { color: var(--faint); display: grid; place-items: center; width: 32px; height: 32px; }
.search .clear svg { width: 17px; height: 17px; }

.chips { display: flex; gap: 20px; overflow-x: auto; padding: 16px 20px 2px; margin: 0 -20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.chip.on { color: var(--text); border-bottom-color: var(--saffron); }

/* ---------- Inhaltsverzeichnis ---------- */
.index { margin-top: 6px; }
.entry { display: grid; grid-template-columns: 30px minmax(0, 1fr) 76px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.entry .no { font: italic 18px var(--serif); color: var(--muted); }
.entry .et { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.entry .cat { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); min-height: 1em; }
.entry .tt { font: 500 21px/1.15 var(--serif); }
.entry .mt { font-size: 13px; color: var(--muted); }
.entry .th { width: 76px; height: 76px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.entry .th img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .entry { grid-template-columns: 40px minmax(0, 1fr) 110px; } .entry .th { width: 110px; height: 84px; } .entry .tt { font-size: 24px; } }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); background: var(--surface-2); }
.ph svg { width: 34%; height: 34%; opacity: .5; }

.empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty-q { font: italic 26px/1.2 var(--serif); color: var(--text); margin: 0 0 10px; }
.empty p { margin: 0 auto 20px; max-width: 330px; }
.empty .big { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--accent); }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.danger { color: var(--danger); border-color: var(--line); }
.btn.block { display: flex; width: 100%; }
.btn.small { height: 40px; padding: 0 14px; font-size: 11.5px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.field small { display: block; color: var(--faint); font-size: 12.5px; margin: 6px 0 0; }
.input, textarea.input, select.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
textarea.input { resize: vertical; line-height: 1.55; min-height: 120px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; min-width: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.hint b { color: var(--text); }

.panel, .paper { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 18px; margin-bottom: 18px; }
.paper { box-shadow: var(--shadow); }
.panel h2 { font: 400 24px var(--serif); margin: 0 0 4px; }
.panel .lead { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.section-title { color: var(--accent); margin: 30px 0 10px; }

.seg { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.seg button { flex: 1; height: 40px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.on { background: var(--text); color: var(--bg); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.switch input { -webkit-appearance: none; appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }
.switch .t b { display: block; font-weight: 600; }
.switch .t small { color: var(--muted); font-size: 13.5px; }

.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-rows li:last-child { border-bottom: 0; }
.list-rows .grow { flex: 1; min-width: 0; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; border: 1px solid var(--saffron); color: var(--saffron); }
.pill.ok { border-color: var(--accent); color: var(--accent); }
code.k { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 2px; word-break: break-all; }
.bm { display: inline-block; padding: 10px 16px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Anmeldung: Buchdeckel ---------- */
body.tor { background: #22513e; color: #f8f4ea; }
body.tor #view { padding-bottom: 40px; min-height: 0; }
.auth { min-height: calc(100svh - 80px - var(--safe-t)); display: grid; place-items: center; position: relative; }
.auth-box { width: 100%; max-width: 360px; text-align: center; }
.auth-box .logo { width: 104px; height: 104px; margin: 0 auto 22px; padding: 12px; border: 1px solid rgba(248, 244, 234, .35); border-radius: 50%; box-sizing: border-box; }
.auth-box h1 { font: 400 52px/.95 var(--serif); letter-spacing: -.02em; margin: 0 0 12px; }
.auth-box .eyebrow { color: rgba(248, 244, 234, .7); margin-bottom: 10px; }
.auth-box > p:not(.auth-foot) { font: italic 18px/1.4 var(--serif); color: rgba(248, 244, 234, .8); margin: 0 0 12px; }
.auth-box > p:not(.auth-foot)::after { content: ""; display: block; width: 40px; height: 1px; background: #e0a43a; margin: 18px auto 10px; }
.auth-box form { text-align: left; margin-top: 12px; }
.auth-box .field > span { color: rgba(248, 244, 234, .7); font-size: 10px; }
.auth-box .input { background: transparent; border: 0; border-bottom: 1px solid rgba(248, 244, 234, .5); border-radius: 0; color: #f8f4ea; font: 20px var(--serif); padding: 8px 0; min-height: 44px; }
.auth-box .input:focus { box-shadow: none; border-bottom-color: #e0a43a; }
.auth-box .btn.primary { background: #f8f4ea; border-color: #f8f4ea; color: #22513e; margin-top: 8px; }
.auth-box .hint { color: rgba(248, 244, 234, .7); margin: -6px 0 16px; text-align: left; }
.auth-box code.k { background: rgba(248, 244, 234, .12); }
.check-row { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 15px; color: rgba(248, 244, 234, .8); }
.check-row input { width: 20px; height: 20px; accent-color: #e0a43a; }
.auth-foot { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 24px; font-size: 14.5px; }
.auth-foot a { color: rgba(248, 244, 234, .75); text-decoration: underline; text-underline-offset: 3px; }
.meldung { text-align: left; padding: 12px 14px; border-radius: 2px; font-size: 14.5px; margin: 8px 0 14px; }
.meldung.fehler { background: rgba(163, 50, 31, .12); color: var(--danger); }
.meldung.gut { background: var(--accent-soft); color: var(--accent); }
.auth-box .meldung.fehler { background: rgba(240, 138, 116, .16); color: #ffd3c8; }
.auth-box .meldung.gut { background: rgba(248, 244, 234, .14); color: #f8f4ea; }

/* ---------- Rezeptseite ---------- */
.rc-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.rc-tools { display: flex; gap: 6px; }
.rc .eyebrow { margin-top: 8px; }
.rc-title { font: 400 42px/1 var(--serif); letter-spacing: -.02em; margin: 8px 0 12px; }
.rc-desc { font: italic 18px/1.4 var(--serif); color: var(--muted); margin: 0 0 16px; }
.rc-img { height: 230px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 16px; }
@media (min-width: 700px) { .rc-img { height: 340px; } .rc-title { font-size: 52px; } }
.rc-img img { width: 100%; height: 100%; object-fit: cover; }
.rc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rc-meta > div { padding: 10px 0; min-width: 0; }
.rc-meta > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.rc-meta small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rc-meta b { font: 400 19px/1.2 var(--serif); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-meta .st b { overflow: visible; }
.rc-meta b.it { font-style: italic; }
.rc-meta b.it a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.st { display: flex; align-items: center; gap: 8px; }
.st b { font: 400 19px var(--serif); display: flex; align-items: baseline; gap: 4px; }
.st b small { font: 12px var(--sans); color: var(--muted); letter-spacing: 0; text-transform: none; margin: 0; }
.st button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.st button.dark { background: var(--text); color: var(--bg); }
.st button svg { width: 13px; height: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.tag.ai { color: var(--saffron); }
.tag svg { width: 13px; height: 13px; }
.sec { color: var(--text); margin: 26px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.group-name { color: var(--accent); font-size: 10.5px; margin: 16px 0 2px; }

.ings { list-style: none; margin: 0; padding: 0; }
.ings li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; cursor: pointer; transition: opacity .2s; }
.ings .nm { font-size: 16px; }
.ings .note { color: var(--muted); }
.ings .dots { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--line-strong); opacity: .4; transform: translateY(-4px); }
.ings .amt { font: 600 17px var(--serif); white-space: nowrap; text-align: right; }
.ings .amt i { font-weight: 400; color: var(--muted); }
.ings li.done { opacity: .35; }
.ings li.done .nm { text-decoration: line-through; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity .2s; }
.steps li:last-child { border-bottom: 0; }
.steps .n { font: italic 26px/1 var(--serif); color: var(--accent); }
.steps p { margin: 0; font: 18px/1.55 var(--serif); }
.steps li.done { opacity: .35; }
.notes { font: italic 17px/1.5 var(--serif); color: var(--muted); white-space: pre-line; padding: 8px 0; }
.rc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.foot { color: var(--faint); font-size: 13px; text-align: center; margin: 26px 0 8px; }
.foot a { text-decoration: underline; }
.cta-bar { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); padding: 10px 20px; background: linear-gradient(transparent, var(--bg) 30%); }
.cta-bar .btn { max-width: 720px; margin: 0 auto; }

.tchip { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; font-style: italic; background: linear-gradient(transparent 58%, var(--saffron-soft) 58%); cursor: pointer; white-space: nowrap; }
.tchip svg { width: 14px; height: 14px; color: var(--saffron); }

/* ---------- Neue Seite ---------- */
.linkform .lf-row { display: flex; align-items: center; gap: 10px; border-bottom: 1.5px solid var(--line-strong); padding: 4px 0 10px; }
.linkform input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: italic 19px var(--serif); color: var(--text); }
.linkform input::placeholder { color: var(--faint); }
.linkform .paste { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 4px; }
.opts { display: flex; flex-direction: column; }
.opt { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); }
.opt .oi { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.opt .oi svg { width: 20px; height: 20px; }
.opt .ot { flex: 1; }
.opt .ot b { display: block; font: 400 21px var(--serif); }
.opt .ot small { display: block; font-size: 13.5px; color: var(--muted); }
.opt > svg { width: 18px; height: 18px; color: var(--faint); }
.quote { display: flex; gap: 12px; margin: 26px 0 0; padding: 16px; border: 1px solid var(--line); background: var(--surface); font: 16px/1.45 var(--serif); color: var(--muted); }
.quote span { font: italic 34px/.8 var(--serif); color: var(--saffron); }
.sub-panel { margin-top: 22px; }
.sub-panel .back { margin-bottom: 8px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 170px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); padding: 20px; cursor: pointer; opacity: .9; }
.drop svg { width: 30px; height: 30px; color: var(--accent); }
.drop b { font: 400 21px var(--serif); color: var(--text); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius); }
.imp-card { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.imp-src { display: flex; align-items: center; gap: 12px; font: italic 16px var(--serif); color: var(--muted); word-break: break-all; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.imp-src svg { color: var(--accent); }
.psteps { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.psteps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--faint); }
.psteps .mk { width: 26px; display: flex; justify-content: center; }
.psteps .mk i { width: 22px; height: 22px; border: 1.5px solid var(--line-strong); opacity: .5; display: grid; place-items: center; }
.psteps li.now { color: var(--text); font-weight: 600; }
.psteps li.now .mk i { border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); opacity: 1; animation: spin .8s linear infinite; }
.psteps li.done { color: var(--text); }
.psteps li.done .mk i { background: var(--text); border-color: var(--text); color: var(--bg); opacity: 1; }
.psteps li.done .mk svg { width: 15px; height: 15px; }

/* ---------- Einkaufszettel ---------- */
.zettel { padding: 6px 18px 6px; }
.z-group { font-size: 10px; color: var(--saffron); margin: 14px 0 2px; }
.shop { list-style: none; padding: 0; margin: 0; }
.shop li { display: flex; align-items: center; gap: 14px; min-height: 50px; border-bottom: 1px solid var(--accent-soft); }
.check { width: 22px; height: 22px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; color: var(--bg); }
.check svg { width: 15px; height: 15px; opacity: 0; }
.shop li.done .check { background: var(--text); }
.shop li.done .check svg { opacity: 1; }
.shop .txt { flex: 1; min-width: 0; font: 20px/1.2 var(--serif); cursor: pointer; }
.shop .txt .note { color: var(--muted); font-size: 16px; }
.shop .txt small { display: block; font: 12px var(--sans); color: var(--faint); }
.shop .amt { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.shop li.done .txt, .shop li.done .amt { color: var(--faint); text-decoration: line-through; }
.shop .del { color: var(--faint); padding: 6px 0 6px 2px; }
.shop .del svg { width: 16px; height: 16px; }
.z-add input { width: 100%; height: 52px; border: 0; outline: 0; background: transparent; font: italic 18px var(--serif); color: var(--text); }
.z-add input::placeholder { color: var(--faint); }
.z-empty { font: italic 16px var(--serif); color: var(--muted); margin: 14px 0 0; }
.avatars { display: flex; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #1d1b16; margin-left: -8px; }
.avatar:first-child { margin-left: 0; }
.pick li { cursor: pointer; }
.pick li.done .txt { text-decoration: none; color: inherit; }

/* ---------- Kochmodus ---------- */
#cook { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--safe-t) + 8px) 24px calc(var(--safe-b) + 18px); }
.cook-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.cook-name { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex: 1; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#cook > .bar { height: 1px; background: var(--line-strong); max-width: 760px; width: 100%; margin: 0 auto; }
#cook > .bar span { display: block; height: 3px; margin-top: -1px; background: var(--accent); transition: width .3s; }
.cook-body { flex: 1; overflow: auto; max-width: 760px; width: 100%; margin: 0 auto; padding: 30px 0 16px; }
.cook-no { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.cook-no .big { font: 400 88px/.8 var(--serif); color: var(--accent); }
.cook-no .big.it { font-style: italic; font-size: 64px; }
.cook-no .of { font: italic 24px var(--serif); color: var(--muted); }
.cook-body .g { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.cook-text { font: 400 clamp(28px, 7.4vw, 40px)/1.3 var(--serif); margin: 0; }
.cook-lead { font: italic 18px var(--serif); color: var(--muted); margin: 0 0 12px; }
.cook-use { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cook-use small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cook-use b { font: 400 19px/1.3 var(--serif); }
.ring-btn { border-radius: 22px; flex: none; }
.cook-done { padding-top: 12vh; text-align: center; }
.cook-hint { font: italic 15px var(--serif); color: var(--muted); text-align: center; margin: 0 0 14px; }
.cook-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.cook-nav .btn { height: 56px; }
.cook-body .ings li { font-size: 18px; }

/* ---------- Editor ---------- */
.img-edit { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 18px; cursor: pointer; }
.img-edit img { width: 100%; height: 100%; object-fit: cover; }
.img-edit .lbl { position: absolute; right: 10px; bottom: 10px; margin: 0; padding: 7px 12px; border-radius: 2px; background: rgba(29, 27, 22, .7); color: #f8f4ea; display: flex; gap: 6px; align-items: center; }
.img-edit .lbl svg { width: 15px; height: 15px; }
.sticky-save { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); display: flex; gap: 10px; margin-top: 18px; }
.sticky-save .btn { flex: 1; box-shadow: var(--shadow); }

/* ---------- Bogen, Meldung, Timer ---------- */
#sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
#sheet .scrim { position: absolute; inset: 0; background: rgba(29, 27, 22, .45); animation: fade .2s; }
#sheet .box { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--bg); border-radius: 8px 8px 0 0; padding: 10px 20px calc(22px + var(--safe-b)); animation: up .25s cubic-bezier(.2, .9, .3, 1); }
@media (min-width: 640px) { #sheet { align-items: center; } #sheet .box { border-radius: 6px; } }
#sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 16px; }
#sheet h3 { font: 400 26px/1.1 var(--serif); margin: 0 0 6px; }
#sheet .sub { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
#sheet .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 2px; border-bottom: 1px solid var(--line); font: 19px var(--serif); text-align: left; }
#sheet .menu button:last-child { border-bottom: 0; }
#sheet .menu svg { width: 19px; height: 19px; color: var(--muted); }
#sheet .menu .danger { color: var(--danger); }
#sheet .btn + .btn { margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

#toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 2px; background: var(--text); color: var(--bg); font-size: 15px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--danger); color: #fff; }

#timers { position: fixed; z-index: 90; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 84px); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.timer { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 22px; font: 600 16px var(--sans); font-variant-numeric: tabular-nums; background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.timer svg { width: 17px; height: 17px; }
.timer small { font-weight: 400; opacity: .7; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer.ring { background: var(--saffron); color: #fff; animation: shake .5s infinite; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

@media (min-width: 900px) {
  #tabbar { top: 0; bottom: auto; height: 56px; padding-top: 0; }
  #tabbar::before { top: auto; bottom: 0; }
  #tabbar a { height: 56px; padding-top: 0; align-items: center; border-top: 0; border-bottom: 2px solid transparent; }
  #tabbar a.active { border-bottom-color: var(--text); }
  #tabbar .badge { top: 10px; }
  #view { padding-top: 76px; padding-bottom: 60px; }
  #view.flush { padding-bottom: 110px; }
  .cta-bar { bottom: 0; }
  #toast { bottom: 28px; }
  #timers { bottom: 100px; }
  .sticky-save { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Sammel-Import ---------- */
.sam { margin-top: 22px; padding: 16px 18px 6px; }
.sam-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.sam-count { font: 400 34px/1 var(--serif); }
.sam-count em { color: var(--accent); font-size: 22px; }
.sam .bar { height: 1px; background: var(--line-strong); margin: 6px 0 4px; }
.sam .bar span { display: block; height: 3px; margin-top: -1px; background: var(--accent); transition: width .3s; }
.sam-list { max-height: 52vh; overflow: auto; }
.sam-list li.aus .txt { color: var(--faint); }
.sam-list .check[disabled] { opacity: .45; }
.sam-list li.aus .check { background: transparent; }
.sam-list li:not(.aus) .check svg, .sam-list li.st-da .check svg { opacity: 1; }
.sam-list li:not(.aus) .check { background: var(--text); }
.sam-list .txt { font-size: 18px; text-transform: none; }
.sam-list .txt::first-letter { text-transform: uppercase; }
.sam-list .amt svg { width: 16px; height: 16px; }
.sam-list li.st-ok .amt { color: var(--accent); }
.sam-list li.st-fehler .amt, .sam-list li.st-fehler small { color: var(--danger); }
.sam-actions { margin-top: 12px; }

.auth-box .btn.ghost { margin-top: 12px; border-color: rgba(248, 244, 234, .55); color: #f8f4ea; }
