/* =====================================================================
   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:      #e23744;   /* Restaurant-Akzent (von der OS-App überschrieben) */
  --brand-ink:  #ffffff;   /* Text auf Brand-Flächen */
  --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); }
.sf-star { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 700; }
.sf-star svg { width: 16px; height: 16px; color: var(--brand); }

/* ============ 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: nowrap; }
.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; 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; 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); } }
}

/* ============ 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; }
.sf-cutlery { display: flex; align-items: center; gap: 12px; 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: 15px; 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-phone { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.sf-co-flag { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px; background: var(--bg-2); border: 1.5px solid var(--line-2); border-radius: 12px; }
.sf-co-flag > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); }
.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-social--google { background: #fff; border: 1px solid var(--line-2); color: #3c4043; }
.sf-co-social--apple { background: #000; color: #fff; }
.sf-co-social--apple svg { color: #fff; }
.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; }
.sf-co-agree { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--bg-2); border-radius: 12px; font-weight: 700; cursor: pointer; margin-bottom: 20px; }

.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-pp { font-weight: 800; color: #003087; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; }
.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-promo { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sf-co-promo .sf-co-input { margin-bottom: 0; border-width: 1.5px; border-color: var(--line-2); height: 48px; }
.sf-co-promo__btn { height: 48px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; }
.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 ============ */
.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; }
}
