@font-face {
  font-family: 'Anton';
  src: url('../schrift/anton-latin-400-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Anton';
  src: url('../schrift/anton-latin-ext-400-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  src: url('../schrift/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Figtree';
  src: url('../schrift/figtree-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nacht: #0E0B09;
  --kohle: #1B1511;
  --creme: #F1E6D2;
  --hell: #F4EBDD;
  --glut: #E8622A;
  --chili: #B8321F;
  --grau: #B9AC9A;
  --linie: rgba(244, 235, 221, 0.14);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--hell);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--hell); color: var(--nacht); padding: 8px 14px; border-radius: 8px; }
.sprung:focus { top: 12px; }
a:focus-visible { outline: 3px solid var(--glut); outline-offset: 3px; }

/* ---------- Kopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 44px);
  mix-blend-mode: difference;
  color: #fff;
}
.logo { color: inherit; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.logo span { font-family: var(--display); font-size: 28px; letter-spacing: 0.04em; }
.logo small { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.kopf nav { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.kopf nav a { color: inherit; text-decoration: none; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 720px) { .kopf nav { display: none; } }

.knopf {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf.hell { background: var(--hell); color: var(--nacht); }
.knopf.hell:hover { background: var(--glut); color: #fff; }
.knopf.dunkel { background: var(--nacht); color: var(--hell); }
.knopf.dunkel:hover { background: var(--chili); }
.knopf.rand { border: 1.5px solid var(--hell); color: var(--hell); margin-left: 8px; }
.knopf.klein { padding: 8px 18px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.kopf .knopf.hell { background: #fff; color: #000; }

/* ---------- 3D-Bühne */
.buehne { position: relative; height: 560vh; }
.klebend {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--nacht);
}
#grill { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; display: block; }

.titel {
  position: absolute; z-index: 1;
  font-family: var(--display);
  line-height: 0.88;
  letter-spacing: 0.005em;
  pointer-events: none;
  will-change: opacity, transform;
}
.titel-a { left: 50%; top: 13vh; transform: translateX(-50%); text-align: center; font-size: clamp(64px, 13vw, 210px); color: var(--hell); white-space: nowrap; }
.titel-b { left: 50%; top: 44%; transform: translate(-50%, -54%); text-align: center; font-size: clamp(72px, 15vw, 240px); color: var(--nacht); white-space: nowrap; }
.titel-c { left: clamp(16px, 5vw, 70px); top: 16vh; font-size: clamp(56px, 9vw, 150px); color: var(--hell); }

.text, .bestellkarte, .scroll-hinweis { position: absolute; z-index: 3; will-change: opacity, transform; }
.text-a { right: clamp(16px, 5vw, 70px); bottom: 9vh; width: min(380px, calc(100% - 32px)); background: rgba(14, 11, 9, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--linie); border-radius: 20px; padding: 24px; }
.text-a h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; margin: 0 0 10px; }
.text-a p { color: var(--grau); margin: 0 0 18px; }
.text-b { left: clamp(16px, 6vw, 90px); bottom: 10vh; width: min(320px, calc(100% - 32px)); }
.marke-klein { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--glut); margin: 0 0 10px; font-weight: 700; }
.marke-klein.dunkel { color: var(--chili); }
p.dunkel { color: #3a2e25; }

.bestellkarte {
  right: clamp(16px, 5vw, 70px); top: 50%; transform: translateY(-50%);
  width: min(340px, calc(100% - 32px));
  background: var(--creme); color: var(--nacht);
  border-radius: 22px; padding: 26px;
}
.bestellkarte h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; margin: 0 0 10px; letter-spacing: 0.01em; }
.bestellkarte p { color: #4a3d33; font-size: 15px; margin: 0 0 14px; }
.bestellkarte .preis { font-family: var(--display); font-size: 40px; color: var(--chili); margin: 4px 0 16px; }

.scroll-hinweis { left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grau); }
.scroll-hinweis span { display: inline-block; animation: wippen 1.6s ease-in-out infinite; }
@keyframes wippen { 50% { transform: translateY(5px); } }

@media (max-width: 720px) {
  .titel-a { top: 12vh; }
  .titel-c { top: 11vh; }
  .text-a { bottom: 6vh; }
  .text-b { bottom: 5vh; }
  .bestellkarte { top: auto; bottom: 4vh; transform: none; padding: 20px; }
  .bestellkarte p:not(.preis):not(.marke-klein) { display: none; }
  .bestellkarte .preis { font-size: 30px; margin: 0 0 12px; }
}

