/* SmartQR – Startseite (Design 2026-11)
 *
 * Layout-Idee: Eine echte Bestellung läuft quer über die Seite
 * (Gast → Küche → Service → Kasse wie bisher). Alles andere ist ruhiger Text.
 * Basis-Tokens, Buttons, Kopf, Fuß und Formular kommen aus style.css.
 * Bewusst NICHT: Glas-Karten, Großbuchstaben-Labels über Überschriften,
 * Einblend-Animation pro Abschnitt. Die einzige Animation ist die eintreffende
 * Bestellung (Bühne + Simulation).
 */

:root {
  --ink: var(--warm-900);
  --steel: #f1f2f0;            /* Edelstahl-Grau der Küche, Hintergrund der Bühne */
  --line: var(--border-default);
  --done: var(--green-600);
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

body { background: var(--surface-page); }
main { display: block; }
.num { font-variant-numeric: tabular-nums; }


/* ─── Hero ──────────────────────────────────────────────────────────────── */
.h-hero__grid {
  padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px); align-items: end;
}
.h-hero__title {
  margin: 0; font-size: clamp(44px, 7.2vw, 92px); line-height: .96;
  letter-spacing: -0.035em; font-weight: var(--fw-black); color: var(--ink); text-wrap: balance;
}
.h-hero__side { display: grid; gap: 22px; padding-bottom: 6px; min-width: 0; }
.h-hero__body { margin: 0; font-size: var(--text-body-l); line-height: 1.5; color: var(--text-body); max-width: 36ch; }
.h-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.h-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--text-body-s); color: var(--text-muted); }
.h-facts li { display: inline-flex; align-items: center; gap: 7px; }
.h-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--done); flex: none; }

/* ─── Bühne: drei echte Bildschirme ─────────────────────────────────────── */
.h-stage { background: var(--steel); border-block: var(--border-width) solid var(--line); }
.h-stage .wrap { padding-block: clamp(24px, 4vw, 40px) 24px; }
.h-screens {
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 2fr) minmax(0, .62fr);
  gap: clamp(12px, 2.4vw, 32px); align-items: end;
}
.h-dev { margin: 0; display: grid; gap: 12px; min-width: 0; }
.h-dev img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  border: var(--border-width) solid var(--line); background: #fff;
  box-shadow: 0 18px 40px -24px rgba(28, 25, 22, .35);
  transition: opacity .35s ease, filter .35s ease;
}
.h-dev--tablet img { border-radius: 10px; }
.h-dev figcaption { display: grid; gap: 2px; font-size: var(--text-label); }
.h-dev figcaption b { font-weight: var(--fw-semibold); color: var(--ink); }
.h-dev figcaption span { color: var(--text-muted); }
.h-dev.is-waiting img { opacity: .28; filter: grayscale(1); }
.h-stage__foot { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; font-size: var(--text-caption); color: var(--text-muted); }
.h-pill { font: var(--fw-medium) 14px/1 var(--font-sans); color: var(--ink); background: var(--surface-card); border: var(--border-width) solid var(--line); border-radius: var(--radius-pill); padding: 9px 14px; cursor: pointer; }
.h-pill:hover { border-color: var(--ink); }
.h-pill:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* ─── Abschnitte ────────────────────────────────────────────────────────── */
.h-block .wrap { padding-block: clamp(64px, 9vw, 112px); }
.h-block--tight .wrap { padding-block: clamp(40px, 6vw, 72px); }
.h-block--line { border-top: var(--border-width) solid var(--line); }
.h-block h2 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.025em; font-weight: var(--fw-black); color: var(--ink); max-width: 18ch; text-wrap: balance; }
.h-block h2.h-sub { font-size: clamp(24px, 2.6vw, 32px); max-width: none; }

/* ─── Ablauf: Zeitleiste ────────────────────────────────────────────────── */
.h-route { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--line); }
.h-stop { padding: 18px 22px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; position: relative; color: var(--text-muted); transition: color .3s ease; }
.h-stop::before { content: ""; position: absolute; top: -9px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-page); border: 2px solid var(--line); transition: background .3s ease, border-color .3s ease; }
.h-stop::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--ink); transition: width .5s ease; }
.h-stop.is-on { color: var(--ink); }
.h-stop.is-on::before { background: var(--primary); border-color: var(--primary); }
.h-stop.is-done::before { background: var(--ink); border-color: var(--ink); }
.h-stop.is-done::after { width: 100%; }
.h-stop:last-child.is-on::before { background: var(--done); border-color: var(--done); }
.h-stop h3 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: var(--fw-bold); color: inherit; }
.h-stop p { margin: 0; font-size: var(--text-body-s); max-width: 30ch; }

