/* Startseite „Einsatzkarte mit Leuchtspur“: ergänzt site.css und einsatzkarte.css. Gilt für body.v3.
   Brandbook: nur Markenfarben, als Verlauf nur Strike Blue → Deep Blue → Night (auch als Ausschnitt),
   Navy und Steel nur als massive Flächen, keine Schlagschatten. Tiefe entsteht über Tonwerte,
   eine 1-px-Kante in Line und die 45°-Fase. Höhenlinien als Kartentextur.
   Jeder Abschnitt beginnt und endet in Night, damit die Übergänge fließen. */

.v3 {
  --relief: url("../img/hoehenlinien.svg");
  --lamp: rgba(10, 61, 107, .85);       /* Deep Blue als Lichtkegel, läuft nach Night aus */
  --edge: linear-gradient(180deg, var(--night) 0, rgba(6, 11, 22, 0) 160px, rgba(6, 11, 22, 0) calc(100% - 160px), var(--night) 100%);
  --map-max: 640px;
  --video-w: 640px;    /* Breite des Video-Rahmens, im Regler-Panel einstellbar */
  --chamfer: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

/* Kartenteil: Platte in Deep Blue → Night mit 1-px-Kante in Line und Fasen, ohne Schatten */
.v3 .mode, .v3 .occasion {
  border: 1px solid transparent;
  background: linear-gradient(160deg, var(--deep-blue) 0%, var(--night) 72%) padding-box, var(--line) border-box;
  clip-path: var(--chamfer);
}

/* Einstieg: Lichtkegel hinter der Karte und Höhenlinien, über die volle Breite */
.v3 .hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    var(--relief) 70% 40% / 1400px auto no-repeat,
    radial-gradient(ellipse 48% 62% at 76% 46%, var(--lamp) 0%, rgba(10, 61, 107, .35) 45%, transparent 72%),
    var(--night);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
          mask-image: linear-gradient(180deg, #000 80%, transparent);
}
/* Einstieg: Die Videobreite bestimmt die rechte Spalte, der Text nimmt den Rest (höchstens --hero-copy-w) */
.ek.v3 .hero { grid-template-columns: minmax(360px, 1fr) min(calc(var(--video-w) + 56px), calc(min(100vw, var(--maxw)) - 2 * var(--gutter) - clamp(40px, 5vw, 80px) - 380px)); }

/* Die Karte als Kartenteil: Kante (::before) und Platte (::after) mit Fasen; die Spur liegt darüber */
.v3 .map { z-index: auto; width: calc(100% - 56px); max-width: calc(var(--map-max) - 56px); margin: 36px 28px 0; }
.v3 .map::before, .v3 .map::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: polygon(32px 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%, 0 32px);
}
.v3 .map::before { inset: -29px; background: var(--line); }
.v3 .map::after { inset: -28px; background: linear-gradient(155deg, var(--deep-blue) 0%, var(--night) 62%); }
.v3 .map__tag, .v3 .map__lab { z-index: 2; }
.v3 .map__tag { left: 0; top: -22px; }
.v3 .map__dim { bottom: -62px; }
.ek.v3 .map .timer { font-size: clamp(22px, 2.3vw, 32px); }
/* Vormerk-Feld im Einstieg: deutlich von den Kennzahlen abgesetzt, getrennt durch eine Pixel-Linie */
.v3 .hero .legend { margin-bottom: 0; }
.v3 .hero .signup--inline { position: relative; margin-top: 56px; padding-top: 48px; }
.v3 .hero .signup--inline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--hellblau) 0 8px, transparent 8px 16px);
  opacity: .45;
}
/* Hallenkarte aus Higgsfield (Illustration) unter der SVG-Ebene; die gezeichneten Wände übernimmt das Bild */
.v3 .map__img { position: absolute; inset: 0; z-index: 0; }
.v3 .map svg { position: relative; z-index: 0; }
.v3 .map__img img { width: 100%; height: 100%; object-fit: cover; }
.v3 .map svg .walls { display: none; }
.v3 .map svg [data-zone="spawns"] rect { fill-opacity: .9; }
.v3 .map.is-focus .map__img { opacity: .35; transition: opacity .3s var(--ease); }

/* Modus-Bilder (Higgsfield-Illustrationen) */
/* Bild randlos oben in der Kachel, unten weich in den Kachelgrund ausgeblendet */
.v3 .mode__art {
  margin: -32px -32px 8px; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%);
}
.v3 .mode__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.v3 .mode:hover .mode__art img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .v3 .mode:hover .mode__art img { transform: none; } }

