/* Good Eats Malta */
:root {
  --oven: #0f0a07;
  --char: #1a120d;
  --line: rgba(241, 226, 196, 0.14);
  --dough: #f3e9d6;
  --dough-2: #eadcc1;
  --ink: #1a120d;
  --muted: #a8977f;
  --muted-dark: #6e5d48;
  --tomato: #e0442a;
  --tomato-deep: #b8301b;
  --yellow: #f2b632;
  --ember: #ff8a3d;
  --gutter: clamp(16px, 4vw, 56px);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--oven);
  color: var(--dough);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Filmkorn */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* Typografie */
.display {
  font: 800 clamp(2.6rem, 6vw, 6.2rem)/0.92 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.display em { font-style: normal; color: var(--yellow); }
.display.huge { font-size: clamp(3rem, 13.5vw, 15rem); line-height: 0.85; }
.display-2 {
  font: 800 clamp(2.2rem, 5.2vw, 4.8rem)/0.98 var(--display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(243, 233, 214, 0.78); max-width: 34ch; }
.body { font-size: 1.08rem; max-width: 40ch; }
.kicker, .eyebrow {
  font: 700 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.kicker-dark { color: var(--tomato-deep); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--dough); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 138, 61, 0); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--sans);
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.88rem; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffc94d; }
.btn-ghost { border: 1px solid rgba(243, 233, 214, 0.3); color: var(--dough); }
.btn-ghost:hover { border-color: var(--dough); }
.btn-dark { background: var(--ink); color: var(--dough); }
.btn-dark:hover { background: var(--tomato-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Navigation */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(15, 10, 7, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 34% 38%, #7a1a0e 0 3px, transparent 3.5px),
              radial-gradient(circle at 64% 60%, #7a1a0e 0 3px, transparent 3.5px),
              radial-gradient(circle, var(--tomato) 0 8px, var(--yellow) 8.5px);
}
.logo-word { font: 800 1rem/1 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.logo-word b { color: var(--yellow); font-weight: 800; margin-left: 0.18em; }
.nav-links { display: flex; gap: 30px; font-size: 0.92rem; color: rgba(243, 233, 214, 0.8); }
.nav-links a:hover { color: var(--dough); }

/* 3D-Bühne */
.stage { position: relative; height: 520vh; background: var(--oven); }
.stage-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 66% 62%, rgba(255, 110, 40, 0.22), transparent 70%),
    radial-gradient(40% 35% at 64% 90%, rgba(224, 68, 42, 0.18), transparent 70%);
}
#pizza { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
#pizza.is-ready { opacity: 1; }
.stage-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55));
}

.chapter {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 110px var(--gutter) 56px;
  pointer-events: none;
  will-change: opacity, transform;
}
.ch-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: min(560px, 44vw); pointer-events: auto; }
.ch-hero { justify-content: flex-end; padding-bottom: 10vh; }
.ch-hero .ch-inner { gap: 26px; }
.ch-layers { justify-content: center; }
.price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 700 0.78rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 233, 214, 0.75);
}
.price-line b { font: 800 1.5rem/1 var(--display); letter-spacing: -0.03em; color: var(--yellow); }
.price-line:hover span { color: var(--dough); }

/* Handy / Hochformat: Text oben, Pizza darunter (Klasse setzt pizza.js) */
.is-stacked .chapter { justify-content: flex-start; padding-top: 96px; }
.is-stacked .ch-inner { max-width: 100%; gap: 16px; }
.is-stacked .ch-hero .ch-inner { gap: 18px; }
.is-stacked .ch-hero .lead { font-size: 1rem; }
.is-stacked .scroll-hint { display: none; }
.rating { font-size: 0.9rem; color: rgba(243, 233, 214, 0.7); }
.rating .stars { color: var(--yellow); letter-spacing: 2px; }
.rating strong { color: var(--dough); }


.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 32px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font: 700 0.7rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(243, 233, 214, 0.6);
  opacity: var(--hint, 1);
}
.scroll-hint i { position: relative; width: 1px; height: 44px; background: rgba(243, 233, 214, 0.2); overflow: hidden; }
.scroll-hint i::after { content: ''; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--yellow); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.pizza-fallback { display: none; }
.no-webgl .pizza-fallback {
  display: block;
  position: absolute;
  right: 4vw;
  top: 50%;
  width: min(46vw, 78vh);
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}
.is-stacked.no-webgl .pizza-fallback, .no-webgl .is-stacked .pizza-fallback { top: auto; bottom: 4vh; right: 50%; width: min(86vw, 46vh); transform: translateX(50%); }
.no-webgl .stage-glow { background: radial-gradient(50% 50% at 68% 60%, rgba(255, 110, 40, 0.35), transparent 70%); }