/* Ohne WebGL: einfache, ruhige Fassung */
.ohne-3d .buehne { height: auto; }
.ohne-3d .klebend { position: relative; height: auto; padding: 120px 16px 60px; display: grid; gap: 30px; }
.ohne-3d .titel, .ohne-3d .text, .ohne-3d .bestellkarte { position: static; transform: none; opacity: 1 !important; }
.ohne-3d .titel-b, .ohne-3d .text-b, .ohne-3d .scroll-hinweis, .ohne-3d #grill { display: none; }

/* ---------- Speisekarte */
.karte, .besuch { padding: clamp(70px, 10vw, 140px) clamp(16px, 6vw, 90px); }
.karte { background: var(--creme); color: var(--nacht); }
.karte .marke-klein { color: var(--chili); }
h2.gross { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 8vw, 110px); line-height: 0.92; margin: 0 0 clamp(30px, 5vw, 60px); }
.karte-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .karte-raster { grid-template-columns: 1fr; } }
.karte-gruppe h3 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 0.02em; margin: 0 0 8px; padding-bottom: 10px; border-bottom: 3px solid var(--nacht); }
.karte-gruppe ul { list-style: none; margin: 0; padding: 0; }
.karte-gruppe li { padding: 14px 0; border-bottom: 1px solid rgba(14, 11, 9, 0.14); }
.gericht-kopf { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 18px; }
.gericht-preis { color: var(--chili); white-space: nowrap; }
.karte-gruppe li p { margin: 2px 0 0; color: #5b4c40; font-size: 15px; }
.allergene { margin: 40px 0 0; color: #5b4c40; font-size: 14px; }

/* ---------- Besuch */
.besuch { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; background: var(--kohle); }
@media (max-width: 900px) { .besuch { grid-template-columns: 1fr; } }
.besuch .knopf { margin-top: 8px; }
.adresse { font-size: 20px; color: var(--hell); }
.besuch h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 12px; }
.zeiten { display: grid; grid-template-columns: auto auto; gap: 10px 24px; margin: 0; }
.zeiten dt { color: var(--grau); }
.zeiten dd { margin: 0; text-align: right; font-weight: 700; }

.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px clamp(16px, 4vw, 44px); font-size: 14px; color: var(--grau); border-top: 1px solid var(--linie); }
.fuss nav { display: flex; gap: 18px; }
.fuss a { color: var(--grau); }

@media (prefers-reduced-motion: reduce) {
  .scroll-hinweis span { animation: none; }
  .knopf { transition: none; }
}

/* Bis die 3D-Szene läuft, nur die erste Szene zeigen */
.titel-b, .titel-c, .text-b, .bestellkarte { opacity: 0; visibility: hidden; }
.ohne-3d .titel-c, .ohne-3d .bestellkarte { visibility: visible; }

/* ---------- Fassung mit KI-Videos (film.html) */
.film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; opacity: 0;
  pointer-events: none;
}
/* Schwarzer Grund wird durchsichtig: der Titel steht hinter dem Feuer */
.film-a { mix-blend-mode: screen; }
.film-b, .film-c { z-index: 0; }
.ki-hinweis { font-size: 12px; opacity: 0.7; }
/* Video-Fassung: Titel B über den fallenden Zutaten, Döner links neben der Bestellkarte */
.klebend:has(.film) .titel-b { top: 33%; font-size: clamp(64px, 11vw, 170px); }
@media (min-width: 721px) {
  /* Döner nach links, damit die Bestellkarte ihn nicht verdeckt */
  .film-c { transform: scale(1.2) translateX(-8%); }
}
.klebend:has(.film) .text-b { background: rgba(241, 230, 210, 0.9); border-radius: 18px; padding: 20px 22px; top: 50%; bottom: auto; transform: translateY(-50%); }
@media (max-width: 720px) { .klebend:has(.film) .text-b { top: auto; bottom: 5vh; transform: none; } }

/* Hinweisband auf der Beispielseite */
.beispiel-band {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px;
  padding: 10px 16px; font-size: 14px; text-align: center;
  background: var(--glut); color: #fff;
}
.beispiel-band a { color: #fff; font-weight: 700; }
body:has(.beispiel-band) .fuss { padding-bottom: 70px; }
@media (max-width: 720px) {
  body:has(.beispiel-band) .text-a,
  body:has(.beispiel-band) .bestellkarte,
  body:has(.beispiel-band) .klebend:has(.film) .text-b { bottom: calc(4vh + 64px); }
  body:has(.beispiel-band) .scroll-hinweis { display: none; }
}

/* Handy: Zusatz neben dem Namen nicht umbrechen */
.logo small { white-space: nowrap; }
@media (max-width: 420px) { .logo small { display: none; } }
