/* ─── Bottom-Nav: schwebende Insel, 12px-Rundung wie die Textfelder (ersetzt die FABs) ─── */
.bnav { position: fixed; bottom: calc(12px + var(--safe-bottom)); left: max(14px, calc(50% - 286px)); right: max(14px, calc(50% - 286px)); display: flex; align-items: center; justify-content: space-around; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(var(--border-warm), 0.22); border-radius: 12px; padding: 3px 8px 5px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.bnav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; color: var(--gray-500); background: none; border: none; flex: 1; padding: 10px 0; transition: transform 0.12s; }
.bnav-item svg { width: 24px; height: 24px; }
/* Handy: nur Icons — die Labels drängelten sich (Flo 07.07.); ab 1020px ist
   Platz, dort kommen sie zurück (responsive.css) */
.bnav-item span { display: none; }
.bnav-item.active { color: var(--grad-b); }
.bnav-item.disabled { opacity: 0.38; }
.bnav-item:active { transform: scale(0.94); }
/* Plus ragt über die Insel hinaus (Vorgabe Flo) — Ring in Seitenhintergrund-Farbe als Freisteller */
.bnav-plus { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 300; border: 3px solid var(--bg-c); box-shadow: 0 5px 14px rgba(var(--glow), 0.4); flex-shrink: 0; margin: -26px 4px 0; transition: transform 0.12s; }
.bnav-plus:active { transform: scale(0.92); }
/* Handy: Rezeptbuch-Tab STATT „Liste"-Tab (Flo 07.07. — Scroll-to-top war ihm
   weniger wert als das Rezeptbuch). Ab 1020px kommt „Liste" zurück und der
   Chat-Tab verschwindet (Chat ist dort angedockt), siehe responsive.css. */
.bnav-item[data-action="bnavList"] { display: none; }

/* ─── Snackbar ───
   260 = über .dash-screen (250, z. B. „Danke für dein Feedback" in der
   Verwaltung sichtbar), aber unter den .overlay-Modals (300). */
.snackbar { position: fixed; bottom: calc(94px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; display: none; align-items: center; gap: 14px; z-index: 260; box-shadow: var(--shadow-lg); white-space: nowrap; }
.snackbar.visible { display: flex; }
.snackbar button { background: var(--primary); border: none; color: white; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; }

/* ─── Bottom sheets (generic) ─── */
/* Über .dash-screen (250): Feedback, Tarife und Code-Einlösen öffnen aus der
   Verwaltung heraus, ohne sie zu schließen — das Modal muss also darüber liegen. */
/* Die Tastatur-Ausweiche (--kb) sitzt als TRANSFORM auf den Sheets selbst,
   nicht als Padding hier: Safari friert Layout-Updates während der Tastatur-
   Einblendung ein (nur Scroll erzwang den Repaint — Flo 09.07., v42-Test);
   Compositor-Transforms laufen daran vorbei. */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; align-items: flex-end; justify-content: center; z-index: 300; }
.overlay.visible { display: flex; }
.sheet-handle { width: 40px; height: 5px; background: rgba(255,255,255,0.3); border-radius: 3px; margin: 0 auto 16px; }

/* ─── Add Sheet (hell, wie Mockup 03) ─── */
/* Untere Rundung = min(--kb, 22px): am Bottom angedockt 0, über der Tastatur
   schwebend die App-Rundung (Flo 09.07. — eckige Ecken überm Keyboard).
   translateY(-–kb) hebt das Sheet über die iOS-Tastatur (Compositor, s.o.);
   das sheetUp-Öffnen animiert dieselbe Property und gewinnt für 0,25 s. */
