/* =====================================================================
   LAYOUT
   Rhythmus der Seite: dunkel → creme → dunkel → creme → dunkel.
   Jede Sektion setzt ihre Flächenfarbe selbst, damit die Reihenfolge
   umgestellt werden kann, ohne dass die Farben kippen.
   ===================================================================== */

body {
  background: var(--coal);
  color: var(--text-light);
  /* Platz für die mobile Aktionsleiste am unteren Rand */
  padding-bottom: var(--mobile-bar-h);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap--text {
  width: var(--wrap-text);
  margin-inline: auto;
}

/* --- Sektionen ------------------------------------------------------ */

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--dark {
  background: var(--surface-dark);
  color: var(--text-light);
}

.section--dark-alt {
  background: var(--surface-dark-alt);
  color: var(--text-light);
}

.section--light {
  background: var(--surface-light);
  color: var(--text-dark);
}

.section--light-alt {
  background: var(--surface-light-alt);
  color: var(--text-dark);
}

.section--flush-top {
  padding-block-start: 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-block-end: var(--space-xl);
}

/* =====================================================================
   SIGNATUR: GLUT-LEISTE
   Ein schmaler Streifen glimmender Kohle. Trennt Flächen, zeigt oben
   den Scrollfortschritt. Ein Motiv, überall dasselbe.
   ===================================================================== */

.ember-bar {
  position: relative;
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--paprika) 0%,
    var(--ember) 18%,
    var(--fire) 34%,
    var(--gold) 46%,
    var(--ember) 62%,
    var(--paprika) 78%,
    var(--fire) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
}

.ember-bar--divider {
  height: 2px;
  opacity: 0.85;
}

/* =====================================================================
   HERO
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  /* Zeile 1 Typo (unten ausgerichtet) · Zeile 2 Fußleiste.
     Das Markenzeichen sitzt in der Kopfzeile, nicht im Hero. */
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: clip;
  background: var(--coal);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  /* Startwert der Einblendung; GSAP übernimmt danach */
  transform: scale(1.07);
  will-change: transform;
}

/* Abdunkelung: unten kräftig, damit die Schrift trägt; oben nur leicht,
   damit das Motiv sichtbar bleibt. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgb(15 15 14 / 0.96) 0%,
      rgb(15 15 14 / 0.82) 24%,
      rgb(15 15 14 / 0.42) 52%,
      rgb(15 15 14 / 0.32) 70%,
      /* oberer Rand: trägt die Navigation */ rgb(15 15 14 / 0.58) 88%,
      rgb(15 15 14 / 0.74) 100%
    ),
    radial-gradient(120% 80% at 50% 100%, rgb(210 74 42 / 0.16) 0%, transparent 60%);
}

.hero__inner {
  grid-row: 1;
  align-self: end;
  width: var(--wrap);
  margin-inline: auto;
  padding-block: calc(var(--nav-h-top) + var(--space-xs)) var(--space-s);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-l);
}

.hero__type {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  min-width: 0;
}

.hero__title {
  display: flex;
  flex-direction: column;
}

/* Jede Zeile bekommt einen Maskenrahmen für das Aufdecken.
   Die Maske muss nach unten schneiden (dort fährt der Text herein),
   oben aber Luft lassen: sonst köpft sie den Akzent des Ć in ĆEVAPI.
   Das zusätzliche Polster wird per negativem Margin zurückgeholt,
   damit der enge Zeilenabstand erhalten bleibt. */
.hero__line {
  display: block;
  overflow: hidden;
  padding-top: 0.16em;
  margin-top: -0.16em;
  padding-bottom: 0.02em;
}

.hero__line > span {
  display: block;
}

.hero__sub {
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--text-light);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.hero__place {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--text-light-muted);
}

/* Statuskarte rechts unten – für Gäste aus Google Maps die
   wichtigste Information der Seite. */
.hero__status {
  justify-self: end;
  align-self: end;
}

.hero__foot {
  grid-row: 2;
  border-top: 1px solid var(--line-light);
}

