/* Prise — eine Hand, ein Daumen: Inhalte oben lesen, Aktionen unten in Daumenreichweite. */
:root {
  --bg: #F6F7F3;
  --surface: #FFFFFF;
  --sunk: #ECEEE7;
  --fg: #191C18;
  --muted: #656A61;
  --line: #E0E3DA;
  --accent: #1F7A4D;
  --accent-ink: #FFFFFF;
  --accent-soft: #DFEFE5;
  --danger: #C2412E;

  /* Rezeptfarben: sparsam, nur als Kennung */
  --c0: #E5533D; --c0s: #FBE3DE;   /* Tomate */
  --c1: #DE951F; --c1s: #FAEBD2;   /* Safran */
  --c2: #3A9B5C; --c2s: #DCEFE2;   /* Basilikum */
  --c3: #2E86C9; --c3s: #DAEAF6;   /* Himmel */
  --c4: #B8457A; --c4s: #F5DDE8;   /* Rande */
  --c5: #7A63C9; --c5s: #E6E1F6;   /* Lavendel */

  --f-display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 16px;
  --r-s: 10px;
  --gutter: 18px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111410; --surface: #1A1D19; --sunk: #232722; --fg: #ECEEE8; --muted: #9AA095; --line: #2C312A;
    --accent: #5BC489; --accent-ink: #0C1F14; --accent-soft: #1C3326; --danger: #F07A66;
    --c0: #F07560; --c0s: #3A221D; --c1: #F0B149; --c1s: #372B17; --c2: #5BC489; --c2s: #1C3326;
    --c3: #5BA9E8; --c3s: #182C3C; --c4: #E474A8; --c4s: #37202C; --c5: #A38FEE; --c5s: #272240;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111410; --surface: #1A1D19; --sunk: #232722; --fg: #ECEEE8; --muted: #9AA095; --line: #2C312A;
  --accent: #5BC489; --accent-ink: #0C1F14; --accent-soft: #1C3326; --danger: #F07A66;
  --c0: #F07560; --c0s: #3A221D; --c1: #F0B149; --c1s: #372B17; --c2: #5BC489; --c2s: #1C3326;
  --c3: #5BA9E8; --c3s: #182C3C; --c4: #E474A8; --c4s: #37202C; --c5: #A38FEE; --c5s: #272240;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.i { display: inline-flex; width: 22px; height: 22px; flex: none; }
.i svg { width: 100%; height: 100%; }

/* ---------- View ---------- */
.view {
  min-height: 100%;
  padding: calc(var(--safe-t) + 8px) var(--gutter) calc(var(--tabbar-h) + var(--safe-b) + 28px);
  outline: none;
}
.view.no-tabs { padding-bottom: calc(var(--safe-b) + 110px); }
.view.enter { animation: viewIn .22s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.h1 {
  font: 750 34px/1.05 var(--f-display); letter-spacing: -0.02em; margin: 6px 0 2px;
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.h2 { font: 650 20px/1.2 var(--f-display); letter-spacing: -0.01em; margin: 0; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--fg);
}
.icon-btn:active { background: var(--sunk); }
.icon-btn.float { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 6px rgb(0 0 0 / .12); }
.icon-btn.on { color: var(--c0); }

/* ---------- Bibliothek ---------- */
.search {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 48px;
}
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; font-size: 16px; }
.search .i { color: var(--muted); width: 20px; height: 20px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; 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; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 20px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card:active .thumb { transform: scale(.98); }
.thumb {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r); overflow: hidden; position: relative;
  background: var(--tint-s); transition: transform .15s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb .fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--c0); }
.thumb .fav .i { width: 16px; height: 16px; }
.card-title { font: 650 16px/1.25 var(--f-display); margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: -4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tint); flex: none; }

.empty { text-align: center; padding: 56px 12px; color: var(--muted); }
.empty .h2 { color: var(--fg); margin-bottom: 6px; }
.empty .btn { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .1s var(--ease), background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.dark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn .i { width: 20px; height: 20px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Rezeptansicht ---------- */
.hero {
  margin: calc((var(--safe-t) + 8px) * -1) calc(var(--gutter) * -1) 0;
  aspect-ratio: 4 / 3; max-height: 46vh; width: calc(100% + var(--gutter) * 2); max-width: none;
  position: relative; background: var(--tint-s); overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }

.hero-bar { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--safe-t) + 10px) 12px 0; display: flex; justify-content: space-between; }
.hero-bar .right { display: flex; gap: 8px; }

.r-head { padding-top: 18px; }
.r-title { font: 750 30px/1.08 var(--f-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.r-desc { color: var(--muted); margin: 8px 0 0; max-width: 62ch; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* Skalierung */
.scaler { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 12px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sunk); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; height: 34px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }

@keyframes bump { 50% { transform: scale(1.12); } }

.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.round-btn:active { background: var(--sunk); }
.quick { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quick button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.factor-note { font-size: 13px; color: var(--muted); text-align: center; }
.factor-note b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Zutaten */
.ing-group { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing {
  display: grid; grid-template-columns: 5.6rem 1fr; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line); transition: opacity .15s;
}
.ing .q { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ing .q.changed { color: var(--accent); }
.ing .n { min-width: 0; overflow-wrap: anywhere; }
.ing .note { color: var(--muted); }
.ing.done { opacity: .4; }
.ing.done .n { text-decoration: line-through; }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.step { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; }
.step::before {
  content: counter(s); font: 650 14px/28px var(--f-display); text-align: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--tint-s); color: var(--tint);
}
.step p { margin: 2px 0 0; min-width: 0; overflow-wrap: anywhere; }
.amt { font-weight: 600; color: var(--accent); }
.temp { font-weight: 600; white-space: nowrap; }
.tchip {
  display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 1px 9px 1px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .92em; white-space: nowrap; vertical-align: baseline;
}
.tchip .i { width: 15px; height: 15px; }

.notes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.stars { display: flex; gap: 2px; }
.stars button { border: 0; background: none; padding: 4px; color: var(--line); }
.stars button.on { color: var(--c1); }
.stars .i { width: 28px; height: 28px; }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--gutter) calc(var(--safe-b) + 12px);
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  display: flex; gap: 10px;
}
.actionbar .btn { flex: 1; }

/* ---------- Kochmodus ---------- */
.cook { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--safe-t) + 8px) var(--gutter) calc(var(--safe-b) + 16px); }
.cook-top { display: flex; align-items: center; gap: 8px; }
.progress { flex: 1; height: 4px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--tint); border-radius: 4px; transition: width .25s var(--ease); }
.cook-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.cook-body { flex: 1; overflow-y: auto; padding: 24px 2px 12px; display: flex; flex-direction: column; gap: 22px; }
.cook-step { font: 500 clamp(22px, 6.2vw, 30px)/1.38 var(--f-body); margin: 0; overflow-wrap: anywhere; }
.cook-step.enter { animation: viewIn .2s var(--ease); }
.cook-ings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 14px; }
.cook-ings .ing { grid-template-columns: 5rem 1fr; font-size: 17px; }
.cook-ings .ing:last-child { border-bottom: 0; }
.cook-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.cook-nav .btn { height: 60px; font-size: 17px; }
.cook-done { text-align: center; margin: auto 0; }
.cook-done .h1 { font-size: 40px; }

/* ---------- Timer ---------- */
.timer-dock {
  position: fixed; left: var(--gutter); right: var(--gutter); z-index: 45;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}

