/* ── Mise · Design-System ──────────────────────────────────────────────────
   Warmes Papier, Espresso, Oliv & Pfirsich. Fraunces für Überschriften,
   Manrope für alles andere. Makro-Farben sind farbenblind-geprüft. */
:root {
  color-scheme: light;
  --bg: #f6f1ea;
  --bg-2: #efe7db;
  --surface: #fffdf9;
  --surface-2: #f8f3ec;
  --surface-3: #f1e9de;
  --ink: #1f1a15;
  --ink-2: #5a5047;
  --muted: #8b8075;
  --line: #e7ddd0;
  --line-2: #d9ccbb;
  --accent: #4b5a2c;
  --accent-2: #5f7238;
  --accent-ink: #fbf8f1;
  --accent-soft: #e4e8d3;
  --peach: #e9946a;
  --peach-soft: #fbe6d9;
  --butter: #f3d27a;
  --butter-soft: #faf0d2;
  --ice: #dde9f2;
  --ice-ink: #2f5f86;
  --danger: #b5432a;
  --danger-soft: #f8e1d9;
  --ok: #4b7a3a;
  --c-p: #c4532f;
  --c-kh: #d9a01e;
  --c-f: #2f6fae;
  --shadow-1: 0 1px 2px rgba(60, 40, 20, .05), 0 2px 8px rgba(60, 40, 20, .04);
  --shadow-2: 0 2px 6px rgba(60, 40, 20, .06), 0 12px 32px rgba(60, 40, 20, .08);
  --shadow-3: 0 24px 64px rgba(40, 25, 10, .18);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --topbar: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15110d; --bg-2: #1c1712; --surface: #211c17; --surface-2: #2a231c; --surface-3: #332a21;
    --ink: #f3ece2; --ink-2: #cbbfb0; --muted: #978a7b; --line: #352c23; --line-2: #463a2e;
    --accent: #b5c77e; --accent-2: #c6d692; --accent-ink: #1a1a10; --accent-soft: #2f3420;
    --peach: #eb9d75; --peach-soft: #3a2a20; --butter: #e8c66a; --butter-soft: #3a321d;
    --ice: #1f2c38; --ice-ink: #9cc3e4; --danger: #e5795c; --danger-soft: #3d2219; --ok: #9cc27f;
    --c-p: #d64f5c; --c-kh: #ad940a; --c-f: #3d7fc0;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 8px 28px rgba(0, 0, 0, .35); --shadow-3: 0 24px 64px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15110d; --bg-2: #1c1712; --surface: #211c17; --surface-2: #2a231c; --surface-3: #332a21;
  --ink: #f3ece2; --ink-2: #cbbfb0; --muted: #978a7b; --line: #352c23; --line-2: #463a2e;
  --accent: #b5c77e; --accent-2: #c6d692; --accent-ink: #1a1a10; --accent-soft: #2f3420;
  --peach: #eb9d75; --peach-soft: #3a2a20; --butter: #e8c66a; --butter-soft: #3a321d;
  --ice: #1f2c38; --ice-ink: #9cc3e4; --danger: #e5795c; --danger-soft: #3d2219; --ok: #9cc27f;
  --c-p: #d64f5c; --c-kh: #ad940a; --c-f: #3d7fc0;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 8px 28px rgba(0, 0, 0, .35); --shadow-3: 0 24px 64px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/1.5 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--peach-soft) 70%, transparent), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 60%);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

/* ── Typografie ── */
.display { font: 500 clamp(34px, 6vw, 58px)/1.02 var(--serif); letter-spacing: -0.025em; margin: 0; font-variation-settings: 'opsz' 144; }
.display em, .h2 em, .brand em, .gate-title em { font-style: italic; color: var(--peach); font-weight: 400; }
.h2 { font: 500 clamp(24px, 3.2vw, 32px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0; }
.h3 { font: 600 19px/1.2 var(--serif); letter-spacing: -0.01em; margin: 0; }
.eyebrow { font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { color: var(--ink-2); font-size: 16px; margin: 10px 0 0; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }

/* ── Gerüst ── */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; gap: 24px; padding: 0 max(var(--gutter), calc((100vw - 1280px) / 2));
  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 { font: 600 26px/1 var(--serif); letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.brand em { margin-left: -10px; }
.brand-dot { width: 28px; height: 28px; border-radius: 50%; background: url(/icon.svg) center / 148% no-repeat; box-shadow: 0 2px 6px rgba(60, 40, 20, .15); }
.tabs { display: flex; gap: 4px; margin-left: 12px; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.tabs a:hover { background: var(--surface-3); color: var(--ink); }
.tabs a.on { background: var(--ink); color: var(--bg); }
.who { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans); color: #fff; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); transition: transform .15s, box-shadow .15s, opacity .15s; }
button.avatar { padding: 0; opacity: .45; }
button.avatar.on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
button.avatar:hover { transform: translateY(-1px); opacity: 1; }
.view { max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 120px; }
.bottombar { display: none; }
@media (max-width: 880px) {
  .tabs { display: none; }
  .topbar { height: 56px; }
  .brand { font-size: 23px; }
  .view { padding-top: 20px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .bottombar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2); padding: 6px;
  }
  .bottombar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 16px; color: var(--muted); font: 700 10.5px/1 var(--sans); letter-spacing: .02em; }
  .bottombar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .bottombar a.on { color: var(--ink); background: var(--surface-3); }
}

/* ── Seitenkopf ── */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.pagehead .eyebrow { margin-bottom: 12px; display: block; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Karten ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 22px; }
.card-tight { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-soft { background: var(--surface-2); box-shadow: none; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1080px) { .layout-side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } .card { padding: 18px; border-radius: 20px; } }
.stack > * + * { margin-top: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ── Buttons & Eingaben ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; letter-spacing: -0.005em; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-soft { background: var(--surface-3); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.input, input[type=text], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; font-weight: 500;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%238b8075' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
label.field { display: block; }
label.field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search input { padding-left: 42px; border-radius: 999px; background: var(--surface); }

/* Chips & Segmente */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font: 700 11.5px/1 var(--sans); letter-spacing: .01em; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.badge-vegan { background: var(--accent-soft); color: var(--accent); }
.badge-tk { background: var(--ice); color: var(--ice-ink); }
.badge-warn { background: var(--danger-soft); color: var(--danger); }
.badge-butter { background: var(--butter-soft); color: color-mix(in srgb, var(--ink) 70%, var(--butter)); }
.badge-peach { background: var(--peach-soft); color: color-mix(in srgb, var(--ink) 55%, var(--peach)); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ── Teller (Gericht-Optik ohne Foto) ── */
.plate { position: relative; aspect-ratio: 1; border-radius: 50%; isolation: isolate; }
.plate::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 10px 30px rgba(60, 40, 20, .16), inset 0 0 0 1px rgba(0, 0, 0, .04); }
.plate-food { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 3px 10px rgba(0, 0, 0, .22), 0 0 0 3px color-mix(in srgb, var(--surface) 70%, #d9ccbb); }
.plate-food::before { content: ''; position: absolute; inset: -4%; background: inherit; filter: blur(.8px) saturate(1.08); }
.plate-food::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .38), transparent 38%), radial-gradient(circle at 50% 50%, transparent 56%, rgba(0, 0, 0, .16)); }
.plate-photo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.plate-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Gericht-Karten ── */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.dish-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, box-shadow .2s; text-align: left; padding: 0; }
.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.dish-visual { position: relative; aspect-ratio: 4 / 3.1; display: grid; place-items: center; overflow: hidden; }
.dish-visual .plate { width: 64%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.dish-card:hover .plate { transform: rotate(14deg) scale(1.03); }
.dish-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dish-flags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; justify-content: space-between; align-items: flex-start; }
.dish-flags .badge { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); }
.fav { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); color: var(--muted); flex: none; }
.fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav.on { color: var(--danger); }
.fav.on svg { fill: currentColor; }
.dish-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dish-name { font: 600 19px/1.15 var(--serif); letter-spacing: -0.015em; }
.dish-sub { color: var(--muted); font-size: 13px; line-height: 1.4; }
.dish-macros { display: flex; gap: 14px; margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--ink-2); }
.dish-macros b { color: var(--ink); font-weight: 800; }
.macro-p b { color: var(--ink); }
@media (max-width: 560px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dish-card { border-radius: 20px; }
  .dish-visual .plate { width: 74%; }
  .dish-flags { top: 8px; left: 8px; right: 8px; }
  .dish-flags .badge { height: 22px; padding: 0 7px; font-size: 10.5px; }
  .fav { width: 30px; height: 30px; }
  .dish-body { padding: 12px 12px 14px; }
  .dish-name { font-size: 16px; }
  .dish-sub { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dish-macros { gap: 4px 10px; font-size: 11.5px; flex-wrap: wrap; padding-top: 8px; }
}

/* Makro-Balken */
.mbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; background: transparent; }
.mbar i { display: block; height: 100%; }
.mbar .p { background: var(--c-p); } .mbar .kh { background: var(--c-kh); } .mbar .f { background: var(--c-f); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.p { background: var(--c-p); } .sw.kh { background: var(--c-kh); } .sw.f { background: var(--c-f); }

/* Fortschritt gegen Ziel */
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.meter.over i { background: var(--danger); }
.meter .plan { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 35%, transparent) 0 4px, transparent 4px 7px); }
.meter .p { background: var(--c-p); } .meter .kh { background: var(--c-kh); } .meter .f { background: var(--c-f); }

