/* Spotario Landing — seitenspezifische Stile.
   Tokens und gemeinsame Teile: base.css */

/* ---------- Enthüllungen (nur mit aktiver Motion) ------------------- */

html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- POI-Punkte (Hero und Szene) ----------------------------- */

.poi {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 252, 245, 0.96);
  box-shadow: 0 0 0 1px rgba(59, 72, 63, 0.12), 0 2px 5px rgba(55, 46, 28, 0.25);
  will-change: transform, opacity;
}

/* Kategoriefarben und Markergrößen wie auf der App-Karte:
   Muss-Kategorien 13 px, Bonus 10 px, fremde Kategorien grau */
.poi--lm     { background: #13715b; }
.poi--mode   { background: #4f46e5; }
.poi--drog   { background: #0284c7; }
.poi--schuhe { background: #65a30d; width: 10px; height: 10px; opacity: 0.85; }
.poi--fremd  { background: rgba(30, 36, 31, 0.35); width: 9px; height: 9px; }

/* Reise-Ebene: die Held-Punkte fliegen als Fixed-Overlay bis in die Karte */

.travel-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.traveler {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  opacity: 0;
}

/* ---------- 1 · Held ------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 72px 24px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
  align-items: center;
}

.hero__claim {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 650;
  max-width: 21ch;
}

.hero__claim-accent {
  color: var(--petrol);
}

.hero__sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__beleg {
  margin-top: 22px;
  max-width: 58ch;
  padding-left: 14px;
  border-left: 1px solid var(--hairline-strong);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-faint);
}

.hero__scrollhinweis {
  margin-top: 56px;
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__scrollpfeil {
  display: inline-block;
  color: var(--petrol);
  font-size: 18px;
}

html.motion .hero__scrollpfeil {
  animation: hero-pfeil 2.2s ease-in-out infinite;
}

@keyframes hero-pfeil {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  z-index: 1;
  pointer-events: none;
}

/* Schwebende System-Kacheln rechts im Held */

.hero__artefakte {
  position: relative;
  height: 452px;
  pointer-events: none;
}

.hero-mini--karte {
  left: 0;
  top: 24px;
  width: 216px;
  padding: 12px 14px 10px;
}

.hero-karte__bild {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

.hero-karte__titel {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #626c65;
  margin-bottom: 8px;
}


.hero-karte__stand {
  margin-top: 8px;
  max-width: 148px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink-faint);
}

.hero-mini {
  position: absolute;
  background: var(--panel-solid);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-artifact);
  padding: 10px;
}

.hero-mini--index {
  top: 0;
  right: 0;
  width: 240px;
  padding: 0;
  border: none;
  background: none;
}

.hero-mini--index .expansion-index-card {
  box-shadow: var(--shadow-artifact);
}

.hero-mini--metric {
  top: 152px;
  right: 0;
  width: 235px;
  padding: 0;
  border: none;
  background: none;
}

.hero-mini--metric .expansion-metric-card {
  box-shadow: var(--shadow-artifact);
}

.hero-mini--rank {
  top: 316px;
  left: 96px;
  padding: 12px 15px;
}

html.motion .hero-mini {
  animation:
    mini-ein 800ms cubic-bezier(0.16, 1, 0.3, 1) backwards,
    mini-schweben 9s ease-in-out infinite;
}

html.motion .hero-mini--karte  { animation-delay: 140ms, -9s; animation-duration: 800ms, 15s; }
html.motion .hero-mini--index  { animation-delay: 300ms, 0s; }
html.motion .hero-mini--metric { animation-delay: 460ms, -3s; animation-duration: 800ms, 11s; }
html.motion .hero-mini--rank   { animation-delay: 620ms, -6s; animation-duration: 800ms, 13s; }

@keyframes mini-ein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes mini-schweben {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__artefakte {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-mini {
    position: static;
    width: auto;
  }

  .hero-mini--metric { display: none; }
}

/* ---------- 2 · Problem --------------------------------------------- */

.problem {
  border-top: 1px solid var(--hairline);
}

.problem__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px 24px;
}

.problem__inner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  max-width: 20ch;
}

.problem__inner p {
  margin-top: 22px;
  max-width: var(--text-max);
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- 3 · Szene ------------------------------------------------ */

.scene {
  border-top: 1px solid var(--hairline);
}

html.motion .scene {
  height: 380vh;
}

.scene__sticky {
  position: sticky;
  top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 24px;
}

html:not(.motion) .scene__sticky {
  position: static;
  min-height: 0;
}

.scene__kopf h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 28px;
}

.scene__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 40px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.scene__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
}

.scene-step {
  position: relative;
  padding: 16px 18px;
  border-left: 2px solid var(--hairline-strong);
  transition: opacity 320ms ease;
}

.scene-step::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--petrol);
  opacity: 0;
  transition: opacity 320ms ease;
}

html.motion .scene-step {
  opacity: 0.45;
}

html.motion .scene-step.is-active {
  opacity: 1;
}