/* Laufband */
.marquee { overflow: hidden; background: var(--yellow); color: var(--ink); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { display: inline-flex; align-items: center; font: 800 clamp(1.1rem, 2.2vw, 1.6rem)/1 var(--display); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; }
.marquee span::after { content: ''; width: 12px; height: 12px; margin: 0 28px; border-radius: 50%; background: var(--tomato); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Menü */
.menu { background: var(--dough); color: var(--ink); padding: clamp(80px, 12vw, 160px) 0; }
.menu-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.menu-intro { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.menu-intro .body { color: var(--muted-dark); }
.price-card { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(26, 18, 13, 0.15); border-bottom: 1px solid rgba(26, 18, 13, 0.15); width: 100%; }
.price { font: 800 2.4rem/1 var(--display); letter-spacing: -0.04em; color: var(--tomato-deep); }
.price-note { font-size: 0.92rem; color: var(--muted-dark); }

/* Speisekarte (erzeugt von tools/menu.py) */
.menu-board { min-width: 0; }
.menu-tabs {
  display: flex;
  gap: 4px 26px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(26, 18, 13, 0.18);
  margin-bottom: 8px;
}
.menu-tabs button {
  position: relative;
  padding: 14px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 700 0.78rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  transition: color 0.3s;
}
.menu-tabs button::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--tomato-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.menu-tabs button:hover { color: var(--ink); }
.menu-tabs button[aria-selected="true"] { color: var(--ink); }
.menu-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.menu-tabs button:focus-visible { outline: 2px solid var(--tomato-deep); outline-offset: 4px; }
.menu-items { list-style: none; margin: 0; padding: 0; animation: menu-in 0.5s var(--ease); }
.menu-items[data-inactive] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(8px); } }
.menu-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26, 18, 13, 0.12);
}
.menu-items h4 { margin: 0; font: 800 clamp(1.05rem, 1.6vw, 1.3rem)/1.15 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.menu-items p { margin-top: 6px; font-size: 0.93rem; line-height: 1.45; color: var(--muted-dark); max-width: 52ch; }
.menu-items .price { font: 800 1.05rem/1 var(--display); letter-spacing: -0.02em; color: var(--tomato-deep); white-space: nowrap; }
.menu-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted-dark); }

/* Galerie: echte Pizza-Fotos von Wolt */
.oven { padding: clamp(80px, 11vw, 150px) 0; background: var(--oven); }
.oven-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.oven-head .kicker { grid-column: 1 / -1; }
.oven-head .body { color: rgba(243, 233, 214, 0.7); justify-self: end; }
.oven-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.oven-tile { margin: 0; }
.oven-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #f4b70e;
  border-radius: 4px;
  transition: transform 1.4s var(--ease);
}
.oven-tile:hover img { transform: rotate(14deg) scale(1.03); }
.oven-tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 2px 0; }
.oven-tile figcaption span { font: 800 clamp(0.95rem, 1.3vw, 1.15rem)/1.15 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.oven-tile figcaption b { font: 700 0.85rem/1 var(--mono); color: var(--yellow); }

/* Zahlen */
.stats { background: var(--tomato); color: var(--dough); padding: clamp(64px, 9vw, 120px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid rgba(243, 233, 214, 0.35); padding-top: 24px; }
.stat-num { font: 800 clamp(3.4rem, 8vw, 7rem)/0.9 var(--display); letter-spacing: -0.05em; }
.stat-label { font: 700 0.78rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

/* Hunde */
.dogs { background: var(--dough-2); color: var(--ink); padding: clamp(64px, 9vw, 120px) 0; }
.dogs-inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.dogs .body { color: var(--muted-dark); margin-top: 14px; }
.paw { width: clamp(72px, 10vw, 128px); flex: none; fill: var(--ink); transform: rotate(-14deg); }

/* Bestellen */
.order { padding: clamp(80px, 12vw, 160px) 0; background: var(--oven); }
.order .huge { color: var(--dough); margin-bottom: clamp(32px, 5vw, 64px); }
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.order-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  min-height: 190px;
  border-radius: 18px;
  background: var(--char);
  border: 1px solid var(--line);
  transition: background 0.35s, transform 0.45s var(--ease), border-color 0.35s;
}
.order-card strong { font: 800 clamp(1.3rem, 2.2vw, 1.8rem)/1.05 var(--display); letter-spacing: -0.03em; text-transform: uppercase; margin-top: auto; padding-right: 36px; }
.order-card .arr { position: absolute; top: 24px; right: 26px; font-size: 1.4rem; transition: transform 0.45s var(--ease); }
.order-card:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-4px); }
.order-card:hover .kicker { color: var(--ink); }
.order-card:hover .arr { transform: translate(4px, -4px); }

/* Besuch */
.visit { padding: clamp(80px, 10vw, 140px) 0; background: var(--char); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.visit-grid > div:first-child { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.visit .body { color: rgba(243, 233, 214, 0.7); }
.hours { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--oven); }
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hours h3 { font: 700 0.8rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.status { font: 700 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(224, 68, 42, 0.16); color: #ff8b72; }
.status.is-open { background: rgba(120, 200, 110, 0.14); color: #9fdc8f; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: rgba(243, 233, 214, 0.7); font-variant-numeric: tabular-nums; }
.hours li.is-today { color: var(--yellow); font-weight: 600; }

/* Footer */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); color: rgba(243, 233, 214, 0.6); font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; }
.footer .logo-word { color: var(--dough); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--dough); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.oven-grid .reveal:nth-child(2), .stats-grid .reveal:nth-child(2), .order-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.oven-grid .reveal:nth-child(3), .stats-grid .reveal:nth-child(3), .order-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Tablet + Handy */
@media (max-width: 960px) {
  .menu-grid, .visit-grid { grid-template-columns: 1fr; }
  .oven-head { grid-template-columns: 1fr; }
  .oven-head .body { justify-self: start; }
  .oven-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-intro { position: static; }
  .order-grid { grid-template-columns: 1fr; }
  .order-card { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: 10px; padding-left: 14px; }
  .nav-links { display: none; }
  .ch-hero .actions .btn { height: 48px; padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .menu-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tabs button { flex: none; }
  .menu-items li { gap: 16px; padding: 18px 0; }
  .oven-tile figcaption { flex-direction: column; gap: 6px; padding-top: 12px; }
  .dogs-inner { flex-direction: column; align-items: flex-start; }
  .hours, .order-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .dot, .scroll-hint i::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