/* Ringe */
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ring svg { width: 100%; max-width: 104px; height: auto; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: var(--surface-3); }
.ring .val { transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring-wrap { position: relative; width: 100%; max-width: 104px; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-num b { font: 700 19px/1 var(--sans); letter-spacing: -0.02em; display: block; }
.ring-num small { font-size: 11px; color: var(--muted); font-weight: 600; }
.ring-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ring-sub { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
@media (max-width: 420px) { .ring-num b { font-size: 16px; } }

/* ── Heute ── */
.hero-today { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: 'teller tag' 'todo inventar'; gap: 22px; align-items: stretch; }
.a-teller { grid-area: teller; } .a-tag { grid-area: tag; } .a-todo { grid-area: todo; } .a-inv { grid-area: inventar; }
@media (max-width: 980px) { .hero-today { grid-template-columns: 1fr; grid-template-areas: 'teller' 'todo' 'tag' 'inventar'; gap: 16px; } }
@media (max-width: 760px) {
  .sheet-foot { justify-content: stretch; }
  .sheet-foot > .btn, .sheet-foot > .row > .btn { flex: 1 1 auto; }
  .sheet-foot > .row { flex: 1 1 100%; }
}
.meal-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.meal-row:first-of-type { border-top: 0; }
.meal-row .plate { width: 64px; }
.meal-row.skip { opacity: .45; }
.meal-row.skip .meal-name { text-decoration: line-through; }
.meal-time { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meal-name { font: 600 17px/1.2 var(--serif); }
.meal-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.state { display: flex; gap: 6px; }
.state button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--muted); transition: all .15s; }
.state button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.state button.on-ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.state button.on-skip { background: var(--surface-3); color: var(--ink); }
.todo { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.todo + .todo { margin-top: 10px; }
.todo-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); }
.todo-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.todo.ice .todo-ico { background: var(--ice); color: var(--ice-ink); }
.todo.peach .todo-ico { background: var(--peach-soft); color: color-mix(in srgb, var(--ink) 50%, var(--peach)); }
.todo.olive .todo-ico { background: var(--accent-soft); color: var(--accent); }
.todo.butter .todo-ico { background: var(--butter-soft); color: color-mix(in srgb, var(--ink) 60%, var(--butter)); }
.todo b { font-weight: 750; display: block; line-height: 1.3; }
.todo span { font-size: 13px; color: var(--muted); }
.left-big { font: 500 clamp(40px, 6vw, 56px)/1 var(--serif); letter-spacing: -0.03em; }
.left-big small { font: 600 14px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }

/* ── Woche ── */
.weeknav { display: flex; align-items: center; gap: 6px; }
.weeknav .h2 { min-width: 0; }
.kochtage { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; margin-bottom: 22px; scrollbar-width: thin; }
.kochtag { scroll-snap-align: start; background: var(--ink); color: var(--bg); border-radius: var(--r-l); padding: 18px 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.kochtag::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--peach) 50%, transparent), transparent 70%); }
:root[data-theme="dark"] .kochtag, .kochtag { --kt-line: rgba(255, 255, 255, .14); }
.kochtag .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.kochtag-title { font: 500 24px/1.1 var(--serif); letter-spacing: -0.02em; }
.kochtag-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.kochtag-list div { display: flex; justify-content: space-between; gap: 10px; }
.kochtag-list span { opacity: .65; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kochtag-meta { display: flex; gap: 14px; font-size: 12.5px; opacity: .75; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--kt-line); }
.kochtag .btn { background: color-mix(in srgb, var(--bg) 12%, transparent); border-color: transparent; color: var(--bg); }
.kochtag .btn:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); }
.kochtag.leer { background: var(--surface); color: var(--ink); border: 1.5px dashed var(--line-2); align-items: flex-start; justify-content: center; }
.kochtag.leer::after { display: none; }