html.motion .scene-step.is-active::before {
  opacity: 1;
}

.scene-step h3 {
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scene-step__nr {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrol);
  font-weight: 600;
}

.scene-step p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.scene-stage {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 1px 1px, rgba(59, 72, 63, 0.1) 1px, transparent 0) 0 0 / 26px 26px,
    var(--panel);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  min-height: 420px;
}

.scene-stage__legende {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  font-size: 11px;
  color: var(--ink-faint);
}

/* Kartenbereich: auf Desktop deckungsgleich mit der Bühne */

.scene-karte {
  position: absolute;
  inset: 0;
}

/* Straßennetz als Kartengrund */

.scene-strassen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Zielprofil — Mini-Nachbau des Profileditors */

.scene-profil {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  width: min(280px, 52%);
  background: var(--panel-solid);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-artifact);
  padding: 12px 14px;
}

html.motion .scene-profil {
  opacity: calc(var(--p-profil, 0));
  transform: translateY(calc((1 - var(--p-profil, 0)) * 14px));
}

.scene-profil__titel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #626c65;
  margin-bottom: 8px;
}

.scene-profil__rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.scene-profil__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(59, 72, 63, 0.14);
  background: rgba(255, 252, 245, 0.76);
  font-size: 12px;
}

.scene-profil__row strong {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Suchraum-Kreis */

.scene-raum {
  position: absolute;
  z-index: 1;
  left: 55%;
  top: 50%;
  width: 76%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(49, 88, 70, 0.6);
  border-radius: 50%;
}

html.motion .scene-raum {
  opacity: var(--p-raum, 0);
  transform: translate(-50%, -50%) scale(calc(0.88 + 0.12 * var(--p-raum, 0)));
}

html.motion .scene-raum__label {
  opacity: var(--p-raum, 0);
}

.scene-raum__label {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--petrol);
  background: var(--panel-solid);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Zone */

.scene-zone {
  position: absolute;
  z-index: 2;
  left: 60.5%;
  top: 46.5%;
  width: 19%;
  aspect-ratio: 1.25;
  transform: translate(-50%, -50%);
}

.scene-zone svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

html.motion .scene-zone {
  opacity: var(--p-zone, 0);
  transform: translate(-50%, -50%) scale(calc(0.7 + 0.3 * var(--p-zone, 0)));
}

.scene-zone__badge {
  position: absolute;
  top: -16px;
  right: -30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel-solid);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 3px 11px 3px 3px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px -4px var(--shadow-color);
}

.scene-zone__badge .priority-pill {
  min-width: 0;
  padding: 3px 9px;
  font-size: 11.5px;
}

/* Andockende Mini-Artefakte (Phase 4) */

.scene-mini {
  position: absolute;
  z-index: 4;
  background: var(--panel-solid);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-artifact);
}

.scene-mini--rank {
  left: 3%;
  bottom: 9%;
  padding: 10px 13px;
  max-width: 62%;
}

html.motion .scene-mini--rank {
  opacity: var(--p-dock, 0);
  transform: translateX(calc((1 - var(--p-dock, 0)) * -22px));
}

.scene-mini--index {
  right: 2.5%;
  top: 16%;
  width: min(172px, 34%);
  padding: 12px 14px;
  background: linear-gradient(135deg, #203a32 0%, #315846 100%);
  border-color: #2c4f3f;
  color: #fff9f0;
}

html.motion .scene-mini--index {
  opacity: var(--p-dock, 0);
  transform: translateX(calc((1 - var(--p-dock, 0)) * 22px));
}

.scene-mini--index > span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 249, 240, 0.72);
}

.scene-mini--index > strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.scene-mini--index small {
  font-size: 13px;
  color: rgba(255, 249, 240, 0.72);
}

.scene-mini--index p {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 249, 240, 0.86);
}

/* Ohne Motion bleibt alles gleichzeitig sichtbar: Streupunkte, Profilkarte,
   Suchkreis und Zone als ein statisches Schaubild. */

/* ---------- 4 · Ansichten (UI-Artefakte) ----------------------------- */

.ansichten {
  border-top: 1px solid var(--hairline);
}

.ansichten__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px 24px 40px;
}

.ansichten__kopf h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.ansichten__kopf p {
  margin-top: 18px;
  max-width: var(--text-max);
  font-size: 18px;
  color: var(--ink-soft);
}

.artefakt {
  margin: 72px 0 0;
}

.artefakt figcaption {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.artefakt--lagedetail { margin-left: auto; max-width: 760px; }
.artefakt--rangliste  { max-width: none; }
.artefakt--bewertung  { max-width: 640px; }
.artefakt--profil     { margin-top: 0; max-width: 620px; }

.artefakt__screenshot {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-artifact);
}

/* ---------- 5 · Belege ----------------------------------------------- */

.belege {
  border-top: 1px solid var(--hairline);
}

.belege__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px 24px;
}

.belege__inner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 40px;
}

.beleg {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 12px 40px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}

.beleg__zahl {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--petrol);
}