.timer {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  background: var(--fg); color: var(--bg); border-radius: 999px; padding: 6px 6px 6px 16px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .18); animation: viewIn .2s var(--ease);
}
.timer .t { font: 650 20px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.timer .l { flex: 1; min-width: 0; font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); display: grid; place-items: center; }
.timer button .i { width: 18px; height: 18px; }
.timer.ring { background: var(--c0); color: #fff; animation: ring 1s infinite; }
.timer.ring button { color: #fff; background: rgb(255 255 255 / .2); }
.timer button.on { background: var(--accent); color: var(--accent-ink); }
.timer.late { background: var(--sunk); color: var(--fg); }
.timer.late button { color: var(--fg); background: var(--line); }
@keyframes ring { 50% { transform: scale(1.02); } }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; padding: 6px 0; }
.tab[aria-current="page"] { color: var(--fg); }

.badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c0); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
body.hide-tabs .tabbar { display: none; }
body.hide-tabs .timer-dock { bottom: calc(var(--safe-b) + 92px); }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field small { color: var(--muted); font-size: 12.5px; }
.input, .textarea, .select {
  width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.form { display: grid; gap: 18px; margin-top: 12px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; align-items: end; }
.photo-edit { display: flex; gap: 12px; align-items: center; }
.photo-edit .thumb { width: 84px; aspect-ratio: 1; flex: none; }

/* ---------- Import ---------- */
.import-opts { display: grid; gap: 12px; margin-top: 18px; }
.opt {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; width: 100%;
  transition: transform .1s var(--ease);
}
.opt:active { transform: scale(.985); }
.opt .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-s); color: var(--tint); }
.opt .ic .i { width: 26px; height: 26px; }
.opt b { font: 650 17px/1.2 var(--f-display); display: block; }
.opt small { color: var(--muted); font-size: 13.5px; }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 2px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .18s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.callout { background: var(--accent-soft); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
.callout.warn { background: var(--c1s); }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin: 0; }
.busy { display: grid; place-items: center; gap: 14px; padding: 60px 0; text-align: center; }
.loader { display: flex; gap: 8px; }
.loader i { width: 12px; height: 12px; border-radius: 50%; animation: pinch 1s infinite var(--ease); }
.loader i { background: var(--accent); }
.loader i:nth-child(2) { animation-delay: .12s; }
.loader i:nth-child(3) { animation-delay: .24s; }
@keyframes pinch { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-10px); opacity: 1; } }
.previews { display: flex; gap: 8px; overflow-x: auto; }
.previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.result-list { display: grid; gap: 8px; margin-top: 12px; }
.result-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; }
.result-list .err { color: var(--danger); font-size: 14px; padding: 8px 2px; }

