:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece4;
  --text: #1d1f1c;
  --muted: #676b64;
  --line: #e2ded4;
  --accent: #2c7a4b;
  --accent-ink: #ffffff;
  --accent-soft: #e1efe5;
  --red: #c2372b;
  --red-soft: #fbe7e4;
  --orange: #c96a12;
  --orange-soft: #fcefdf;
  --yellow: #a88407;
  --green: #3c8d5a;
  --grey: #a3a69f;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .06);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141614;
    --surface: #1e211e;
    --surface-2: #272b27;
    --text: #ecede9;
    --muted: #a3a79f;
    --line: #333833;
    --accent: #5fc086;
    --accent-ink: #0c1a11;
    --accent-soft: #1f3327;
    --red: #f07366;
    --red-soft: #3a211e;
    --orange: #f0a252;
    --orange-soft: #3a2b1a;
    --yellow: #e0c04c;
    --green: #6cc38f;
    --grey: #6f746c;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
code { font-size: .9em; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.sync { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.sync.live .dot { background: var(--green); }
.sync.off .dot { background: var(--orange); }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; fill: currentColor;
}
.icon-btn:active { background: var(--surface-2); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: 44px; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; z-index: 10;
}
.menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 8px;
}
.menu button:hover, .menu button:active { background: var(--surface-2); }
.menu-info { font-size: 13px; color: var(--muted); padding: 8px 12px 6px; word-break: break-all; }
.menu-info:empty { display: none; }

.banner {
  margin: 0 16px 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--orange-soft); color: var(--text); font-size: 14px;
}

main { max-width: 640px; margin: 0 auto; padding: 4px 16px 0; }

/* Überblick */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px; border-radius: var(--radius);
  border: 2px solid transparent; background: var(--surface); box-shadow: var(--shadow);
  text-align: left;
}
.stat .num { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 13px; color: var(--muted); }
.stat-expired .num { color: var(--red); }
.stat-soon .num { color: var(--orange); }
.stat.zero .num { color: var(--muted); }
.stat[aria-pressed="true"] { border-color: currentColor; }
.stat-expired[aria-pressed="true"] { border-color: var(--red); }
.stat-soon[aria-pressed="true"] { border-color: var(--orange); }

/* Suche + Orte */
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; fill: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search input, .search input:focus { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; outline: none; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; white-space: nowrap;
}
.chip .c { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] .c { color: inherit; opacity: .7; }

/* Liste */
.group h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 18px 4px 8px; font-weight: 600;
}
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding-left: 6px; overflow: hidden;
}
.item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grey);
}
.item.s-expired::before { background: var(--red); }
.item.s-soon::before { background: var(--orange); }
.item.s-week::before { background: var(--yellow); }
.item.s-ok::before { background: var(--green); }
.item .main {
  flex: 1; min-width: 0; border: 0; background: transparent; text-align: left;
  padding: 12px 6px 12px 10px; display: flex; flex-direction: column; gap: 2px;
}
.item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { font-size: 14px; color: var(--muted); }
.item .due { white-space: nowrap; }
.item.s-expired .due { color: var(--red); font-weight: 600; }
.item.s-soon .due { color: var(--orange); font-weight: 600; }
.item .note { font-size: 13px; color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 2px; padding-right: 8px; flex: none; }
.qty .q { min-width: 46px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.qty button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.qty button:active { background: var(--surface-2); }

.empty, .loading { text-align: center; color: var(--muted); padding: 48px 24px; margin: 0; }

/* Plus-Knopf */
.fab {
  position: fixed; z-index: 4; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px;
  padding: 14px 20px 14px 16px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); fill: currentColor;
  font-weight: 600; box-shadow: 0 6px 20px rgb(0 0 0 / .2);
}