.wgrid { display: grid; grid-template-columns: 86px repeat(var(--days), minmax(0, 1fr)); gap: 8px; }
.wgrid-head { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 4px; }
.wgrid-head b { font: 500 22px/1 var(--serif); letter-spacing: -0.02em; text-transform: none; color: var(--ink); }
.wgrid-head.today b { color: var(--peach); }
.wgrid-meal { font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; }
.cell { min-height: 92px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: transparent; display: flex; flex-direction: column; gap: 6px; padding: 6px; transition: border-color .15s, background .15s; text-align: left; }
.cell:hover { border-color: var(--ink-2); background: var(--surface-2); }
.cell.filled { border: 0; padding: 0; background: none; }
.cell .add { margin: auto; color: var(--muted); font-size: 22px; line-height: 1; opacity: .5; }
.cell:hover .add { opacity: 1; }
.slot { flex: 1; border-radius: 16px; padding: 10px 11px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; border: 0; text-align: left; min-height: 92px; color: var(--ink); background: var(--slot-bg); transition: transform .15s, box-shadow .15s; }
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.slot-name { font: 600 14.5px/1.15 var(--serif); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot-meta { font-size: 11.5px; color: color-mix(in srgb, var(--ink) 60%, transparent); display: flex; gap: 6px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.slot-meta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.slot .mini-plate { position: absolute; right: -12px; bottom: -12px; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--surface) 75%, transparent), inset 0 2px 6px rgba(0, 0, 0, .2); }
.slot.warn { box-shadow: inset 0 0 0 2px var(--danger); }
.slot-who { display: flex; gap: 3px; }
.slot-who i { width: 16px; height: 16px; border-radius: 50%; font: 800 8.5px/16px var(--sans); color: #fff; text-align: center; font-style: normal; }
.daytotals { display: contents; }
.daytotal { font-size: 11.5px; color: var(--muted); padding: 6px 4px 0; display: flex; flex-direction: column; gap: 5px; }
.daytotal .meter { height: 5px; }
.daytotal-row { display: flex; align-items: center; gap: 6px; }
.daytotal-row .meter { flex: 1; }
@media (max-width: 880px) {
  .wgrid { display: none; }
  .wlist { display: block !important; }
}
.wlist { display: none; }
.wday { margin-bottom: 16px; }
.wday-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; padding: 0 4px; }
.wday-head b { font: 500 22px/1 var(--serif); }
.wday-head.today b { color: var(--peach); }
.wday-meals { display: grid; gap: 8px; }
.wday-meal { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.wday-meal .wgrid-meal { padding-left: 4px; }
.wday-meal .cell, .wday-meal .slot { min-height: 64px; }

/* Wochen-Seitenleiste */
.person-week { padding: 14px 0; border-top: 1px solid var(--line); }
.person-week:first-of-type { border-top: 0; padding-top: 0; }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; font-size: 13px; }
.kv .meter { height: 6px; }
.warnbox { background: var(--danger-soft); color: var(--danger); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.warnbox + .warnbox { margin-top: 8px; }
.infobox { background: var(--ice); color: var(--ice-ink); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; }

/* ── Sheet (Bottom-Sheet mobil, Dialog am Desktop) ── */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(25, 18, 10, .38); backdrop-filter: blur(3px); animation: fade .2s ease; }
.sheet-panel { position: relative; width: min(720px, calc(100vw - 32px)); max-height: min(88vh, 940px); overflow: auto; background: var(--bg); border-radius: 28px; box-shadow: var(--shadow-3); animation: pop .28s cubic-bezier(.2, .9, .3, 1.1); overscroll-behavior: contain; }
.sheet-panel.wide { width: min(980px, calc(100vw - 32px)); }
.sheet-grip { display: none; }
.sheet-inner { padding: 28px; }
.sheet-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px 28px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sheet-foot { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 22px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 760px) {
  .sheet { place-items: end stretch; }
  .sheet-panel, .sheet-panel.wide { width: 100%; max-height: 93vh; border-radius: 26px 26px 0 0; animation: up .32s cubic-bezier(.2, .9, .3, 1); padding-bottom: env(safe-area-inset-bottom); }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 8px auto 0; position: sticky; top: 8px; z-index: 6; }
  .sheet-inner { padding: 20px 18px; }
  .sheet-top { padding: 12px 16px 12px 18px; }
  .sheet-foot { padding: 12px 16px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes up { from { transform: translateY(100%); } }

/* Gericht-Detail */
.detail-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; }
.detail-visual { border-radius: var(--r-l); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.detail-visual .plate { width: 76%; }
.detail-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-visual .photo-btn { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 760px) { .detail-hero { grid-template-columns: 1fr; gap: 18px; } .detail-visual { aspect-ratio: 16 / 11; } .detail-visual .plate { width: 52%; } }
.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nutri div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.nutri b { display: block; font: 700 22px/1 var(--sans); letter-spacing: -0.02em; }
.nutri span { font-size: 11.5px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
@media (max-width: 480px) { .nutri b { font-size: 18px; } .nutri div { padding: 10px; } }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.ing-list li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; font-size: 15px; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font: 700 13px/1 var(--sans); }
.tip { background: var(--butter-soft); border-radius: 16px; padding: 14px 16px; font-size: 14px; display: flex; gap: 12px; }
.tip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: color-mix(in srgb, var(--ink) 60%, var(--butter)); stroke-width: 1.8; margin-top: 1px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-3); border-radius: 999px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface); font-weight: 800; box-shadow: var(--shadow-1); }
.stepper b { min-width: 74px; text-align: center; font-size: 13px; }

