/* ============================================================================
   DATEI: css/startseite.css  –  moderne Startseite (nur index.html)
   ============================================================================
   ABSCHNITTE (von oben nach unten):
     .s-hero      Begrüßung (nur Text, mittig) mit "Jetzt geöffnet"-Anzeige
                  und dem heutigen Tagesangebot
     .laufband    Band mit Gerichten, das langsam durchläuft
     .scroll-galerie  Bildspalten, die beim Scrollen unterschiedlich schnell
                  nach oben laufen; Text "Echt vom Holzofen & Holzgrill" in der Mitte
     .s-info      Öffnungszeiten, Adresse, Lieferservice als drei Karten

   WAS PASSIERT, WENN DU …
     --glut: #ff7a2f -> #e2001a          Leuchtfarbe wird rot statt orange
     .laufband-spur animation 40s -> 20s Band läuft doppelt so schnell
     .scroll-galerie { height: 300vh }  -> 200vh   Galerie ist schneller "durchgescrollt"
   ============================================================================ */

@font-face {
  font-family: "Lora";
  src: url("schrift/Lora-Variable.woff") format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("schrift/Lora-Italic-Variable.woff") format("woff");
  font-weight: 400 700; font-style: italic; font-display: swap;
}

:root {
  --edel: "Lora", Georgia, "Times New Roman", serif;
  --glut: #ff7a2f;                       /* Farbe der Holzofen-Glut */
  --gold: var(--farbe-gold, #e9b76d);
}

/* ===================== HERO ===================== */
.s-hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px);
  /* Warmes Glühen hinter dem Foto – wie Licht aus dem Ofen. */
  background:
    radial-gradient(ellipse 55% 45% at 50% 105%, rgba(255, 122, 47, .30), transparent 70%),
    radial-gradient(ellipse 35% 35% at 15% 20%, rgba(226, 0, 26, .10), transparent 70%),
    radial-gradient(ellipse 35% 35% at 85% 25%, rgba(233, 183, 109, .08), transparent 70%);
}
.s-hero { min-height: calc(100vh - 110px); display: grid; align-items: center; }
/* Alles mittig – das Bild-Erlebnis kommt danach in der Scroll-Galerie. */
.s-hero .container { text-align: center; position: relative; z-index: 2; }

/* ---------- FEUER-HINTERGRUND ----------
   Die Leinwand (canvas) füllt den ganzen Hero; js/startseite.js malt darauf.
   ::after legt eine dunkle Mitte darüber, damit der Text gut lesbar bleibt.
   WENN DU das Feuer kräftiger willst: opacity .9 -> 1 und die Mitte bei
   ::after weniger dunkel machen (z. B. .78 -> .6). */
.hero-feuer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 1; pointer-events: none; }
.s-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 50% 40%, rgba(9, 10, 11, .72), rgba(9, 10, 11, .15) 75%, transparent),
    linear-gradient(180deg, var(--farbe-hintergrund) 0%, rgba(9, 10, 11, 0) 22%);
}
/* Feine "Hitze-Linie" am unteren Rand */
.s-hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, #ff7a2f, #ffd27a, #ff7a2f, transparent);
  opacity: .7; filter: blur(.5px);
}
.s-hero-text { max-width: 900px; margin-inline: auto; }

.s-hero-text .ueber {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.s-hero-text .ueber::before, .s-hero-text .ueber::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.s-hero h1 {
  font-family: var(--edel); font-weight: 600; line-height: 1.02; margin: 0 0 20px;
  font-size: clamp(46px, 7vw, 100px); letter-spacing: -.015em;
}
.s-hero h1 em { font-style: italic; color: var(--glut); font-weight: 500; }
/* Wörter erscheinen nacheinander von unten (nth-child zählt auch das <br> mit). */
.s-hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); animation: wort-rein .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.s-hero h1 .w:nth-child(2) { animation-delay: .08s; }
.s-hero h1 .w:nth-child(4) { animation-delay: .18s; }
.s-hero h1 .w:nth-child(5) { animation-delay: .26s; }
.s-hero h1 .w:nth-child(7) { animation-delay: .36s; }
@keyframes wort-rein { to { opacity: 1; transform: none; } }

