/* BOME Bestellseite — schlanke WhatsApp-Bestell-Oberfläche (Übergangslösung).
   Marke: Playfair Display (Headlines) + Raleway (Text/Labels), Ink/Weiß/Gold. */

:root {
  --ink: #1c1c1a;
  --ink-soft: #6b6b66;
  --line: #e7e4dd;
  --paper: #ffffff;
  --bg: #fafafa;
  --gold: #ab8d69;
  --gold-dark: #8c7152;
  --green: #2f7a4f;
  --danger: #9a2c2c;
  --radius: 3px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Raleway', system-ui, -apple-system, sans-serif;
  --bar-h: 74px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0));
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Kopf ───────────────────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hd__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hd__brand img { width: 40px; height: 40px; }
.hd__sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 480px) { .hd__sub { display: none; } }
.hd__cart {
  position: relative; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); padding: 9px 16px; border-radius: var(--radius);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.hd__badge {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ── Intro ──────────────────────────────────────────── */
.intro { max-width: 760px; margin: 0 auto; padding: 28px 16px 10px; text-align: center; }
.intro__eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dark); }
.intro__title { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; }
.intro__text { margin: 12px auto 0; max-width: 46ch; color: var(--ink-soft); font-size: 15px; }
.intro__note { margin: 14px 0 0; font-size: 13px; font-weight: 600; }
.intro__note.closed { color: var(--danger); }
.intro__note.open { color: var(--green); }

/* ── Sticky Kategorien ──────────────────────────────── */
.cats {
  position: sticky; top: 60px; z-index: 30;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px; background: var(--bg);
  border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }
.cats__btn {
  white-space: nowrap; border: 0; background: transparent; color: var(--ink-soft);
  padding: 8px 12px; border-radius: var(--radius); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.cats__btn.is-active { background: var(--ink); color: #fff; }

/* ── Speisekarte ────────────────────────────────────── */
.menu { max-width: 820px; margin: 0 auto; padding: 8px 16px 24px; }
.loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.sec { padding-top: 26px; scroll-margin-top: 116px; }
.sec__title { font-size: 24px; }
.sec__title small { color: var(--gold); }
.sec__sub { margin: 18px 0 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
/* Mobil 2 Karten nebeneinander, Desktop 3 */
.grid { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
/* Enge 2er-Karten: kompaktere Innenabstände, damit Button + Text passen */
@media (max-width: 559px) {
  .card { padding: 12px; }
  .card__badges { gap: 8px; }
  .btn--add { padding-left: 8px; padding-right: 8px; letter-spacing: .04em; }
}

.card {
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); background: var(--paper); border-radius: 16px;
  padding: 14px;
}
.card.is-out { opacity: .55; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__name { font-size: 15px; font-weight: 700; line-height: 1.25; }
/* Preis unten links (Wolt-Stil) */
.card__price { display: block; font-weight: 800; color: var(--gold-dark); font-size: 16px; margin-bottom: 10px; }
.card__desc { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 2px; background: var(--line); color: var(--ink-soft); }
.tag--vegan { background: #e5f0e8; color: var(--green); }
.tag--vegetarisch { background: #eef4ea; color: #4a7a3a; }
.tag--neu, .tag--signature { background: var(--gold); color: #fff; }
.tag--scharf { background: #f6e3e0; color: var(--danger); }
.tag--superfood, .tag--halal, .tag--fairtrade, .tag--glutenfrei { background: #efe9df; color: var(--gold-dark); }
.card__allerg { margin-top: 8px; font-size: 11px; color: var(--ink-soft); }
.card__bottom { margin-top: 14px; }
.card__foot { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius); font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; padding: 12px 16px; border: 1px solid transparent; width: 100%;
}
.btn--add { border-color: rgba(28,28,26,.25); background: transparent; color: var(--ink); white-space: nowrap; border-radius: 10px; }
.btn--add:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--wa { background: #25d366; color: #08351c; }
.btn--wa:hover { background: #1eb257; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn--danger { background: transparent; border-color: rgba(154,44,44,.4); color: var(--danger); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.card__out { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }

/* ── Footer ─────────────────────────────────────────── */
.ft { max-width: 820px; margin: 0 auto; padding: 20px 16px 40px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.ft__pay { font-weight: 700; color: var(--ink); }
.ft__legal { margin-top: 6px; }
.ft__addr { margin-top: 12px; }
.ft__links { margin-top: 8px; font-size: 12px; }
.ft__links a { text-decoration: none; }
.ft__links a:hover { color: var(--gold-dark); }

/* ── schwebende Warenkorb-Leiste ────────────────────── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.bar__btn {
  width: 100%; max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: var(--gold); color: #fff; border: 0; border-radius: var(--radius);
  padding: 15px 18px; font-weight: 800; letter-spacing: .06em;
}
.bar__btn:hover { background: var(--gold-dark); }
/* Gratis-Beilage: Fortschritt schon in der schwebenden Leiste */
.bar__gift { width: 100%; max-width: 820px; margin: 0 auto 9px; display: flex; flex-direction: column; gap: 5px; }
.bar__gift-txt { font-size: 11.5px; font-weight: 700; line-height: 1.35; color: var(--ink-soft); }
.bar__gift-txt strong { color: var(--gold-dark); }
.bar__gift-track { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar__gift-fill { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .3s ease; }
.bar__gift.is-ok .bar__gift-txt, .bar__gift.is-ok .bar__gift-txt strong { color: var(--green); }
.bar__gift.is-ok .bar__gift-fill { background: var(--green); }
/* Leiste wird durch die Fortschrittszeile höher – Platz am Seitenende schaffen */
body.has-giftbar { padding-bottom: calc(var(--bar-h) + 46px + env(safe-area-inset-bottom, 0)); }
body.has-giftbar .toast { bottom: calc(var(--bar-h) + 62px); }

.bar__count { background: rgba(255,255,255,.25); border-radius: 999px; min-width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.bar__label { flex: 1; text-align: left; text-transform: uppercase; font-size: 13px; }
.bar__total { font-size: 15px; }

/* ── Overlays (Sheet / Drawer / Sent) ───────────────── */
.sheet, .drawer, .sent {
  position: fixed; inset: 0; z-index: 60; display: flex;
  background: rgba(28,28,26,.5); animation: fade .15s ease;
}
/* WICHTIG: display:flex oben würde das [hidden]-Attribut überschreiben →
   Overlays müssen bei hidden explizit verborgen werden, sonst liegen sie
   dauerhaft über der Seite. */
.sheet[hidden], .drawer[hidden], .sent[hidden] { display: none; }
.sheet { align-items: flex-end; justify-content: center; }
.drawer { justify-content: flex-end; }
.sent { align-items: center; justify-content: center; padding: 20px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet__panel {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--bg); border-radius: 10px 10px 0 0; padding: 18px 18px 24px;
  animation: up .2s ease;
}
@media (min-width: 560px) { .sheet { align-items: center; } .sheet__panel { border-radius: 6px; } }
@keyframes up { from { transform: translateY(24px); } to { transform: translateY(0); } }

.drawer__panel {
  width: 100%; max-width: 480px; height: 100%; overflow-y: auto;
  background: var(--bg); padding: 18px 18px calc(24px + env(safe-area-inset-bottom,0));
  animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(30px); } to { transform: translateX(0); } }

.ovh { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ovh h2 { font-size: 22px; line-height: 1.15; }
.close { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--ink-soft); padding: 0 4px; }

/* Produkt-Sheet Inhalt */
.sh__desc { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.sh__grp { margin-top: 20px; }
.sh__lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  padding: 11px 13px; font-size: 14px; margin-bottom: 7px; cursor: pointer;
}
.opt.is-sel { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.opt input { accent-color: var(--gold); margin-right: 10px; }
.opt__price { color: var(--ink-soft); font-size: 13px; }
.field { width: 100%; border: 1px solid rgba(28,28,26,.2); border-radius: var(--radius); padding: 11px 12px; font-size: 15px; font-family: inherit; background: #fff; }
.field:focus { outline: none; border-color: var(--gold); }
textarea.field { min-height: 62px; resize: vertical; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qty button { width: 44px; height: 44px; font-size: 20px; background: transparent; border: 0; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.sh__foot { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.sh__foot .btn { flex: 1; }
.confirm-note { margin-top: 8px; font-size: 12px; color: var(--gold-dark); }

/* Warenkorb / Checkout */
.line { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 12px 13px; margin-bottom: 10px; }
.line__top { display: flex; justify-content: space-between; gap: 10px; }
.line__name { font-weight: 700; font-size: 14px; }
.line__meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.line__price { white-space: nowrap; font-weight: 700; }
.line__ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.line__rm { border: 0; background: transparent; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); text-decoration: underline; }
.sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.sum__row { display: flex; justify-content: space-between; font-size: 15px; margin-top: 4px; }
.sum__row--total { font-weight: 800; font-size: 18px; }
.formgrid { display: grid; gap: 12px; margin-top: 8px; }
.formrow label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.req::after { content: " *"; color: var(--danger); }
.times { display: grid; gap: 7px; }
.timebtn { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.timebtn.is-sel { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.callout { border-left: 3px solid var(--gold); background: #fff; border-radius: var(--radius); padding: 11px 13px; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.err { color: var(--danger); font-weight: 700; font-size: 13px; margin-top: 12px; }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* Sent-Overlay */
.sent__box { background: var(--bg); border-radius: 8px; max-width: 440px; width: 100%; padding: 26px 22px; text-align: center; }
.sent__box h2 { font-size: 22px; }
.sent__box p { color: var(--ink-soft); font-size: 14px; margin: 12px 0 0; }
.sent__box .btn { margin-top: 8px; }
.sent__actions { display: grid; gap: 8px; margin-top: 18px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px); transform: translateX(-50%);
  z-index: 80; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.hidden { display: none !important; }

/* ── Verkaufsförderung: Badges, Signature-/Bestseller-Karten, Cross-Sell ──
   CD-Farben + vorgegebenes Bestseller-Grün #5C7650. */

/* Kennzeichnung: Signature = goldenes Icon, Bestseller = grünes Icon.
   Keine Farbflächen mehr – nur farbige Icons + Label, Karten bleiben weiß. */
.card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; color: #fff; }
.badge svg { width: 12px; height: 12px; display: block; flex: none; color: #fff; }
.badge--sig { background: var(--gold); }
.badge--best { background: #5C7650; }

/* Vertrauens-Zeile: Bewertungen (wie Startseite) + Argumente */
.trust { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trust__rev {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 7px 13px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 13px; font-weight: 600;
}
.trust__rev:hover { border-color: var(--gold); }
.trust__star { color: var(--gold); font-size: 1.05em; }
.trust__rev strong { font-weight: 800; }
.trust__muted { color: var(--ink-soft); font-weight: 600; }
.trust__pts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12.5px; color: var(--ink-soft); }
.trust__pt { display: inline-flex; align-items: center; gap: 6px; }
.trust__pt::before { content: "✓"; color: var(--gold-dark); font-weight: 800; }

/* Wiederbestellung („Das Übliche?“) */
.reorder {
  display: block; width: 100%; max-width: 460px; margin: 14px auto 0; text-align: left;
  border: 1px solid var(--gold); background: var(--paper); border-radius: 12px;
  padding: 12px 16px; font-family: var(--sans); cursor: pointer; min-height: 48px;
}
.reorder:hover { background: #fdfbf7; }
.reorder__lbl { display: block; font-size: 13px; font-weight: 800; color: var(--gold-dark); letter-spacing: .02em; }
.reorder__items { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Gratis-Beilage: Fortschritt */
.gift { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.gift--ok { border-color: var(--green); background: #f2f8f4; }
.gift__txt { font-size: 13.5px; color: var(--ink); }
.gift--ok .gift__txt { color: var(--green); }
.gift__bar { margin-top: 9px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gift__bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .3s ease; }
.gift--ok .gift__bar span { background: var(--green); }

/* „Passt perfekt dazu“-Layer */
.upsell__list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.upsell__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  border: 1px solid var(--line); background: var(--paper); border-radius: 12px;
  padding: 12px 14px; font-family: var(--sans); cursor: pointer; min-height: 56px;
}
.upsell__item:hover { border-color: var(--gold); }
.upsell__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upsell__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.upsell__desc { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upsell__price { font-size: 13px; font-weight: 800; color: var(--gold-dark); white-space: nowrap; }

/* „Neu“-Siegel (Starburst) oben rechts in der Karte */
.neuburst { position: relative; width: 42px; height: 42px; color: var(--gold); flex: none; }
.neuburst svg { width: 100%; height: 100%; display: block; }
.neuburst > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; }

/* Upselling-Chips im Warenkorb (Getränke + Dessert) */
.xsell { margin: 16px 0 2px; }
.xsell__row { display: flex; flex-wrap: wrap; gap: 8px; }
.xsell__chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 9px 12px; font-family: var(--sans); cursor: pointer; }
.xsell__chip:hover { border-color: var(--gold); }
.xsell__name { font-size: 12px; font-weight: 700; color: var(--ink); }
.xsell__price { font-size: 11px; font-weight: 800; color: var(--gold-dark); }
.xsell__chip--feat { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.xsell__feat { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }

/* Kleingedruckte Hinweise (Sonderwunsch, Dip-Empfehlung) */
.sh__hint { margin: 6px 0 8px; font-size: 12px; line-height: 1.55; color: var(--ink-soft); }

/* Dropdowns im Look der Eingabefelder */
select.field { height: 46px; appearance: auto; -webkit-appearance: auto; color: var(--ink); }

/* Mobile: großzügigere Tap-Flächen, ruhigeres Tippen */
.btn { min-height: 48px; }
.opt { min-height: 46px; }
.timebtn { min-height: 48px; }