/* Picker & Planungs-Mini-Raster */
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.pick { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, background .15s; }
.pick .plate { width: 46px; }
.pick:hover { border-color: var(--line-2); }
.pick.on { border-color: var(--ink); background: var(--surface-2); }
.pick b { font: 600 14.5px/1.15 var(--serif); display: block; }
.pick small { color: var(--muted); font-size: 11.5px; }
.minigrid { display: grid; grid-template-columns: 70px repeat(var(--days), minmax(0, 1fr)); gap: 5px; }
.minigrid .h { font: 700 11px/1 var(--sans); text-align: center; color: var(--muted); padding: 4px 0; letter-spacing: .06em; text-transform: uppercase; }
.minigrid .m { font: 700 11px/30px var(--sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.mg { height: 38px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 11px; font-weight: 700; color: var(--muted); padding: 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mg.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mg.busy { background: var(--surface-3); border-style: dashed; }
.mg.kt { box-shadow: inset 0 -3px 0 var(--peach); }
.mg.frost { background: var(--ice-ink); border-color: var(--ice-ink); color: #fff; }
.mg.bad { background: var(--danger); border-color: var(--danger); color: #fff; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.summary b { font: 700 20px/1.1 var(--sans); display: block; letter-spacing: -0.02em; }
.summary span { font-size: 12px; color: var(--muted); font-weight: 650; }
.who-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.who-toggle button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; }
.who-toggle button .avatar { width: 30px; height: 30px; border: 0; box-shadow: none; font-size: 11px; }
.who-toggle button:not(.on) { opacity: .5; }
.who-toggle button.on { border-color: var(--ink); }

/* ── Einkauf ── */
.shop-progress { display: flex; align-items: center; gap: 14px; }
.shop-progress .meter { flex: 1; height: 10px; }
.aisle { margin-top: 22px; }
.aisle-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.aisle-head .h3 { font-size: 17px; }
.shop-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: opacity .25s, background .15s; user-select: none; }
.shop-item + .shop-item { margin-top: 6px; }
.shop-item:hover { background: var(--surface-2); }
.shop-item.done { opacity: .42; }
.shop-item.done .si-name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.check { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line-2); display: grid; place-items: center; transition: all .15s; background: var(--surface); }
.check svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: all .15s; }
.done .check, .check.on { background: var(--accent); border-color: var(--accent); }
.done .check svg, .check.on svg { opacity: 1; transform: none; }
.si-name { font-weight: 700; }
.si-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-qty { text-align: right; font-variant-numeric: tabular-nums; }
.si-qty b { display: block; font-weight: 800; white-space: nowrap; }
.si-qty small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.si-menu { opacity: 0; }
.shop-item:hover .si-menu { opacity: 1; }
@media (hover: none) { .si-menu { opacity: .55; } }
.add-row { display: flex; gap: 8px; }
details.vorrat summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
details.vorrat summary::-webkit-details-marker { display: none; }
details.vorrat summary .chev { transition: transform .2s; }
details.vorrat[open] summary .chev { transform: rotate(90deg); }

/* ── Kochen ── */
.cook-hero { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 28px; position: relative; overflow: hidden; }
.cook-hero::before { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--peach) 45%, transparent), transparent 65%); }
.cook-hero .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.cook-hero .display { color: var(--bg); position: relative; }
.cook-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; position: relative; }
.cook-stats b { font: 500 32px/1 var(--serif); display: block; }
.cook-stats span { font-size: 12.5px; opacity: .65; font-weight: 600; }
.cook-dish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; }
@media (max-width: 860px) { .cook-dish { grid-template-columns: 1fr; } }
.cook-steps li { cursor: pointer; border-radius: 12px; padding: 10px; margin: 0 -10px; transition: background .15s, opacity .2s; }
.cook-steps li:hover { background: var(--surface-2); }
.cook-steps li.done { opacity: .4; }
.cook-steps li.done::before { background: var(--accent); color: var(--accent-ink); content: '✓'; }
.timer-btn { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; margin-left: 6px; border-radius: 999px; border: 0; background: var(--peach-soft); font: 700 12px/1 var(--sans); vertical-align: 2px; }
.timers { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 880px) { .timers { bottom: calc(96px + env(safe-area-inset-bottom)); right: 12px; } }
.timer { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-3); font-weight: 700; }
.timer b { font: 600 22px/1 var(--sans); font-variant-numeric: tabular-nums; min-width: 64px; }
.timer.ring { background: var(--peach); color: #2a160c; animation: shake .5s infinite; }
.timer button { border: 0; background: rgba(255, 255, 255, .14); color: inherit; width: 30px; height: 30px; border-radius: 50%; }
@keyframes shake { 50% { transform: translateX(-3px) rotate(-1deg); } }
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.box { border-radius: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; position: relative; }
.box.tk { background: var(--ice); border-color: transparent; }
.box .eyebrow { font-size: 10.5px; }
.box b { font: 600 15px/1.15 var(--serif); }
.box .g { font: 800 20px/1 var(--sans); margin-top: 6px; font-variant-numeric: tabular-nums; }
.box .who-dot { position: absolute; top: 12px; right: 12px; }

/* ── Profil & Statistik ── */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 22px; border-width: 3px; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat .label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.stat .value { font: 700 28px/1.1 var(--sans); letter-spacing: -0.025em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.stat .delta { font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--muted); }
.delta.good { color: var(--ok); } .delta.bad { color: var(--danger); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font: 600 11px var(--sans); }
.chart .target-l { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 0; opacity: .55; }
.chart .target-t { fill: var(--ink-2); font: 700 11px var(--sans); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .bar-plan { opacity: .35; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 11px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow-2); z-index: 5; opacity: 0; transition: opacity .1s; }
.chart-tip.on { opacity: 1; }
.chart-tip b { font-weight: 800; }
.table-toggle { font-size: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.data td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
table.data td.r, table.data th.r { text-align: right; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-out > div { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.calc-out b { display: block; font: 700 20px/1.1 var(--sans); }
.calc-out span { font-size: 12px; color: var(--muted); font-weight: 650; }
.opt-list { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; }
.opt.on { border-color: var(--ink); background: var(--surface-2); }
.opt b { display: block; font-weight: 750; font-size: 14px; }
.opt small { color: var(--muted); font-size: 12.5px; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.opt.on .radio { border-color: var(--ink); }
.opt.on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* Tabellen-Editor (Zutaten / Rezept) */
.ing-edit { display: grid; grid-template-columns: minmax(0, 1fr) 96px 34px; gap: 8px; align-items: center; }
.ing-edit + .ing-edit { margin-top: 8px; }
.ing-edit .unit { position: relative; }
.ing-edit .unit input { padding-right: 28px; text-align: right; }
.ing-edit .unit::after { content: 'g'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 700; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-2); max-height: 260px; overflow: auto; padding: 4px; }
.ac-list button { display: flex; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 14px; }
.ac-list button:hover, .ac-list button.hl { background: var(--surface-3); }
.ac-list small { color: var(--muted); }
.zt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.zt th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); }
.zt td { padding: 9px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.zt tr { cursor: pointer; }
.zt tr:hover td { background: var(--surface-2); }
.zt td.r, .zt th.r { text-align: right; }

/* ── Toast ── */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: all .25s cubic-bezier(.2, .9, .3, 1.2); display: flex; gap: 12px; align-items: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--peach); font-weight: 800; padding: 0; }
@media (max-width: 880px) { .toast { bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ── Leerzustände ── */
.empty { text-align: center; padding: 56px 20px; border-radius: var(--r-l); border: 1.5px dashed var(--line-2); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.empty .plate { width: 120px; margin: 0 auto 20px; animation: spin 40s linear infinite; }
.empty p { color: var(--muted); max-width: 44ch; margin: 8px auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Login ── */
.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.gate::before, .gate::after { content: ''; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .8; }
.gate::before { width: 520px; height: 520px; left: -160px; top: -140px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.gate::after { width: 600px; height: 600px; right: -200px; bottom: -220px; background: radial-gradient(circle, var(--peach-soft), transparent 70%); }
.gate-card { position: relative; z-index: 1; width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 40px 32px 32px; box-shadow: var(--shadow-3); text-align: center; display: grid; gap: 14px; }
.gate-mark { width: 120px; height: 120px; margin: 0 auto 2px; border-radius: 30px; overflow: hidden; box-shadow: 0 14px 34px rgba(60, 40, 20, .18); animation: fadein .6s ease both; }

.gate-title { font: 500 52px/1 var(--serif); letter-spacing: -0.035em; margin: 0; }
.gate-sub { margin: -4px 0 10px; color: var(--muted); }
.gate-err { color: var(--danger); min-height: 1.2em; margin: 0; font-size: 13.5px; font-weight: 600; }

/* Wer bin ich */
.whoami { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.whoami button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 24px; padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 600 22px/1 var(--serif); transition: transform .15s, border-color .15s; }
.whoami button:hover { transform: translateY(-3px); border-color: var(--ink); }
.whoami .avatar { width: 72px; height: 72px; font-size: 26px; }

.fade-in { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ══ Mobile first: Daumen, Gesten, native Anmutung ══════════════════════════ */
html { -webkit-tap-highlight-color: transparent; }
.mobile-only { display: none !important; }
.fab { display: none; }
@media (max-width: 880px) {
  .desk-only { display: none !important; }
  .mobile-only { display: revert !important; }
  .topbar { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); }
  .display { font-size: clamp(32px, 9vw, 40px); }
  .pagehead { margin-bottom: 18px; gap: 12px; }
  .pagehead .eyebrow { margin-bottom: 8px; }
  .actions:empty { display: none; }
  input, select, textarea, .input { font-size: 16px !important; }
  .btn:active, .chip:active, .slot:active, .shop-item:active, .dish-card:active, .pick:active, .opt:active { transform: scale(.97); }
  .card { box-shadow: none; }
  /* schwebender Hauptknopf über der Tab-Leiste */
  .fab { display: inline-flex; position: fixed; z-index: 44; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); height: 54px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; gap: 10px; align-items: center;
    background: var(--ink); color: var(--bg); font: 750 15px/1 var(--sans); box-shadow: 0 10px 30px rgba(30, 20, 10, .28), 0 0 0 1px rgba(255, 255, 255, .06) inset; animation: fabIn .4s cubic-bezier(.2, .9, .3, 1.2) both; }
  .fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .fab:active { transform: scale(.95); }
  .toast { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .bottombar a { transition: color .2s, background .25s; }
  .bottombar a.on svg { stroke-width: 2.1; }
  /* Woche: Tagesstreifen + klebende Tagesköpfe */
  .daystrip { display: grid; grid-template-columns: repeat(var(--days), 1fr); gap: 6px; position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 20; padding: 10px 0; margin: 0 0 6px; background: linear-gradient(var(--bg) 78%, transparent); }
  .daystrip button { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 8px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 700 11px/1 var(--sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
  .daystrip button b { font: 500 19px/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; text-transform: none; }
  .daystrip button.today { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--bg) 65%, transparent); }
  .daystrip button.today b { color: var(--bg); }
  .daystrip .dots { display: flex; gap: 3px; height: 5px; }
  .daystrip .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
  .daystrip .dots i.leer { background: var(--line-2); }
  .wday { scroll-margin-top: calc(130px + env(safe-area-inset-top)); }
  .kochtage { grid-auto-columns: 86%; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter) 6px; scroll-padding: var(--gutter); scrollbar-width: none; }
  .kochtage::-webkit-scrollbar { display: none; }
  .kochtag { padding: 18px; }
  /* Kochmodus: Mise en place zuerst */
  .cook-layout > aside { order: -1; }
  .cook-layout > aside .card { position: static !important; }
  .cook-hero { padding: 22px; border-radius: 24px; }
  .cook-stats { gap: 18px; }
  .cook-stats b { font-size: 26px; }
  /* Einkauf: Fortschritt klebt oben */
  .shop-sticky { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 15; }
  .shop-item { padding: 14px; border-radius: 18px; }
  .check { width: 28px; height: 28px; }
  /* Sheets: echtes Bottom-Sheet mit Wischgeste */
  .sheet-panel { transition: transform .25s cubic-bezier(.2, .9, .3, 1); touch-action: pan-y; }
  .sheet-panel.dragging { transition: none; }
  .sheet-grip { width: 44px; height: 5px; margin: 10px auto 2px; }
  .sheet-top { padding-top: 6px; }
  .detail-cta { position: sticky; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .profile-head .avatar { width: 52px; height: 52px; font-size: 19px; }
  .opt { padding: 10px 12px; }
  .stat .value { font-size: 24px; }
  .weeknav { margin-left: -10px; }
  .weeknav .btn-icon { width: 36px; }
}
@keyframes fabIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (max-width: 880px) { .view { padding-bottom: calc(176px + env(safe-area-inset-bottom)); } }
@media (max-width: 880px) {
  .chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scrollbar-width: none; }
  .chips.scroll-x::-webkit-scrollbar { display: none; }
  .chips.scroll-x .chip { flex: none; }
  .search-row { flex-wrap: nowrap !important; }
  .search-row .search { min-width: 0 !important; }
  .search-row .cselect { width: 50px !important; padding: 0 !important; justify-content: center; flex: none; }
  .search-row .cselect span { display: none; }
}
details.mep > summary { list-style: none; cursor: pointer; }
details.mep > summary::-webkit-details-marker { display: none; }
details.mep:not([open]) > summary .card-head { margin-bottom: 0; }

/* ── Eigene Formularelemente (nie Browser-Standard) ── */
.cselect-native { display: none !important; }
.cselect { width: 100%; height: 44px; padding: 0 12px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; text-align: left; transition: border-color .15s, box-shadow .15s; }
.cselect span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; transition: transform .2s; }
.cselect[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cselect[aria-expanded="true"] svg { transform: rotate(180deg); }
.cselect:hover { border-color: var(--ink-2); }
.cselect-pop { position: fixed; z-index: 300; max-height: 320px; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-3); animation: pop .16s ease; }
.cselect-pop button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; text-align: left; color: var(--ink); }
.cselect-pop button:hover, .cselect-pop button:focus-visible { background: var(--surface-3); outline: none; }
.cselect-pop button svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cselect-pop button.on { background: var(--accent-soft); }
.cselect-pop button.on svg { opacity: 1; }
.cselect-bd { position: fixed; inset: 0; z-index: 299; background: rgba(25, 18, 10, .38); backdrop-filter: blur(3px); animation: fade .2s ease; }
.cselect-pop.als-sheet { left: 0; right: 0; bottom: 0; top: auto; max-height: 70vh; border-radius: 26px 26px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .9, .3, 1); border: 0; }
.cselect-pop.als-sheet button { padding: 15px 14px; font-size: 16px; border-radius: 14px; }
.cselect-titel { font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 14px 10px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; width: 100%; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--pct, 50%), var(--surface-3) var(--pct, 50%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--surface-3); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line-2), 0 3px 10px rgba(40, 25, 10, .22); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line-2), 0 3px 10px rgba(40, 25, 10, .22); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .12s; }
.swatches button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.swatches button:hover { transform: scale(1.1); }

