/* =====================================================================
   hero.css — Hero-Ansicht über der Bühne, Glutfunken und die
              Fortschrittslinie der Kamerafahrt.
              Farben und Schriften aus der Webforging-CI (brand.css),
              auf dunklem Grund invertiert: Bone-Text, Glut-Akzente.
   ===================================================================== */

.hero {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;                 /* nur Text, Knopf und Marke reagieren */
  contain: layout style;
}
/* .gone: kein visibility:hidden mehr — das würde die gerasterte Blatt-Ebene
   verwerfen und beim Zurückscrollen neu aufbauen (Flackern). Das Blatt ist
   dann ohnehin auf Breite 0 beschnitten. */
.hero.gone { pointer-events: none; }

/* ---- Aufforderung zum Scrollen ------------------------------------ */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px 11px 12px;
  border: 1px solid rgba(243, 240, 231, .2);
  border-radius: 2px;
  background: rgba(243, 240, 231, .045);
  color: #F3F0E7;
  font: 500 13px/1 var(--wf-body);
  letter-spacing: .03em;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.hero-cta:hover {
  border-color: var(--wf-heat-amber);
  background: rgba(255, 181, 52, .09);
  transform: translateY(-1px);
}
.cta-wheel {
  position: relative;
  width: 18px; height: 28px;
  border: 2px solid rgba(243, 240, 231, .55);
  border-radius: 10px;
}
.cta-wheel i {
  position: absolute;
  left: 50%; top: 5px;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--wf-heat-amber);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(9px); opacity: .15; }
}

/* ---- Fortschritt der Kamerafahrt ----------------------------------- */
.progress {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 6;
  background: var(--wf-molten);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: .9;
  pointer-events: none;
  will-change: transform;
}

/* ---- Rechtliches: immer erreichbar, unauffällig ---------------------- */
.legal {
  position: fixed;
  right: clamp(12px, 1.6vw, 22px);
  bottom: clamp(10px, 1.4vh, 16px);
  z-index: 6;
  display: flex;
  gap: 14px;
  font: 400 10px/1 var(--wf-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.legal a {
  color: rgba(243, 240, 231, .5);
  text-decoration: none;
  transition: color .2s;
}
.legal a:hover { color: var(--wf-heat-amber); }

.noscript {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  max-width: 40ch;
  padding: 18px 22px;
  background: #F3F0E7;
  color: #2C3F26;
  font: 400 14px/1.6 var(--wf-body);
  border-radius: 2px;
}
.noscript a { color: var(--wf-accent); }

/* ---- Wandspruch (nur schmale Schirme, am Ende der Fahrt) ------------
   Liegt in der Wandebene, also perspektivisch mitverzerrt, und sieht aus,
   als wäre er in den Putz gedrückt: Ton der Wand, Licht- und Schattenkante. Einblendung: aus der Unschärfe heraus, leicht schrumpfend. */
.wall-note {
  position: absolute;
  left: 50%; bottom: 133vh;            /* erscheint in der Endstation oben am Bildrand */
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .4em;
  width: max-content;
  text-align: center;
  color: rgba(214, 222, 236, .30);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .75), 0 2px 3px rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .16);
  pointer-events: none;
  opacity: 0;
  filter: blur(6px);
}
.wall-note span {
  font: 700 clamp(28px, 9vw, 44px)/1 var(--wf-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wall-note small {
  font: 400 clamp(11px, 3.2vw, 14px)/1 var(--wf-mono);
  letter-spacing: .28em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .wall-note { display: flex; }
  html.at-end .wall-note { animation: wall-note-in 1.6s cubic-bezier(.2, .8, .2, 1) .5s forwards; }
}
@keyframes wall-note-in {
  0%   { opacity: 0; filter: blur(8px); transform: translateX(-50%) scale(1.08); }
  100% { opacity: 1; filter: blur(0);   transform: translateX(-50%) scale(1); }
}


@media (prefers-reduced-motion: reduce) {
  .cta-wheel i { animation: none; }
}