.add-sheet { background: #fff; color: var(--ink); border-radius: 22px 22px min(var(--kb), 22px) min(var(--kb), 22px); width: 100%; max-width: 600px; padding: 12px 16px; padding-bottom: max(16px, var(--safe-bottom)); max-height: 88dvh; overflow-y: auto; animation: sheetUp 0.25s ease; box-shadow: 0 -6px 24px rgba(0,0,0,0.12); transform: translateY(calc(var(--kb) * -1)); will-change: transform; transition: transform 0.15s ease; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.add-input-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 5px 5px 5px 14px; margin-bottom: 14px; border: 1.5px solid var(--gray-200); }
.add-input-row input { flex: 1; background: transparent; border: none; color: var(--ink); font-size: 16px; outline: none; }
.add-input-row input::placeholder { color: var(--gray-400); }
.add-send { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); border: none; color: white; font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.add-send:active { opacity: 0.85; }
.add-send:disabled { background: var(--gray-200); color: var(--gray-400); }
.add-count { font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 4px; padding: 0 2px; }
.parse-row { display: flex; align-items: center; gap: 11px; padding: 10px 2px; border-bottom: 1px solid rgba(var(--border-warm), 0.16); }
.parse-row:last-of-type { border-bottom: none; }
.parse-emoji { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--grad-b); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.parse-name { flex: 1; font-size: 15px; font-weight: 500; min-width: 0; }
/* inline store selector per parsed item */
.parse-store-sel { background: var(--gray-100); border: none; border-radius: 8px; color: var(--gray-600); font-size: 11.5px; font-weight: 700; padding: 6px 9px; appearance: none; -webkit-appearance: none; cursor: pointer; flex-shrink: 0; }
.add-all-btn { width: 100%; margin-top: 14px; padding: 15px; background: var(--grad); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 10px -2px rgba(var(--glow), 0.35); }
.add-all-btn:active { opacity: 0.85; }
.add-all-btn:disabled { background: var(--gray-200); color: var(--gray-400); box-shadow: none; }
.add-hint { text-align: center; color: var(--gray-500); font-size: 13px; padding: 24px 0; }

/* ─── Light sheets (list switcher, edit, WTP, upgrade) ─── */
.light-sheet { background: white; border-radius: 22px 22px min(var(--kb), 22px) min(var(--kb), 22px); width: 100%; max-width: 600px; padding: 14px 20px; padding-bottom: max(24px, var(--safe-bottom)); max-height: 88dvh; overflow-y: auto; animation: sheetUp 0.25s ease; transform: translateY(calc(var(--kb) * -1)); will-change: transform; transition: transform 0.15s ease; }
.light-handle { width: 40px; height: 5px; background: var(--gray-200); border-radius: 3px; margin: 0 auto 18px; }
.sheet-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }

/* ─── List Switcher ─── */
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.list-row:last-child { border-bottom: none; }
.list-row:active { opacity: 0.7; }
.list-row-icon { width: 36px; height: 36px; background: var(--gray-100); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.list-row-name { flex: 1; font-size: 16px; font-weight: 600; }
.list-row-count { font-size: 13px; color: var(--gray-400); }
.list-row-check { color: var(--primary); font-size: 18px; font-weight: 800; }
.list-row-set { background: none; border: 0; padding: 6px; color: var(--gray-400); cursor: pointer; display: inline-flex; align-items: center; flex-shrink: 0; }
.list-row-set svg { width: 18px; height: 18px; }
.list-row-set:active { color: var(--gray-600); }
.list-new-btn { width: 100%; margin-top: 14px; padding: 14px; background: var(--gray-100); color: var(--gray-700); border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; }

/* ─── Item Edit Sheet ─── */
.edit-field-label { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; margin-top: 14px; }
.edit-field { width: 100%; padding: 13px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 16px; transition: border-color 0.2s; }
.edit-field:focus { outline: none; border-color: var(--primary); }
.edit-store-sel { width: 100%; padding: 13px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 16px; appearance: none; -webkit-appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; }
.edit-store-sel:focus { outline: none; border-color: var(--primary); }
.edit-save-btn { width: 100%; margin-top: 18px; padding: 15px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; }
.edit-save-btn:active { background: var(--primary-dark); }
.edit-del-btn { width: 100%; margin-top: 10px; padding: 13px; background: var(--red-light); color: var(--red); border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; }

/* ─── Upgrade Modal (light) ─── */
.modal-title { font-size: 21px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.modal-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }
.tier-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.tier-card { border: 2px solid var(--gray-200); border-radius: 16px; padding: 14px 16px; transition: all 0.2s; cursor: pointer; }
.tier-card:active { background: var(--gray-100); }
.tier-card.current { border-color: var(--primary); background: var(--primary-light); cursor: default; }
.tier-card.highlight { border-color: #a855f7; background: #faf5ff; }
.tier-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tier-card-name { font-weight: 800; font-size: 16px; }
.tier-card-price { font-size: 15px; font-weight: 600; color: var(--gray-700); margin-left: auto; }
.tier-card-desc { font-size: 13px; color: var(--gray-500); }
.tier-card-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tag-popular { background: #faf5ff; color: #7c3aed; }
.code-label { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; padding: 11px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.code-row input:focus { outline: none; border-color: var(--primary); }
.code-row button { padding: 11px 18px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 700; white-space: nowrap; }
.code-feedback { font-size: 13px; margin-top: 6px; min-height: 18px; }
.code-feedback.ok { color: var(--primary-dark); }
.code-feedback.err { color: var(--red); }
.modal-close { width: 100%; margin-top: 16px; padding: 13px; background: var(--gray-100); color: var(--gray-700); border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; }
.upgrade-note { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 12px; }

/* ─── WTP / Fake-Door ─── */
.wtp-emoji { font-size: 40px; text-align: center; margin-bottom: 12px; }
.wtp-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.wtp-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; line-height: 1.5; }
.wtp-input { width: 100%; padding: 13px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 16px; margin-bottom: 12px; }
.wtp-input:focus { outline: none; border-color: var(--primary); }
.wtp-submit { width: 100%; padding: 15px; background: var(--ink); color: white; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; }
.wtp-submit:active { background: var(--ink-soft); }
.wtp-skip { width: 100%; padding: 13px; background: transparent; color: var(--gray-500); border: none; font-size: 14px; margin-top: 6px; }

/* ─── Ad Banner ─── */
.ad-banner { margin: 6px 16px 2px; padding: 10px 14px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.ad-tag { font-size: 10px; font-weight: 800; color: #ea580c; background: #ffedd5; padding: 2px 6px; border-radius: 5px; white-space: nowrap; letter-spacing: 0.3px; }
.ad-text { font-size: 13px; color: var(--gray-400); flex: 1; }

.toggle { width: 44px; height: 26px; background: var(--gray-200); border-radius: 13px; position: relative; cursor: pointer; border: none; transition: background 0.2s; flex-shrink: 0; }
.toggle.on { background: var(--primary); }
.toggle::after { content: ''; position: absolute; width: 22px; height: 22px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle.on::after { transform: translateX(18px); }

/* ─── History Sheet ─── */
.hist-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.hist-item:last-child { border-bottom: none; }
.hist-emoji { width: 36px; height: 36px; background: var(--gray-100); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hist-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-amount { font-size: 13px; color: var(--gray-400); font-weight: 400; }
.hist-store { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.hist-done { font-size: 14px; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.hist-section { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin: 14px 0 4px; }

/* Farbcode der Liste im Listen-Switcher (Kachel hinter dem 🛒 = gewähltes Farbschema) */
.list-row-icon.t-terracotta { background: #F4DBC4; }
.list-row-icon.t-green      { background: #D9E9D2; }
.list-row-icon.t-blue       { background: #D3E2F2; }
.list-row-icon.t-amber      { background: #F3E4C2; }
.list-row-icon.t-berry      { background: #E9D6EC; }
.list-row-icon.t-rose       { background: #F2D6DF; }

/* ─── Announcements & Changelog (§20.1) ─── */
/* Wartungsbanner: bewusst themenunabhängig gelb (Warnfarbe), nicht wegklickbar */
.maint-banner { margin: 6px 16px 2px; padding: 10px 14px; background: #FEF3C7; border: 1px solid #FCD34D; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: #78350F; line-height: 1.45; }

.cl-entry { padding: 12px 0 14px; border-bottom: 1px solid var(--gray-100); }
.cl-entry:last-of-type { border-bottom: none; }
.cl-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cl-chip { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 99px; }
.cl-chip.cl-feature   { background: var(--primary-light); color: var(--primary-dark); }
.cl-chip.cl-important { background: #FEE2E2; color: #991B1B; }
.cl-chip.cl-info      { background: var(--gray-100); color: var(--gray-600); }
.cl-date { font-size: 12px; color: var(--gray-400); }
.cl-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.cl-body { font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.cl-body code { background: var(--gray-100); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.cl-more { display: block; width: 100%; margin-top: 10px; padding: 8px; background: none; border: none; color: var(--primary); font-size: 14px; font-weight: 700; text-align: center; }
