/* ==========================================================================
   KLINGE — 10-hero.css · Vollbild-Kino
   Der Laden nach Ladenschluss: abgedunkeltes Bild, ein Lichtkegel, ein Rot.
   Aufbau: .hero (Raster: Bühne / Stahlblock / Barberkante)
           → .hero__main   Bühnenbild + Schleier + Raster
           → .hero__stage  Randbeschriftung, Barbierstange, Text
           → .hero__bar    Standfläche aus Stahl
   Farben, Abstände, Radien und Schriftgrößen kommen ausschließlich aus Tokens.
   ========================================================================== */

/* ---- Gerüst --------------------------------------------------------------- */
.hero {
  /* Sektionseigene Tokens: Maß der Stange und der Bahn, die sie freihält. */
  --hero-pole-w: clamp(34px, 3.1vw, 46px);
  --hero-pole-x: max(0.9rem, calc(var(--gutter) * 0.2));
  --hero-lane:   calc(var(--hero-pole-w) + var(--hero-pole-x) + var(--sp-3));
  --hero-strip-w: clamp(150px, 12.5vw, 210px);
  /* Die Headline folgt zugleich Breite und Höhe des Fensters — sonst
     schiebt sie auf flachen Bildschirmen die Standfläche aus dem Bild. */
  --fs-hero: clamp(2.5rem, min(13.2vw, 18.2vh), 13rem);

  position: relative;
  isolation: isolate;              /* hält den Differenz-Modus im Hero */
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 100svh;
  overflow: hidden;                /* driftende Zeilen dürfen nichts verschieben */
  background: var(--c-coal);
}

/* ---- Bühnenbild ----------------------------------------------------------- */
.hero__main {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Eigene Ebene für das Aufziehen (data-scrub="zoom") — das Bild selbst trägt
   die .tone-Filter und bleibt dadurch frei von fremden Transformationen. */
.hero__zoom {
  position: absolute;
  inset: 0;
  transform-origin: 58% 42%;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 46%;
  /* Der Laden soll sichtbar bleiben: warmes Monochrom, aber offen in den Lichtern */
  filter: grayscale(0.62) sepia(0.14) contrast(1.16) brightness(1.14) saturate(0.9);
}

/* Grundschleier: unten und links versinkt der Laden vollständig in Kohle,
   damit Headline, Fließtext und Schaltflächen sicher über 4.5:1 liegen. */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top,
      var(--c-coal) 0% 14%,
      color-mix(in srgb, var(--c-coal) 62%, transparent) 48%,
      color-mix(in srgb, var(--c-coal) 8%, transparent) 100%),
    linear-gradient(100deg,
      var(--c-coal) 0% 10%,
      color-mix(in srgb, var(--c-coal) 66%, transparent) 40%,
      color-mix(in srgb, var(--c-coal) 4%, transparent) 78%),
    color-mix(in srgb, var(--c-coal) 10%, transparent);
}

/* Lichtkegel über der Stuhlreihe, Rot aus der Leuchtreklame, harte Vignette. */
.hero__cone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.88;                   /* js/hero.js zieht ihn beim Abgang zu */
  background:
    radial-gradient(58% 44% at 66% 24%, rgba(255, 234, 205, 0.26), transparent 70%),
    radial-gradient(32% 28% at 91% 11%, rgba(196, 64, 44, 0.30), transparent 72%),
    radial-gradient(126% 98% at 62% 44%, transparent 34%, rgba(0, 0, 0, 0.56) 100%);
}

/* Feines Hairline-Raster: gibt der Fläche Bauzeichnungs-Struktur. */
.hero__mesh {
  position: absolute;
  inset: 0;
  --grid-step: 8.3333%;
  opacity: 0.7;
  pointer-events: none;
}

/* ---- Bühne ---------------------------------------------------------------- */
.hero__stage {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 0;
  padding-block: clamp(5.75rem, 11.5vh, 9.5rem) clamp(1.25rem, 3vh, 2.75rem);
}

.hero__rail { --rail-top: 13rem; }

.hero__inner {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(var(--sp-3), 1fr) auto;
  padding-inline-end: calc(var(--gutter) + var(--hero-lane));
}