/* Video im Einstieg (Platzhalter, bis das Gameplay-Video vorliegt): Kartenteil mit Fasen, die Spur rahmt es ein */
.v3 .hero-video { position: relative; z-index: auto; justify-self: end; align-self: start; width: calc(100% - 56px); margin: 36px 28px 0; aspect-ratio: 16 / 9; }
.v3 .hero-video::before, .v3 .hero-video::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: polygon(32px 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%, 0 32px);
}
.v3 .hero-video::before { inset: -29px; background: var(--line); }
.v3 .hero-video::after { inset: -28px; background: linear-gradient(155deg, var(--deep-blue) 0%, var(--night) 62%); }
.hero-video__frame {
  position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--line);
  background:
    var(--relief) 50% 50% / 900px auto no-repeat,
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(10, 61, 107, .85) 0%, var(--night) 75%);
}
.hero-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.hero-video__frame[data-ready="true"] .hero-video__media { display: block; }
.hero-video__frame[data-ready="true"] .hero-video__placeholder { display: none; }
.hero-video__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.hero-video__play { position: relative; width: 88px; height: 88px; border: 2px solid var(--hellblau); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.hero-video__play::after { content: ""; position: absolute; left: 34px; top: 26px; width: 0; height: 0; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent var(--hellblau); }
.hero-video__label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--chrome); }

/* Spiel: „1 Schritt in der Halle = 1 Schritt im Spiel“; die Spur ist das Gleichheitszeichen */
.v3 .spiel {
  background:
    var(--edge),
    var(--relief) 90% 50% / 1500px auto no-repeat,
    radial-gradient(ellipse 50% 70% at 82% 50%, var(--lamp) 0%, rgba(10, 61, 107, .3) 45%, transparent 75%),
    var(--night);
}
.v3 .ratio__eq { background: none; height: 32px; margin: 4px 0; }
.v3 .ratio__n { font-size: clamp(56px, 5.6vw, 80px); }
.v3 .ratio__l { font-size: 18px; color: var(--chrome); }

/* Modi: drei Kartenteile mit Mini-Karten in der Sprache der Hallenkarte */
.v3 .modi {
  background:
    var(--edge),
    var(--relief) 10% 70% / 1500px auto no-repeat,
    radial-gradient(ellipse 60% 60% at 50% 60%, var(--lamp) 0%, rgba(10, 61, 107, .3) 45%, transparent 75%),
    var(--night);
}
.v3 .modi__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 40px; gap: 24px; }
.v3 .mode, .v3 .mode + .mode { padding: 32px; border-left: 1px solid transparent; }
.v3 .mode h3 { font-size: clamp(24px, 2.2vw, 34px); margin-bottom: 16px; }
.v3 .modi__wp { top: 0; }
.v3 .mini { max-width: none; width: 100%; }

/* Ablauf: die Spur ist die Route durch vier Wegpunkte, die aufleuchten, wenn sie erreicht sind */
.v3 .ablauf {
  background:
    var(--edge),
    var(--relief) 80% 40% / 1500px auto no-repeat,
    radial-gradient(ellipse 60% 55% at 50% 58%, var(--lamp) 0%, rgba(10, 61, 107, .3) 45%, transparent 75%),
    var(--night);
}
.v3 .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 0; }
.v3 .steps::before, .v3 .step::before { display: none; }
.v3 .step { padding-right: 32px; }
.v3 .step__dot { display: block; position: relative; width: 16px; height: 16px; margin-bottom: 36px; border: 2px solid var(--hellblau); background: var(--night); transition: background-color .3s var(--ease); }
.v3 .step.is-lit .step__dot { background: var(--hellblau); }
.v3 .step__n { color: var(--slate); transition: color .3s var(--ease); }
.v3 .step.is-lit .step__n { color: var(--hellblau); }

/* Preise: Lichtkegel aus dem Markenverlauf hinter dem Ticket, Überschrift in Ice */
.v3 .preise {
  color: var(--ice);
  background:
    var(--edge),
    radial-gradient(ellipse 62% 58% at 50% 60%, rgba(0, 136, 216, .55) 0%, rgba(10, 61, 107, .8) 40%, transparent 76%),
    var(--relief) 30% 50% / 1500px auto no-repeat,
    var(--night);
}
.v3 .preise h2 { color: var(--ice); }
.v3 .ticket { background: var(--strike-blue); border: 2px solid var(--night); color: var(--night); grid-template-columns: 1fr 1fr minmax(300px, 1fr); }
.v3 .ticket__cell { padding: 32px; }
.v3 .ticket__cell + .ticket__cell { border-left: 2px solid var(--night); }
.v3 .ticket__price { margin: 16px 0 8px; }
.v3 .ticket__price small { display: block; margin-top: 10px; }
.v3 .ticket__stub { margin: 0; border-left: 2px dashed var(--strike-blue); justify-content: flex-start; gap: 16px; }

