/* Einkaufszettel: Gestaltung (Farben wie Rep & Bite, nur dunkel) */
/* Farben wie Rep & Bite ("Dunkel & sportlich"), bewusst nur dunkles Theme */
:root {
  --bg: #0A0B0D; --paper: #15171B; --paper2: #1D2026; --ink: #F4F6F8; --muted: #8A919C; --faint: #5A616B; --line: #262A31;
  --accent: #C8FF2E; --accent-ink: #0A0B0D; --accent-soft: rgba(200,255,46,0.12); --accent-glow: rgba(200,255,46,0.45);
  --heat: #FF7A1A; --danger: #FF4D5E;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(env(safe-area-inset-top, 0px) + 20px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 48px);
}
[hidden] { display: none !important; }
.wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 9vw, 46px); line-height: 1; margin: 0; letter-spacing: 0.01em; text-transform: uppercase; }
h1 span { color: var(--accent); }
.count { font-family: var(--display); font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sync { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sync[data-state="live"] .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.sync[data-state="off"] .dot { background: var(--danger); }
.sync[data-state="pending"] .dot { background: var(--heat); }

form.row2, .row2 { display: flex; gap: 8px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
}
input:focus { outline: none; border-color: var(--accent); }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 0 18px; cursor: pointer; background: var(--accent); color: var(--accent-ink); min-height: 50px; }
.btn:disabled { opacity: .5; }
.btn.sec { background: var(--paper2); color: var(--ink); border: 1px solid var(--line); }
.btn.wide { width: 100%; }
.small { font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.btn:focus-visible, .chip:focus-visible, .item:focus-visible, .x:focus-visible, .ghost:focus-visible, .small:focus-visible, .tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint { font-size: 13px; color: var(--muted); margin: -12px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.chip::before { content: "+ "; color: var(--accent); }

.list { background: var(--paper); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.aisle h2 { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 14px 16px 6px; display: flex; justify-content: space-between; }
.aisle + .aisle { border-top: 1px solid var(--line); }
ul { list-style: none; margin: 0; padding: 0 0 6px; }
li { display: flex; align-items: center; }
.item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; }
.box svg { width: 14px; height: 14px; opacity: 0; }
.done .box { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.done .box svg { opacity: 1; }
.txt { min-width: 0; display: flex; flex-direction: column; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.who { font-size: 12px; color: var(--faint); }
.qty { font-family: var(--display); font-size: 16px; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; background: var(--accent-soft); padding: 0 8px; border-radius: 6px; white-space: nowrap; margin-left: auto; }
.done .name { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.x { flex: none; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }

.cart { background: transparent; border-style: dashed; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 0 16px; gap: 8px; }
.cart-head h2 { padding: 4px 0; color: var(--heat); white-space: nowrap; }
.cart-head { flex-wrap: wrap; }
.unitprice { white-space: nowrap; }
li { flex-wrap: wrap; }
li .extra { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; padding: 0 16px 10px 52px; margin-top: -6px; }
.ghost { font: inherit; font-size: 13px; font-weight: 700; color: var(--danger); background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.ghost.armed { border-color: var(--danger); }
.ghost.muted { color: var(--muted); }

.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty strong { display: block; font-family: var(--display); font-size: 24px; color: var(--ink); margin-bottom: 6px; text-transform: uppercase; }
.err { color: var(--danger); font-size: 14px; margin: 0; }
.ok { color: var(--accent); font-size: 14px; margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.tabs { display: flex; gap: 4px; background: var(--paper2); border-radius: 14px; padding: 4px; }
.tab { flex: 1; font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 10px; background: none; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.code { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: 0.18em; color: var(--accent); text-align: center; text-shadow: 0 0 18px var(--accent-glow); }
.people { display: flex; flex-direction: column; gap: 4px; }
.person { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.person span.n { flex: 1; font-weight: 600; }
.person span.r { font-size: 12px; color: var(--muted); }
.install b { color: var(--accent); }
select { font: inherit; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
/* Passwort anzeigen */
.pwwrap { position: relative; display: flex; }
.pwwrap input { padding-right: 52px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; display: grid; place-items: center; }
.eye svg { width: 22px; height: 22px; }
.eye[aria-pressed="true"] { color: var(--accent); }
.eye:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
/* Listenauswahl */
.listbar { display: flex; flex-direction: column; gap: 6px; }
.listbar label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.listbar select { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; padding: 10px 40px 10px 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23C8FF2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.listactions { display: flex; gap: 4px; flex-wrap: wrap; margin-left: -10px; }
.listbar select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Fotos */
.pic { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px dashed var(--line); background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden; }
.pic svg { width: 18px; height: 18px; }
.pic.has { border: 1px solid var(--line); background: var(--paper2); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5,6,8,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 16px) max(16px, env(safe-area-inset-left, 0px)); }
.overlay img.big { max-width: 100%; max-height: 65vh; border-radius: 16px; object-fit: contain; background: var(--paper); }
.overlay .ov-title { font-family: var(--display); font-size: 24px; text-transform: uppercase; text-align: center; }
.ov-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
/* Scanner */
.scanbox { position: relative; width: min(100%, 420px); aspect-ratio: 3 / 4; max-height: 55vh; border-radius: 18px; overflow: hidden; background: #000; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox .aim { position: absolute; left: 10%; right: 10%; top: 38%; height: 24%; border: 3px solid var(--accent); border-radius: 14px; box-shadow: 0 0 24px var(--accent-glow); pointer-events: none; }
.scanstatus { color: var(--muted); font-size: 14px; text-align: center; min-height: 20px; }
.scanresult { width: min(100%, 420px); display: flex; flex-direction: column; gap: 10px; }
.scanresult .card { gap: 10px; }
.scanmanual { width: min(100%, 420px); }
.credit { font-size: 11px; color: var(--faint); text-align: center; }
.credit a { color: var(--muted); }
.btn.scan { background: var(--paper2); color: var(--accent); border: 1px solid var(--line); padding: 0 14px; display: grid; place-items: center; }
.btn.scan svg { width: 22px; height: 22px; }
/* Bearbeiten, Preise */
.sheetwrap { justify-content: flex-end; }
.sheet { width: min(100%, 560px); max-height: 90vh; overflow-y: auto; }
.sheet select, .sheet input[type=text] { background: var(--paper2); }
.pricebtn { flex: none; font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 10px; cursor: pointer; border: 1px dashed var(--line); background: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.pricebtn.set { border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); }
.pricebtn:focus-visible, .more:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pricehint { font-size: 12px; font-weight: 700; color: var(--accent); }
.history { display: flex; flex-direction: column; gap: 4px; background: var(--paper2); border-radius: 12px; padding: 10px 12px; }
.history .h-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.history .h-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.history .h-row.best { color: var(--accent); font-weight: 700; }
.history .h-row span:last-child { text-align: right; }
.toast { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); width: min(calc(100% - 32px), 520px);
  background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; }
/* Summen, Einzelpreise */
.unitprice { font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sumrow { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.sumrow .s-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.sumrow strong { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.sumrow.est strong { color: var(--ink); }
.sumrow.est strong::before { content: "ca. "; font-size: 18px; color: var(--muted); }
.sumrow .s-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.estbox { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.estbox p { margin: 0; }
.est-main { font-size: 15px; line-height: 1.5; color: var(--ink); }
.est-main strong { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-note { font-size: 12px; color: var(--muted); }
.est-cheap { font-size: 13px; font-weight: 700; color: var(--heat); }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr { background: #fff; padding: 12px; border-radius: 14px; width: 220px; max-width: 100%; }
.qr svg { display: block; width: 100%; height: auto; }
.qrbox p { text-align: center; }
.budget { display: flex; flex-direction: column; gap: 6px; }
.budget .track { height: 10px; border-radius: 5px; background: var(--paper2); overflow: hidden; }
.budget .track span { display: block; height: 100%; background: var(--accent); }
.budget.over .track span { background: var(--danger); }
.budget p { margin: 0; font-size: 14px; }
.budget.over p { color: var(--danger); font-weight: 700; }
.est-budget { font-size: 13px; font-weight: 700; color: var(--muted); }
.est-budget.over { color: var(--danger); }
.recurbox { display: flex; flex-direction: column; gap: 6px; }
.recurbox .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.movebox select { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); }
.toastbtns { display: flex; gap: 6px; flex: none; }
.depchips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-dep { font: inherit; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); }
.chip-dep:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.deposit { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.empties { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.empties strong { color: var(--accent); font-variant-numeric: tabular-nums; }
/* Einkaufsstatus, Chat */
.shopstatus { display: flex; flex-direction: column; gap: 8px; }
.shopstatus:empty { display: none; }
.live { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.live.me { background: rgba(255,122,26,0.12); border-color: var(--heat); }
.live .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); flex: none; }
.live.me .pulse { background: var(--heat); box-shadow: 0 0 10px rgba(255,122,26,.5); }
.live span.t { flex: 1; min-width: 0; }
.btn.scan.listening { background: var(--heat); color: #0A0B0D; border-color: var(--heat); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,122,26,0.25); } }
@media (prefers-reduced-motion: reduce) { .btn.scan.listening { animation: none; } }
@media (max-width: 380px) { form#addform .btn.scan { padding: 0 10px; } }
.ordernote { margin: 0; padding: 10px 16px 0; font-size: 12px; font-weight: 700; color: var(--accent); }
.chipsbox { display: flex; flex-direction: column; gap: 8px; }
.chipsbox .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.chip.freq { border-color: var(--accent-soft); }
.chip small { font-weight: 600; color: var(--muted); margin-left: 5px; font-size: 11px; }
.quickadd input[type=text] { font-size: 16px; padding: 11px 14px; }
.gostart { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gostart select { width: auto; flex: 1; min-width: 120px; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.chatbtn { position: relative; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--heat); color: #0A0B0D; font-size: 11px; font-weight: 800; }
.chatsheet { height: min(80vh, 640px); }
.chatlog { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.msg { max-width: 82%; align-self: flex-start; background: var(--paper2); border-radius: 14px 14px 14px 4px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.msg.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; }
.msg .m-who { font-size: 11px; font-weight: 700; color: var(--muted); }
.msg.mine .m-who { color: rgba(10,11,13,.6); }
.msg .m-ref { font-size: 12px; font-weight: 700; color: var(--heat); }
.msg.mine .m-ref { color: #0A0B0D; text-decoration: underline; }
.msg .m-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.chatempty { color: var(--muted); text-align: center; margin: auto; font-size: 14px; }
.chatref { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--heat); background: rgba(255,122,26,0.12); border-radius: 10px; padding: 4px 4px 4px 10px; }
/* Rezepte */
textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper2); color: var(--ink); resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); }
.reclist { display: flex; flex-direction: column; gap: 10px; }
.recipe { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.recipe .r-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.recipe .r-title { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.recipe .r-lines { font-size: 13px; color: var(--muted); }
.recipe .r-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.recipe .r-act label { font-size: 13px; color: var(--muted); }
.recipe .r-act input { width: 56px; flex: none; font-size: 15px; padding: 8px 10px; text-align: center; }
/* Ausgaben */
.stat-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stat-total strong { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-total span { font-size: 13px; color: var(--muted); }
.stat-saved { font-size: 14px; font-weight: 700; color: var(--heat); margin: 0; }
.bars { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.bars .bar { height: 10px; border-radius: 5px; background: var(--paper2); overflow: hidden; }
.bars .bar span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bars .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.bars .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.months { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 8px; }
.months .m { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; cursor: pointer; background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; padding: 0; }
.months .m span.col { width: 100%; max-width: 28px; background: var(--paper2); border-radius: 4px 4px 0 0; min-height: 2px; }
.months .m[aria-pressed="true"] span.col { background: var(--accent); }
.months .m[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.stat-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 6px 0 0; }
/* Kassenzettel / Texterkennung */
.progress { height: 6px; border-radius: 3px; background: var(--paper2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.rclines { padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 45vh; overflow-y: auto; }
.rcline { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.rcline .t { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rcline .p { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.rcline select { grid-column: 1 / -1; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); }
.rcline select.set { border-color: var(--accent); }
.cart-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
/* Angebote */
.offers-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.offers-head h3 span { color: var(--heat); }
.offerform { display: flex; flex-direction: column; gap: 12px; }
.pricegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
input[type=date] { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper2); color: var(--ink); }
.offerform input[type=text], .offerform select { background: var(--paper2); }
.offerlist { padding: 0; display: flex; flex-direction: column; gap: 2px; }
.offer { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.offer .o-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.offer .o-prod { font-weight: 600; overflow-wrap: anywhere; }
.offer .o-meta { font-size: 12px; color: var(--muted); }
.offer .o-price { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.price-now { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.save { font-size: 11px; font-weight: 800; color: #0A0B0D; background: var(--heat); border-radius: 6px; padding: 1px 6px; margin-top: 3px; }
.offer .o-actions { display: flex; flex-direction: column; gap: 4px; flex: none; }
.deal { font-size: 12px; font-weight: 700; color: var(--heat); }
/* Laden je Artikel */
.store { flex: none; font: inherit; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 8px; max-width: 92px;
  border: 1px dashed var(--line); background: none; color: var(--faint); cursor: pointer; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.store.set { border: 1px solid var(--heat); color: var(--heat); background: rgba(255,122,26,0.12); }
.store:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shopbar { display: flex; flex-direction: column; gap: 8px; }
.shopbar .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.shopchips { display: flex; gap: 8px; flex-wrap: wrap; }
.shopchip { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.shopchip[aria-pressed="true"] { background: var(--heat); border-color: var(--heat); color: #0A0B0D; }
.shopchip small { font-weight: 600; opacity: .7; margin-left: 4px; }
.hiddennote { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
@media (prefers-reduced-motion: no-preference) { .item, .chip { transition: background-color .15s, border-color .15s; } }
/* Angemeldete Geraete */
.devices { display: flex; flex-direction: column; gap: 6px; }
.device { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.device .d-txt { display: flex; flex-direction: column; min-width: 0; }
.device .d-name { font-weight: 600; font-size: 14px; }
.device .d-when { font-size: 12px; color: var(--muted); }
/* Einfacher Modus: ausgeblendete Bereiche (Einstellung je Geraet unter "Teilen & Konto") */
.features { display: flex; flex-direction: column; gap: 8px; }
.features label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.features input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
body[data-off~="prices"] :is(.f-prices, .pricebtn, .unitprice, .pricehint, .sumrow, .estbox, #e-history, #statsbtn) { display: none !important; }
body[data-off~="deposit"] :is(.f-deposit, .deposit, .empties) { display: none !important; }
body[data-off~="offers"] :is(#offers, .deal, #scandeal) { display: none !important; }
body[data-off~="scan"] :is(#scanbtn, #micbtn, #receiptbtn, .cart-actions .small) { display: none !important; }
body[data-off~="photos"] :is(.pic, #e-photo) { display: none !important; }
body[data-off~="planning"] :is(.f-planning, #recipesbtn, #pantrybtn) { display: none !important; }

/* Offline-Hinweis, Wochenplan, Vorrat, Siri, Preisverlauf */
.offlinebar { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,122,26,0.12); border: 1px solid rgba(255,122,26,0.4); color: var(--ink); font-size: 14px; }
.offlinebar.ok { background: var(--accent-soft); border-color: var(--accent); }
.planbox { display: flex; flex-direction: column; gap: 8px; }
.planbox h3, #rechead { margin: 4px 0 0; }
.planrow { display: grid; grid-template-columns: 74px 1fr 52px; gap: 8px; align-items: center; }
.planrow .d { font-size: 14px; font-weight: 700; }
.planrow .d.today { color: var(--accent); }
.planrow select, .planrow input { background: var(--paper2); font-size: 15px; padding: 8px 10px; min-width: 0; }
.planrow input { text-align: center; }
.planrow.added .d::after { content: " ✓"; color: var(--accent); }
.plannote { font-size: 13px; color: var(--muted); margin: 0; }
.pantryform { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.pantryform input { background: var(--paper2); }
.pantrylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pantrylist li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pantrylist .pn { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pantrylist .pb { display: block; font-size: 12px; color: var(--muted); }
.pantrylist li.soon .pb { color: var(--heat); font-weight: 700; }
.pantrylist li.gone .pb { color: var(--danger); font-weight: 700; }
.siribox { display: flex; flex-direction: column; gap: 8px; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--paper2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.steps b { color: var(--ink); }
.trend { font-size: 13px; color: var(--muted); }
.trend.up { color: var(--heat); }
.trend.down { color: var(--accent); }
.spark { width: 100%; height: 40px; display: block; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.steps li { display: list-item; padding: 0; border: 0; background: none; min-height: 0; }
/* Oeffentlicher Betrieb: AGB-Haken, Bestaetigung, Premium, Rechtliches */
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.terms input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.terms a, .legallinks a { color: var(--accent); }
.notice { border-color: rgba(255,122,26,0.5); }
.premiumbox { display: flex; flex-direction: column; gap: 10px; }
.premiumlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.premiumlist li { display: list-item; }
.subsection { display: flex; flex-direction: column; gap: 10px; }
.legallinks { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
body[data-locked~="premium"] :is(.f-prices, .pricebtn, .unitprice, .pricehint, .sumrow, .estbox, #e-history, #e-trend, #statsbtn, #offers, .deal, #scandeal, #receiptbtn, #scanlabel, #scanseen, #planbox, #r-importbox, #sirisection, .cart-actions .small) { display: none !important; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi strong { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }
/* Rechtstexte (Impressum, Datenschutz, AGB) */
.legal { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.legal h1 { font-size: clamp(30px, 8vw, 40px); }
.legal h2 { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 18px 0 0; }
.legal p, .legal li { color: #C9CED6; }
.legal a { color: var(--accent); }
.legal .draft { border: 1px dashed var(--heat); border-radius: 12px; padding: 12px 14px; color: var(--heat); }
.legal mark { background: rgba(255,122,26,0.2); color: var(--ink); padding: 0 3px; border-radius: 4px; }