.hero__foot-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block: var(--space-xs);
  flex-wrap: wrap;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  color: var(--text-light-muted);
}

/* =====================================================================
   SOCIAL PROOF
   ===================================================================== */

.proof {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 60rem) {
  .proof {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-2xl);
  }
}

.proof__score {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.proof__value {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.proof__stars {
  display: flex;
  gap: 0.18em;
  color: var(--gold);
}

.proof__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--line-dark);
}

/* =====================================================================
   PRODUKTBÜHNE (Ćevapi)
   ===================================================================== */

.stage {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 60rem) {
  .stage {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.75fr);
    /* schmalerer Steg als 2xl — die Textspalte braucht die Breite */
    gap: var(--space-xl);
  }

  .stage--reverse .stage__media {
    order: -1;
  }
}

/* Das Foto läuft rechts aus dem Satzspiegel bis an den Bildschirmrand —
   es soll die Sektion tragen, nicht sie illustrieren.
   Nur bis 104rem: darüber ist --wrap gedeckelt, der Rand wäre breiter
   als die Rinne und der Anschnitt träfe den Bildschirmrand nicht mehr. */
@media (min-width: 60rem) and (max-width: 103.9375rem) {
  .stage {
    margin-inline-end: calc(var(--gutter) * -1);
  }

  .stage--reverse {
    margin-inline: calc(var(--gutter) * -1) 0;
  }
}

.stage__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: start;
}

.stage__media {
  position: relative;
  overflow: hidden;
  /* Kein max-height zusätzlich zur aspect-ratio: das würde über das
     Seitenverhältnis auch die Breite stauchen und den Anschnitt
     am rechten Rand verhindern. Stattdessen am Desktop ein flacheres
     Verhältnis, das von selbst in die Bildschirmhöhe passt. */
  aspect-ratio: 4 / 5;
}

@media (min-width: 60rem) {
  .stage__media {
    aspect-ratio: 9 / 10;
  }
}

.stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* =====================================================================
   SPEISEKARTE
   ===================================================================== */

.menu {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 62rem) {
  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2xl) var(--space-2xl);
  }
  /* Eine Kategorie darf die volle Breite nehmen, wenn sie lang ist */
  .menu__group--wide {
    grid-column: 1 / -1;
  }
}

.menu__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.menu__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block-end: var(--space-2xs);
  border-bottom: 2px solid currentColor;
}

.menu__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--line-dark);
}

.menu__name {
  font-weight: 600;
  font-size: var(--step-0);
}

.menu__desc {
  grid-column: 1 / -1;
  font-size: var(--step--1);
  color: var(--text-dark-muted);
  margin-top: 0.15em;
}

.menu__price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  white-space: nowrap;
}

/* Zustand ohne bestätigte Karte */
.menu__empty {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: start;
  padding: var(--space-l);
  border: 1px solid var(--line-dark);
}

/* =====================================================================
   FEUER-SEKTION (gepinnt)
   ===================================================================== */

.fire {
  position: relative;
  background: var(--coal);
}

.fire__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .fire__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}

.fire__media {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

@media (min-width: 60rem) {
  .fire__media {
    position: sticky;
    top: calc(var(--nav-h) + var(--space-m));
    /* feste Höhe statt 100vh – sonst wächst die Sektion auf kleinen
       Laptops über den Rand hinaus */
    height: min(74svh, 46vw);
  }
}

.fire__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.fire__glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(to top, rgb(210 74 42 / 0.34), transparent 78%);
  mix-blend-mode: screen;
}

.fire__words {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2xl);
  padding-block: var(--space-m);
}

@media (min-width: 60rem) {
  .fire__words {
    gap: 0;
  }

  .fire__word {
    /* Scrollstrecke je Wort. Kürzer als eine volle Bildschirmhöhe,
       damit zwischen den Wörtern keine Leere steht. */
    min-height: 48svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-s);
  }

  /* erstes und letztes Wort brauchen Anlauf bzw. Auslauf */
  .fire__word:first-child {
    min-height: 40svh;
    justify-content: flex-end;
  }

  .fire__word:last-child {
    justify-content: flex-start;
  }
}