/* Gruppenrechner im Ticket-Abriss */
.calc h3 { color: var(--ice); font-size: 18px; letter-spacing: .1em; }
.calc__players { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.calc__players legend { width: 100%; margin-bottom: 8px; font-size: 15px; color: var(--chrome); }
.calc__players label { cursor: pointer; }
.calc__players input { position: absolute; opacity: 0; }
.calc__players span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ice); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.calc__players label:hover span { border-color: var(--slate); }
.calc__players input:checked + span { background: var(--strike-blue); border-color: var(--strike-blue); color: var(--night); }
.calc__players input:focus-visible + span { outline: 2px solid var(--hellblau); outline-offset: 2px; }
.calc__sum { margin: 8px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ice); }
.calc__sum small { font-family: var(--font-sans); font-weight: 500; font-size: 16px; color: var(--chrome); }
.calc__alt { margin: 0; color: var(--chrome); font-size: 16px; }
.v3 .calc .btn { align-self: flex-start; margin-top: auto; white-space: nowrap; }

/* Vergleich: Kartentisch mit Höhenlinien; die Spur zeichnet die Tabellenlinien nach */
.v3 .vergleich {
  background:
    var(--edge),
    var(--relief) 20% 30% / 1600px auto no-repeat,
    radial-gradient(ellipse 70% 55% at 40% 55%, rgba(10, 61, 107, .6) 0%, transparent 75%),
    var(--night);
}
.v3 .compare th, .v3 .compare td { border-bottom-color: rgba(36, 53, 82, .5); }
.v3 .compare tbody tr { transition: background-color .2s var(--ease); }
.v3 .compare tbody tr:hover { background: rgba(10, 61, 107, .35); }
.v3 .compare thead th.is-us { border-bottom: 2px solid var(--hellblau); }

