/* =====================================================================
   VILO Storefront — helles, white-label Bestell-Design (Uber-Eats-Stil)
   ---------------------------------------------------------------------
   Bewusst getrennt von _pattern.css (dem dunklen OS-Hausstil), weil die
   Storefront auf der EIGENEN Website des Betriebs eingebettet läuft.
   EIN Template für alle Betriebe — pro Restaurant über --brand gebrandet.

   Regeln (VILO-konform übertragen):
     · Volle Farben (kein rgba-Fill, keine Gradients — Tints via color-mix).
     · Keine Shadows → 1px-Border + Flächen-Wechsel als Elevation.
     · Keine Emojis → Inline-SVG-Food-Glyphs in Brand-Tint.
     · Deutsche UI, tabular-nums für Preise.
   ===================================================================== */

:root {
  --brand:      #2b2d31;   /* EIN neutraler Rückfall; der Akzent des Betriebs kommt vom Server (applyBrand) */
  --brand-ink:  #ffffff;   /* Text auf Brand-Flächen — applyBrand setzt ihn nach der Leuchtdichte des Akzents */
  --bg:         #ffffff;
  --bg-2:       #f6f6f7;
  --bg-3:       #eeeff1;
  --card:       #ffffff;
  --ink:        #111214;
  --ink-2:      #5b5f66;
  --ink-3:      #8b9098;
  --line:       #e6e7e9;
  --line-2:     #d6d8db;
  --ok:         #0e8a4f;
  --radius:     16px;
  --radius-sm:  12px;
  --radius-pill:999px;
  --maxw:       1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  /* abgeleitete Brand-Tints (solid, via color-mix) */
  --brand-soft:  color-mix(in srgb, var(--brand) 12%, #ffffff);
  --brand-soft2: color-mix(in srgb, var(--brand) 20%, #ffffff);
  --brand-tint:  color-mix(in srgb, var(--brand) 8%,  #ffffff);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
svg { display: block; }
.tnum { font-variant-numeric: tabular-nums; }

/* ============ TOP BAR ============ */
.sf-top {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.sf-top__in {
  max-width: var(--maxw); margin: 0 auto;
  height: 60px; padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.sf-top__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sf-top__logo {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center;
}
.sf-top__logo svg { width: 20px; height: 20px; }
.sf-top__name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-top__spacer { flex: 1; }
.sf-cartbtn {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-weight: 600;
}
.sf-cartbtn svg { width: 18px; height: 18px; }
.sf-cartbtn__count { font-variant-numeric: tabular-nums; }
.sf-cartbtn--empty { background: var(--bg-3); color: var(--ink-2); }

/* ============ HERO ============ */
.sf-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.sf-hero__band {
  max-width: var(--maxw); margin: 0 auto; padding: 20px;
}
.sf-hero__cover {
  height: 200px; border-radius: var(--radius); overflow: hidden;
  background: var(--brand); color: var(--brand-ink);
  position: relative; display: flex; align-items: flex-end; padding: 22px;
}
.sf-hero__cover-glyph {
  position: absolute; right: -20px; top: -30px; width: 260px; height: 260px;
  color: color-mix(in srgb, #ffffff 22%, var(--brand)); pointer-events: none;
}
.sf-hero__cover-glyph svg { width: 100%; height: 100%; }
.sf-hero__cover-tag {
  position: relative; font-weight: 700; font-size: 13px;
  background: #ffffff; color: var(--brand);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.sf-hero__info { padding: 16px 4px 4px; }
.sf-hero__title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.sf-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.sf-hero__meta b { color: var(--ink); font-weight: 700; }
.sf-hero__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

/* ============ MODE BAR (Liefern / Abholen) ============ */
.sf-mode { background: var(--bg); border-bottom: 1px solid var(--line); }
.sf-mode__in {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sf-seg { display: inline-flex; background: var(--bg-3); border-radius: var(--radius-pill); padding: 4px; }
.sf-seg__btn {
  height: 36px; padding: 0 20px; border-radius: var(--radius-pill);
  font-weight: 600; color: var(--ink-2);
}
.sf-seg__btn.is-active { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.sf-mode__addr {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px;
  height: 40px; padding: 0 14px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink);
}
.sf-mode__addr svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.sf-mode__addr input { flex: 1; border: 0; background: transparent; outline: none; }
.sf-mode__eta { color: var(--ink-2); font-size: 14px; white-space: normal; line-height: 1.5; }
.sf-mode__eta b { color: var(--ink); }

/* ============ CATEGORY NAV (sticky) ============ */
.sf-cats { position: sticky; top: 60px; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.sf-cats__in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.sf-cats__in::-webkit-scrollbar { display: none; }
.sf-cat {
  flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--bg-3); color: var(--ink-2); font-weight: 600; white-space: nowrap;
}
.sf-cat.is-active { background: var(--ink); color: #fff; }

/* ============ BODY: menu + cart ============ */
.sf-body {
  max-width: var(--maxw); margin: 0 auto; padding: 20px;
  display: grid; grid-template-columns: 1fr 348px; gap: 28px; align-items: start;
}
.sf-menu { min-width: 0; }
.sf-sec { margin-bottom: 30px; scroll-margin-top: 120px; }
.sf-sec__title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }

/* dish rows */
.sf-dish {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 1fr 108px; gap: 16px; align-items: stretch;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.sf-sec .sf-dish:first-of-type { border-top: 0; }
.sf-dish:hover .sf-dish__name { color: var(--brand); }
.sf-dish__body { min-width: 0; display: flex; flex-direction: column; }
.sf-dish__name { font-size: 16px; font-weight: 700; letter-spacing: -0.005em; }
.sf-dish__desc {
  color: var(--ink-2); font-size: 14px; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sf-dish__price { margin-top: auto; padding-top: 10px; font-weight: 700; }
.sf-dish__price s { color: var(--ink-3); font-weight: 500; margin-left: 8px; }
.sf-dish__media { position: relative; }
.sf-dish__img {
  width: 108px; height: 108px; border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.sf-dish__img svg { width: 52px; height: 52px; }
.sf-dish__add {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--card); border: 1px solid var(--line-2);
  color: var(--ink); display: grid; place-items: center;
}
.sf-dish__add svg { width: 18px; height: 18px; }
.sf-dish__addqty {
  position: absolute; right: 8px; bottom: 8px; height: 36px; min-width: 36px;
  border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
  font-weight: 800; font-size: 16px; line-height: 1;
}
.sf-tag {
  align-self: flex-start; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--brand); color: var(--brand-ink);
}
.sf-tag--veg { background: var(--ok); color: #fff; }

/* ============ CART PANEL (desktop) ============ */
.sf-cart {
  position: sticky; top: 80px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.sf-cart__head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.sf-cart__title { font-size: 18px; font-weight: 800; }
.sf-cart__sub { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.sf-cart__lines { max-height: 46vh; overflow-y: auto; scrollbar-width: none; }
.sf-cart__lines::-webkit-scrollbar { display: none; }
.sf-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sf-line__thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); border: 1px solid var(--line); display: grid; place-items: center; }
.sf-line__thumb svg { width: 26px; height: 26px; }
.sf-line__body { min-width: 0; }
.sf-line__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-line__opt { color: var(--ink-3); font-size: 12.5px; }
.sf-line__edit { color: var(--brand); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.sf-line__price { font-weight: 700; font-size: 14px; }
.sf-cart__empty { padding: 34px 18px; text-align: center; color: var(--ink-3); }
.sf-cart__empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line-2); }
.sf-cart__foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.sf-sumrow { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); font-size: 14px; }
.sf-sumrow--total { color: var(--ink); font-weight: 800; font-size: 17px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.sf-minhint { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; text-align: center; }

/* ============ STEPPER ============ */
.sf-step { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.sf-step__b { width: 30px; height: 30px; border-radius: 50%; color: var(--brand); display: grid; place-items: center; }
.sf-step__b svg { width: 16px; height: 16px; }
.sf-step__n { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ BUTTONS ============ */
.sf-btn {
  width: 100%; height: 52px; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
}
.sf-btn > span { white-space: nowrap; }
.sf-btn:disabled { background: var(--bg-3); color: var(--ink-3); cursor: not-allowed; }
.sf-btn--dark { background: var(--ink); color: #fff; }
.sf-btn--ghost { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); }
.sf-btn__amt { margin-left: auto; font-variant-numeric: tabular-nums; }
.sf-btn--split { justify-content: space-between; padding: 0 20px; }

/* ============ MOBILE CART BAR ============ */
.sf-cartbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg);
  border-top: 1px solid var(--line);
}

/* ============ SHEET / MODAL ============ */
.sf-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in srgb, #0b0c0e 42%, transparent);
  display: flex; align-items: flex-end; justify-content: center;
}
.sf-scrim.is-center { align-items: center; }
.sf-sheet {
  width: 100%; max-width: 520px; max-height: 90vh; max-height: 90dvh; overflow-y: auto;
  background: var(--bg); border-radius: 20px 20px 0 0;
  scrollbar-width: none;
}
.sf-scrim.is-center .sf-sheet { border-radius: 20px; margin: 0 16px; }
.sf-sheet::-webkit-scrollbar { display: none; }
.sf-sheet__hero {
  height: 180px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; position: relative;
}
.sf-sheet__hero svg { width: 90px; height: 90px; }
.sf-sheet__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center;
}
.sf-sheet__close svg { width: 18px; height: 18px; }
.sf-sheet__body { padding: 20px; }
.sf-sheet__title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sf-sheet__desc { color: var(--ink-2); margin-top: 8px; }
.sf-sheet__foot { position: sticky; bottom: 0; background: var(--bg); padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }

/* option groups */
.sf-optg { margin-top: 22px; }
.sf-optg__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sf-optg__title { font-weight: 700; }
.sf-optg__req { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--bg-3); padding: 2px 8px; border-radius: 6px; }
.sf-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.sf-opt__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; }
.sf-opt.is-on .sf-opt__mark { border-color: var(--brand); background: var(--brand); }
.sf-opt.is-on .sf-opt__mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.sf-opt__name { flex: 1; }
.sf-opt__price { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ============ CHECKOUT ============ */
.sf-field { margin-bottom: 14px; }
.sf-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.sf-field input, .sf-field textarea, .sf-field select {
  width: 100%; min-height: 46px; padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); outline: none;
}
.sf-field input:focus, .sf-field textarea:focus { border-color: var(--brand); }
.sf-field textarea { min-height: 74px; resize: vertical; }
.sf-field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-radios { display: flex; flex-direction: column; gap: 10px; }
.sf-radio { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.sf-radio.is-on { border-color: var(--brand); background: var(--brand-tint); }
.sf-radio__mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; }
.sf-radio.is-on .sf-radio__mark { border-color: var(--brand); }
.sf-radio.is-on .sf-radio__mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.sf-radio__main { flex: 1; }
.sf-radio__name { font-weight: 600; }
.sf-radio__sub { font-size: 13px; color: var(--ink-3); }

/* ============ CONFIRM / STATUS ============ */
.sf-confirm { max-width: 560px; margin: 0 auto; padding: 40px 20px 80px; text-align: center; }
.sf-confirm__badge { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.sf-confirm__badge svg { width: 40px; height: 40px; }
.sf-confirm__title { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.sf-confirm__sub { color: var(--ink-2); margin-top: 8px; }
.sf-confirm__card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.sf-steps { display: flex; flex-direction: column; gap: 0; }
.sf-pstep { display: flex; gap: 14px; align-items: flex-start; }
.sf-pstep__rail { display: flex; flex-direction: column; align-items: center; }
.sf-pstep__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-3); color: var(--ink-3); border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.sf-pstep__dot svg { width: 14px; height: 14px; }
.sf-pstep__line { width: 2px; flex: 1; min-height: 26px; background: var(--line-2); }
.sf-pstep.is-done .sf-pstep__dot, .sf-pstep.is-active .sf-pstep__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.sf-pstep.is-done .sf-pstep__line { background: var(--brand); }
.sf-pstep__body { padding-bottom: 20px; }
.sf-pstep__name { font-weight: 700; }
.sf-pstep.is-idle .sf-pstep__name { color: var(--ink-3); }
.sf-pstep__hint { font-size: 13px; color: var(--ink-2); }

/* ============ FOOTER ============ */
.sf-foot { border-top: 1px solid var(--line); background: var(--bg); }
.sf-foot__in { max-width: var(--maxw); margin: 0 auto; padding: 20px; color: var(--ink-3); font-size: 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
.sf-foot__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sf-foot__links a { color: var(--ink-2); text-decoration: none; }
.sf-foot__links a:hover { color: var(--ink); text-decoration: underline; }
.sf-foot__bottom { font-size: 12.5px; }
.sf-foot__bottom a { color: var(--ink-2); text-decoration: underline; }
.sf-foot__bottom a:hover { color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .sf-body { grid-template-columns: 1fr; padding-bottom: 92px; }
  .sf-cart { display: none; }
  .sf-cartbar { display: block; }
  .sf-cats { top: 60px; }
  .sf-hero__cover { height: 150px; }
  .sf-hero__title { font-size: 24px; }
  .sf-dish { grid-template-columns: 1fr 92px; }
  .sf-dish__img { width: 92px; height: 92px; }
  .sf-dish__img svg { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  .sf-sheet { animation: sf-rise 240ms cubic-bezier(.2,.7,.2,1); }
  .sf-scrim.is-center .sf-sheet { animation: sf-pop 200ms cubic-bezier(.2,.7,.2,1); }
  @keyframes sf-rise { from { transform: translateY(24px); } to { transform: translateY(0); } }
  @keyframes sf-pop { from { transform: scale(.97); } to { transform: scale(1); } }
  /* Schließen (X / Tap außerhalb): Backdrop faden, Sheet sinkt ab (zentrierte Sheets schrumpfen). */
  .sf-scrim.is-closing { animation: sf-fade-out 200ms ease forwards; pointer-events: none; }
  .sf-scrim.is-closing .sf-sheet { animation: sf-sink 200ms cubic-bezier(.4,0,1,1) forwards; }
  .sf-scrim.is-center.is-closing .sf-sheet { animation: sf-shrink 200ms ease forwards; }
  @keyframes sf-fade-out { to { opacity: 0; } }
  @keyframes sf-sink { to { transform: translateY(24px); } }
  @keyframes sf-shrink { to { transform: scale(.97); } }
}

/* ============ WARENKORB-EXTRAS ============ */
.sf-cart__extras { padding: 0 18px; }
.sf-cart-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-weight: 700; color: var(--ink); margin: 12px 0; }
.sf-cart-add svg { width: 18px; height: 18px; }
/* „Artikel hinzufügen" schließt nur das Warenkorb-Sheet (mobil), um zur Karte zurückzukehren.
   Im Desktop-/iPad-Seitenpanel (.sf-cart, >860px) ist die Karte daneben ohnehin offen → sinnlos, daher aus. */
.sf-cart .sf-cart-add { display: none; }
.sf-cutlery { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.sf-cutlery__ic { color: var(--ink-2); display: grid; place-items: center; }
.sf-cutlery__ic svg { width: 22px; height: 22px; }
.sf-cutlery__t { flex: 1; font-weight: 600; }
.sf-cbox { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.sf-cbox.is-on { background: var(--brand); border-color: var(--brand); }
.sf-cbox svg { width: 15px; height: 15px; }
.sf-note { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; margin-bottom: 6px; border: 0; background: var(--bg-2); border-radius: var(--radius-sm); }
.sf-note__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sf-note__t { font-weight: 700; }
.sf-note__s { color: var(--ink-3); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-note__ic { color: var(--ink-3); }
.sf-note__ic svg { width: 20px; height: 20px; }

/* ============ CHECKOUT-WIZARD ============ */
.sf-co { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.sf-co-top { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sf-co-back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.sf-co-back:hover { background: var(--bg-2); }
.sf-co-back svg { width: 22px; height: 22px; }
.sf-co-title { font-weight: 700; font-size: 16px; }
.sf-co-body { padding: 24px 20px 40px; flex: 1; }
.sf-co-review { padding-bottom: 130px; }
.sf-co-h { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 18px; }
.sf-co-input { width: 100%; height: 52px; padding: 0 16px; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 12px; outline: none; font-size: 16px; margin-bottom: 12px; }
.sf-co-input::placeholder { color: var(--ink-3); }
.sf-co-input:focus { border-color: var(--brand); }
.sf-co-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-co-or { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13px; margin: 16px 0; }
.sf-co-or::before, .sf-co-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sf-co-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border-radius: 12px; background: var(--bg-3); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.sf-co-fine { color: var(--ink-2); font-size: 13px; line-height: 1.5; margin: 16px 0 20px; }
.sf-co-p { font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.sf-co-link { color: #2b6ef2; text-decoration: underline; }
button.sf-co-link { display: inline; padding: 0; font-size: inherit; font-weight: inherit; }

.sf-co-seg { width: 100%; margin-bottom: 4px; }
.sf-co-seg .sf-seg__btn { flex: 1; }
.sf-co-row, .sf-co-rsum { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.sf-co-row__ic, .sf-co-card__ic { width: 26px; display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.sf-co-row__ic svg, .sf-co-card__ic svg { width: 24px; height: 24px; }
.sf-co-rsum__logo { width: 40px; height: 40px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.sf-co-rsum__logo svg { width: 22px; height: 22px; }
.sf-co-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-co-card__t { font-weight: 700; }
.sf-co-card__s { color: var(--ink-2); font-size: 13px; margin-top: 1px; }
.sf-co-chev { color: var(--ink-3); flex-shrink: 0; }
.sf-co-chev svg { width: 20px; height: 20px; }
.sf-co-chev.is-open { transform: rotate(90deg); }
.sf-co-sec { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 8px; }
.sf-co-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--bg); }
.sf-co-card.is-on { border-color: var(--brand); background: var(--brand-tint); }
.sf-co-card__right { font-weight: 700; color: var(--ink); flex-shrink: 0; }
.sf-co-card__right svg { width: 20px; height: 20px; }
.sf-co-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; }
.sf-co-card.is-on .sf-co-radio { border-color: var(--brand); }
.sf-co-card.is-on .sf-co-radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.sf-co-items { padding: 4px 0 8px; }
.sf-co-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sf-co-item__o { color: var(--ink-3); }
.sf-co-promomsg { font-size: 13px; font-weight: 600; margin-top: 8px; }
.sf-co-promomsg.is-ok { color: var(--ok); }
.sf-co-promomsg.is-err { color: #c0362c; }
.sf-co-costs { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sf-co-costs .sf-sumrow { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); font-size: 14px; }
.sf-co-costs .sf-sumrow.is-disc span { color: var(--ok); }
.sf-co-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-top: 8px; color: var(--ink); }
.sf-co-vat { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; text-align: right; }
.sf-co-legal { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; margin-top: 18px; }
.sf-co-foot { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }

@media (max-width: 560px) {
  .sf-co-grid2 { grid-template-columns: 1fr; }
}

/* ============ SKELETON (Ladezustand echter Shops — keine Demo-Karte aufblitzen) ============ */
/* Neutrale Shimmer-Blöcke in der exakten Store-Geometrie: kein fremder Name/Preis, kein Layout-Sprung. */
.sf-sk {
  display: block; border-radius: 8px; background: var(--bg-3);
  position: relative; overflow: hidden;
}
.sf-sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #ffffff 92%, var(--bg-3)), transparent);
  animation: sf-sk-shimmer 1.15s ease-in-out infinite;
}
@keyframes sf-sk-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sf-sk::after { animation: none; } }

.sf-sk--logo  { width: 34px; height: 34px; border-radius: 9px; }
.sf-sk--name  { width: 150px; height: 18px; }
.sf-sk--cover { height: 200px; border-radius: var(--radius); }
.sf-sk--title { width: 58%; height: 30px; margin-top: 4px; border-radius: 10px; }
.sf-sk--meta  { width: 82%; height: 15px; margin-top: 12px; }
.sf-sk--chip  { flex-shrink: 0; width: 84px; height: 38px; border-radius: var(--radius-pill); }
.sf-sk--sec   { width: 180px; height: 22px; margin-bottom: 14px; }
.sf-sk-dish .sf-sk--line1 { width: 55%; height: 16px; }
.sf-sk-dish .sf-sk--line2 { width: 88%; height: 14px; margin-top: 8px; }
.sf-sk-dish .sf-sk--price { width: 64px; height: 15px; margin-top: auto; }
.sf-sk--img   { width: 108px; height: 108px; border-radius: var(--radius-sm); }

/* ============ Fehler beim Laden des echten Shops ============ */
/* #667 — „zurzeit geschlossen". Volle Farbe, kein Schatten, kein Emoji (VILO-Regeln). Der
   Hinweis steht ÜBER der Karte und nicht an ihrer Stelle: der Gast soll sehen, was es morgen
   gibt. Kein Rot — geschlossen ist kein Fehler, sondern eine Öffnungszeit. */
.sf-zu { background: var(--warn-soft, #fdf3e3); border-bottom: 1px solid var(--warn-line, #ecd9b4); }
.sf-zu__in { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.sf-zu__title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--warn-ink, #7a4d06); }
.sf-zu__sub { font-size: 14px; color: var(--warn-ink-2, #8a6320); line-height: 1.5; }
.sf-loaderr { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.sf-loaderr__box { max-width: 360px; text-align: center; }
.sf-loaderr__title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.sf-loaderr__sub { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }
.sf-loaderr__btn {
  margin-top: 18px; height: 46px; padding: 0 24px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-weight: 700;
}

/* Skeleton-Zeilen in Sheets (Konto → Bestellverlauf lädt frisch vom Server) */
.sf-sk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sf-sk-row:first-child { border-top: 0; }
.sf-sk-row__body { flex: 1; min-width: 0; }
.sf-sk--rowname { width: 52%; height: 14px; }
.sf-sk--rowsub  { width: 32%; height: 12px; margin-top: 8px; }
.sf-sk--rowval  { width: 56px; height: 14px; flex-shrink: 0; }

@media (max-width: 720px) {
  .sf-sk--cover { height: 150px; }
  .sf-sk--img   { width: 92px; height: 92px; }
}

/* ============ ADRESS-SHEET (Autovervollständigung + Ortung) ============ */
.sf-addr__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sf-addr__title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.sf-addr__x { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0; }
.sf-addr__x svg { width: 16px; height: 16px; }
.sf-addr__field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; background: var(--bg-2); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); }
.sf-addr__field > svg { width: 20px; height: 20px; color: var(--ink-3); flex-shrink: 0; }
.sf-addr__field:focus-within { border-color: var(--brand); }
.sf-addr__input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); }
.sf-addr__geo { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; height: 46px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.sf-addr__geo svg { width: 19px; height: 19px; }
.sf-addr__geo:disabled { opacity: .6; }
.sf-addr__msg { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: #c0362c; }
.sf-addr__list { margin-top: 8px; }
.sf-addr__row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 4px; border-top: 1px solid var(--line); }
.sf-addr__row:first-child { border-top: 0; }
.sf-addr__row > svg:first-child { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.sf-addr__row-line { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }
.sf-addr__row > svg:last-child { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.sf-addr__row:hover .sf-addr__row-line { color: var(--brand); }
.sf-addr__empty { padding: 16px 4px; color: var(--ink-3); font-size: 14px; }

/* Lieferhinweis-Sheet: Auswahl-Karten + Fahrer-Notiz */
.sf-co-cards { display: grid; gap: 10px; }
.sf-instr__note {
  width: 100%; min-height: 76px; margin-top: 8px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2);
  font: inherit; font-size: 16px; color: var(--ink); resize: vertical; outline: none;
}
.sf-instr__note:focus { border-color: var(--brand); }

/* ============ KONTO-SHEET (Drill-down: Start · Profil · Adressen · Bestellungen) ============ */
/* Kopfleiste jeder (Unter-)Seite: Zurück-Pfeil (oder Platzhalter) + Titel + Schließen. */
.sf-acct-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sf-acct-bar__t { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-acct-back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--bg-2); flex-shrink: 0; }
.sf-acct-back svg { width: 20px; height: 20px; }
.sf-acct-back--ph { background: transparent; pointer-events: none; }
/* Startseite: „Hallo {Vorname}!" + Avatar (klickbar → Name ändern). */
.sf-acct-hello { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 0 22px; }
.sf-acct-hello__h { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sf-acct-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 21px;
}
.sf-acct-avatar svg { width: 26px; height: 26px; }
.sf-acct-avatar--btn { background: var(--brand); color: var(--brand-ink); cursor: pointer; }
/* Sektionslabel + tappbare Menüzeilen. */
.sf-acct-sec { font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 4px; }
.sf-acct-nav { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sf-acct-nav:last-of-type { border-bottom: 0; }
.sf-acct-nav__ic { width: 26px; display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.sf-acct-nav__ic svg { width: 23px; height: 23px; }
.sf-acct-nav__t { flex: 1; min-width: 0; font-weight: 700; font-size: 15.5px; }
.sf-acct-nav__chev { color: var(--ink-3); flex-shrink: 0; }
.sf-acct-nav__chev svg { width: 18px; height: 18px; }
/* Profil-Formular: beschriftetes Feld; E-Mail (Login) nur lesbar. */
.sf-acct-field { display: block; margin-bottom: 14px; }
.sf-acct-field__l { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.sf-acct-ro { padding: 13px 15px; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--ink-2); font-size: 15px; border: 1px solid var(--line); }
/* Deutschland-Flagge als runder Badge (drei Streifen) — im Menü-Icon und auf der Land-Seite. */
.sf-flag { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: flex; flex-direction: column; flex-shrink: 0; }
.sf-flag i { display: block; flex: 1; }
/* Einstellungs-Zeile mit Schalter rechts. */
.sf-set-row { display: flex; align-items: center; gap: 14px; padding: 4px 0 2px; }
.sf-set-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-set-row__t { font-weight: 700; font-size: 15.5px; }
.sf-set-row__s { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
/* iOS-artiger Schalter — „an" grün (marken-unabhängig, damit es nicht mit rot/storniert kollidiert). */
.sf-switch { width: 50px; height: 30px; border-radius: var(--radius-pill); background: var(--line-2); position: relative; flex-shrink: 0; transition: background .18s ease; }
.sf-switch.is-on { background: var(--ok); }
.sf-switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.2,.7,.2,1); }
.sf-switch.is-on .sf-switch__knob { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .sf-switch, .sf-switch__knob { transition: none; } }
/* Auswahl-Zeile (Land/Sprache) mit Häkchen rechts. */
.sf-set-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.sf-set-opt:last-of-type { border-bottom: 0; }
.sf-set-opt__t { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.sf-set-opt__mk { color: var(--brand); flex-shrink: 0; }
.sf-set-opt__mk svg { width: 20px; height: 20px; }
.sf-set-opt.is-on .sf-set-opt__t { color: var(--ink); }

.sf-acct-sechead { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 6px; }
.sf-acct-sechead__t { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.sf-acct-new {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-pill); background: var(--bg-3); color: var(--ink); font-weight: 600; font-size: 13.5px;
}
.sf-acct-new svg { width: 15px; height: 15px; }

.sf-acct-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sf-acct-row:first-of-type { border-top: 0; }
.sf-acct-row__ic { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-3); color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0; }
.sf-acct-row__ic svg { width: 19px; height: 19px; }
.sf-acct-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-acct-row__t { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-acct-row__s { color: var(--ink-3); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-acct-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.sf-acct-del { width: 34px; height: 34px; border-radius: 50%; color: var(--ink-3); display: grid; place-items: center; flex-shrink: 0; }
.sf-acct-del svg { width: 17px; height: 17px; }
.sf-acct-del:hover { color: #c0362c; background: var(--bg-3); }
.sf-acct-empty { padding: 14px 2px; color: var(--ink-3); font-size: 14px; }

/* Modus-Leiste: Adresse als tappbares Feld statt Inline-Input */
.sf-mode__addr--btn { cursor: pointer; text-align: left; }
.sf-mode__addrtext { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-mode__addrtext.is-ph { color: var(--ink-3); }
.sf-mode__addr--btn > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }

/* ============ BESTELLUNGEN: Übersichts-Karten (Konto-Vorschau + volle Liste) ============ */
.sf-ord-list { display: grid; gap: 14px; margin-top: 4px; }
.sf-ord { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.sf-ord__top { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 14px; cursor: pointer; }
.sf-ord__logo {
  width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--brand-tint); color: var(--brand); display: grid; place-items: center;
}
.sf-ord__logo svg { width: 28px; height: 28px; }
.sf-ord__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sf-ord__shop { font-weight: 800; font-size: 15.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-ord__meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-ord__status { font-weight: 700; color: var(--ink-2); }
.sf-ord__status.is-live   { color: var(--brand); }
.sf-ord__status.is-done   { color: var(--ok); }
.sf-ord__status.is-cancel { color: #c0362c; }
.sf-ord__sum { font-size: 13.5px; color: var(--ink-2); }
.sf-ord__sum b { color: var(--ink); font-weight: 700; }
.sf-ord__chev { color: var(--ink-3); flex-shrink: 0; }
.sf-ord__chev svg { width: 18px; height: 18px; }
.sf-ord__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 14px; }
.sf-ord__btn { height: 44px; font-size: 14px; }
.sf-ord__empty { padding: 40px 18px; text-align: center; color: var(--ink-3); }
.sf-ord__empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line-2); }
.sf-ord--sk .sf-ord__top { cursor: default; }
.sf-sk--rowic  { width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0; }
.sf-sk--rowbtn { height: 44px; border-radius: var(--radius-pill); }
.sf-ord--sk .sf-ord__id { gap: 8px; }

/* ============ BESTELL-DETAIL: Quittung ============ */
.sf-odt__head { padding: 4px 0 18px; }
.sf-odt__title { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.sf-odt__date { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.sf-odt__where { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.sf-odt__wic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-3); color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0; }
.sf-odt__wic svg { width: 18px; height: 18px; }
.sf-odt__wtxt { min-width: 0; font-size: 14px; color: var(--ink); line-height: 1.45; }
.sf-odt__wtxt b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 2px; }
.sf-odt__receipt { margin: 16px 0; padding: 18px; }
.sf-odt__rhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sf-odt__shop { font-weight: 800; font-size: 15px; }
.sf-odt__ref { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sf-odt__lines { display: grid; gap: 12px; }
.sf-odt__line { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: baseline; }
.sf-odt__q { color: var(--ink-2); font-weight: 700; }
.sf-odt__nm { min-width: 0; font-size: 14.5px; color: var(--ink); }
.sf-odt__opt { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.sf-odt__pr { font-weight: 700; color: var(--ink); }
.sf-odt__rule { height: 1px; background: var(--line); margin: 14px 0; }
.sf-odt__paid { margin-top: 12px; }

/* ============ Toast (z. B. „Zum Warenkorb hinzugefügt") ============ */
.sf-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  z-index: 60; max-width: min(420px, calc(100vw - 32px));
  padding: 13px 20px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s cubic-bezier(.2,.7,.2,1);
}
.sf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .sf-toast { transition: opacity .2s ease; transform: translate(-50%, 0); } }

/* ============ Pilot (F2): Demo-Hinweis, Kennzeichen, Allergene, Fehler, Zahlung ============ */
/* Die Galerie zeigt einen erfundenen Betrieb — und sagt es, ohne zu schreien. */
.sf-demo { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.sf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sf-tags .sf-tag { margin-bottom: 0; }
.sf-sheet__body > .sf-tags { margin-top: 12px; }
.sf-tag--hot { background: #c2410c; color: #fff; }
.sf-tag--al { background: var(--bg-3); color: var(--ink); }
.sf-tag--warn { background: #b45309; color: #fff; }
.sf-tag--muted { background: var(--bg-3); color: var(--ink-2); }
/* Allergene im Gericht-Sheet: beim Namen, als Liste. „Keine Angabe" ist ein eigener Satz. */
.sf-al { margin-top: 22px; }
.sf-al__t { font-weight: 700; margin-bottom: 8px; }
.sf-al__list { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-al__i { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); color: var(--ink); }
.sf-al__none { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
/* Fehler stehen IN der Fläche, an der Stelle, wo sie zu beheben sind — kein window.alert mehr. */
.sf-err { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a1c13; font-size: 14px; font-weight: 600; line-height: 1.45; }
.sf-err > div + div { margin-top: 4px; }
.sf-err:focus { outline: 2px solid #8a1c13; outline-offset: 2px; }
.sf-co-ferr { margin: -4px 0 12px; color: #a1281d; font-size: 13px; font-weight: 600; }
.sf-co-row + .sf-co-ferr { margin-top: 6px; }
/* Stand der Verfolgung: der Zeitpunkt der letzten bestätigten Antwort. */
.sf-stand { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; }
.sf-stand:empty { display: none; }
.sf-confirm__badge.is-cancel { background: var(--ink-2); }
/* Zahlung ausstehend / wird geprüft. */
.sf-pend__sum { margin: -12px 0 18px; color: var(--ink-2); font-size: 15px; }
.sf-pend__sum b { color: var(--ink); }
.sf-pend .sf-err { margin: 0 0 14px; }
.sf-pend__ask { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--bg-2); }
.sf-pend__ask .sf-co-p { margin-bottom: 12px; }
.sf-pend__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Fußzeile: das Impressum ist ein Knopf (öffnet das Sheet), Datenschutz und AGB echte Links. */
.sf-foot__link { color: var(--ink-2); font-size: 13px; text-align: left; }
.sf-foot__link:hover { color: var(--ink); text-decoration: underline; }
.sf-imp__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 14px; }
.sf-imp__links a { color: var(--ink-2); text-decoration: underline; }