.fire__word p {
  max-width: 38ch;
  color: var(--text-light-muted);
}

/* =====================================================================
   ÜBER
   ===================================================================== */

.about {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 62rem) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--space-xl);
  }
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: start;
}

.about__marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m) var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-light);
  width: 100%;
}

.about__mark {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

/* Logo und Grillwagen nebeneinander: das Logo ist das einzige echte
   Markenzeichen im Bestand und darf Größe bekommen. */
.about__media {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

/* Das Emblem ist freigestellt (scripts/cutout-logo.mjs) — es braucht
   keinen Blendmodus mehr, um den schwarzen Kasten loszuwerden. */
.about__logo {
  justify-self: start;
}

/* Der Grillwagen bekommt ein festes Verhältnis, damit er die Spalte
   ausfüllt statt nur mitzulaufen. */
.about__media .frame {
  aspect-ratio: 4 / 3;
}

/* =====================================================================
   GALERIE — asymmetrisches Raster
   ===================================================================== */

.gallery {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  /* Gibt der Zelle eine feste Höhe. Ohne sie bleibt die Zeilenhöhe
     unbestimmt und das Bild füllt die gestreckte Zelle nicht aus —
     es entstehen Löcher im Raster. */
  aspect-ratio: 4 / 5;
}

/* Absolut gesetzt, damit das Bild auch dann die volle Zellhöhe füllt,
   wenn das Raster die Zelle über ihr Seitenverhältnis hinaus streckt
   (z. B. wenn ein Element zwei Zeilen überspannt). */
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Mobil: erstes Bild breit, danach Paare — ruhiger vertikaler Fluss */
.gallery__item:nth-child(1) {
  grid-column: span 2;
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(9rem, auto);
    gap: var(--space-s);
  }

  /* groß / klein klein / breit / hoch klein
     Das Seitenverhältnis je Feld ist auf die Spaltenbreite abgestimmt,
     damit die Zeilen ohne Rest aufgehen. */
  .gallery__item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
    aspect-ratio: 7 / 9;
  }
  .gallery__item:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
    aspect-ratio: 1;
  }
  .gallery__item:nth-child(3) {
    grid-column: span 5;
    grid-row: span 1;
    aspect-ratio: 5 / 4;
  }
  .gallery__item:nth-child(4) {
    grid-column: span 12;
    grid-row: span 1;
    aspect-ratio: 16 / 7;
  }
  .gallery__item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: 4 / 5;
  }
  .gallery__item:nth-child(6) {
    grid-column: span 8;
    grid-row: span 2;
    aspect-ratio: 16 / 11;
  }
}

/* =====================================================================
   STANDORT
   ===================================================================== */

.place {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {
  .place {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}

.place__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.place__media {
  position: relative;
  overflow: hidden;
}

.place__media img {
  width: 100%;
  height: auto;
}

.hours {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hours__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--line-light);
}

.hours__row:first-child {
  border-top: 1px solid var(--line-light);
}

.hours__day {
  font-weight: 500;
}

.hours__time {
  font-variant-numeric: tabular-nums;
  color: var(--text-light-muted);
}

.hours__row[data-today='true'] {
  color: var(--gold);
}

.hours__row[data-today='true'] .hours__time {
  color: var(--gold);
}

.hours__row[data-closed='true'] .hours__time {
  color: var(--text-light-muted);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-size: var(--step--2);
}

/* =====================================================================
   ABSCHLUSS-CTA
   ===================================================================== */

.finale {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  background: var(--coal);
}

.finale__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% 108%, rgb(210 74 42 / 0.34) 0%, transparent 68%);
}

.finale__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
  text-align: center;
}

.finale__phone {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8.2vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: color var(--dur-base) var(--ease-out);
}

.finale__phone:hover {
  color: var(--fire);
}

.finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.footer {
  background: var(--charcoal);
  color: var(--text-light);
  padding-block: var(--space-xl) var(--space-l);
}

.footer__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: start;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-light);
  color: var(--text-light-muted);
}