/* Anlässe: drei gleich große Kartenteile */
.v3 .anlaesse {
  background:
    var(--edge),
    var(--relief) 0% 50% / 1400px auto no-repeat,
    radial-gradient(ellipse 50% 70% at 15% 55%, var(--lamp) 0%, transparent 72%),
    var(--night);
}
.v3 .occasions { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.v3 .occasion, .v3 .occasion + .occasion { padding: 32px; border-left: 1px solid transparent; }
.v3 .occasion h3 { font-size: clamp(24px, 2.2vw, 32px); min-height: 0; margin: 24px 0 14px; }
.v3 .occasions__wp { left: 50%; top: 0; }
.picto { width: 56px; height: 56px; display: block; }

/* Kontakt und Standort */
.v3 .kontakt {
  background:
    var(--edge),
    var(--relief) 80% 60% / 1500px auto no-repeat,
    radial-gradient(ellipse 55% 70% at 75% 50%, var(--lamp) 0%, transparent 72%),
    var(--night);
}
.kontakt__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.kontakt__list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.kontakt__list div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kontakt__list dt { color: var(--slate); }
.kontakt__list dd { margin: 0; font-weight: 600; }
.kontakt__list dd.is-pending { color: var(--chrome); font-weight: 400; }
.kontakt__map {
  position: relative; aspect-ratio: 16 / 10;
  border: 1px solid transparent;
  background: var(--relief) 50% 50% / 900px auto no-repeat padding-box, linear-gradient(155deg, var(--deep-blue) 0%, var(--night) 70%) padding-box, var(--line) border-box;
  clip-path: polygon(32px 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%, 0 32px);
}
.kontakt__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.kontakt__consent { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; padding: clamp(24px, 3vw, 40px); }
.kontakt__consent p { margin: 0; max-width: 46ch; font-size: 15px; color: var(--chrome); }
.kontakt__pin { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 18px; padding-top: 40px; }
.kontakt__pin::before { content: ""; position: absolute; left: 50%; top: 0; width: 24px; height: 24px; margin-left: -12px; border: 2px solid var(--hellblau); background: var(--night); }
.kontakt__pin::after { content: ""; position: absolute; left: 50%; top: 8px; width: 8px; height: 8px; margin-left: -4px; background: var(--hellblau); }

/* Fragen: Lichtkegel hinter der Überschrift */
.v3 .fragen {
  background:
    var(--edge),
    var(--relief) 0% 60% / 1500px auto no-repeat,
    radial-gradient(ellipse 40% 60% at 14% 30%, var(--lamp) 0%, rgba(10, 61, 107, .3) 45%, transparent 75%),
    var(--night);
}

/* Vormerken: Lichtkegel hinter der Überschrift, unten öffnet sich der Verlauf wie eine Landezone */
.v3 .vormerken {
  background:
    linear-gradient(180deg, var(--night) 0, rgba(6, 11, 22, 0) 160px),
    radial-gradient(ellipse 80% 70% at 50% 135%, var(--strike-blue) 0%, var(--deep-blue) 42%, transparent 75%),
    radial-gradient(ellipse 40% 45% at 18% 30%, var(--lamp) 0%, transparent 72%),
    var(--relief) 50% 100% / 1600px auto no-repeat,
    var(--night);
}
.v3 .vormerken__grid { align-items: center; }
.v3 .signup--full { padding: clamp(24px, 3vw, 40px); background: var(--navy); border: 1px solid var(--line); }

/* Feinjustierung der Person aus dem Regler-Panel (zuletzt 26.10.2026), für breite Bildschirme übernommen */
@media (min-width: 1200px) {
  body.v3 {
    --hero-top: 171px;
    --h1: 66px;
    --hero-copy-w: 694px;
    --video-w: 640px;
    --h2: 48px;
    --body: 18px;
    --sec-pad: 148px;
  }
}

@media (max-width: 1100px) {
  .v3 .modi__grid, .v3 .occasions { grid-template-columns: 1fr; }
  .v3 .mini { max-width: 520px; }
  .v3 .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .v3 .ticket { grid-template-columns: 1fr 1fr; }
  .v3 .ticket__stub { grid-column: 1 / -1; border-left: 0; border-top: 2px dashed var(--strike-blue); }
}
@media (max-width: 900px) {
  .ek.v3 .hero { grid-template-columns: 1fr; }
  /* Handy: Überschrift, Text, Kennzahlen und Formular zuerst, die Karte danach */
  .ek.v3 .map { order: 0; justify-self: center; width: min(300px, calc(100% - 32px)); max-width: none; margin: 56px auto 72px; }
  .v3 .map::before { inset: -17px; }
  .v3 .map::after { inset: -16px; }
  .v3 .map__tag { top: -14px; left: 4px; font-size: 11px; }
  .v3 .map__dim { bottom: -46px; }
  .v3 .map__lab { font-size: 11px; letter-spacing: .08em; }
  .v3 .map__lab--a { top: 20%; left: 96%; font-size: 12px; }
  .ek.v3 .map .timer { font-size: 18px; }
  .v3 .hero-video { order: 0; justify-self: stretch; width: calc(100% - 32px); max-width: none; margin: 56px 16px 72px; }
  .v3 .hero-video::before { inset: -17px; }
  .v3 .hero-video::after { inset: -16px; }
  .v3 .modi__grid, .v3 .occasions { gap: 16px; }
  .v3 .mode, .v3 .occasion, .v3 .occasion + .occasion { padding: 28px; }
  .v3 .mode__art { margin: -28px -28px 8px; }
  .v3 .steps { grid-template-columns: 1fr; row-gap: 0; }
  .v3 .step { padding-right: 0; }
  .v3 .step__dot { position: absolute; left: -40px; top: 8px; margin: 0; }
  .v3 .ticket__cell, .v3 .ticket__cell + .ticket__cell { padding: 28px var(--gutter); }
  .kontakt__grid { grid-template-columns: 1fr; }
  .kontakt__map { aspect-ratio: 4 / 5; }
  .kontakt__list div { grid-template-columns: 120px 1fr; }
}
@media (max-width: 640px) {
  .v3 .legend { grid-template-columns: 1fr 1fr; column-gap: 16px; margin: 28px 0 24px; }
  .v3 .hero .signup--inline { margin-top: 40px; padding-top: 36px; }
  .v3 .legend div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 0; }
  .v3 .legend dt { font-size: 14px; }
  .v3 .legend dd { text-align: left; font-size: 18px; }
  .v3 .ticket { margin: 0 calc(-1 * var(--gutter)); grid-template-columns: 1fr; }
  .v3 .ticket__cell + .ticket__cell { border-left: 0; border-top: 2px solid var(--night); }
  .v3 .ticket__stub { margin: 0; border-left: 0; border-top: 2px dashed var(--strike-blue); }
}