.beleg__text {
  max-width: var(--text-max);
  color: var(--ink-soft);
}

.beleg__logo {
  margin-top: 22px;
  height: 78px;
  width: auto;
}

.belege__referenz {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.belege__referenz-logo {
  height: 34px;
  width: auto;
}

.belege__referenz p {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  max-width: 30ch;
}

/* ---------- 6 · Arbeit ----------------------------------------------- */

.arbeit {
  border-top: 1px solid var(--hairline);
}

.arbeit__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px 24px;
}

.arbeit__inner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.arbeit__einleitung {
  margin-top: 18px;
  max-width: var(--text-max);
  font-size: 18px;
  color: var(--ink-soft);
}

.arbeit__punkte {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.arbeit__punkt {
  background: var(--panel);
  padding: 26px 28px 30px;
}

.arbeit__punkt h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.arbeit__punkt p {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.bald {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--prio-b);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- 7 · Grenzen ---------------------------------------------- */

.grenzen {
  border-top: 1px solid var(--hairline);
}

.grenzen__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px 24px;
}

.grenzen__inner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.grenzen__liste {
  margin-top: 32px;
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grenzen__liste p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.grenzen__liste strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ---------- 8 · Zielgruppe ------------------------------------------- */

.zielgruppe {
  border-top: 1px solid var(--hairline);
}

.zielgruppe__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px 24px;
}

.zielgruppe__inner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.zielgruppe__inner p {
  margin-top: 20px;
  max-width: var(--text-max);
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- 9 · Abschluss -------------------------------------------- */

.abschluss {
  border-top: 1px solid var(--hairline);
}

.abschluss__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 130px 24px 120px;
  text-align: left;
}

.abschluss__inner h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.abschluss__inner p {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 18px;
  color: var(--ink-soft);
}

.abschluss__cta {
  display: inline-block;
  margin-top: 36px;
  font-size: 17px;
  font-weight: 600;
  color: #fff9f0;
  background: var(--index-verlauf);
  border: 1px solid #2c4f3f;
  border-radius: var(--radius);
  padding: 14px 26px;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(32, 58, 50, 0.55);
  transition: filter 160ms ease, transform 160ms ease;
}

.abschluss__cta:hover {
  filter: brightness(1.12);
  color: #fff9f0;
  transform: translateY(-2px);
}

/* ---------- Aufnahmemodus (?flat): vh-Höhen neutralisieren ------------- */

html.flat .hero { min-height: 0; }
html.flat .hero__inner { padding: 90px 24px 150px; }
html.flat .scene__sticky { position: static; min-height: 0; }
html.flat.motion .scene { height: auto; }
html.flat .scene-stage { min-height: 480px; }

/* ---------- Responsiv ------------------------------------------------- */

@media (max-width: 900px) {
  .scene__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Gepinnte Szene: nur der aktive Schritt bleibt sichtbar, damit die
     animierte Karte mit in den Viewport passt. Ohne Motion stehen alle
     drei Schritte untereinander. */
  html.motion .scene-step { display: none; }
  html.motion .scene-step.is-active { display: block; }

  html.motion .scene__sticky {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  html.motion .scene__kopf h2 {
    margin-bottom: 14px;
  }

  html.motion .scene {
    height: 320vh;
  }

  .scene__steps {
    flex-direction: row;
    gap: 12px;
  }

  .scene-step {
    flex: 1;
    padding: 10px 12px;
  }

  .scene-step p {
    font-size: 13px;
  }

  .scene-stage {
    min-height: 340px;
  }

  .beleg {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .arbeit__punkte {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero__inner {
    padding-top: 48px;
    padding-bottom: 120px;
  }

  .scene__steps {
    flex-direction: column;
  }

  /* Szene: Profilkarte in den Fluss, Kartenbereich mit eigener Höhe,
     Minis in freie Ecken — nichts überdeckt Text */
  .scene-stage {
    min-height: 0;
    padding: 12px;
  }

  .scene-profil {
    position: static;
    width: auto;
    margin-bottom: 12px;
    transform: none;
  }

  html.motion .scene-profil {
    transform: translateY(calc((1 - var(--p-profil, 0)) * 14px));
  }

  .scene-karte {
    position: relative;
    inset: auto;
    height: 300px;
    margin-bottom: 26px;
  }

  .scene-strassen {
    border-radius: var(--radius);
  }

  .scene-mini--rank {
    left: 6px;
    bottom: 6px;
    max-width: 72%;
    padding: 8px 10px;
  }

  .scene-mini--index {
    right: 6px;
    top: 6px;
    width: 150px;
  }

  .scene-raum__label {
    left: 8px;
    right: auto;
    top: 8px;
    bottom: auto;
    transform: none;
  }

  .scene-stage__legende {
    right: 0;
    bottom: -22px;
  }

  .artefakt--lagedetail,
  .artefakt--rangliste,
  .artefakt--bewertung,
  .artefakt--profil {
    max-width: none;
  }

  .belege__referenz {
    align-items: flex-start;
    gap: 14px;
  }
}