/* ---------- Einkauf ---------- */
.add-row { display: flex; gap: 8px; margin-top: 14px; }
.add-row .input { border-radius: 999px; padding-left: 18px; }
.add-row .round-btn { flex: none; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.shop-list { list-style: none; padding: 0; margin: 8px 0 0; }
.shop-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shop-item .from { display: block; font-size: 12.5px; color: var(--muted); }
.shop-item .q { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.shop-item .nm { min-width: 0; overflow-wrap: anywhere; }
.check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: transparent; display: grid; place-items: center; padding: 0; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.check .i { width: 16px; height: 16px; }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.shop-item.done .nm { text-decoration: line-through; color: var(--muted); }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Einstellungen ---------- */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 14px; margin-top: 16px; }
.group .h2 { font-size: 17px; }
.key-row { display: flex; gap: 8px; }
.key-row .input { flex: 1; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.fine a { color: var(--accent); }

/* ---------- Sheet & Toast ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .38); animation: fade .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px var(--gutter) calc(var(--safe-b) + 20px);
  animation: up .26s var(--ease);
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet .h2 { margin-bottom: 6px; }
.sheet-actions { display: grid; gap: 10px; margin-top: 18px; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 70;
  top: calc(var(--safe-t) + 14px);
  background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  max-width: calc(100% - 2 * var(--gutter)); text-align: center; animation: toastIn .2s var(--ease);
  box-shadow: 0 6px 20px rgb(0 0 0 / .18);
}

/* Farben je Rezept */
.t0 { --tint: var(--accent); --tint-s: var(--accent-soft); }
.t1 { --tint: var(--accent); --tint-s: var(--accent-soft); }
.t2 { --tint: var(--accent); --tint-s: var(--accent-soft); }
.t3 { --tint: var(--accent); --tint-s: var(--accent-soft); }
.t4 { --tint: var(--accent); --tint-s: var(--accent-soft); }
.t5 { --tint: var(--accent); --tint-s: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Ernährung & Varianten ---------- */
.diet { display: grid; gap: 8px; margin-top: 16px; }
.diet .seg button { text-transform: none; }
.diet .seg button[disabled] { opacity: .55; }
.diet .fine { margin: 0; }
.busy-chip { display: grid; place-items: center; }

/* geänderte Zutaten nach dem Wechsel kurz hervorheben: Text in Akzentfarbe + feiner Strich links */
.ing.flash .q, .ing.flash .n { animation: ingText 2.6s ease-out; }
.ing.flash .tick { animation: tickFlash 2.6s ease-out; }
@keyframes ingText { 0%, 45% { color: var(--accent); } 100% { color: inherit; } }
@keyframes ingBar { 0%, 45% { box-shadow: inset 3px 0 0 var(--accent); } 100% { box-shadow: inset 3px 0 0 transparent; } }

/* ---------- Backform ---------- */
.pan-block { display: grid; gap: 8px; justify-items: start; }
.pan-block .lbl { font-size: 13px; color: var(--muted); }
.pan-fixed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg-sm { display: inline-grid; padding: 3px; }
.seg-sm button { height: 30px; padding: 0 14px; font-size: 13.5px; }
.pan-dims { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.pan-dims .input { width: 76px; padding: 9px 10px; text-align: center; color: var(--fg); }
.scaler .pan-block + .pan-block { padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }

/* ---------- Video ---------- */
.video-card {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px;
}
.video-card .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.video-card .ic .i { width: 18px; height: 18px; }
.video-card b { display: block; font-weight: 600; }
.video-card small { color: var(--muted); font-size: 13px; }
.video-frame { margin-top: 16px; border-radius: var(--r); overflow: hidden; background: #000; max-width: 100%; }
.video-frame iframe { display: block; width: 100%; border: 0; }
.video-frame.tall iframe { aspect-ratio: 9 / 16; max-height: 78vh; }
.video-frame.wide iframe { aspect-ratio: 16 / 9; }
.video-frame.insta iframe { height: min(78vh, 720px); background: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split .btn { padding: 0 10px; }

/* ---------- Löschkreuz ---------- */
.clear-wrap { position: relative; display: block; min-width: 0; flex: 1; }
.clear-wrap > .input { padding-right: 40px; }
.clear-wrap.is-area > .textarea { padding-right: 40px; }
.clear-x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: transparent; color: var(--muted);
}
.clear-x .i { width: 16px; height: 16px; }
.clear-x:active { background: var(--sunk); }
.clear-wrap.is-area .clear-x { top: 8px; transform: none; }
.search .clear-wrap { align-self: stretch; display: flex; }
.search .clear-wrap input { padding-right: 34px; }
.search .clear-x { right: -8px; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Impressum ---------- */

/* ---------- Live-Vorschau beim Lesen ---------- */
.live { width: 100%; max-width: 360px; text-align: center; display: grid; gap: 10px; animation: viewIn .25s var(--ease); }
.live-title { font: 650 20px/1.2 var(--f-display); margin: 0; text-wrap: balance; }
.live-ings { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.live-ings span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); animation: viewIn .2s var(--ease); }
.live .fine { margin: 0; }

/* ---------- Kategorie-Icons statt Buchstaben ---------- */
.cat-ico { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.cat-ico svg { width: 38%; height: 38%; }
.thumb img, .hero img { position: relative; z-index: 1; }
.hero .cat-ico svg { width: 22%; height: 22%; }
.card-meta { gap: 0; }
.hero-bar { z-index: 2; }

/* ---------- Sortierung, Quelle, Nochmals versuchen ---------- */

.sort-list { display: grid; margin-top: 6px; }
.sort-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 15px 2px; font-size: 16px; text-align: left; }
.sort-opt:last-child { border-bottom: 0; }
.sort-opt .i { color: var(--accent); visibility: hidden; }
.sort-opt[aria-pressed="true"] { font-weight: 600; }
.sort-opt[aria-pressed="true"] .i { visibility: visible; }
.src-row { display: grid; grid-template-columns: 1fr 108px; gap: 8px; }
.src-chips { margin-top: 2px; }
.src-chips .chip { padding: 5px 12px; font-size: 13px; }
.retry-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--danger); }
.retry-row .btn { color: var(--fg); }

/* ---------- Einkauf nach Abteilung ---------- */
.aisle { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 20px 0 0; }
.aisle + .shop-list { margin-top: 2px; }

.err-detail { font-size: 12px; color: var(--muted); word-break: break-word; margin-top: 6px; }

/* ---------- v08: Rezeptkopf, Infos, Portionen, Abhaken ---------- */
.hero.compact { aspect-ratio: auto; height: calc(var(--safe-t) + 64px); max-height: none; background: transparent; }
.hero.compact .icon-btn.float { box-shadow: none; background: var(--sunk); }
.hero.compact + .r-head { padding-top: 6px; }
.facts-line {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 4px 6px 0;
  border: 0; background: none; color: var(--muted); font-size: 14px; text-align: left;
}
.facts-line .i { width: 17px; height: 17px; }
.facts-line .chev { display: inline-flex; transition: transform .2s var(--ease); }
.facts-line[aria-expanded="true"] .chev { transform: rotate(180deg); }
.facts-line[disabled] { cursor: default; }
.facts-more { display: grid; gap: 6px; margin: 2px 0 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--sunk); font-size: 14px; color: var(--muted); animation: viewIn .18s var(--ease); }
.facts-more p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.facts-more .i { width: 16px; height: 16px; margin-top: 2px; }
.facts-more a { color: var(--fg); text-underline-offset: 3px; }
.portion { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.portion-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--fg); }
.portion-btn:active { background: var(--sunk); }
.portion-btn .i { width: 18px; height: 18px; }
.portion-label { border: 0; background: none; font-size: 14px; font-weight: 600; padding: 0 6px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.portion-label .num { font-variant-numeric: tabular-nums; display: inline-block; }
.portion-label .num.bump { animation: bump .2s var(--ease); }
.portion-label .i { width: 15px; height: 15px; color: var(--muted); }
.scaler { margin-bottom: 6px; animation: viewIn .18s var(--ease); }
#fNote { text-align: left; margin: 0 0 4px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; }
.ing { grid-template-columns: 22px 5rem 1fr; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; align-self: center; transition: background .15s, border-color .15s; }
.tick .i { width: 13px; height: 13px; }
.ing.done .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ing.done { opacity: .5; }
.cook-ings .ing { grid-template-columns: 5rem 1fr; }

/* ---------- v08: Editor ---------- */
.yield-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.total-line { margin: -8px 0 0; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-head > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ie-list { display: grid; gap: 6px; }
.ie-row {
  display: grid; grid-template-columns: 26px 64px 64px minmax(0, 1fr) 32px; gap: 6px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px 4px 4px 2px;
  transition: box-shadow .15s, transform .15s;
}
.ie-row.group { grid-template-columns: 26px minmax(0, 1fr) 32px; background: var(--sunk); }
.ie-row.dragging { box-shadow: 0 8px 24px rgb(0 0 0 / .18); transform: scale(1.02); position: relative; z-index: 2; }
.ie-drag { display: grid; place-items: center; height: 38px; color: var(--muted); touch-action: none; cursor: grab; }
.ie-drag .i { width: 18px; height: 18px; }
.ie { min-width: 0; width: 100%; border: 0; background: transparent; padding: 9px 6px; font-size: 15.5px; outline: none; border-radius: 6px; }
.ie:focus { background: var(--sunk); }
.ie-q { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ie-g { font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ie-del { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ie-del .i { width: 16px; height: 16px; }
.ie-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

/* ---------- v08: Toast mit Aktion, Sicherung, Einkauf ---------- */
.toast { display: flex; align-items: center; gap: 14px; }
.toast.has-act { padding-right: 8px; }
.toast-act { border: 0; background: none; color: inherit; font-weight: 700; padding: 6px 10px; border-radius: 999px; text-decoration: underline; text-underline-offset: 3px; }
.top-actions { display: flex; gap: 2px; }
.icon-btn.due { position: relative; color: var(--accent); }
.icon-btn.due::after { content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.backup-note {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px;
  padding: 8px 6px 8px 12px; border-radius: var(--r-s); background: var(--accent-soft); font-size: 14px;
}
.backup-note > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.backup-note .i { color: var(--accent); width: 20px; height: 20px; }
.bn-act { display: flex; align-items: center; gap: 2px; flex: none; }
.bn-act .icon-btn { width: 36px; height: 36px; }
.bn-act .icon-btn .i { width: 16px; height: 16px; color: var(--muted); }
.shop-item { touch-action: pan-y; background: var(--bg); position: relative; }

/* ---------- v08: Timer & Hinweise in Grün statt Schwarz/Weiss ---------- */
:root { --pill-bg: var(--accent); --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .18); --pill-line: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --pill-bg: #1D3628; --pill-fg: #DCEDE2; --pill-num: #6FD29A; --pill-btn: rgb(255 255 255 / .07); --pill-line: #2C5440; }
}
:root[data-theme="dark"] { --pill-bg: #1D3628; --pill-fg: #DCEDE2; --pill-num: #6FD29A; --pill-btn: rgb(255 255 255 / .07); --pill-line: #2C5440; }
.timer { background: var(--pill-bg); color: var(--pill-fg); border: 1px solid var(--pill-line); }
.timer .t { color: var(--pill-num); }
.timer .l { opacity: .8; }
.timer button { background: var(--pill-btn); color: var(--pill-fg); }
.timer.ring { border-color: transparent; }
.timer.ring .t { color: #fff; }
.toast { background: var(--pill-bg); color: var(--pill-fg); border: 1px solid var(--pill-line); }
.timer-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- v08: Einstellungen ---------- */
.adv { border-top: 1px solid var(--line); padding-top: 4px; }
.adv summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.adv summary::-webkit-details-marker { display: none; }
.adv summary .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.adv[open] summary .i { transform: rotate(180deg); }
.adv-body { display: grid; gap: 12px; padding-bottom: 4px; }
.about { display: grid; justify-items: center; gap: 3px; margin: 32px 0 8px; text-align: center; }
.about-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.about-icon svg { width: 32px; height: 32px; }
.about-name { font: 750 24px/1.1 var(--f-display); letter-spacing: -0.01em; }
.about-ver { font-size: 12px; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }
.about-by { font-size: 12px; color: var(--muted); }

.ie-row { grid-template-columns: 26px 58px 70px minmax(0, 1fr) 32px; }
.ie-u::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
.ie-u { padding-left: 4px; padding-right: 4px; }

/* =========================================================
   v08.2 – Schwebende Leisten mit Blur
   Blur nur hinter der Leiste; darüber nur kurz während des Scrollens.
   ========================================================= */
:root { --bar-gap: 12px; --bar-h: 64px; --bar-zone: calc(var(--safe-b) + var(--bar-gap) + var(--bar-h) + 14px); }
@keyframes tickFlash { 0%, 45% { border-color: var(--accent); } 100% { border-color: var(--line); } }

/* Untere Leiste: schwebende, abgerundete Pille */
.tabbar {
  left: var(--gutter); right: var(--gutter); bottom: calc(var(--safe-b) + var(--bar-gap));
  height: var(--bar-h); padding: 0 6px; border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 8px 28px rgb(0 0 0 / .14);
}
.tab { padding: 4px 0; }

.badge { top: 0; }

/* Platz unten, damit auch der letzte Inhalt über die Leiste gescrollt werden kann */
.view { padding-bottom: calc(var(--bar-zone) + 32px); }
.view.no-tabs { padding-bottom: calc(var(--bar-zone) + 32px); }
.actionbar { padding: 0 var(--gutter); bottom: calc(var(--safe-b) + var(--bar-gap)); background: none; }
.actionbar .btn { height: var(--bar-h); box-shadow: 0 8px 24px rgb(0 0 0 / .14); }
.actionbar .btn:not(.primary) {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.timer-dock, body.hide-tabs .timer-dock { bottom: calc(var(--bar-zone) + 4px); }
.toast { z-index: 70; }

/* Progressiver Blur aus mehreren Stufen – verhindert halb verschmierte Schrift */
.pblur { position: fixed; left: 0; right: 0; pointer-events: none; }
.pblur > i { position: absolute; inset: 0; }
.pblur > i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(transparent 0%, #000 25%, #000 50%, transparent 75%); mask-image: linear-gradient(transparent 0%, #000 25%, #000 50%, transparent 75%); }
.pblur > i:nth-child(2) { -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); -webkit-mask-image: linear-gradient(transparent 25%, #000 50%, #000 75%, transparent 100%); mask-image: linear-gradient(transparent 25%, #000 50%, #000 75%, transparent 100%); }
.pblur > i:nth-child(3) { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(transparent 50%, #000 75%, #000 100%); mask-image: linear-gradient(transparent 50%, #000 75%, #000 100%); }
.pblur > i:nth-child(4) { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(transparent 70%, #000 100%); mask-image: linear-gradient(transparent 70%, #000 100%); }
.pblur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 55%, transparent)); }
/* Immer: nur der Bereich der Leiste */
.pblur.bar { bottom: 0; height: var(--bar-zone); z-index: 15; }
/* Nur beim Scrollen: ein schmaler, sanfter Streifen darüber */

body.cooking .pblur { display: none; }
@media (prefers-reduced-transparency: reduce) { .pblur > i { -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Dunkel: Hauptknöpfe als Grün-Akzent wie der Timer statt hellgrüner Fläche */
:root { --primary-bg: var(--accent); --primary-fg: var(--accent-ink); --primary-line: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --primary-bg: #1D3628; --primary-fg: #6FD29A; --primary-line: #2C5440; }
}
:root[data-theme="dark"] { --primary-bg: #1D3628; --primary-fg: #6FD29A; --primary-line: #2C5440; }
.btn.primary, .add-row .round-btn, .about-icon, .video-card .ic {
  background: var(--primary-bg); color: var(--primary-fg); border: 1px solid var(--primary-line);
}
.about-icon { box-shadow: none; }

/* Abhaken = "habe ich schon" */
.have-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* Läuft ein Timer, braucht es unten mehr Platz, damit nichts dahinter verschwindet */
body.has-timer .view { padding-bottom: calc(var(--bar-zone) + 100px); }

/* =========================================================
   v08.3 – Klare Leiste: Navigation in der Pille, Aktion als runder Knopf
   ========================================================= */
.tabbar {
  display: flex; align-items: center; gap: 10px;
  left: var(--gutter); right: var(--gutter); bottom: calc(var(--safe-b) + var(--bar-gap));
  height: var(--bar-h); padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  grid-template-columns: none;
}

.tab-pill {
  flex: 1; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  border-radius: 999px; padding: 0 4px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  box-shadow: 0 8px 28px rgb(0 0 0 / .16);
}
.tab-pill .tab { height: calc(100% - 10px); margin: 5px 0; border-radius: 999px; justify-content: center; gap: 1px; font-size: 11.5px; transition: background .15s, color .15s; }
.tab-pill .tab .i { width: 21px; height: 21px; }
.tab-pill .tab[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tab-pill .badge { top: 4px; left: calc(50% + 6px); }

/* Knopf-Hierarchie: Hauptaktion breit, Nebenaktion rund */
.actionbar { gap: 10px; }
.actionbar .btn.round {
  flex: none; width: var(--bar-h); padding: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.actionbar .btn.round .i { width: 22px; height: 22px; }
.actionbar .btn.primary { flex: 1; font-size: 16px; }

/* Ein durchgehender, stufenloser Blur nur hinter der Leiste (wie bei Essentials) */
.pblur.bar { height: calc(var(--bar-zone) + 28px); }
.pblur > i:nth-child(1) { -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); }
.pblur > i:nth-child(2) { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.pblur > i:nth-child(3) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pblur > i:nth-child(4) { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pblur::after { background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 70%, transparent) 75%); }

/* Suche mit Favoriten- und Aufwand-Filter daneben */

.filter-btn {
  flex: none; height: 48px; min-width: 48px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600; padding: 0 12px; transition: background .15s, color .15s, border-color .15s;
}
.filter-btn .i { width: 20px; height: 20px; }
.filter-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
#fFav[aria-pressed="true"] { color: var(--c0); border-color: color-mix(in srgb, var(--c0) 60%, transparent); background: color-mix(in srgb, var(--c0) 12%, transparent); }

/* =========================================================
   v08.4 – Grün-Abstufungen auch im Dunkelmodus, + oben, Filter als Icons
   Stufen (dunkel): Grund #111410 · Kachel #1B2C21 · Zart #1E3A2A · Fläche #2A7F51 · Akzent #6FD29A
   ========================================================= */
:root { --tile: var(--accent-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #6FD29A; --accent-soft: #1E3A2A; --tile: #1B2C21;
    --primary-bg: #2A7F51; --primary-fg: #F1FBF4; --primary-line: #2A7F51;
    --pill-bg: #2A7F51; --pill-fg: #EAF7EF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent;
  }
}
:root[data-theme="dark"] {
  --accent: #6FD29A; --accent-soft: #1E3A2A; --tile: #1B2C21;
  --primary-bg: #2A7F51; --primary-fg: #F1FBF4; --primary-line: #2A7F51;
  --pill-bg: #2A7F51; --pill-fg: #EAF7EF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent;
}
.t0, .t1, .t2, .t3, .t4, .t5 { --tint: var(--accent); --tint-s: var(--tile); }
/* Hauptknöpfe: gleiche volle Fläche wie im hellen Modus */
.btn.primary, .add-row .round-btn, .about-icon, .video-card .ic { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-line); }
.timer .t { color: var(--pill-num); }

/* + oben rechts: klein, aber klar als Hauptaktion erkennbar */
.top-actions { align-items: center; gap: 6px; }
.add-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--primary-bg); color: var(--primary-fg); transition: transform .12s var(--ease);
}
.add-btn .i { width: 24px; height: 24px; }
.add-btn:active { transform: scale(.92); }

/* Navigation über die ganze Breite */
.tab-pill { flex: 1; }

/* Filter-Zeile: Icons, dann Tags */

#fFav[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* =========================================================
   v08.5 – Kompakte Pille (nur Icons), Suche immer sichtbar, Einstellungen oben
   ========================================================= */
.tabbar { justify-content: center; }
.tab-pill { flex: 0 1 196px; grid-template-columns: repeat(2, 1fr); }
.tab-pill .tab { gap: 0; }
.tab-pill .tab .i { width: 26px; height: 26px; }
.tab-pill .badge { top: 7px; left: calc(50% + 8px); }
.top-actions { gap: 2px; }
.top-actions .add-btn { margin-left: 6px; }
.sub-top { justify-content: flex-start; gap: 4px; margin-left: -10px; }
.sub-top .h1 { margin: 0; }
.lib-search { margin-top: 14px; }

body.no-bar .pblur { display: none; }

/* =========================================================
   v09.0 – Ordner statt Tags, drei Icons in der Pille, Wischen
   ========================================================= */
.tab-pill { flex: 0 1 252px; grid-template-columns: repeat(3, 1fr); }
/* Herz und Zähler überall grün */
.icon-btn.on, .thumb .fav { color: var(--accent); }
.badge { background: var(--primary-bg); color: var(--primary-fg); }

/* Suche + Filter in einer Zeile */
.lib-tools { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.lib-tools .lib-search { flex: 1; min-width: 0; margin-top: 0; }
.lib-tools .filter-btn { height: 48px; width: 48px; min-width: 48px; padding: 0; }

/* Ordner-Kacheln: Collage aus bis zu vier Rezepten */

.fold-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sub-top .icon-btn:last-child:not(.back-btn) { margin-left: auto; }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; margin-top: 14px; }

/* Ordner-Wahl */

.select-btn {
  width: 100%; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: inherit; font-size: 16px; text-align: left;
}
.select-btn > span:not(.i) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-btn .i { width: 20px; height: 20px; flex: none; }
.select-btn.set { color: var(--fg); }
.select-btn.set > .i:first-child { color: var(--accent); }

/* Häkchen-Liste im Ordner */
.pick-list { display: grid; gap: 2px; margin-top: 8px; }
.pick-opt { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border: 0; background: none; text-align: left; font: inherit; color: var(--fg); }
.pick-thumb { position: relative; width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: var(--tile); }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-thumb .cat-ico svg { width: 55%; height: 55%; }
.pick-txt { flex: 1; min-width: 0; display: grid; }
.pick-txt b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-txt small { color: var(--muted); font-size: 13px; }
.pick-opt .tick { width: 24px; height: 24px; }
.pick-opt[aria-pressed="true"] .tick { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }

/* Wischen zwischen den Hauptansichten */
@keyframes fromRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.view.enter.slide-l { animation: fromRight .24s var(--ease); }
.view.enter.slide-r { animation: fromLeft .24s var(--ease); }
.view.dragging { transition: none; }
.add-btn { border: 0; padding: 0; cursor: pointer; }

/* v09.1 – Namen fett statt in Anführungszeichen */
b.q { font-weight: 650; color: var(--fg); }
.h2 b.q { color: var(--accent); font-weight: inherit; }
.toast b.q { color: inherit; font-weight: 700; }

/* =========================================================
   v09.3
   ========================================================= */
/* Timer ohne Namen: nur die Zeit */
.timer .t { flex: 1; }
.timer .l:empty { display: none; }
.timer .l { flex: none; }
/* Varianten-Laden: Schimmer statt Punkte */
@keyframes txtShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.diet .seg button.busy-chip, .diet .seg button.busy-chip[disabled] {
  opacity: 1; display: inline-block;
  background-image: linear-gradient(100deg, var(--muted) 30%, var(--accent) 50%, var(--muted) 70%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: txtShimmer 1.3s linear infinite;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
}
@keyframes thinkPulse { 50% { opacity: .45; } }
#ings.thinking { animation: thinkPulse 1.6s ease-in-out infinite; pointer-events: none; }
/* Ordner-Kacheln: ein grosses Bild, Name darüber */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (min-width: 700px) { .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fcard {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden;
  background: var(--tile); color: var(--fg); text-decoration: none; transition: transform .15s var(--ease);
  -webkit-touch-callout: none; user-select: none;
}
.fcard:active { transform: scale(.98); }
.fcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard.has-img { color: #fff; }
.fcard.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 42%, rgb(0 0 0 / .62)); }
.fcard.has-img .fc-ico { display: none; }
.fc-ico { position: absolute; inset: 0 0 34px; }
.fc-ico .cat-ico svg, .fc-ico .cat-ico .i { width: 36%; height: 36%; }
.fc-ico .cat-ico .i svg { width: 100%; height: 100%; }
.fc-txt { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; display: grid; gap: 1px; }
.fc-txt b { font: 650 17px/1.15 var(--f-display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-txt small { font-size: 12.5px; opacity: .78; }
.fc-pin { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.fc-pin .i { width: 15px; height: 15px; }

.sub-actions { margin-left: auto; display: flex; gap: 2px; flex: none; }
.pick-thumb.fo { display: grid; place-items: center; color: var(--accent); }
.pick-thumb.fo .i { width: 22px; height: 22px; }
.pick-opt.go .chev-r { color: var(--muted); transform: rotate(180deg); display: grid; }
.pick-opt.go .chev-r .i { width: 18px; height: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 40vh; overflow-y: auto; }
.cv-opt { aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--tile); position: relative; }
.cv-opt img { width: 100%; height: 100%; object-fit: cover; }
.cv-opt[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: -3px; }
/* Wischen: flüssiger, die neue Ansicht kommt von der Seite */
.view { touch-action: pan-y pinch-zoom; will-change: auto; }
@keyframes fromRight { from { opacity: 0; transform: translate3d(22%,0,0); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translate3d(-22%,0,0); } to { opacity: 1; transform: none; } }
.view.enter.slide-l { animation: fromRight .26s cubic-bezier(.2,.8,.2,1); }
.view.enter.slide-r { animation: fromLeft .26s cubic-bezier(.2,.8,.2,1); }

/* =========================================================
   v10.3 – Akzentfarben: Standard, Pastell, Kräftig – je vier Abstufungen wie Basilikum
   ========================================================= */
:root[data-accent="monochrom"] { --accent: #1B1D1B; --accent-ink: #FFFFFF; --accent-soft: #ECEDEA; --tile: #E3E4E1; --primary-bg: #1B1D1B; --primary-fg: #FFFFFF; --primary-line: #1B1D1B; --pill-bg: #1B1D1B; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .18); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="monochrom"]:not([data-theme="light"]) { --accent: #E4E5E2; --accent-ink: #101210; --accent-soft: #2B2D2A; --tile: #222421; --primary-bg: #C9CBC7; --primary-fg: #111311; --primary-line: #C9CBC7; --pill-bg: #C9CBC7; --pill-fg: #111311; --pill-num: #111311; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; } }
:root[data-accent="monochrom"][data-theme="dark"] { --accent: #E4E5E2; --accent-ink: #101210; --accent-soft: #2B2D2A; --tile: #222421; --primary-bg: #C9CBC7; --primary-fg: #111311; --primary-line: #C9CBC7; --pill-bg: #C9CBC7; --pill-fg: #111311; --pill-num: #111311; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
:root[data-accent="salbei"] { --accent: #3F6B52; --accent-ink: #FFFFFF; --accent-soft: #E8F1EB; --tile: #DCEBE1; --primary-bg: #A9D3B7; --primary-fg: #173324; --primary-line: #A9D3B7; --pill-bg: #A9D3B7; --pill-fg: #173324; --pill-num: #173324; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="salbei"]:not([data-theme="light"]) { --accent: #B5DCC2; --accent-ink: #101210; --accent-soft: #22322A; --tile: #1C2621; --primary-bg: #6FA285; --primary-fg: #0E1D14; --primary-line: #6FA285; --pill-bg: #6FA285; --pill-fg: #0E1D14; --pill-num: #0E1D14; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; } }
:root[data-accent="salbei"][data-theme="dark"] { --accent: #B5DCC2; --accent-ink: #101210; --accent-soft: #22322A; --tile: #1C2621; --primary-bg: #6FA285; --primary-fg: #0E1D14; --primary-line: #6FA285; --pill-bg: #6FA285; --pill-fg: #0E1D14; --pill-num: #0E1D14; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
:root[data-accent="himmel"] { --accent: #2F5F8A; --accent-ink: #FFFFFF; --accent-soft: #E7F0F9; --tile: #DAE8F5; --primary-bg: #A8CBEB; --primary-fg: #14304A; --primary-line: #A8CBEB; --pill-bg: #A8CBEB; --pill-fg: #14304A; --pill-num: #14304A; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="himmel"]:not([data-theme="light"]) { --accent: #B3D3F0; --accent-ink: #101210; --accent-soft: #1F2D3B; --tile: #1A232D; --primary-bg: #6C9CCB; --primary-fg: #0B1A2A; --primary-line: #6C9CCB; --pill-bg: #6C9CCB; --pill-fg: #0B1A2A; --pill-num: #0B1A2A; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; } }
:root[data-accent="himmel"][data-theme="dark"] { --accent: #B3D3F0; --accent-ink: #101210; --accent-soft: #1F2D3B; --tile: #1A232D; --primary-bg: #6C9CCB; --primary-fg: #0B1A2A; --primary-line: #6C9CCB; --pill-bg: #6C9CCB; --pill-fg: #0B1A2A; --pill-num: #0B1A2A; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
:root[data-accent="flieder"] { --accent: #5F4A8E; --accent-ink: #FFFFFF; --accent-soft: #F0EBF9; --tile: #E5DDF5; --primary-bg: #C9B8EC; --primary-fg: #2B1F4B; --primary-line: #C9B8EC; --pill-bg: #C9B8EC; --pill-fg: #2B1F4B; --pill-num: #2B1F4B; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="flieder"]:not([data-theme="light"]) { --accent: #D3C6F3; --accent-ink: #101210; --accent-soft: #2B2540; --tile: #221E30; --primary-bg: #9C88CF; --primary-fg: #160F2B; --primary-line: #9C88CF; --pill-bg: #9C88CF; --pill-fg: #160F2B; --pill-num: #160F2B; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; } }
:root[data-accent="flieder"][data-theme="dark"] { --accent: #D3C6F3; --accent-ink: #101210; --accent-soft: #2B2540; --tile: #221E30; --primary-bg: #9C88CF; --primary-fg: #160F2B; --primary-line: #9C88CF; --pill-bg: #9C88CF; --pill-fg: #160F2B; --pill-num: #160F2B; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
:root[data-accent="rose"] { --accent: #8E3F62; --accent-ink: #FFFFFF; --accent-soft: #FAEBF1; --tile: #F4DCE6; --primary-bg: #F0B8CE; --primary-fg: #45172C; --primary-line: #F0B8CE; --pill-bg: #F0B8CE; --pill-fg: #45172C; --pill-num: #45172C; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="rose"]:not([data-theme="light"]) { --accent: #F5C3D6; --accent-ink: #101210; --accent-soft: #3A2430; --tile: #2C1D25; --primary-bg: #CF7FA0; --primary-fg: #2A0E1A; --primary-line: #CF7FA0; --pill-bg: #CF7FA0; --pill-fg: #2A0E1A; --pill-num: #2A0E1A; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; } }
:root[data-accent="rose"][data-theme="dark"] { --accent: #F5C3D6; --accent-ink: #101210; --accent-soft: #3A2430; --tile: #2C1D25; --primary-bg: #CF7FA0; --primary-fg: #2A0E1A; --primary-line: #CF7FA0; --pill-bg: #CF7FA0; --pill-fg: #2A0E1A; --pill-num: #2A0E1A; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
:root[data-accent="pfirsich"] { --accent: #8F4B2C; --accent-ink: #FFFFFF; --accent-soft: #FCEEE6; --tile: #F8E0D3; --primary-bg: #F6C1A4; --primary-fg: #472212; --primary-line: #F6C1A4; --pill-bg: #F6C1A4; --pill-fg: #472212; --pill-num: #472212; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="pfirsich"]:not([data-theme="light"]) { --accent: #F8CDB5; --accent-ink: #101210; --accent-soft: #3A2A22; --tile: #2C211C; --primary-bg: #D99673; --primary-fg: #2A1408; --primary-line: #D99673; --pill-bg: #D99673; --pill-fg: #2A1408; --pill-num: #2A1408; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; } }
:root[data-accent="pfirsich"][data-theme="dark"] { --accent: #F8CDB5; --accent-ink: #101210; --accent-soft: #3A2A22; --tile: #2C211C; --primary-bg: #D99673; --primary-fg: #2A1408; --primary-line: #D99673; --pill-bg: #D99673; --pill-fg: #2A1408; --pill-num: #2A1408; --pill-btn: rgb(0 0 0 / .1); --pill-line: transparent; }
:root[data-accent="kobalt"] { --accent: #1F55E6; --accent-ink: #FFFFFF; --accent-soft: #E4EAFE; --tile: #DCE4FF; --primary-bg: #1F55E6; --primary-fg: #FFFFFF; --primary-line: #1F55E6; --pill-bg: #1F55E6; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .18); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="kobalt"]:not([data-theme="light"]) { --accent: #86A6FF; --accent-ink: #101210; --accent-soft: #1A2347; --tile: #161D36; --primary-bg: #2F5FF0; --primary-fg: #FFFFFF; --primary-line: #2F5FF0; --pill-bg: #2F5FF0; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; } }
:root[data-accent="kobalt"][data-theme="dark"] { --accent: #86A6FF; --accent-ink: #101210; --accent-soft: #1A2347; --tile: #161D36; --primary-bg: #2F5FF0; --primary-fg: #FFFFFF; --primary-line: #2F5FF0; --pill-bg: #2F5FF0; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; }
:root[data-accent="lagune"] { --accent: #007C88; --accent-ink: #FFFFFF; --accent-soft: #D8F2F4; --tile: #CBEEF1; --primary-bg: #007C88; --primary-fg: #FFFFFF; --primary-line: #007C88; --pill-bg: #007C88; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .18); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="lagune"]:not([data-theme="light"]) { --accent: #3DD3E0; --accent-ink: #101210; --accent-soft: #0F3337; --tile: #0D2629; --primary-bg: #008C99; --primary-fg: #FFFFFF; --primary-line: #008C99; --pill-bg: #008C99; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; } }
:root[data-accent="lagune"][data-theme="dark"] { --accent: #3DD3E0; --accent-ink: #101210; --accent-soft: #0F3337; --tile: #0D2629; --primary-bg: #008C99; --primary-fg: #FFFFFF; --primary-line: #008C99; --pill-bg: #008C99; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; }
:root[data-accent="fuchsia"] { --accent: #BE1677; --accent-ink: #FFFFFF; --accent-soft: #FBE2EF; --tile: #F8D6E9; --primary-bg: #BE1677; --primary-fg: #FFFFFF; --primary-line: #BE1677; --pill-bg: #BE1677; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .18); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="fuchsia"]:not([data-theme="light"]) { --accent: #FF7DC3; --accent-ink: #101210; --accent-soft: #401530; --tile: #2F1224; --primary-bg: #CC1E82; --primary-fg: #FFFFFF; --primary-line: #CC1E82; --pill-bg: #CC1E82; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; } }
:root[data-accent="fuchsia"][data-theme="dark"] { --accent: #FF7DC3; --accent-ink: #101210; --accent-soft: #401530; --tile: #2F1224; --primary-bg: #CC1E82; --primary-fg: #FFFFFF; --primary-line: #CC1E82; --pill-bg: #CC1E82; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; }
:root[data-accent="mandarine"] { --accent: #C4420B; --accent-ink: #FFFFFF; --accent-soft: #FFE8DC; --tile: #FFDCCB; --primary-bg: #C4420B; --primary-fg: #FFFFFF; --primary-line: #C4420B; --pill-bg: #C4420B; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .18); --pill-line: transparent; }
@media (prefers-color-scheme: dark) { :root[data-accent="mandarine"]:not([data-theme="light"]) { --accent: #FF9C5E; --accent-ink: #101210; --accent-soft: #42220F; --tile: #321A0D; --primary-bg: #D3510F; --primary-fg: #FFFFFF; --primary-line: #D3510F; --pill-bg: #D3510F; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; } }
:root[data-accent="mandarine"][data-theme="dark"] { --accent: #FF9C5E; --accent-ink: #101210; --accent-soft: #42220F; --tile: #321A0D; --primary-bg: #D3510F; --primary-fg: #FFFFFF; --primary-line: #D3510F; --pill-bg: #D3510F; --pill-fg: #FFFFFF; --pill-num: #FFFFFF; --pill-btn: rgb(255 255 255 / .14); --pill-line: transparent; }
/* Farbmuster: zeigen die Farbe im aktuellen Modus */
.swatch-group { margin-top: 14px; }
.swatch-group .eyebrow { font-size: 11px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 4px; margin-top: 8px; }
.swatch { display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--muted); min-width: 0; }
.swatch .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--sw); display: grid; place-items: center; color: var(--swi);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 3px transparent; transition: box-shadow .2s var(--ease), transform .15s var(--ease); }
.swatch .dot .i { width: 19px; height: 19px; opacity: 0; transition: opacity .15s; }
.swatch[aria-pressed="true"] { color: var(--fg); font-weight: 600; }
.swatch[aria-pressed="true"] .dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--sw); }
.swatch[aria-pressed="true"] .dot .i { opacity: 1; }
.swatch:active .dot { transform: scale(.92); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch .dot { background: var(--swd); color: var(--swdi); }
  :root:not([data-theme="light"]) .swatch[aria-pressed="true"] .dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--swd); }
}
:root[data-theme="dark"] .swatch .dot { background: var(--swd); color: var(--swdi); }
:root[data-theme="dark"] .swatch[aria-pressed="true"] .dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--swd); }

/* v10.2 – Timer: klare Rollen statt zwei gleicher Kreise */
.timer { gap: 8px; padding-left: 6px; }
.timer .t { flex: 1; min-width: 0; }
.timer .t-pp { width: 40px; height: 40px; }
.timer .t-pp .i { width: 18px; height: 18px; }

.timer .t-add { width: auto; height: 36px; padding: 0 14px; border-radius: 999px; font: 650 14px/1 var(--f-body); letter-spacing: .01em; }
.timer .t-stop { background: transparent !important; width: 36px; }
.timer .t-stop .i { width: 20px; height: 20px; }
.timer.paused .t { opacity: .6; }
.timer.ring .t, .timer.late .t { font-size: 17px; }

/* v10.3 – Rot nur noch fürs Löschen */
.result-list .err, .retry-row { color: var(--fg); }
.retry-row::before { content: ""; }

/* v10.3 – Abgelaufener Timer wandert in die Mitte */
.timer-alarm { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; padding: 24px; }
.timer-alarm[hidden] { display: none; }
.alarm-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .3s; }
.alarm-card {
  position: relative; display: grid; justify-items: center; gap: 22px; padding: 30px 26px 26px; min-width: min(320px, 100%);
  border-radius: 32px; background: var(--pill-bg); color: var(--pill-fg); box-shadow: 0 24px 60px rgb(0 0 0 / .28);
  animation: toCenter .55s cubic-bezier(.2,.9,.25,1.05) both, alarmPulse 1.6s ease-in-out .6s infinite;
}
.alarm-card + .alarm-card { margin-top: 12px; }
@keyframes toCenter { from { transform: translateY(42vh) scale(.55); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes alarmPulse { 50% { transform: scale(1.025); } }
.a-time { font: 750 72px/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--pill-num); }
.a-row { display: flex; align-items: center; gap: 14px; }
.a-stop { width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--pill-fg); color: var(--pill-bg); box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.a-stop .i { width: 34px; height: 34px; }
.a-stop:active { transform: scale(.94); }
.alarm-card .t-mute.big, .alarm-card .a-add { height: 52px; border: 0; border-radius: 999px; background: var(--pill-btn); color: var(--pill-fg); display: grid; place-items: center; }
.alarm-card .t-mute.big { width: 52px; }
.alarm-card .t-mute.big .i { width: 22px; height: 22px; }
.alarm-card .a-add { padding: 0 18px; font: 650 15px/1 var(--f-body); }
body.alarm-on { overflow: hidden; }
/* Ton-Knopf im laufenden Timer */
.timer .t-mute { width: 36px; height: 36px; background: transparent !important; opacity: .85; }
.timer .t-mute .i { width: 19px; height: 19px; }
.timer .t-mute.off { opacity: .55; }
/* Timer-Ton in den Einstellungen */
.sound-box { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.sound-row { display: flex; align-items: center; gap: 12px; }
.sound-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.sound-ic .i { width: 20px; height: 20px; }
.sound-txt { flex: 1; min-width: 0; display: grid; }
.sound-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sound-txt small { color: var(--muted); font-size: 12.5px; }
.sound-acts { display: flex; gap: 8px; flex-wrap: wrap; }
#sndRec.rec { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
@keyframes recDot { 50% { opacity: .35; } }
#sndRec.rec .i { animation: recDot 1s infinite; }

/* =========================================================
   v11.0
   ========================================================= */
/* Startbild in Theme und Akzentfarbe */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 2px;
  background: var(--primary-bg); color: var(--primary-fg); transition: opacity .4s ease, transform .4s ease; }
.splash svg { width: 92px; height: 92px; margin-bottom: 10px; animation: splashIn .5s cubic-bezier(.2,.9,.3,1.2) both; }
.splash b { font: 750 34px/1 var(--f-display); letter-spacing: -0.02em; animation: splashIn .5s .06s cubic-bezier(.2,.9,.3,1.2) both; }
.splash small { font-size: 15px; opacity: .75; animation: splashIn .5s .1s ease both; }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
@keyframes splashIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
/* Kopf-Icons: Wolke und Zahnrad gleich gross, kleiner als das + */
.top-actions .icon-btn .i { width: 22px; height: 22px; }
.top-actions .add-btn { width: 46px; height: 46px; }
.top-actions .add-btn .i { width: 25px; height: 25px; }
.pick-thumb.fo img { width: 100%; height: 100%; object-fit: cover; }
.hero-bar .right { gap: 8px; }
/* Timer: Zeit antippen = gross; Reihenfolge +1 Min · Ton · × */
.timer button.t { border: 0; background: none; color: inherit; padding: 0; text-align: left; font: 650 20px/1 var(--f-display); font-variant-numeric: tabular-nums; height: 40px; width: auto; border-radius: 0; display: flex; align-items: center; }
.timer button.t { color: var(--pill-num); }
.alarm-card:not(.is-ring) { animation: toCenter .45s cubic-bezier(.2,.9,.25,1.05) both; }
.alarm-card.still { animation: none !important; }
.alarm-card.is-ring.still { animation: alarmPulse 1.6s ease-in-out infinite !important; }
.alarm-card.paused .a-time { opacity: .6; }
.a-pp { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--pill-btn); color: var(--pill-fg); height: 36px; padding: 0 16px 0 12px; border-radius: 999px; font: 600 14px/1 var(--f-body); margin-top: -8px; }
.a-pp .i { width: 16px; height: 16px; }
.timer-alarm:not(.ringing) .alarm-backdrop { cursor: pointer; }
.diet[hidden], .range-box[hidden], .diet-tabs[hidden] { display: none !important; }
/* Daten auf einen Blick */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--tile); border-radius: 14px; padding: 12px 10px; display: grid; gap: 2px; min-width: 0; }
.stat b { font: 700 19px/1.1 var(--f-display); color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { font-size: 12.5px; color: var(--muted); }
/* Schieberegler mit Zähler */
.range-box { display: grid; gap: 8px; padding: 12px 14px 10px; background: var(--tile); border-radius: 16px; }
.range-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.range-num { font: 750 30px/1 var(--f-display); color: var(--accent); min-width: 1.4ch; text-align: center; font-variant-numeric: tabular-nums; display: inline-block; }
.range-num.pop { animation: numPop .22s var(--ease); }
@keyframes numPop { 40% { transform: scale(1.18); } }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--primary-bg) var(--p), color-mix(in srgb, var(--fg) 12%, transparent) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 12%, transparent); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--primary-bg); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgb(0 0 0 / .22); transition: transform .12s; }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgb(0 0 0 / .22); }
.range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 6px; }
/* Ernährungs-Reiter */
.diet-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.dtab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 14px/1 var(--f-body); }
.dtab .i { width: 16px; height: 16px; opacity: 0; transition: opacity .15s; }
.dtab[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.dtab[aria-pressed="true"] .i { opacity: 1; }
.dtab[disabled] { opacity: .75; }
/* Links: Release Notes, Tour */
.group.links { padding: 4px 0; gap: 0; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: none; width: 100%; text-align: left; font: inherit; font-size: 15.5px; color: var(--fg); text-decoration: none; }
.link-row + .link-row { border-top: 1px solid var(--line); }
.link-row > .i { color: var(--accent); width: 20px; height: 20px; }
.link-row > span:not(.chev-r):not(.i) { flex: 1; }
.link-row .chev-r { transform: rotate(180deg); color: var(--muted); display: grid; }
.link-row .chev-r .i { width: 18px; height: 18px; }
/* Release Notes */
.rn-list { display: grid; gap: 12px; margin-top: 14px; }
.rn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.rn.cur { border-color: transparent; background: var(--tile); }
.rn-head { display: flex; align-items: center; gap: 8px; }
.rn-head b { font: 700 18px/1 var(--f-display); }
.rn-badge { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--primary-bg); color: var(--primary-fg); }
.rn ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; }
.rn li::marker { color: var(--accent); }
/* Willkommen */
.welcome { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--safe-t) + 14px) var(--gutter) calc(var(--safe-b) + 18px); overflow-y: auto; animation: fade .3s; }
.welcome.out { opacity: 0; transition: opacity .3s; }
body.welcome-on { overflow: hidden; }
.w-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.w-dots { display: flex; gap: 6px; }
.w-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .25s var(--ease), background .25s; }
.w-dots i.on { width: 22px; background: var(--primary-bg); }
.w-skip { border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--f-body); padding: 10px 4px; }
.w-body { align-self: center; display: grid; gap: 12px; padding: 18px 0; max-width: 520px; width: 100%; justify-self: center; }
.w-body.fwd { animation: fromRight .32s cubic-bezier(.2,.8,.2,1); }
.w-body.bwd { animation: fromLeft .32s cubic-bezier(.2,.8,.2,1); }
.w-hero { display: grid; justify-items: center; text-align: center; gap: 10px; margin-bottom: 18px; }
.w-logo { width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; background: var(--primary-bg); color: var(--primary-fg); box-shadow: 0 16px 40px color-mix(in srgb, var(--primary-bg) 35%, transparent); }
.w-logo svg { width: 64px; height: 64px; }
.w-title { font: 750 32px/1.08 var(--f-display); letter-spacing: -0.02em; margin: 8px 0 0; }
.w-sub { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0; max-width: 32ch; }
.w-sub.left { max-width: none; }
.w-h { font: 750 28px/1.1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 6px; }
.w-feats { display: grid; gap: 10px; }
.w-feat { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--tile); }
.w-feat b { display: block; font-weight: 650; font-size: 16px; }
.w-feat small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.w-ic { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--primary-bg); color: var(--primary-fg); }
.w-ic .i { width: 23px; height: 23px; }
.w-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; }
.w-nav { display: flex; gap: 10px; max-width: 520px; width: 100%; justify-self: center; }
.w-nav .btn.primary { flex: 1; height: 56px; font-size: 16px; }
.w-nav .btn.round { width: 56px; height: 56px; }
.w-nav .btn.round { flex: none; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.w-nav .btn.round .i { width: 22px; height: 22px; }

/* =========================================================
   v12.0
   ========================================================= */
/* Ordner-Zeile im Rezept: jeder Ordner ein Chip */
.fchips { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 2px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; border: 0;
  background: var(--accent-soft); color: var(--accent); font: 600 14px/1 var(--f-body); text-decoration: none; white-space: nowrap; }
.fchip .i { width: 17px; height: 17px; }
.fchip:active { transform: scale(.96); }
.fchip.edit { width: 36px; padding: 0; justify-content: center; background: transparent; border: 1px solid var(--line); color: var(--muted); }
.fchip.add { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
/* Abzeichen: schon vegan / glutenfrei */
.diet-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.dbadge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px 0 7px; border-radius: 999px; background: var(--tile); color: var(--accent); font: 650 12.5px/1 var(--f-body); }
.dbadge .i { width: 13px; height: 13px; }
.diet-badges .linkish { font-size: 13px; margin-left: 4px; }
/* Notizen */
.cnotes { margin-top: 22px; padding: 14px 16px; border-radius: var(--r); background: var(--tile); display: grid; gap: 10px; }
.cn-head { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.cn-head .i { width: 18px; height: 18px; }
.cn-head b { font: 650 15px/1 var(--f-body); }
.cn { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: start; }
.cn p { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.cn small { grid-column: 1; color: var(--muted); font-size: 12px; }
.cn-del { grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.cn-del .i { width: 15px; height: 15px; }
.cook-note { display: grid; gap: 8px; margin-top: 22px; text-align: left; }
.cook-note .btn { justify-self: end; }
.warn-line { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); }
.warn-line .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.diet-box { display: grid; gap: 10px; }
.diet-box[hidden] { display: none; }
/* Ordner verschieben */
.fgrid { position: relative; }
.fcard.lifted { z-index: 5; box-shadow: 0 18px 40px rgb(0 0 0 / .28); transition: box-shadow .2s; }
.fgrid.dragging .fcard:not(.lifted) { transition: transform .2s var(--ease); }
.fgrid.dragging { touch-action: none; }
/* Schlüssel-Anleitung */
.key-guide summary { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.key-guide summary > .i:first-child { width: 17px; height: 17px; }
.key-guide summary > span:not(.i) { flex: 1; }
.key-guide summary > .i { flex: none; }
.steps-guide { margin: 10px 0 6px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps-guide li { counter-increment: st; position: relative; padding-left: 38px; font-size: 14.5px; line-height: 1.45; }
.steps-guide li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-bg); color: var(--primary-fg); font: 700 13px/1 var(--f-body); }
.steps-guide a { color: var(--accent); }
/* Release-Notes-Abschnitte */
.rn-sec { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font: 700 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rn-sec .i { width: 14px; height: 14px; color: var(--accent); }
.rn ul { margin-top: 6px; }
.key-guide[open] summary > .i:first-child { transform: none; }
.fcard, .fcard img { -webkit-user-drag: none; user-select: none; }

/* =========================================================
   8.0.0
   ========================================================= */
/* Keine leeren Dropdown-Pfeile mehr */
input::-webkit-calendar-picker-indicator { display: none !important; }
.chips.sugg { margin-top: 8px; }
.chips .chip[hidden] { display: none; }
.chips.sugg .chip, .src-chips .chip { height: 32px; font-size: 13.5px; }
/* Release Notes: Abschnitte mit Luft und klarer Marke */
.rn { padding: 16px 16px 18px; }
.rn-head { margin-bottom: 4px; }
.rn-block { margin-top: 16px; }
.rn-block + .rn-block { padding-top: 16px; border-top: 1px dashed var(--line); }
.rn-sec { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px;
  font: 700 12px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.rn-sec .i { width: 14px; height: 14px; }
.rn-neu .rn-sec { background: var(--primary-bg); color: var(--primary-fg); }
.rn-verbessert .rn-sec { background: var(--accent-soft); color: var(--accent); }
.rn-behoben .rn-sec { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.rn-neu .rn-sec .i, .rn-verbessert .rn-sec .i, .rn-behoben .rn-sec .i { color: inherit; }
.rn ul { margin-top: 10px; }
.rn.cur .rn-block + .rn-block { border-top-color: color-mix(in srgb, var(--accent) 25%, transparent); }
/* Einkauf: Abteilungen zuklappbar, Abhaken gleitet nach unten */
button.aisle { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 10px 0 4px; text-align: left; font: 600 12px/1 var(--f-body); }
button.aisle span { flex: 1; }
button.aisle small { font-size: 11px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 600; }
button.aisle .i { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
button.aisle.shut .i { transform: rotate(-90deg); }
.shop-list[hidden] { display: none; }
@keyframes checkDown { 40% { opacity: 1; } to { opacity: 0; transform: translateY(18px); } }
@keyframes checkUp { 40% { opacity: 1; } to { opacity: 0; transform: translateY(-18px); } }
.shop-item.checking { animation: checkDown .32s ease-in forwards; }
.shop-item.checking .nm { text-decoration: line-through; color: var(--muted); }
.shop-item.checking .check { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.shop-item.unchecking { animation: checkUp .32s ease-in forwards; }
/* Kochmodus: grosse Schrittzahl im Hintergrund, Zeiten deutlich */
.cook-body { position: relative; }
.cook-num { position: absolute; right: -6px; top: -28px; font: 800 clamp(150px, 46vw, 220px)/1 var(--f-display); letter-spacing: -0.06em;
  color: var(--accent); opacity: .09; pointer-events: none; z-index: 0; font-variant-numeric: tabular-nums; }
.cook-body > *:not(.cook-num) { position: relative; z-index: 1; }
.cook-step .tchip { font-size: .78em; padding: 4px 12px 4px 9px; background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); vertical-align: 2px; }
.cook-step .tchip .i { width: 1em; height: 1em; }
.cook-step.enter.from-l { animation: fromLeft .24s var(--ease); }
.cook-step.enter:not(.from-l) { animation: fromRight .24s var(--ease); }
/* Import: Zutaten erscheinen einzeln */
.live { text-align: left; }
.live-title { text-align: center; }
.live-list { list-style: none; margin: 0; padding: 4px 0; display: grid; gap: 2px; max-height: 38vh; overflow-y: auto; scroll-behavior: smooth; }
.live-list li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 15px; animation: liveIn .32s var(--ease) both; }
.live-list li .i { width: 18px; height: 18px; flex: none; color: var(--primary-fg); background: var(--primary-bg); border-radius: 50%; padding: 3px; }
@keyframes liveIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.live-count { text-align: center; }
/* Sprache: zwei ordentliche Zeilen */
.lang-rows { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lang-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; background: var(--surface); text-align: left; font: inherit; font-size: 15px; color: var(--fg); }
.lang-row + .lang-row { border-top: 1px solid var(--line); }
.lang-row > .i:first-child { width: 19px; height: 19px; color: var(--accent); }
.lang-row > span { flex: 1; }
.lang-row b { font-weight: 600; color: var(--accent); }
.lang-row > .i:last-child { width: 16px; height: 16px; color: var(--muted); }
.w-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.w-langs button { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: 600 15px/1 var(--f-body); color: var(--fg); }
.w-langs button[aria-pressed="true"] { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
/* Feinschliff 8.0.0 */
.lang-row > span:not(.i) { flex: 1; }
.lang-row > .i { flex: none; }
button.aisle span { flex: none; }
button.aisle small { margin-right: auto; }
.live-list li .i { flex: none; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; }
.live-list li .i svg { width: 12px; height: 12px; position: static; }

/* ===== 9.0.0 · Freunde ===== */
.tab-pill { grid-template-columns: repeat(4, 1fr); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-bg, var(--accent-soft)); color: var(--primary-fg, var(--accent)); font-weight: 700; font-size: 16px; }
.avatar.lg { width: 54px; height: 54px; font-size: 22px; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.me-card { display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font: inherit; color: var(--fg); text-align: left; }
.me-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.me-txt b { font-size: 17px; }
.me-txt small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-edit { color: var(--muted); display: grid; }
.me-edit .i { width: 18px; height: 18px; }
.fr-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fr-list > .sub { padding: 16px; margin: 0; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--fg); text-decoration: none; }
.fr-row + .fr-row { border-top: 1px solid var(--line); }
.fr-txt { flex: 1; display: grid; gap: 1px; }
.fr-txt small { color: var(--muted); font-size: 13px; }
.fr-row .chev-r { transform: rotate(180deg); color: var(--muted); display: grid; }
.fr-row .chev-r .i { width: 18px; height: 18px; }
.share-info .si-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.share-info .si-row .i { color: var(--accent); width: 20px; height: 20px; }
.share-info .btn { justify-self: start; }
.login-hero { display: grid; justify-items: center; text-align: center; gap: 8px; margin: 18px 0 4px; }
.login-hero .h2 { font-size: 21px; }
.login-hero .sub { max-width: 320px; margin: 0; }
.lh-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.lh-ico .i { width: 30px; height: 30px; }
.code-in { font-size: 26px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.lg-links { display: flex; justify-content: space-between; gap: 12px; }
.fine.center { text-align: center; margin-top: 14px; }
.btn.loading { opacity: .6; pointer-events: none; }
.fc-shared { position: absolute; top: 8px; left: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.fc-shared .i { width: 15px; height: 15px; }
.fp-chips { margin-bottom: 4px; }
.from-who { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.facts-line.static { pointer-events: none; }
.loading-page { display: grid; place-items: center; min-height: 40vh; }
.loading-page .spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 9.1.0 · Einkaufswagen oben */
.tab-pill { grid-template-columns: repeat(3, 1fr); }
.cart-btn { position: relative; }
.cart-btn .badge { top: 2px; left: auto; right: 0; }
