/* Prise – Gestaltung. Weiß, Geist, ein Grün. Kochmodus dunkel. Ab 900 px: Seitenleiste (iPad quer). */
:root {
  --ink: #151515; --ink2: #3A3A36; --muted: #6B6B66; --faint: #8A8A84; --line: #E8E6E1; --line2: #DAD8D2; --soft: #F6F5F1; --soft2: #F1F0EC;
  --bg: #FFFFFF; --green: #2F6B3E; --green-d: #24552F; --green-soft: #E3EBDF; --green-ink: #1F4A2A;
  --amber-soft: #FFF6DB; --amber-ink: #4D3A00; --orange-soft: #FBEBD9; --orange-ink: #9A4508; --red: #B3261E; --red-soft: #FBE9E7;
  --r: 14px; --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px); --tab: 64px; --side: 0px;
  --topc: #FFFFFF;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--topc); }
html, body { margin: 0; min-height: 100%; }
body { font-family: Geist, -apple-system, system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 30px; font-weight: 700; line-height: 1.12; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Gerüst ---------- */
#app { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tab) + var(--bot) + 24px); }
.page { max-width: 760px; margin: 0 auto; padding: calc(var(--top) + 18px) 20px 24px; display: flex; flex-direction: column; gap: 22px; }
.page.wide { max-width: 1180px; }
.page.flush { padding-top: 0; }
body.notabs #app { padding-bottom: 0; }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.topbar .grow { flex: 1; min-width: 0; }
.topbar h1 { font-size: 22px; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head a, .linkish { font-size: 14px; color: var(--green); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }

/* Leiste unten */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; padding: 6px 6px calc(var(--bot) + 4px); height: calc(var(--tab) + var(--bot)); }
#tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--faint); position: relative; }
#tabbar a.on { color: var(--ink); font-weight: 650; }
#tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); }
#tabbar .brand { display: none; }
body.notabs #tabbar { display: none; }
@media (max-width: 899px) { body.notabs-cta #tabbar { display: none; } body.notabs-cta #app { padding-bottom: 0; } body.notabs-cta #toast { bottom: calc(var(--bot) + 100px); } }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.fab { position: fixed; right: 20px; bottom: calc(var(--tab) + var(--bot) + 18px); z-index: 25; width: 60px; height: 60px; border-radius: 30px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; border: 0; box-shadow: 0 8px 22px rgba(0,0,0,0.2); cursor: pointer; }

/* ---------- Knöpfe & Felder ---------- */
.btn { height: 50px; padding: 0 20px; border-radius: var(--r); border: 0; background: var(--green); color: #fff; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn.dark { background: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); font-weight: 500; }
.btn.soft { background: var(--soft2); color: var(--ink); font-weight: 500; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #EBC6C2; font-weight: 500; }
.btn.small { height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn.link { background: none; color: var(--muted); height: 44px; font-weight: 500; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--soft2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; color: var(--ink); }
.icon-btn.plain { background: none; }
.icon-btn.on { color: var(--green); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
label.f span.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.in { width: 100%; height: 50px; border-radius: var(--r); border: 1px solid var(--line2); background: #fff; padding: 0 14px; font-size: 16px; outline: none; }
.in:focus, textarea.in:focus { border-color: var(--ink); }
textarea.in { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.in { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .in { padding-left: 44px; background: var(--soft); border-color: transparent; }
.search .in:focus { background: #fff; border-color: var(--ink); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); background: #fff; font-size: 14px; color: var(--ink2);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.green { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }
.tag { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--soft2); color: var(--ink2); white-space: nowrap; }
.tag.green { background: var(--green-soft); color: var(--green-ink); }
.tag.orange { background: var(--orange-soft); color: var(--orange-ink); }

/* Hinweise */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--soft); font-size: 14px; line-height: 1.45; color: var(--ink2); }
.note svg { flex-shrink: 0; margin-top: 1px; }
.note.amber { background: var(--amber-soft); color: var(--amber-ink); }
.note.green { background: var(--green-soft); color: var(--green-ink); }
.note.red { background: var(--red-soft); color: var(--red); }
.note.orange { background: var(--orange-soft); color: var(--orange-ink); }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.card.soft { background: var(--soft); border-color: transparent; }

/* ---------- Rezeptkarten ---------- */
.ph { background: var(--soft2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,0.28); }
.ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.rc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rc .ph { aspect-ratio: 4 / 3.2; border-radius: 16px; }
.rc .t { font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc .m { font-size: 13px; color: var(--muted); margin-top: -4px; }
.rc .fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 14px; background: rgba(255,255,255,0.92); color: var(--green); display: flex; align-items: center; justify-content: center; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 20px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .rc { width: 150px; flex-shrink: 0; scroll-snap-align: start; }
.collections { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.collections::-webkit-scrollbar { display: none; }
.col-card { flex-shrink: 0; width: 140px; padding: 12px; border-radius: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 4px; cursor: pointer; border: 0; text-align: left; }
.col-card b { font-size: 15px; font-weight: 600; }
.col-card span { font-size: 13px; color: var(--muted); }
.col-card.add { background: #fff; border: 1px dashed var(--line2); align-items: flex-start; justify-content: center; color: var(--muted); }

/* Import-Aufträge auf der Startseite */
.job { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%; }
.job .ji { width: 44px; height: 44px; border-radius: 12px; background: var(--soft2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.job .ji img { width: 100%; height: 100%; object-fit: cover; }
.job.ready { border-color: var(--green); background: var(--green-soft); }
.job.ready .ji { background: var(--green); color: #fff; }
.job.bad .ji { background: var(--red-soft); color: var(--red); }
.spin { width: 20px; height: 20px; border: 2.5px solid var(--line2); border-top-color: var(--green); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hinzufügen */
.add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.add-tile { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: #fff; cursor: pointer; text-align: left; min-height: 120px; }
.add-tile b { font-size: 16px; font-weight: 600; display: block; }
.add-tile span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; margin-top: 3px; }
.clip { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--green-soft); border: 0; width: 100%; text-align: left; cursor: pointer; }
.clip .ci { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Fortschritt beim Import */
.progress { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.pstep { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--faint); }
.pstep .dot { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pstep.done { color: var(--ink2); }
.pstep.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.pstep.now { color: var(--ink); font-weight: 600; }
.pstep.now .dot { border-color: var(--green); }

/* Bildauswahl im Entwurf */
.pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pick button { width: 64px; height: 64px; border-radius: 12px; border: 2px solid transparent; padding: 0; overflow: hidden; flex-shrink: 0; background: var(--soft2); cursor: pointer; }
.pick button img { width: 100%; height: 100%; object-fit: cover; }
.pick button.on { border-color: var(--green); }
.pick button.none { font-size: 11px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { border-radius: 14px; background: var(--soft); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stat b { font-size: 18px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- Rezeptseite ---------- */
.hero { position: relative; height: calc(var(--top) + 270px); margin: 0 -20px; }
.hero .ph { position: absolute; inset: 0; }
.hero .bar { position: absolute; left: 12px; right: 12px; top: calc(var(--top) + 10px); display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.hero .bar .icon-btn { background: rgba(255,255,255,0.92); }
.hero.noimg { height: calc(var(--top) + 64px); }
.hero.noimg .ph { display: none; }
.meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.servings { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.servings button { width: 36px; height: 36px; border-radius: 18px; border: 0; background: var(--soft2); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.servings span { min-width: 96px; text-align: center; font-size: 14px; font-weight: 600; }
.ings { display: flex; flex-direction: column; }
.ing { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EFEDE8; font-size: 16px; }
.ing .a { width: 84px; flex-shrink: 0; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.ing .n { flex: 1; min-width: 0; }
.ing .x { font-size: 13px; color: var(--faint); }
.ing-group { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 16px 0 4px; }
.steps { display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.step { display: flex; gap: 14px; font-size: 16px; line-height: 1.5; }
.step .num { width: 28px; height: 28px; border-radius: 14px; background: var(--soft2); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.recipe-cols { display: flex; flex-direction: column; gap: 24px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 20px calc(var(--bot) + 12px); background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.sticky-cta > .inner { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; width: 100%; }
.source { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Kochmodus ---------- */
body.cook { --bg: #141414; --topc: #141414; background: #141414; color: #F4F3EF; }
.cookp { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--top) + 12px) 20px calc(var(--bot) + 20px); gap: 20px; max-width: 760px; margin: 0 auto; }
.cookp .icon-btn { background: #2A2A28; color: #F4F3EF; }
.bars { display: flex; gap: 4px; flex: 1; }
.bars i { flex: 1; height: 4px; border-radius: 2px; background: #333331; }
.bars i.on { background: #8FBF97; }
.cook-step { font-size: 27px; line-height: 1.32; font-weight: 500; letter-spacing: -0.01em; }
.cook-label { font-size: 14px; font-weight: 600; color: #8FBF97; }
.cook-ings { display: flex; flex-wrap: wrap; gap: 8px; }
.cook-ings span { font-size: 15px; padding: 8px 12px; border-radius: 12px; background: #232321; border: 1px solid #343431; }
.cook-ings b { color: #8FBF97; }
.timer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid #343431; background: #1E1E1C; color: #F4F3EF; cursor: pointer; text-align: left; width: 100%; }
.timer .tt { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.timer .tl { font-size: 13px; color: #A5A49E; }
.timer.run { border-color: #8FBF97; background: #1F2B21; }
.timer.done { border-color: #F5DE96; background: #3A3115; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.75; } }
.cook-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #3A3115; color: #F5DE96; font-size: 15px; line-height: 1.4; white-space: pre-line; }
.cook-nav { display: flex; gap: 10px; }
.cook-nav .btn { height: 60px; font-size: 17px; border-radius: 16px; }
.cook-nav .back { width: 110px; background: transparent; border: 1px solid #3A3A37; color: #F4F3EF; font-weight: 500; }
.cook-nav .next { flex: 1; background: #F4F3EF; color: #141414; font-weight: 700; }
.cook-nav .fin { flex: 1; background: #8FBF97; color: #10210F; font-weight: 700; }
.running { display: flex; gap: 8px; flex-wrap: wrap; }
.running button { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid #8FBF97; background: #1F2B21; color: #F4F3EF; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.running button.done { border-color: #F5DE96; background: #3A3115; color: #F5DE96; }
.cook-side { display: none; }
.cook-ing-row { display: flex; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 15px; color: #8A8984; }
.cook-ing-row b { width: 76px; flex-shrink: 0; color: #6E6D68; font-weight: 600; }
.cook-ing-row.on { background: #2A3A2D; color: #fff; }
.cook-ing-row.on b { color: #8FBF97; }
body.cook .sheet { background: #1C1C1A; color: #F4F3EF; }
body.cook .sheet .grab { background: #3A3A37; }

/* ---------- Einkaufsliste ---------- */
.add-item { display: flex; gap: 8px; }
.add-item .in { background: var(--soft); border-color: transparent; }
.add-item .in:focus { background: #fff; border-color: var(--ink); }
.aisle { display: flex; flex-direction: column; }
.aisle h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EFEDE8; }
.li .box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #C9C7C1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; color: #fff; cursor: pointer; padding: 0; }
.li.on .box { background: var(--green); border-color: var(--green); }
.li .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; cursor: pointer; background: none; border: 0; text-align: left; padding: 2px 0; }
.li .nm { font-size: 16px; }
.li .q { color: var(--faint); }
.li .src { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li.on .nm { color: #A5A49E; text-decoration: line-through; }
.live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green-ink); padding: 9px 12px; border-radius: 12px; background: var(--green-soft); }
.live i { width: 8px; height: 8px; border-radius: 4px; background: var(--green); }

/* ---------- Blatt (unten) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(20,20,20,0.42); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.18s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 20px calc(var(--bot) + 22px);
  display: flex; flex-direction: column; gap: 16px; animation: up 0.24s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line2); flex-shrink: 0; }
.sheet h2 { font-size: 22px; }
@keyframes up { from { transform: translateY(40px); opacity: 0.4; } }
@keyframes fade { from { opacity: 0; } }
.check-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EFEDE8; cursor: pointer; }
.check-row input { width: 22px; height: 22px; accent-color: var(--green); flex-shrink: 0; }
.check-row .a { width: 76px; flex-shrink: 0; font-weight: 600; color: var(--green); font-size: 15px; }
.check-row .x { font-size: 12px; color: var(--faint); }

#toast { position: fixed; left: 50%; bottom: calc(var(--tab) + var(--bot) + 92px); transform: translate(-50%, 20px); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 14px; font-size: 15px; opacity: 0; pointer-events: none; width: max-content; transition: all 0.22s ease; max-width: calc(100vw - 40px); text-align: center; display: flex; gap: 12px; align-items: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { background: none; border: 0; color: #8FBF97; font-weight: 700; padding: 0; cursor: pointer; }
body.notabs #toast { bottom: calc(var(--bot) + 100px); }

/* Anmelden */
.welcome { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top) + 30px) 24px calc(var(--bot) + 30px); max-width: 440px; margin: 0 auto; gap: 26px; }
.logo { width: 64px; height: 64px; border-radius: 18px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.empty { text-align: center; padding: 30px 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--muted); }
.list-plain { display: flex; flex-direction: column; }
.list-plain > * { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #EFEDE8; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer; font-size: 16px; }
.av { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 650; flex-shrink: 0; }
.rec-dot { width: 120px; height: 120px; border-radius: 60px; border: 0; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; align-self: center; box-shadow: 0 0 0 0 rgba(179,38,30,0.4); }
.rec-dot.on { animation: rec 1.4s ease-out infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(179,38,30,0.45); } 100% { box-shadow: 0 0 0 28px rgba(179,38,30,0); } }
.kbd { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--soft2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
ol.steps-guide { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

/* ---------- iPad / breite Bildschirme ---------- */
@media (min-width: 900px) {
  :root { --tab: 0px; --side: 240px; }
  #app { padding-left: var(--side); padding-bottom: 24px; }
  #tabbar { top: 0; bottom: 0; right: auto; width: var(--side); height: auto; flex-direction: column; justify-content: flex-start; gap: 2px; padding: calc(var(--top) + 26px) 14px 20px;
    border-top: 0; border-right: 1px solid var(--line); background: var(--soft); }
  #tabbar .brand { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; padding: 0 12px 18px; color: var(--ink); }
  #tabbar a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink2); }
  #tabbar a.on { background: #fff; }
  #tabbar .badge { position: static; margin-left: auto; }
  body.notabs #app { padding-left: 0; }
  .fab { bottom: 28px; right: 28px; }
  .page { padding-left: 36px; padding-right: 36px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .hscroll, .chips, .collections { margin: 0; padding-left: 0; padding-right: 0; }
  .hscroll .rc { width: 190px; }
  .hero { margin: 0; border-radius: 22px; overflow: hidden; height: 320px; margin-top: calc(var(--top) + 18px); }
  .hero.noimg { height: 64px; margin-top: var(--top); }
  .page.recipe { max-width: 1180px; }
  .recipe-cols { flex-direction: row; align-items: flex-start; gap: 40px; }
  .recipe-cols > .ingcol { width: 360px; flex-shrink: 0; position: sticky; top: 20px; }
  .recipe-cols > .stepcol { flex: 1; min-width: 0; }
  .sticky-cta { left: var(--side); }
  body.notabs .sticky-cta { left: 0; }
  #toast { bottom: 40px; margin-left: calc(var(--side) / 2); }
  .add-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 26px; max-height: 86vh; }
  .sheet .grab { display: none; }
  /* Kochmodus quer: Zutaten links, Schritt rechts */
  .cookp { max-width: none; flex-direction: row; padding: 0; gap: 0; }
  .cook-side { display: flex; flex-direction: column; gap: 14px; width: 340px; flex-shrink: 0; background: #1C1C1A; padding: calc(var(--top) + 28px) 22px 24px; overflow-y: auto; max-height: 100vh; }
  .cook-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding: calc(var(--top) + 32px) 44px calc(var(--bot) + 32px); }
  .cook-step { font-size: 38px; max-width: 760px; }
  .cook-main .only-phone { display: none; }
}
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) { .cook-main { display: flex; flex-direction: column; gap: 20px; flex: 1; } }

/* KI */
.ai-badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 4px 8px; border-radius: 8px; background: rgba(20,20,20,.62); color: #fff; }
.hero .ai-badge { left: 20px; bottom: 14px; }
.chip svg { flex-shrink: 0; }
.chip[disabled] { opacity: .6; }

/* Stufe 2: Start, Plan, Vorrat */
.today-card { border-radius: 20px; background: var(--soft); overflow: hidden; }
.today-card > .ph { height: 150px; }
.today-card .tc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.today-card h2 { font-size: 21px; }
.sug-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; background: var(--green); padding: 4px 9px; border-radius: 8px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.stock.ok { color: var(--green); } .stock.warn { color: var(--orange-ink); } .stock.done { color: var(--faint); } .stock.done::before { display: none; }
.weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wd { border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; }
.wd .wl { font-size: 11px; font-weight: 700; color: var(--muted); }
.wd .wt { width: 32px; height: 32px; border-radius: 9px; background: var(--soft2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 16px; }
.wd.today { background: var(--ink); border-color: var(--ink); } .wd.today .wl { color: #fff; } .wd.today .wt { background-color: #3A3A36; color: #fff; }
.wd.past { opacity: .55; }
.plan-days { display: flex; flex-direction: column; }
.plan-day { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EFEDE8; }
.plan-day.past { opacity: .6; }
.pd-date { width: 40px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 6px; }
.pd-date span { font-size: 12px; font-weight: 700; color: var(--muted); }
.pd-date b { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 650; }
.plan-day.today .pd-date span { color: var(--green); } .plan-day.today .pd-date b { background: var(--green); color: #fff; }
.pd-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-main { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; width: 100%; }
.plan-main b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.plan-main.cooked b { color: var(--faint); }
.pthumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: block; }
.pthumb .ph { width: 100%; height: 100%; }
.plan-empty { height: 52px; border-radius: 12px; border: 1.5px dashed var(--line2); background: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--faint); cursor: pointer; width: 100%; }
.plan-extra { display: flex; gap: 8px; align-items: center; background: none; border: 0; padding: 0; font-size: 13px; text-align: left; cursor: pointer; color: var(--ink2); }
.plan-extra span { width: 62px; flex-shrink: 0; color: var(--faint); }
.plan-extra.free { color: var(--faint); }
.switch-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink2); padding-top: 4px; }
.switch { width: 46px; height: 28px; border-radius: 14px; border: 0; padding: 3px; background: var(--line2); display: flex; cursor: pointer; flex-shrink: 0; }
.switch i { width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--green); justify-content: flex-end; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid #EFEDE8; text-align: left; cursor: pointer; width: 100%; }
.pick-row .pthumb { width: 44px; height: 44px; }
.pick-row b { font-weight: 600; font-size: 15px; }
.day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day-btn { min-height: 54px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px; cursor: pointer; font-size: 13px; }
.day-btn span { font-size: 10px; color: var(--faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-btn.taken { background: var(--soft); }
.day-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); } .day-btn.on span { color: #ccc; }
.seg { display: flex; background: var(--soft2); border-radius: 12px; padding: 3px; }
.seg > * { flex: 1; height: 38px; border-radius: 10px; border: 0; background: none; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink2); font-weight: 500; }
.seg > .on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 650; color: var(--ink); }
.seg.small > * { height: 32px; font-size: 13px; padding: 0 12px; white-space: nowrap; }
.seg.small { flex: none; }
.stockbox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--soft); margin-bottom: 4px; }
.dots { display: flex; gap: 3px; }
.dots i { width: 7px; height: 20px; border-radius: 4px; background: #8FBF97; }
.dots i.missing { background: #E2A46B; } .dots i.low { background: #E8C766; } .dots i.always { background: #CFCDC7; }
.stk { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.stk.ok { background: var(--green-soft); color: var(--green-ink); } .stk.warn { background: var(--orange-soft); color: var(--orange-ink); }
.stk.warn2 { background: var(--amber-soft); color: var(--amber-ink); } .stk.plain { background: var(--soft2); color: var(--muted); }
.rate-row { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rate { height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.rate.on { background: var(--green); border-color: var(--green); color: #fff; }
.rate.on[data-v="2"] { background: #3A3A36; border-color: #3A3A36; }
.pantry-row { width: 100%; background: none; border: 0; border-bottom: 1px solid #EFEDE8; text-align: left; cursor: pointer; color: inherit; }
@media (min-width: 900px) {
  .plan-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
  .plan-day { flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
  .plan-day.today { border-color: var(--green); }
  .pd-date { flex-direction: row; width: auto; padding: 0; gap: 6px; }
  .plan-main { flex-direction: column; align-items: stretch; }
  .plan-main .pthumb { width: 100%; height: 90px; }
  .plan-empty { height: 140px; }
  .day-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

/* Stufe 2.5: Liste im Bring-Stil */
.addfield { display: flex; align-items: center; gap: 10px; height: 50px; border-radius: var(--r); border: 0; background: var(--soft); padding: 0 14px; color: var(--faint); font-size: 16px; cursor: pointer; width: 100%; text-align: left; }
.addfield svg { color: var(--green); }
.chips .chip b { font-weight: 700; margin-left: 2px; opacity: .7; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; aspect-ratio: 1 / 0.92; border-radius: 16px; border: 0; background: var(--green); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 6px; cursor: pointer; text-align: center; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tile .te { font-size: 30px; line-height: 1; }
.tile .tphoto { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.tile .tn { font-size: 13px; font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.tile .ts { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile .tdot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 4px; background: #F5DE96; }
.tile:active { transform: scale(.96); }
.tile.ghost { background: var(--soft); color: var(--ink2); }
.sheet .tile { background: var(--soft); color: var(--ink); }
.sheet .tile.on { background: var(--green); color: #fff; }
.sheet .tile.typed { background: #fff; border: 1.5px dashed var(--green); color: var(--green); }
.sheet.tall { min-height: 80vh; }
.li .em { font-size: 18px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* Startseite neu */
.home .hello { align-items: center; }
.avs { display: flex; }
.avs .av { border: 2px solid #fff; margin-left: -10px; }
.today-wrap { border-radius: 22px; overflow: hidden; background: var(--soft); }
.hero-today { position: relative; height: 190px; background: center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.hero-today.img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 45%); }
.hero-ic { color: rgba(0,0,0,.22); }
.hero-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20,20,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
.hero-badge.dark { background: var(--ink); }
.today-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.today-body h2 { font-size: 22px; }
.today-body .hx { font-size: 13px; color: var(--muted); }
.free-hero { position: relative; height: 130px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F3EDE2, #E3EBDF); }
.free-em { font-size: 64px; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-tile { position: relative; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 112px; }
.stat-tile .sti { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.stat-tile b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.stat-tile b small { font-size: 15px; font-weight: 600; opacity: .6; }
.stat-tile span { font-size: 14px; font-weight: 600; }
.stat-tile em { font-style: normal; font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile.green { background: #E3EBDF; color: #1F4A2A; } .stat-tile.orange { background: #FBEBD9; color: #6B3505; }
.stat-tile.blue { background: #E3EEF7; color: #1F4A6B; } .stat-tile.amber { background: #FFF1C9; color: #5C4300; } .stat-tile.rose { background: #F6E3DC; color: #6E2E1C; }
.week-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; min-width: 0; }
.wk .wkd { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wk .wki { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--soft2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.wk .wkt { font-size: 10.5px; line-height: 1.2; color: var(--ink2); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 25px; word-break: normal; hyphens: auto; -webkit-hyphens: auto; max-width: 100%; }
.wk .wkc { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 8px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.wk.today { border-color: var(--green); border-width: 2px; } .wk.today .wkd { color: var(--green); }
.wk.past { opacity: .55; }
.progress-bar { height: 6px; border-radius: 3px; background: var(--soft2); overflow: hidden; margin: 4px 0 6px; }
.progress-bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.step-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; background: none; border: 0; border-top: 1px solid #EFEDE8; width: 100%; text-align: left; font-size: 15px; cursor: pointer; }
.step-row .sc { width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--line2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.step-row.ok { color: var(--faint); } .step-row.ok .sc { background: var(--green); border-color: var(--green); }
.step-row.ok .grow { text-decoration: line-through; }
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid #EFEDE8; background: none; width: 100%; text-align: left; font-size: 15px; cursor: pointer; }
.feed-row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.idea-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.idea-scroll::-webkit-scrollbar { display: none; }
.idea-card { flex-shrink: 0; width: 200px; border-radius: 18px; background: var(--amber-soft); border: 0; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; color: var(--amber-ink); }
.idea-card .ib { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.idea-card b { font-size: 15px; line-height: 1.25; }
.idea-card span:last-child { font-size: 12.5px; line-height: 1.35; opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea-card.new { background: var(--green-soft); color: var(--green-ink); }
@media (min-width: 900px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-today { height: 280px; }
  .page.home { max-width: 1000px; }
  .idea-scroll { margin: 0; padding: 0; }
}