/* ---- Barbierstange: Standsäule am rechten Rand ---------------------------- */
/* Die Stange beginnt unter der Navigationsleiste (68px, ab 900px 92px) —
   sonst läuft sie hinter Burger und Termin-Schaltfläche durch. */
.hero__column {
  position: absolute;
  top: calc(68px + var(--sp-2));
  bottom: 0;
  right: var(--hero-pole-x);
  width: var(--hero-pole-w);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

/* Kappen aus Stahl: oben und unten gefasst, sonst schwebt der Zylinder. */
.hero__cap {
  flex: none;
  height: clamp(14px, 1.4vw, 20px);
  border-radius: var(--r-sm);
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.55) 0%,
    var(--c-steel-lift) 42%,
    rgba(242, 239, 233, 0.30) 52%,
    var(--c-steel-lift) 62%,
    rgba(0, 0, 0, 0.55) 100%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.hero__pole {
  flex: 1 1 auto;
  min-height: 0;
  margin-block: 0.35rem;
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset -6px 0 14px -8px rgba(0, 0, 0, 0.9),
    inset 6px 0 14px -8px rgba(255, 255, 255, 0.10),
    var(--glow-signal);
}

/* ---- Kopfzeile ------------------------------------------------------------ */
.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-4);
}

.hero__eyebrow { color: var(--t-body); }        /* über Bild braucht es Kraft */
.hero__hours   { color: var(--t-body); }

/* ---- Headline ------------------------------------------------------------- */
.hero__foot { display: grid; justify-items: start; }

.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: -0.012em;
  max-width: 100%;
}

/* Die drei Zeilen sind gesetzt, nicht gebrochen. Der zusätzliche Fuß im
   Innenspan gibt dem Komma Platz und hält die Maske trotzdem dicht. */
.hero__line { padding-block: 0.04em 0; }
.hero__line > span {
  white-space: nowrap;
  padding-block-end: 0.18em;
}

/* Genau eine Zeile bleibt hohl — der Rest steht massiv. Kein zweiter Effekt. */
.hero__line--hollow > span {
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--t-strong);
}

/* ---- Deck: Schaltflächen und ein Satz ------------------------------------- */
.hero__deck {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  margin-block-start: var(--sp-4);
  width: 100%;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

/* Der magnetische Zug aus fx.js braucht eine kurze Bahn, sonst schleift er. */
.hero__actions .btn.mag {
  transition:
    transform 150ms var(--e-sleek),
    background-color var(--d-base) var(--e-sleek),
    box-shadow var(--d-base) var(--e-sleek),
    color var(--d-base) var(--e-sleek);
}

.hero__lead {
  max-width: 34ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  padding-inline-start: var(--sp-4);
  border-inline-start: 1px solid var(--line-strong);
}

/* ---- Schmaler Einschub: das Messer an der Kontur -------------------------- */
.hero__strip {
  display: none;
  position: absolute;
  right: calc(var(--gutter) + var(--hero-lane));
  bottom: 0;
  width: var(--hero-strip-w);
  height: clamp(15rem, 34vh, 24rem);
  overflow: hidden;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-strong);
}
.hero__strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 42%;
}
.hero__strip-cap {
  position: absolute;
  inset: auto 0 0;
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
  color: var(--t-strong);
  background: linear-gradient(to top, var(--c-coal) 12%, transparent 100%);
  text-align: center;
}

/* ---- Standfläche: massiver Stahlblock ------------------------------------- */
.hero__bar { position: relative; padding-block-end: var(--sp-3); }

.hero__slab {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--edge), var(--shadow-md);
}

.hero__cell {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  min-height: 5.5rem;
  padding: var(--sp-3) var(--sp-4);
  min-width: 0;
}
.hero__cell + .hero__cell { box-shadow: inset 1px 0 0 var(--line); }

.hero__label {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  line-height: 1;
  color: var(--t-body);
}

.hero__value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--t-strong);
  min-width: 0;
}
.hero__value--adr {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__sub {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--t-body);
}

.hero__star {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--c-signal);
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
}
.hero__score { font-size: var(--fs-h4); letter-spacing: 0.01em; }
.hero__unit  { color: var(--t-body); font-weight: 400; }

/* Geschlossen: der Punkt wird stumpf und hört auf zu pulsen (js/status.js). */
.hero__dot.is-closed { background: var(--c-blade); }
.hero__dot.is-closed::after { display: none; }

