/* Landing (DIS-W1 Glied 2): Einstieg A — der Spielplatz steht HINTER dem Kopf, volle Breite. Look C1 „Neon-Nacht“ (gestaltung/STILBIBEL.md §2).
   Keine Inline-Stile, keine Skript-Stile. Figur (Bild 1440×900: x 540–910, y 390–860) bleibt frei von Text. */
:root {
  --himmel: #05060f;
  --himmel2: #151a3c;
  --akzent: #5ff2e6;
  --laser: #7ff4ff;
  --weiss: #f5f1e6;
  --leise: #d9dee6;
  --hinweis: #9fd8ff;
  --glas: rgba(5, 6, 15, 0.45);
  --glas-rand: rgba(255, 255, 255, 0.14);
  --leucht: 0 0 14px rgba(95, 242, 230, 0.55);
  --rand: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--himmel);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--himmel);
  background-image: linear-gradient(180deg, var(--himmel) 0%, var(--himmel2) 100%);
  color: var(--weiss);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* ---- Kopfbild: Spielplatz als Standbild, volle Breite, Text darüber ---- */
.kopfbild {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--himmel);
  min-height: 660px;
}

.buehne {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: calc(100% - 40px); /* schmal: 40 px Streifen unten für die Unterschrift, die nie auf der Figur liegt */
  object-fit: cover;
  object-position: 50% 0%;
}

/* Leinwand (DIS-W2): die echte Bühne an der Stelle des Standbilds. Unsichtbar, bis das erste Bild steht (kein schwarzer Blitz).
   Blende auf (1,2 s) und Kamera setzt sich (2,4 s); `.fertig` = Startanimation vorbei oder übersprungen, dann sofort am Ziel. */
.leinwand {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease-out, transform 2.4s ease-out;
}
.kopfbild.lebt .leinwand { opacity: 1; transform: none; }
.kopfbild.fertig .leinwand { transition: none; }
.kopfbild.fertig > .buehne:not(.leinwand) { visibility: hidden; }   /* unter der fertigen Leinwand kein zweites Bild */

/* Hochformat (DIS-W2 Glied 3): die Leinwand bleibt 100 % breit und steht im Fluss UNTER dem Textblock (12 px Abstand). Sie füllt den
   Rest des Kopfes; der Kopf ist mindestens 660 px hoch und wird für eine Leinwand von 300 px höher, nicht die Leinwand kleiner.
   Der Text steht oben auf dem dunklen Verlauf. Die Figur liegt damit ganz im Bild, nicht mehr über den Rand geschnitten. */
@media (max-width: 899px) and (max-aspect-ratio: 1/1) {
  .kopfbild {
    display: flex;
    flex-direction: column;
  }
  .kopfbild > .ueber {
    order: 0;
  }
  .kopfbild > .leinwand {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    flex: 1 0 auto;
    width: 100%;
    height: auto;
    min-height: 300px;
    margin-top: 12px;
    z-index: 0;
  }
}

.blatt {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* schmales Phone: Verlauf von oben, damit der Text oben lesbar ist */
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.92) 0%, rgba(5, 6, 15, 0.82) 42%, rgba(5, 6, 15, 0) 58%);
}

.ueber {
  position: relative;
  padding: 22px var(--rand) 0;
}

.marke {
  margin: 0 0 6px;
  color: var(--akzent);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--weiss);
}

.kern {
  margin: 0;
  color: var(--leise);
  font-size: 17px;
  line-height: 1.4;
}

.knopf-zeile { margin: 14px 0 0; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  max-width: 100%;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--himmel);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--leucht);
}

/* Laden-Knopf (H-GP-KLEIN-DIS-1, 23.11.2026): „Bei Google Play“ in eigener Zeile unter „Spielen“ und dessen Unterzeile, Form der
   Schwester-Seite dici-space-cleaning (.knopf.leise): gleiche Höhe (56 px), Rand statt Leuchtfläche, damit „Spielen“ der erste Knopf
   bleibt. Neben „Spielen“ brach er bei 320 px um und schob .knopf-sub aufs Bild (Kontrast 3,5 : 1, Breiten-Runde 19:56). Die Fläche ist
   der Himmel, nicht durchsichtig: so liest sich der Text auf jedem Bildteil. */
.laeden { margin-top: 12px; }
.knopf.leise {
  background: var(--himmel);
  color: var(--akzent);
  border: 2px solid var(--akzent);
  box-shadow: none;
}

.unterschrift {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(5, 6, 15, 0.7);
  color: var(--hinweis);
  font-size: 16px;
  line-height: 1.3;
}

/* Breit: Bild im Seitenverhältnis 1440:900, Text in der linken Spalte (rechts davon die Figur) */
@media (min-width: 900px) {
  .kopfbild {
    min-height: 0;
    aspect-ratio: 1440 / 900;
  }
  .buehne {
    height: 100%;
  }
  .blatt {
    background: linear-gradient(90deg, rgba(5, 6, 15, 0.92) 0%, rgba(5, 6, 15, 0.7) 30%, rgba(5, 6, 15, 0) 50%);
  }
  .ueber {
    position: absolute;
    top: 0;
    left: 0;
    width: 36vw;
    padding: 56px var(--rand) 0;
  }
  h1 { font-size: clamp(30px, 3.4vw, 48px); }
}

.knopf:focus-visible,
.fuss a:focus-visible {
  outline: 2px solid var(--laser);
  outline-offset: 3px;
}

/* ---- Inhalt unter dem Kopf ---- */
.inhalt {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px var(--rand) 8px;
}

.beschreibung {
  margin: 0 0 28px;
  color: var(--leise);
}

.vorteile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.vorteile li {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--glas-rand);
  background: var(--glas);
}

.vorteile h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--akzent);
}