/* ─── Simulation ────────────────────────────────────────────────────────── */
.h-sim { margin-top: 36px; background: var(--steel); border: var(--border-width) solid var(--line); border-radius: 14px; padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 18px; }
.h-sim__head { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: var(--text-body-s); color: var(--text-muted); }
.h-sim__head b { color: var(--ink); font-weight: var(--fw-semibold); }
.h-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .9fr); gap: 16px; align-items: stretch; }
.h-pane { background: var(--surface-card); border: var(--border-width) solid var(--line); border-radius: 12px; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
.h-pane.is-hot { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.h-pane__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: var(--border-width) solid var(--line); font-size: var(--text-body-s); color: var(--ink); }
.h-chip { font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: var(--radius-pill); border: var(--border-width) solid var(--line); color: var(--text-muted); white-space: nowrap; }
.h-chip.is-new { background: var(--primary); border-color: var(--primary); color: var(--text-on-primary); }
.h-live { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--done); font-weight: var(--fw-semibold); }
.h-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--done); }
.h-menu { list-style: none; margin: 0; padding: 4px 0; }
.h-menu li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; }
.h-menu li + li { border-top: var(--border-width) solid var(--line); }
.h-dish { display: grid; min-width: 0; }
.h-dish b { font-weight: var(--fw-semibold); font-size: var(--text-body-s); color: var(--ink); }
.h-dish small { font-size: 12px; color: var(--text-muted); }
.h-dish__price { font: 500 13px/1.6 var(--mono); color: var(--ink); }
.h-qty { display: inline-flex; align-items: center; gap: 6px; }
.h-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface-card); color: var(--ink); font: 600 16px/1 var(--font-sans); cursor: pointer; display: grid; place-items: center; padding: 0; }
.h-qty button.add { background: var(--ink); color: #fff; }
.h-qty button:disabled { opacity: .3; cursor: default; }
.h-qty button:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.h-qty span { min-width: 1ch; text-align: center; font: 500 14px/1 var(--mono); color: var(--ink); }
.h-cart { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-top: var(--border-width) solid var(--line); font: 600 16px/1 var(--mono); color: var(--ink); }
.h-pane__body { padding: 14px; display: grid; align-content: start; gap: 10px; }
.h-empty { margin: 0; color: var(--text-muted); font-size: var(--text-label); padding-block: 18px; text-align: center; }
.h-ticket { border: var(--border-width) solid var(--line); border-left: 4px solid var(--done); border-radius: 8px; padding: 12px; display: grid; gap: 8px; animation: h-drop .35s ease both; }
.h-ticket__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; color: var(--ink); }
.h-ticket__head span { font: 500 12px/1 var(--mono); color: var(--done); }
.h-ticket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h-ticket li { font: 500 14px/1.3 var(--mono); color: var(--ink); }
.h-ticket li b { display: inline-block; min-width: 2.4em; }
.h-ticket__foot { font: 400 12px/1 var(--mono); color: var(--text-muted); display: flex; justify-content: space-between; }
.h-tile { border: var(--border-width) solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
.h-tile.is-new { border-color: var(--primary); background: var(--primary-soft); animation: h-drop .35s ease both; }
.h-tile.is-served { border-color: var(--done); }
.h-tile__no { font-size: 28px; font-weight: var(--fw-black); line-height: 1; color: var(--ink); }
.h-tile__state { font: 500 12px/1.2 var(--mono); color: var(--text-muted); }
.h-tile.is-new .h-tile__state { color: var(--primary-hover); }
.h-tile.is-served .h-tile__state { color: var(--done); }
.h-tile .sq-btn { margin-top: 6px; width: 100%; }
.h-sim__status { margin: 0; font-size: var(--text-body-s); color: var(--ink); min-height: 1.5em; }
@keyframes h-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ─── Was bleibt ────────────────────────────────────────────────────────── */
.h-keep { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.h-keep li { border-top: var(--border-width) solid var(--line); padding-block: 18px; display: grid; gap: 6px; align-content: start; }
.h-keep b { font-size: var(--text-body-l); color: var(--ink); }
.h-keep p { margin: 0; color: var(--text-muted); font-size: var(--text-body-s); }

/* ─── Referenzen / Zitat (nur wenn im Admin aktiv) ──────────────────────── */
.h-proof .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; color: var(--text-muted); font-size: var(--text-body-s); }
.h-proof__names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: var(--fw-bold); color: var(--ink); font-size: var(--text-body-l); }
.h-quote blockquote { margin: 0 0 28px; max-width: 46ch; }
.h-quote__text { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: var(--fw-semibold); color: var(--ink); }
.h-quote__cite { margin-top: 12px; color: var(--text-muted); font-size: var(--text-body-s); }
.h-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 32px; }
.h-stats li { border-top: var(--border-width) solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.h-stats .value { font-size: 30px; font-weight: var(--fw-black); color: var(--ink); }
.h-stats .label { color: var(--text-muted); font-size: var(--text-body-s); }

/* ─── Preis ─────────────────────────────────────────────────────────────── */
.h-price { margin-top: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px clamp(32px, 6vw, 72px); align-items: start; }
.h-price__amount span { display: block; font-size: clamp(72px, 11vw, 140px); line-height: .85; font-weight: var(--fw-black); letter-spacing: -0.04em; color: var(--ink); }
.h-price__amount small { display: block; margin-top: 14px; font-size: var(--text-body-s); color: var(--text-muted); max-width: 22ch; }
.h-price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h-price__list li { display: flex; gap: 10px; align-items: baseline; font-size: var(--text-body-m); color: var(--ink); }
.h-price__list .sq-icon { color: var(--done); flex: none; transform: translateY(3px); }
.h-price__legal { margin: 20px 0 0; color: var(--text-muted); font-size: var(--text-body-s); max-width: 60ch; }
.h-price__ctas { margin-top: 24px; }
.h-price__multi { margin-top: 32px; padding-top: 18px; border-top: var(--border-width) solid var(--line); display: grid; gap: 4px; font-size: var(--text-body-s); color: var(--text-muted); max-width: 60ch; }
.h-price__multi b { color: var(--ink); font-size: var(--text-body-m); }
.h-price__multi p { margin: 0; }
.h-price__multi a { color: var(--text-link); font-weight: var(--fw-semibold); }

/* ─── FAQ (Markup aus main.js: .faq-item) ───────────────────────────────── */
.h-faq { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
.h-faq .faq-item { border-bottom: 0; border-top: var(--border-width) solid var(--line); }
.h-faq .faq-item__q span { font-size: var(--text-body-m); }
.h-faq .faq-item__q .sq-icon { color: var(--text-muted); }

/* ─── Kontakt (dunkles Band) ────────────────────────────────────────────── */
.h-contact { background: var(--ink); color: #fff; }
.h-contact__grid { padding-block: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.h-contact h2 { margin: 0; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.05; letter-spacing: -0.025em; font-weight: var(--fw-black); color: #fff; max-width: 20ch; text-wrap: balance; }
.h-contact p { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: var(--text-body-l); max-width: 48ch; }
.h-contact__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.sq-btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.sq-btn--on-dark:hover { border-color: #fff; }
.site-footer { margin-top: 0; }

/* ─── Schmal ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .h-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .h-route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; border-top: 0; }
  .h-stop { border-top: 2px solid var(--line); }
  .h-stop::after { display: none; }
  .h-panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .h-pane--guest { grid-column: 1 / -1; }
  .h-price { grid-template-columns: minmax(0, 1fr); }
  .h-faq { grid-template-columns: minmax(0, 1fr); }
  .h-contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .h-screens { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .h-dev--tablet { grid-column: 1 / -1; order: 1; }
  .h-route { gap: 20px 14px; }
  .h-stop p { display: none; }
  .h-stop h3 { font-size: 16px; }
  .h-panes { grid-template-columns: minmax(0, 1fr); }
  .h-hero__body { font-size: var(--text-body-m); }
}
@media (prefers-reduced-motion: reduce) {
  .h-dev img, .h-stop, .h-stop::before, .h-stop::after, .h-pane { transition: none; }
  .h-ticket, .h-tile.is-new { animation: none; }
}