/* Formular-Blatt */
dialog {
  border: 0; padding: 0; background: var(--surface); color: var(--text);
  width: 100%; max-width: 520px; max-height: 92dvh;
  border-radius: 20px;
}
dialog::backdrop { background: rgb(0 0 0 / .4); }
@media (max-width: 600px) {
  dialog {
    margin: auto 0 0; max-width: none; border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
#form { padding: 8px 16px 16px; display: grid; gap: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 20px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-size: 16px; min-height: 46px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg label {
  display: block; position: relative; text-align: center; color: var(--text); font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; background: var(--bg);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.quick button {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px;
  padding: 6px 12px; font-size: 14px;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.actions .danger { margin-right: auto; }
button.primary, button.secondary, button.danger {
  border-radius: 12px; padding: 12px 18px; font-weight: 600; border: 1px solid transparent;
}
button.primary { background: var(--accent); color: var(--accent-ink); }
button.secondary { background: var(--surface-2); border-color: var(--line); }
button.danger { background: transparent; color: var(--red); border-color: var(--line); }
button.wide { width: 100%; }

/* Anmeldung */
.login { padding: 32px 16px; display: grid; place-items: center; }
.login .card {
  width: 100%; max-width: 380px; background: var(--surface); border-radius: 20px;
  box-shadow: var(--shadow); padding: 28px 20px; display: grid; gap: 14px; text-align: center;
}
.login .card img { justify-self: center; }
.login h2 { margin: 0; }
.login p { margin: 0; }
.login label { text-align: left; }
.error { color: var(--red); font-size: 14px; }

/* Hinweis unten */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(146px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  background: var(--text); color: var(--bg);
  padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow);
  max-width: calc(100% - 32px); width: max-content; font-size: 15px;
}
.toast button { border: 0; background: transparent; color: var(--accent-soft); font-weight: 700; padding: 0; }
@media (prefers-color-scheme: dark) { .toast button { color: var(--accent-ink); } }

/* ============ Version 2 ============ */

/* Untere Reiter */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  position: relative; border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 9px; font-size: 12px; fill: currentColor;
}
.tabbar svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--accent); font-weight: 600; }
.badge {
  position: absolute; top: 4px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700;
}

/* Filterzeile */
.filterrow { display: flex; gap: 8px; }
.filterrow .search { flex: 1; min-width: 0; }
.filterrow select {
  width: auto; max-width: 44%; min-height: 0; padding: 0 28px 0 10px;
  background-color: var(--surface); border-radius: 12px; font-size: 15px;
}
.filterrow select.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Kürzel: wer hat es eingetragen */
.who {
  flex: none; display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; font-style: normal;
  color: #fff; background: var(--grey); margin-left: 6px;
}
.who.c0 { background: #3f7fbf; }
.who.c1 { background: #b0568f; }
.who.c2 { background: #8a6d3b; }
.who.auto { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.item .name { display: flex; align-items: center; }
.item .name .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.who-info { font-size: 13px; color: var(--muted); margin: 0; }

/* Name + Scanknopf */
.with-btn { display: flex; gap: 8px; }
.with-btn input { flex: 1; min-width: 0; }
.scan-btn {
  flex: none; width: 50px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); display: grid; place-items: center; fill: var(--text);
}
textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; resize: vertical;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; line-height: 1.45;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Einkauf */
.quickadd { display: flex; gap: 8px; margin: 4px 0 12px; }
.quickadd input { flex: 1; min-width: 0; background: var(--surface); }
.quickadd button { flex: none; width: 50px; padding: 0; display: grid; place-items: center; fill: currentColor; }
.shoplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shop {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 4px 6px 4px 4px;
}
.shop .tick { flex: none; width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.shop .tick span {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--grey);
  display: grid; place-items: center; color: transparent; font-size: 14px; font-weight: 700;
}
.done .shop .tick span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.shop .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 0; border: 0; background: transparent; text-align: left; }
.shop .txt .n { font-weight: 600; display: flex; align-items: center; min-width: 0; }
.shop .txt .n .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.done .shop .txt .n .t { text-decoration: line-through; color: var(--muted); }
.shop .txt .m { font-size: 13px; color: var(--muted); }
.pill {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange); margin-left: 6px; white-space: nowrap;
}
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.shop .mini {
  flex: none; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px;
  padding: 7px 10px; font-size: 14px; font-weight: 600;
}
.shop .x {
  flex: none; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%;
  color: var(--muted); font-size: 22px; line-height: 1;
}
.cart h3, .view h3.sec {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 22px 4px 8px; font-weight: 600;
}
.cart-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }

/* Übersicht */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 12px; font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi.bad .v { color: var(--red); }
.kpi.good .v { color: var(--green); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 8px; font-size: 14px; }
.bar-row .lbl { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { display: flex; height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar i.g { background: var(--green); }
.bar i.r { background: var(--red); }
.bar i.n { background: var(--accent); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.plain li { display: flex; justify-content: space-between; gap: 8px; }
.plain li span:last-child { color: var(--muted); white-space: nowrap; }

/* Kleine Dialoge */
dialog.small { max-width: 420px; }
@media (max-width: 600px) { dialog.small { margin: auto 0 0; } }
.pad { padding: 16px; display: grid; gap: 12px; }
.pad h2 { margin: 0; font-size: 20px; }
.pad p { margin: 0; }
.small { font-size: 14px; }
.stack { display: grid; gap: 8px; }
.stack.row2 { grid-template-columns: 1fr 1fr; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
button.danger-fill { background: var(--red); color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 600; border: 0; }
.callout { background: var(--orange-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.push-status { font-weight: 600; }

/* Orte */
.orte-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.orte-list li { display: flex; align-items: center; gap: 4px; }
.orte-list input { flex: 1; min-width: 0; }
.orte-list .c { font-size: 13px; color: var(--muted); min-width: 44px; text-align: right; }
.orte-list button {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.orte-list button:disabled { opacity: .35; }
.orte-list button.del { color: var(--red); }

/* Scanner */
.reader { width: 100%; min-height: 220px; border-radius: 12px; overflow: hidden; background: #000; }
.reader video { width: 100% !important; display: block; }

/* Rezepte: Liste */
.rezept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 4px; }
.rk {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.rk .img, .rz-bild { position: relative; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.rk .img { aspect-ratio: 4 / 3; font-size: 34px; }
.rk .img img, .rz-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rk .fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(0 0 0 / .45); color: #fff; font-size: 16px; }
.rk .fav.on { color: #ffc93c; }
.rk .b { padding: 10px 12px 12px; display: grid; gap: 6px; }
.rk .t { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk .p { font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; }
.lvl-hi { background: var(--green); }
.lvl-mid { background: var(--yellow); }
.lvl-lo { background: var(--red); }
.txt-hi { color: var(--green); }
.txt-mid { color: var(--yellow); }
.txt-lo { color: var(--red); }

/* Rezepte: Ansicht */
dialog.full { width: 100%; max-width: 640px; height: 100dvh; max-height: 100dvh; margin: 0 auto; border-radius: 0; }
@media (min-width: 700px) { dialog.full { height: auto; max-height: 92dvh; margin: auto; border-radius: 20px; } }
.rz { position: relative; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.rz-bild { aspect-ratio: 16 / 10; max-height: 300px; width: 100%; font-size: 56px; }
.rz-top { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 8px; }
.rz-top .grow { flex: 1; }
.icon-btn.round { background: rgb(0 0 0 / .45); color: #fff; fill: #fff; font-size: 20px; }
.icon-btn.round.on { color: #ffc93c; }
.rz-body { padding: 16px; display: grid; gap: 10px; }
.rz-body h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.rz-body h3 { margin: 12px 0 0; font-size: 17px; }
.rz-quelle { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.rz-quelle a { color: var(--accent); }
.rz-verf { display: grid; gap: 6px; background: var(--bg); border-radius: 12px; padding: 12px; }
.rz-verf .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rz-verf .pz { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rz-verf .meter { height: 8px; }
.rz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zutaten { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.zutaten li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.zutaten li:last-child { border-bottom: 0; }
.zutaten .st { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.st.da, .st.grund { background: var(--green); }
.st.wenig { background: var(--orange); }
.st.fehlt { background: var(--red); }
.st.optional { background: var(--grey); }
.zutaten .zt { flex: 1; min-width: 0; }
.zutaten .zs { display: block; font-size: 12px; color: var(--muted); }
.zutaten .add { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; width: 34px; height: 34px; font-size: 18px; color: var(--accent); }
.zutaten .add.on { background: var(--accent-soft); border-color: var(--accent); font-size: 14px; }
.zubereitung { display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.zubereitung p { margin: 0; }
.zubereitung .schritt { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.zubereitung .schritt b { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; }
.zubereitung h4 { margin: 6px 0 0; font-size: 15px; }
.rz-notiz { margin: 0; background: var(--orange-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.fotos button { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; padding: 0; }
.fotos:empty::before { content: "Noch keine eigenen Fotos."; color: var(--muted); font-size: 14px; }
.upload-btn { display: block; text-align: center; cursor: pointer; color: var(--text); font-size: 15px; border-radius: 12px; padding: 12px 18px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.import-box { background: var(--accent-soft); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.import-box input { background: var(--surface); }
.import-box button { flex: none; border-radius: 10px; padding: 0 16px; }
.fav-check { align-self: end; min-height: 46px; }
.foto-dialog { max-width: 720px; padding: 12px; }
.foto-dialog img { width: 100%; max-height: 75dvh; object-fit: contain; display: block; border-radius: 10px; margin-bottom: 10px; }