.vorteile p { margin: 0; color: var(--leise); }

/* ---- Fuß ---- */
.fuss {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px var(--rand) 32px;
  border-top: 1px solid var(--glas-rand);
}

/* Fuß-Leiste (23.11.2026, Entscheidung der Leitung Nr. 1 b): jede <nav> ist EINE Zeile und bricht nie um. Umgebrochen wird nur
   zwischen den Gruppen (.fuss-gruppen), also nie mitten in einer Gruppe. Die zwei Sprach-Verweise stehen in einer eigenen Zeile
   darunter (.fuss-sprache), nicht mehr in der Navigation. Gemessen bei 320 px: fünf Verweise brauchen 512 px, Platz sind 288. */
.fuss-gruppen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin-top: 16px;
}
.fuss-zeile {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.fuss-sprache {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.fuss a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--leise);
  font-size: 15px;
}

/* DIS-W2 Glied 3 (Opus 24.10.2026): im Hochformat liegt die Leinwand im Fluss (z-index 0) und deckte die Unterschrift zu — gemessen
   elementFromPoint = Leinwand bei 390. Die Ehrlichkeitszeile „Live aus dem Spiel — Autopilot“ / „Standbild aus dem Spiel“ steht darüber. */
.kopfbild > .unterschrift { z-index: 1; }

/* ===== DIS-WEB2 (Fable, 28.10.2026): Startseite lebendiger — Karten zu den Modi, FAQ, Auftritt beim Scrollen, Presse-Seite =====
   Regeln: gestaltung/DYNAMIK.md — Einflug 400–700 ms, Hover 120–180 ms, Bewegung nie in der Fläche mit Bildern (Fotos selbst ruhig),
   prefers-reduced-motion = alles steht sofort. Das Ausblenden gilt nur unter html.js (ohne Skript bleibt alles sichtbar). */
.knopf-sub {
  margin: 10px 0 0;
  color: var(--hinweis);
  font-size: 16px;
}

.inhalt { max-width: 760px; }

.abschnitt {
  margin: 36px 0 0;
}
.abschnitt > h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--weiss);
}
.abschnitt > .leise {
  margin: 0 0 18px;
  color: var(--leise);
}

/* Vier USPs: zwei Spalten ab 600 px */
@media (min-width: 600px) {
  .vorteile ul { grid-template-columns: 1fr 1fr; }
}

/* Modi-Karten: Bild oben (ruhig), Text unten; Hover hebt die Karte 4 px und lässt den Rand leuchten (150 ms) */
.modi ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) {
  .modi ul { grid-template-columns: 1fr 1fr; }
}
.modi li {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--glas-rand);
  background: var(--glas);
  transition: transform 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.modi li img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--himmel2);
}
.modi .text { padding: 14px 18px 18px; }
.modi h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--akzent);
}
.modi p { margin: 0; color: var(--leise); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .modi li:hover,
  .vorteile li:hover {
    transform: translateY(-4px);
    border-color: var(--akzent);
    box-shadow: var(--leucht);
  }
  .vorteile li { transition: transform 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out; }
}

/* FAQ: native <details>, sichtbar ohne Skript (das JSON-LD trägt genau diese Fragen) */
.faq details {
  border-bottom: 1px solid var(--glas-rand);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--weiss);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glas-rand);
  color: var(--akzent);
  font-size: 20px;
  line-height: 26px;
  text-align: center;
  transition: transform 150ms ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; }
.faq details > p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--leise);
}

/* Schluss: zweiter Spielen-Knopf nach dem Lesen */
.schluss {
  margin: 40px 0 8px;
  text-align: center;
}
.schluss p { margin: 0 0 14px; color: var(--leise); }

/* Auftritt beim Scrollen (600 ms, aus 24 px von unten), einmalig; Karten in einer Liste gestaffelt */
@media (prefers-reduced-motion: no-preference) {
  html.js .auftritt {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
  }
  html.js .auftritt.da { opacity: 1; transform: none; }
  html.js .auftritt.da > ul > li { animation: karte-auf 600ms ease-out both; }
  html.js .auftritt.da > ul > li:nth-child(2) { animation-delay: 90ms; }
  html.js .auftritt.da > ul > li:nth-child(3) { animation-delay: 180ms; }
  html.js .auftritt.da > ul > li:nth-child(4) { animation-delay: 270ms; }
  @keyframes karte-auf {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---- Presse-Seite: ruhiger Kopf ohne Bühne, Fakten als Liste, Bilder als Raster ---- */
.presse-kopf {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px var(--rand) 0;
}
.presse-kopf h1 { font-size: clamp(30px, 6vw, 44px); }
.presse-kopf .kern { max-width: 60ch; }
.fakten ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fakten li {
  padding: 10px 14px;
  border-left: 3px solid var(--akzent);
  background: var(--glas);
  border-radius: 0 10px 10px 0;
  color: var(--leise);
}
.bilder ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) {
  .bilder ul { grid-template-columns: 1fr 1fr; }
}
.bilder li {
  border-radius: 14px;
  border: 1px solid var(--glas-rand);
  background: var(--glas);
  overflow: hidden;
}
.bilder img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--himmel2);
}
.bilder .klein { aspect-ratio: auto; max-height: 200px; object-fit: contain; padding: 12px; }
.bilder .zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 14px 10px;
}
.bilder .zeile strong { color: var(--weiss); margin-right: auto; }
.bilder .zeile a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--akzent);
  font-weight: 700;
}
.bilder a:focus-visible, .kontakt a:focus-visible, .presse-kopf a:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; }
.kontakt p { margin: 0; color: var(--leise); }
.kontakt a { color: var(--akzent); }
.bilder li > a { display: block; }   /* sonst Zeilenluft unter dem Bild (gemessen 28.10.2026, 1440) */