/* Drei kleine Merkmale unter dem Text */
.merkmale { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; }
.merkmale li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 12px; border-radius: 999px;
  font-size: 14px; color: #f3efe8; letter-spacing: .02em;
  background: rgba(14, 12, 10, .55); border: 1px solid rgba(255, 150, 70, .35);
  backdrop-filter: blur(8px); box-shadow: 0 0 22px -8px rgba(255, 122, 47, .55);
}
.merkmale svg { width: 17px; height: 17px; fill: none; stroke: #ffae5c; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Fortschrittsbalken oben (Breite setzt js/startseite.js über --fortschritt). */
.scroll-fortschritt {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, #e2001a, var(--glut), var(--gold));
  transform-origin: 0 50%; transform: scaleX(var(--fortschritt, 0));
}
.s-hero-text p.lead { font-size: clamp(16px, 1.6vw, 20px); color: #cfccc6; max-width: 620px; margin: 0 auto 28px; line-height: 1.6; }
.s-hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.merkmale { justify-content: center; }
/* Kleiner Hinweis ganz unten: "Scrollen" mit wippender Linie */
.scroll-hinweis { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 46px; color: #9d9890; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.scroll-hinweis::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: wippen 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes wippen { 50% { transform: scaleY(.45); } }

/* Zwei Live-Anzeigen nebeneinander */
.live-zeile { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; }
.live-zeile > p { height: 40px; box-sizing: border-box; margin: 0; }
.live-zeile .offen-status { margin-top: 0; }
.angebot-pille {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 16px 7px 8px; border-radius: 999px; font-size: 14px; color: #eee;
  background: rgba(255, 122, 47, .10); border: 1px solid rgba(255, 122, 47, .35);
}
.angebot-pille[hidden], .offen-status[hidden] { display: none; }
.angebot-pille .icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, var(--glut), #e2001a); }

/* "Jetzt geöffnet"-Pille – den Text setzt js/startseite.js. */
.offen-status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px; color: #ddd;
}
.offen-status .punkt { width: 9px; height: 9px; border-radius: 50%; background: #888; }
.offen-status.offen .punkt { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: puls 2s infinite; }
.offen-status.zu .punkt { background: #e2001a; }
@keyframes puls { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ===================== LAUFBAND ===================== */
.laufband {
  overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(90deg, rgba(226, 0, 26, .10), rgba(255, 122, 47, .10));
  padding: 16px 0;
  /* Ränder weich ausblenden */
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.laufband-spur { display: flex; width: max-content; animation: laufen 40s linear infinite; }
.laufband span {
  font-family: var(--edel); font-style: italic; font-size: clamp(20px, 2.4vw, 28px);
  white-space: nowrap; padding: 0 22px; color: #eee;
}
.laufband span::after { content: "✦"; font-style: normal; font-size: .6em; color: var(--glut); margin-left: 44px; vertical-align: middle; }
/* Die Liste steht zweimal hintereinander -> -50 % ergibt eine nahtlose Schleife. */
@keyframes laufen { to { transform: translateX(-50%); } }
.laufband:hover .laufband-spur { animation-play-state: paused; }

/* ===================== ABSCHNITTS-KÖPFE ===================== */
.s-kopf { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.s-kopf .ueber { margin: 0; font-family: var(--edel); font-style: italic; color: var(--gold); font-size: 18px; }
.s-kopf h2 { margin: 2px 0 0; font-family: var(--edel); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; }
.s-kopf a.mehr { color: var(--farbe-text); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; font-size: 15px; }
.s-kopf a.mehr:hover { color: var(--gold); }


/* ===================== SCROLL-GALERIE =====================
   Der Abschnitt ist 3 Bildschirme hoch. Innen klebt eine "Bühne" (position:
   sticky) so lange oben fest, bis man den Abschnitt durchgescrollt hat.
   Währenddessen schiebt js/startseite.js die Spalten nach oben – jede mit
   eigenem Tempo (data-tempo im HTML). Das ergibt Tiefe (Parallax). */
.scroll-galerie { position: relative; height: 300vh; margin-top: clamp(40px, 6vw, 80px); }
.sg-buehne { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.sg-spalten {
  position: absolute; inset: 0 -4vw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  transform: rotate(-4deg) scale(1.12);       /* leicht schräg = moderner Look */
}
.sg-spalte { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.sg-spalte img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; display: block; }
/* Abdunklung, damit der Text gut lesbar ist */
.sg-buehne::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(9, 10, 11, .88), rgba(9, 10, 11, .35) 75%),
    linear-gradient(180deg, var(--farbe-hintergrund), transparent 18%, transparent 82%, var(--farbe-hintergrund));
}
.sg-text { position: relative; z-index: 2; text-align: center; padding: 0 20px; max-width: 760px; }
.sg-text .ueber { margin: 0; font-family: var(--edel); font-style: italic; color: var(--gold); font-size: 20px; }
.sg-text h2 { margin: 6px 0 16px; font-family: var(--edel); font-weight: 600; font-size: clamp(42px, 7vw, 96px); line-height: 1.02; }
.sg-text h2 em { color: var(--glut); font-weight: 500; }
.sg-text p { color: #e2ded6; font-size: clamp(16px, 1.6vw, 20px); margin: 0 0 26px; }

/* ===================== INFO-KARTEN ===================== */
.s-info { padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 80px); }
.info-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-karte {
  padding: 26px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
}
.info-karte h3 { margin: 0 0 14px; font-family: var(--edel); font-weight: 600; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.info-karte h3 .icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(255, 122, 47, .15); color: var(--glut); }
.info-karte p { margin: 0 0 10px; color: #cfccc6; line-height: 1.6; }
.info-karte a { color: var(--gold); }
.zeiten { list-style: none; margin: 0; padding: 0; }
.zeiten li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; color: #cfccc6; }
/* Heutiger Tag – die Klasse "heute" setzt js/startseite.js. */
.zeiten li.heute { background: rgba(255, 122, 47, .12); color: #fff; font-weight: 600; }
.zeiten li.heute span:first-child::after { content: " · heute"; color: var(--glut); font-weight: 500; }
.info-karte .button { margin-top: 8px; }

/* ===================== EINBLENDEN BEIM SCROLLEN =====================
   js/startseite.js gibt Elementen "einblenden" und später "sichtbar". */
.einblenden { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--verzoegerung, 0ms); }
.einblenden.sichtbar { opacity: 1; transform: none; }

/* ===================== TABLET / HANDY ===================== */
@media (max-width: 960px) {
  .info-raster { grid-template-columns: 1fr 1fr; }
  .info-raster .info-karte:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .info-raster { grid-template-columns: 1fr; }
  .s-hero-text .ueber { font-size: 11.5px; letter-spacing: .1em; }
  .s-hero-text .ueber::before, .s-hero-text .ueber::after { width: 16px; }
  .s-hero { min-height: auto; }
  /* Handy: drei Spalten statt vier */
  .sg-spalten { grid-template-columns: repeat(3, 1fr); gap: 10px; inset: 0 -14vw; }
  .sg-spalte { gap: 10px; }
  .sg-spalte:nth-child(4) { display: none; }
  .sg-spalte img { border-radius: 12px; }
  .scroll-galerie { height: 240vh; }
}

/* Wer "Bewegung reduzieren" eingestellt hat: alles ruhig. */
@media (prefers-reduced-motion: reduce) {
  .scroll-hinweis::after, .laufband-spur, .offen-status.offen .punkt { animation: none; }
  .s-hero h1 .w { animation: none; opacity: 1; transform: none; }
  /* Galerie steht still: kein Kleben, keine Bewegung */
  .scroll-galerie { height: auto; }
  .sg-buehne { position: relative; height: 80vh; }
  .einblenden { opacity: 1; transform: none; }
}
