/* The small per-Einsatzort 3D hero: one landmark, one parked Meissner van,
   full-bleed beneath the page's own H1/intro, same borderless white-floor
   treatment as the main Einsatzgebiet animation so every page in the group
   still feels like one product. */

/* Replaces the site's old blue-banner .hero for these pages - plain white,
   same kicker/H1/intro rhythm as the Einsatzgebiet section on the landing
   page, so an Einsatzort page reads as the same product as the homepage. */
.location-hero-section {
  padding: clamp(36px, 5vw, 72px) 0 8px;
  background: #fff;
}

.location-hero-frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 22px 0 0;
  background: #fff;
}

.location-hero-stage {
  position: relative;
  width: 100%;
  /* Tall enough for a single building to read. Full-bleed and shallow gives a
     frame around 3.7:1, and one landmark can only ever fill a third of that -
     the camera fits to the height, so everything else is empty white. */
  height: clamp(360px, 62vh, 620px);
  overflow: hidden;
  background: #fff;
  contain: layout paint;
}

.location-hero-stage canvas {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Pre-rendered still at the camera's starting angle (see location-boot.js).
   It paints with the page; the live canvas, when it runs at all, fades in on
   top once its first frame is drawn. */
.location-hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.location-hero-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.location-hero-stage.has-poster canvas {
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* .is-live: first frame drawn with the logo on it (see location-hero.js reveal()). */
.location-hero-stage.has-poster.is-live canvas {
  opacity: 1;
}
.location-hero-stage.has-poster:not(.is-ready)::before {
  display: none;
}

.location-hero-note {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 0 20px;
  text-align: center;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.6;
  color: var(--muted, #5b636c);
}

.location-hero-note strong {
  color: var(--headline-tone, #23272e);
}

/* --------------------------------------------------------------- fallback */

.location-hero-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #fff;
  color: #23272e;
}

.location-hero-stage.is-unsupported .location-hero-fallback {
  display: flex;
}

.location-hero-fallback img {
  width: min(220px, 55%);
  height: auto;
}

.location-hero-fallback p {
  margin: 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.6;
  color: #5b636c;
}

/* ------------------------------------------------------------ loading hint */

.location-hero-stage:not(.is-ready)::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 3px solid rgba(207, 31, 40, 0.2);
  border-top-color: var(--brand, #cf1f28);
  animation: locationHeroSpin 0.9s linear infinite;
}

@keyframes locationHeroSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .location-hero-stage {
    height: clamp(300px, 48vh, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-hero-stage:not(.is-ready)::before {
    animation: none;
  }
}
