/* Pizzeria Brace (fiktiv) — Bestellseite aus dem Restaurant-Baukasten.
   Ofen-Schwarz als Grund, San-Marzano-Rot als einziger Akzent. Gloock (kontrastreiche Antiqua wie auf den
   gemalten Schildern neapolitanischer Pizzerien) für Namen und Überschriften, Onest für alles andere. */
@font-face { font-family: 'Gloock'; src: url('fonts/Gloock.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('fonts/Onest.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --ground: #110d0b; --ground-2: #1b1613; --ground-3: #261f1b;
  --ink: #f4ede3; --ink-2: rgba(244, 237, 227, .72);
  --accent: #d9432f; --on-accent: #fff8f2;
  --display: 'Gloock', Georgia, serif; --text: 'Onest', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.2, 0, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.draft { position: relative; z-index: 70; padding: .45rem var(--gutter); background: #000; color: var(--ink-2); font-size: .82rem; text-align: center; }
.draft a { color: var(--ink); }

/* ---------- Kopf ---------- */
.hd { position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.5rem; padding: .9rem var(--gutter); background: var(--ground); transition: opacity .4s var(--ease); }
.brand { display: flex; align-items: baseline; gap: .8rem; text-decoration: none; }
.brand-name { font: 400 2.1rem/1 var(--display); letter-spacing: -.01em; }
.brand-sub { font-size: .9rem; color: var(--ink-2); }
.status { font-size: .92rem; color: var(--ink-2); display: flex; align-items: center; gap: .5rem; }
.status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #6d625a; }
.status.is-open::before { background: #7fbf6a; }
.hd-nav { display: flex; gap: 1.6rem; font-weight: 500; }
.hd-nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.hd-nav a:hover { color: var(--ink); }
.cart-btn { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--ground-3); font-weight: 600; transition: background .25s var(--ease); }
.cart-btn:hover { background: #33291f; }
.cart-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: .8rem; font-variant-numeric: tabular-nums; }
.cart-btn.has-items .cart-count { background: var(--accent); color: var(--on-accent); }
.cart-sum { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hd { grid-template-columns: 1fr auto; } .status, .hd-nav { display: none; } .brand-sub { display: none; } }

/* ---------- Bühne ---------- */
.stage { position: relative; display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr) minmax(18rem, 26rem); align-items: center; gap: clamp(1rem, 3vw, 3rem);
  min-height: calc(100svh - 7.5rem); padding: 1rem var(--gutter) 3rem; }
/* Ofen hinter der Bühne: Glutbett (GetLayers „Hearth“), aufsteigende Funken, der Name der Pizza riesig im Hintergrund */
.stage { isolation: isolate; overflow: clip; }
.stage-fire, .stage-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-fire { z-index: -2; opacity: 0; transition: opacity 1.6s var(--ease); }
.stage-fire.is-live { opacity: 1; }
.stage-embers { z-index: -1; }
.stage-word { position: absolute; z-index: -1; left: 50%; top: 50%; margin: 0; /* Verschiebung setzt das Skript */ pointer-events: none; white-space: nowrap;
  font: 400 clamp(6rem, 17vw, 19rem)/1 var(--display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(244, 237, 227, .3); }
.is-inspect .stage-word { opacity: .3; }
.dish-list { display: grid; gap: .35rem; align-self: center; }
.dish-tab { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .8rem; padding: .5rem .7rem .5rem .5rem; border-radius: 14px; text-align: left; color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease); }
.dish-tab img { width: 3rem; height: 3rem; border-radius: 50%; }
.dish-tab span { font-weight: 500; line-height: 1.25; }
.dish-tab b { font-weight: 400; font-size: .92rem; font-variant-numeric: tabular-nums; }
.dish-tab:hover { background: var(--ground-2); color: var(--ink); }
.dish-tab[aria-current="true"] { background: var(--ground-3); color: var(--ink); }

.plate-col { display: grid; justify-items: center; gap: 1.6rem; }
.plate-btn { display: block; border-radius: 50%; cursor: zoom-in; position: relative; z-index: 3; }
.plate-col { min-width: 0; }
.plate { position: relative; display: block; width: min(64vh, 34vw); aspect-ratio: 1; }
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; will-change: transform; }
.stage-nav { display: flex; gap: .8rem; position: relative; z-index: 3; }
.stage-nav button { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ground-3); transition: background .25s var(--ease), transform .25s var(--ease); }
.stage-nav button:hover { background: #33291f; }
.stage-nav button:active { transform: scale(.94); }
.stage-nav svg, .cart-close svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dish-info { display: grid; gap: 1.2rem; align-content: center; }
.dish-name { font: 400 clamp(2.8rem, 4.6vw, 5rem)/.95 var(--display); letter-spacing: -.015em; }
.dish-desc { font-size: 1.1rem; color: var(--ink); max-width: 30ch; }
.dish-buy { display: flex; align-items: center; gap: 1.2rem; margin-top: .4rem; }
.dish-price { font: 400 2.2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.dish-hint { font-size: .88rem; color: var(--ink-2); max-width: 30ch; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 1rem 1.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; transition: transform .2s var(--ease), filter .2s var(--ease); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-wide { width: 100%; }

/* Zutaten-Linien: Teller steht, Rest tritt zurück */
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.callout-lines path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.callout-lines circle { fill: var(--accent); }
.callout-labels { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
/* Verschiebung setzt das Skript (xPercent/yPercent), sonst überschreibt GSAP sie beim Einblenden */
.callout { position: absolute; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.callout.is-chip { padding: .3rem .6rem; border-radius: 999px; background: rgba(17, 13, 11, .86); }
.stage > :not(.plate-col):not(.callout-lines):not(.callout-labels), .hd { transition: opacity .45s var(--ease); }
.is-inspect .stage > .dish-list, .is-inspect .stage > .dish-info, .is-inspect .hd, .is-inspect .stage-nav { opacity: .12; }

.fly { position: fixed; z-index: 90; pointer-events: none; border-radius: 50%; will-change: transform; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; min-height: 0; padding-top: .5rem; gap: 1.4rem; }
  .plate { width: min(86vw, 30rem); }
  .plate-col { order: 1; }
  .dish-info { order: 2; }
  .dish-list { order: 3; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: none; }
  .dish-list::-webkit-scrollbar { display: none; }
  .stage-word { font-size: 28vw; top: 30%; }
  .dish-tab { scroll-snap-align: start; }
  .dish-hint { display: none; }
  .callout { font-size: .82rem; }
}

/* ---------- Abschnitte ---------- */
.big { font: 400 clamp(2.4rem, 5.4vw, 5.2rem)/1 var(--display); letter-spacing: -.015em; max-width: 18ch; }
.lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 48ch; }

.ofen { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; padding: clamp(6rem, 14vw, 11rem) var(--gutter); background: var(--accent); color: var(--on-accent); }
.ofen .lead { color: var(--on-accent); }
.titles { display: grid; gap: 2.4rem; }
.titles dt { font: 400 clamp(3.6rem, 8vw, 7.5rem)/.9 var(--display); }
.titles dd { margin-top: .5rem; font-size: 1.05rem; font-weight: 500; }

/* Werbefilm: feste Bühne, Shots blenden übereinander, große Einblendung unten links wie im TV-Spot */
.ad { position: relative; height: 640svh; }
.ad-stage { position: sticky; top: 0; height: 100svh; overflow: clip; background: #000; }
.ad-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.ad-shot.is-on { opacity: 1; }
.ad-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10, 8, 7, .75), transparent 45%), linear-gradient(90deg, rgba(10, 8, 7, .45), transparent 50%); }
.ad-dip { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.ad-super { position: absolute; left: var(--gutter); bottom: clamp(3.5rem, 12svh, 7rem); margin: 0; max-width: 16ch; font: 400 clamp(3rem, 8vw, 8rem)/.92 var(--display); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.ad-ticks { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.6rem; display: flex; gap: .4rem; }
.ad-ticks li { flex: 1; height: 3px; border-radius: 3px; background: rgba(244, 237, 227, .22); overflow: hidden; }
.ad-ticks li::after { content: ''; display: block; height: 100%; background: var(--ink); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.ad-end { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: 5rem var(--gutter) 4rem; background: var(--ground); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.ad-end.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.ad-plate { justify-self: center; width: min(100%, 78vh, 46rem); aspect-ratio: 1; }
.ad-end .big { font-size: clamp(2.4rem, 3.9vw, 4.2rem); max-width: 17ch; }
.ad-end .dish-buy { margin-top: 2rem; }
@media (max-width: 900px) {
  .ad { height: 600svh; }
  .ad-end { grid-template-columns: 1fr; align-content: center; gap: 1.2rem; padding-top: 5.5rem; }
  .ad-plate { width: min(78vw, 40svh); }
  .ad-end .lead { display: none; }
  .ad-super { font-size: clamp(2.6rem, 12vw, 4rem); }
}
.reduced .ad { height: auto; } .reduced .ad-stage { position: relative; height: auto; } .reduced .ad-shot, .reduced .ad-super, .reduced .ad-ticks, .reduced .ad-scrim { display: none; }
.reduced .ad-end { position: relative; opacity: 1; visibility: visible; padding-block: 6rem; }

.menu { padding: clamp(5rem, 10vw, 8rem) var(--gutter); background: var(--ground-2); }
.menu-nav { position: sticky; top: 4.2rem; z-index: 5; display: flex; gap: .3rem; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-top: 2.4rem; padding: .35rem; border-radius: 999px; background: var(--ground-3); }
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav button { position: relative; z-index: 1; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .3s var(--ease); }
.menu-nav button[aria-current="true"] { color: var(--on-accent); }
.menu-nav-pill { position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: 999px; background: var(--accent); }
.menu-grid { display: grid; gap: clamp(4rem, 8vw, 7rem); margin-top: clamp(3rem, 5vw, 4.5rem); }
.menu-cat { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.4fr); gap: clamp(1.5rem, 4vw, 4rem); scroll-margin-top: 9rem; }
.menu-cat > header { align-self: start; position: sticky; top: 9rem; }
.menu-cat ul { margin-top: 0 !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 3rem; }
.menu-cat li { clip-path: inset(0 0 0 0); }
.js-motion .menu-cat li.is-pending { clip-path: inset(0 100% 0 0); }
.menu-peek { position: fixed; z-index: 50; left: 0; top: 0; width: 15rem; height: 15rem; pointer-events: none; opacity: 0; transform: scale(.4); will-change: transform, opacity; }
@media (max-width: 900px) { .menu-cat { grid-template-columns: 1fr; } .menu-cat > header { position: static; } .menu-peek { display: none; } .menu-nav { top: 4rem; } }
.menu-cat h3 { font: 400 2.2rem/1 var(--display); }
.menu-note { margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.menu-cat ul { margin-top: 1.2rem; display: grid; }
.menu-cat li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .85rem 0; }
.menu-cat li + li { background: linear-gradient(var(--ground-3), var(--ground-3)) top / 100% 1px no-repeat; }
.menu-cat li b { display: block; font-weight: 600; }
.menu-cat li span { display: block; font-size: .92rem; color: var(--ink-2); }
.menu-cat li em { font-style: normal; font-variant-numeric: tabular-nums; }
.add-mini { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ground-3); font-size: 1.3rem; line-height: 1; transition: background .2s var(--ease), transform .2s var(--ease); }
.add-mini:hover { background: var(--accent); color: var(--on-accent); }
.add-mini:active { transform: scale(.9); }
.menu-cat .fly { font-size: 1.3rem; }

.pickup { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding: clamp(6rem, 12vw, 10rem) var(--gutter); }
.addr { margin-top: 2rem; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.25 var(--display); }
.addr a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours caption { text-align: left; font: 400 2rem/1 var(--display); margin-bottom: 1.4rem; }
.hours th, .hours td { padding: .9rem 0; text-align: left; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--ground-3); }

.ft { padding: 4rem var(--gutter) 3rem; background: #000; color: var(--ink-2); font-size: .9rem; display: grid; gap: .6rem; }
.ft-name { font: 400 clamp(5rem, 22vw, 18rem)/.85 var(--display); color: var(--ink); letter-spacing: -.02em; margin-bottom: 1.5rem; }

@media (max-width: 900px) { .ofen, .italia, .pickup { grid-template-columns: 1fr; } .italia-plate { justify-self: center; } }

/* ---------- Warenkorb ---------- */
.cart-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.cart-scrim.is-open { opacity: 1; visibility: visible; }
.cart { position: fixed; z-index: 85; top: 0; right: 0; bottom: 0; width: min(100%, 30rem); overflow-y: auto; overscroll-behavior: contain; padding: 1.4rem 1.6rem 2rem; background: var(--ground-2); box-shadow: -30px 0 60px rgba(0, 0, 0, .45);
  transform: translateX(105%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
.cart.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.cart-head h2, .done h2 { font: 400 2.2rem/1 var(--display); }
.cart-close { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ground-3); }
.cart-items { display: grid; gap: .2rem; }
.cart-items li { display: grid; grid-template-columns: 1fr auto 5rem; align-items: center; gap: .8rem; padding: .7rem 0; }
.cart-empty { color: var(--ink-2); padding: 1rem 0 !important; display: block !important; }
.ci-name { font-weight: 600; }
.ci-qty { display: flex; align-items: center; gap: .3rem; }
.ci-qty button { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ground-3); }
.ci-qty output { min-width: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.ci-sum { text-align: right; font-variant-numeric: tabular-nums; }
.cart-sums { margin: 1.4rem 0; padding-top: 1rem; display: grid; gap: .4rem; background: linear-gradient(var(--ground-3), var(--ground-3)) top / 100% 1px no-repeat; }
.cart-sums div { display: flex; justify-content: space-between; color: var(--ink-2); }
.cart-sums dd { font-variant-numeric: tabular-nums; }
.cart-total { color: var(--ink) !important; font-size: 1.3rem; font-weight: 600; margin-top: .4rem; }
.checkout { display: grid; gap: .9rem; }
.checkout label { display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-2); }
.checkout input, .checkout select, .checkout textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground); border: 1px solid var(--ground-3); border-radius: 12px; padding: .8rem .9rem; }
.checkout select option { color: #111; }
.fine { font-size: .85rem; color: var(--ink-2); }

.done { display: grid; gap: 1rem; padding-top: 1rem; }
.done h2:focus { outline: none; }
.done-nr { font-size: 1.2rem; }
.done-nr b { font: 400 2.4rem/1 var(--display); color: var(--accent); margin-left: .4rem; }
.track { display: grid; gap: .9rem; margin: 1rem 0; }
.track li { position: relative; padding-left: 2.2rem; color: var(--ink-2); transition: color .4s var(--ease); }
.track li::before { content: ''; position: absolute; left: 0; top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ground-3); transition: background .4s var(--ease), transform .4s var(--ease); }
.track li.is-done { color: var(--ink); }
.track li.is-done::before { background: #7fbf6a; }
.track li.is-now { color: var(--ink); font-weight: 600; }
.track li.is-now::before { background: var(--accent); transform: scale(1.25); }
.done-items { color: var(--ink-2); }
.done-total b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