/* ── App-Gefühl: nur Sinnvolles ist markierbar ── */
body { -webkit-user-select: none; user-select: none; cursor: default; }
input, textarea, [contenteditable], .selectable, .steps li span, .ing-list li, .tip, .infobox, table.data, .zt td, .lead, .dish-sub, .si-name {
  -webkit-user-select: text; user-select: text; }
.steps.cook-steps li span, .shop-item .si-name { -webkit-user-select: none; user-select: none; }
button, a, .avatar, .plate, .chip, .badge, img, svg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
img { -webkit-user-drag: none; }
button, a, [data-act], .shop-item, summary, label { cursor: pointer; }
@media (max-width: 760px) {
  .zt th { position: static; }
  .zt th:nth-child(2), .zt td:nth-child(2), .zt th:nth-child(5), .zt td:nth-child(5), .zt th:nth-child(6), .zt td:nth-child(6), .zt th:nth-child(7), .zt td:nth-child(7) { display: none; }
  .zt td { padding: 13px 8px; }
}

/* ── Basis-Auswahl (wie bei every) ── */
.basis-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.basis-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); text-align: left; transition: border-color .15s, background .15s, transform .12s; }
.basis-chip b { font-weight: 750; font-size: 13.5px; line-height: 1.2; }
.basis-chip span { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.basis-chip:hover { border-color: var(--ink-2); }
.basis-chip.on { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.basis-chip.leicht span { color: var(--accent); }
@media (max-width: 560px) { .basis-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Frische-Hinweise ── */
.frischbox { background: var(--butter-soft); border-radius: 14px; padding: 12px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: color-mix(in srgb, var(--ink) 80%, var(--butter)); }
.frischbox b { font-weight: 750; }
.frischbox + .frischbox { margin-top: 8px; }

/* ── Einkaufsliste im Bring-Stil ── */
.quickadd .search svg { stroke: var(--ink-2); }
.quickadd input { height: 52px; font-size: 16px; font-weight: 600; background: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 1 / 1.02; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 8px; text-align: center; transition: transform .14s, box-shadow .2s, opacity .2s, background .2s; box-shadow: var(--shadow-1); }
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tile:active { transform: scale(.94); }
.tile-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 17px/1 var(--serif); letter-spacing: -0.02em; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .12), 0 2px 6px rgba(40, 25, 10, .12); flex: none; }
.tile-name { font-weight: 750; font-size: 13.5px; line-height: 1.2; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-spec { font-size: 11.5px; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.tile-flag { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--butter); color: #3a2a0a; font: 800 11px/18px var(--sans); font-style: normal; }
.tile-fresh { position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.tile.done { opacity: .5; box-shadow: none; background: var(--surface-2); }
.tile.done .tile-ico { filter: grayscale(.8); }
.tile.done .tile-name { text-decoration: line-through; }
.tile.pop { animation: tilepop .3s ease; }
@keyframes tilepop { 50% { transform: scale(.88); } }
.laden-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 4px; }
.laden-logo { font: 800 14px/1 var(--sans); letter-spacing: .02em; padding: 7px 12px; border-radius: 10px; background: var(--surface-3); color: var(--ink); }
.laden-logo.lidl { background: #0050aa; color: #fff100; box-shadow: inset 0 0 0 2px #fff100, 0 0 0 1px #0050aa; }
.wagen .tiles .tile { aspect-ratio: auto; padding: 10px 8px; }
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile { border-radius: 18px; padding: 8px 6px; }
  .tile-ico { width: 40px; height: 40px; font-size: 15px; }
  .tile-name { font-size: 12.5px; }
}

/* ── Kurzbefehl-Assistent: Nachbau der iPhone-Kurzbefehle ── */
.kb-dots { display: flex; gap: 6px; padding: 12px 28px 0; }
.kb-dots button { flex: 1; height: 5px; border-radius: 5px; border: 0; background: var(--line-2); padding: 0; }
.kb-dots button.fertig { background: var(--accent); opacity: .5; }
.kb-dots button.on { background: var(--accent); }
.kb .lead { font-size: 16.5px; }
.tap-list { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 10px; }
.tap-list li { counter-increment: t; display: block; position: relative; padding-left: 42px; min-height: 28px; font-size: 15px; line-height: 1.6; }
.tap-list li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 800 13px/1 var(--sans); }
.copychip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; margin: 2px 0; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font: 700 13px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copychip svg { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.copychip:active { background: var(--accent-soft); }
.ios-action { display: flex; gap: 12px; align-items: flex-start; background: #fff; color: #1c1c1e; border-radius: 14px; padding: 13px 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .04); font: 500 15px/1.45 -apple-system, 'SF Pro Text', system-ui, sans-serif; }
:root[data-theme="dark"] .ios-action { background: #2c2c2e; color: #f2f2f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ios-action { background: #2c2c2e; color: #f2f2f7; } }
.ios-app { width: 28px; height: 28px; border-radius: 7px; flex: none; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ios-app svg { width: 20px; height: 20px; }
.ios-tok { color: #0a84ff; font-weight: 600; }
.ios-sub { font-size: 13px; color: #8e8e93; margin-top: 4px; }
.ios-sub code { color: inherit; font-weight: 700; }
.ios-pfeil { text-align: center; color: var(--muted); font-weight: 800; margin: 4px 0; }
.ios-baustein { border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 12px; }
.ios-baustein .eyebrow { display: block; margin: 2px 0 10px 4px; }
.ios-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.ios-ok, .ios-warte { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.ios-ok { background: var(--accent-soft); color: var(--accent); }
.ios-ok svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; }
.ios-ok b, .ios-warte b { display: block; }
.ios-ok span, .ios-warte span { font-size: 13px; color: var(--ink-2); }
.ios-warte { background: var(--surface-2); border: 1px dashed var(--line-2); }
.puls { width: 12px; height: 12px; border-radius: 50%; background: var(--peach); flex: none; animation: puls 1.4s ease-in-out infinite; }
@keyframes puls { 50% { transform: scale(1.5); opacity: .4; } }
.kb-konzept { display: grid; gap: 6px; }
.kb-box { border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kb-box b { font-size: 16px; }
.kb-box > span:not(.eyebrow) { font-size: 13.5px; color: var(--ink-2); }
.kb-box.auto { background: var(--butter-soft); }
.kb-box.kurz { background: var(--ice); }
.kb-box.mise { background: var(--accent-soft); }
.kb-liste { display: grid; gap: 4px; margin-top: 6px; }
.kb-liste span { background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 10px; padding: 7px 10px; font-size: 13.5px; font-weight: 650; }
.kb-liste span.opt { opacity: .6; font-weight: 500; }
.kb-pfeil { text-align: center; font: 700 12px/1 var(--sans); color: var(--muted); letter-spacing: .06em; }
@media (max-width: 760px) { .kb-dots { padding: 10px 18px 0; } }
.kb .ios-action + .tap-list, .kb .ios-baustein + .tap-list { margin-top: 18px; }

/* Nachbau der echten Health-Aktion (Zeilen wie in iOS 18) */
.ios-card { background: #fff; color: #1c1c1e; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .05); font: 500 15px/1.4 -apple-system, 'SF Pro Text', system-ui, sans-serif; }
.ios-head { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-bottom: 1px solid rgba(60, 60, 67, .14); }
.ios-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid rgba(60, 60, 67, .1); }
.ios-row:last-child { border-bottom: 0; }
.ios-row.hint { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.ios-switch { display: inline-block; width: 42px; height: 25px; border-radius: 13px; background: #e5e5ea; position: relative; vertical-align: middle; }
.ios-switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ios-switch.an { background: #34c759; }
.ios-switch.an::after { left: 19px; }
.ios-feld { font-size: 12px; color: #8e8e93; border: 1px solid rgba(60, 60, 67, .2); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.ios-card code { font-weight: 700; }
:root[data-theme="dark"] .ios-card { background: #2c2c2e; color: #f2f2f7; }
:root[data-theme="dark"] .ios-row.hint { background: rgba(52, 199, 89, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ios-card { background: #2c2c2e; color: #f2f2f7; } :root:not([data-theme="light"]) .ios-row.hint { background: rgba(52, 199, 89, .14); } }
.kb .ios-card + .tap-list, .kb .ios-card + .infobox { margin-top: 18px; }
.ios-var { display: inline-flex; align-items: center; gap: 4px; background: rgba(10, 132, 255, .14); color: #0a84ff; border-radius: 7px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.tap-list li.wichtig { background: var(--butter-soft); border-radius: 14px; padding: 12px 12px 12px 52px; margin-left: -10px; }
.tap-list li.wichtig::before { left: 12px; top: 12px; background: var(--peach); }