/* Barberkante als harter Abschluss zur nächsten Sektion. */
.hero__stripe { width: 100%; }

/* ---- Ab 900px: Deck zweispaltig, Zeilen driften (js/hero.js) -------------- */
@media (min-width: 900px) {
  .hero__deck {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--sp-6);
  }
  .hero__column { top: calc(92px + var(--sp-3)); }
  .hero__line { will-change: transform; }
}

/* ---- Ab 1200px: der Einschub bekommt seine eigene Bahn -------------------- */
@media (min-width: 1200px) {
  .hero__strip { display: block; }
  .hero__foot  { padding-inline-end: calc(var(--hero-strip-w) + var(--sp-5)); }
  .hero__top   { padding-inline-end: calc(var(--hero-strip-w) + var(--sp-5)); }
}

/* ---- Unter 1100px: Stahlblock auf zwei Spalten ---------------------------- */
@media (max-width: 1099px) {
  .hero__slab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__cell:nth-child(odd)     { box-shadow: none; }
  .hero__cell:nth-child(n + 3)   { box-shadow: inset 0 1px 0 var(--line); }
  .hero__cell:nth-child(4)       { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
}

/* ---- Unter 900px: Schleier von unten, Text über die volle Breite ---------- */
@media (max-width: 899px) {
  .hero__scrim {
    background:
      linear-gradient(to top,
        var(--c-coal) 0% 38%,
        color-mix(in srgb, var(--c-coal) 70%, transparent) 72%,
        color-mix(in srgb, var(--c-coal) 24%, transparent) 100%),
      color-mix(in srgb, var(--c-coal) 36%, transparent);
  }
  .hero__cone {
    background:
      radial-gradient(62% 34% at 58% 22%, rgba(255, 234, 205, 0.16), transparent 70%),
      radial-gradient(140% 74% at 50% 32%, transparent 28%, rgba(0, 0, 0, 0.72) 100%);
  }
  .hero__zoom { transform-origin: 50% 40%; }
  .hero__lead { max-width: 46ch; }
}

/* ---- Mobil ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero__stage { padding-block: clamp(5.5rem, 14vh, 8rem) var(--sp-3); }

  /* Schmale Spalte: die Headline darf die Breite voll ausnutzen. */
  .hero { --fs-hero: clamp(2.5rem, 15vw, 5rem); }

  /* Der Differenz-Modus frisst über dem hellen Bildrand den Kontrast — auf
     kleinen Geräten steht die Headline deshalb massiv auf dem Schleier. */
  .hero__title { mix-blend-mode: normal; color: var(--t-strong); }
  .hero__line--hollow > span { -webkit-text-stroke-width: 1.5px; }

  .hero__eyebrow { white-space: normal; }
  .hero__hours   { display: none; }

  .hero__deck { margin-block-start: var(--sp-4); gap: var(--sp-3); }
  .hero__actions { width: 100%; gap: var(--sp-2); }
  .hero__actions .btn { flex: 1 1 11rem; justify-content: space-between; min-height: 44px; }
  .hero__lead {
    max-width: none;
    font-size: var(--fs-sm);
    padding-inline-start: var(--sp-3);
  }

  .hero__slab { grid-template-columns: minmax(0, 1fr); }
  .hero__cell {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    min-height: 3.25rem;
    padding: var(--sp-2) var(--sp-3);
    gap: 0.35rem var(--sp-3);
  }
  .hero__cell,
  .hero__cell:nth-child(odd),
  .hero__cell:nth-child(4)      { box-shadow: none; }
  .hero__cell + .hero__cell     { box-shadow: inset 0 1px 0 var(--line); }
  .hero__label { grid-column: 1; grid-row: 1; }
  .hero__value { grid-column: 2; grid-row: 1; justify-content: flex-end; font-size: var(--fs-xs); }
  .hero__sub   { grid-column: 2; grid-row: 2; text-align: right; }
  .hero__value--adr { text-align: right; }
  .hero__score { font-size: var(--fs-sm); }
}

/* ---- Weniger Bewegung ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__zoom { will-change: auto; transform: none; }
  .hero__line { will-change: auto; }
}
