/* =========================================================
   CYBER-DETEKTIVE – TASTATURTRAINING / AUFTAKT-BÜHNE
   Datei: buehnenprototyp.css

   Zweck:
   - Bildergeschichte vor dem Tastaturtraining
   - feste Bühnenbilder, kein Bildwechsel pro Sprechblase
   - ruhige Erzählleiste unten
   - Übergang zur Trainingsweg-Auswahl
   ========================================================= */

:root {
  --text: #203832;
  --blau: #315f6f;
  --tuerkis: #9bc7c8;
  --salbei: #d7e8ce;
  --papier: rgba(255, 252, 235, 0.94);
  --papier-stark: rgba(255, 248, 218, 0.98);
  --schatten: rgba(39, 55, 48, 0.22);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: "Andika", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 241, 157, 0.38), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(187, 219, 219, 0.48), transparent 26rem),
    linear-gradient(135deg, #dfeff0 0%, #edf5e3 58%, #d8eaec 100%);
}

.auftakt-seite {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(6px, 1.2vw, 14px);
  overflow: hidden;
}

.auftakt-karte {
  width: min(98vw, 1420px);
  height: calc(100vh - clamp(12px, 2.4vw, 28px));
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px var(--schatten);
}

.kopfzeile {
  min-height: 0;
  padding: clamp(8px, 1.3vh, 12px) clamp(18px, 3vw, 38px) clamp(7px, 1.1vh, 10px);
  background: linear-gradient(90deg, rgba(215, 232, 206, 0.86), rgba(182, 218, 220, 0.82));
}

.modul-label {
  margin: 0 0 3px;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  font-weight: 800;
  color: #557a78;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  line-height: 1.04;
  color: var(--blau);
}

.buehne {
  position: relative;
  min-height: 0;
  width: 100%;
  background: #dce9e3;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.buehnenbild {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #dce9e3;
}

.erzaehlleiste {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  padding: clamp(8px, 1.5vh, 14px) clamp(16px, 2.5vw, 32px);
  background:
    linear-gradient(rgba(255, 252, 235, 0.96), rgba(255, 248, 223, 0.96)),
    radial-gradient(circle at 24% 20%, rgba(255, 238, 136, 0.35), transparent 22rem);
  border-top: 4px solid rgba(103, 139, 138, 0.22);
}

.erzaehltext {
  margin: 0;
  max-width: 900px;
  justify-self: center;
  text-align: center;
  font-size: clamp(0.98rem, 1.45vw, 1.32rem);
  line-height: 1.28;
  font-weight: 700;
}

.nav-button {
  min-width: 104px;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font: inherit;
  font-weight: 800;
  color: var(--text);
  background: var(--papier-stark);
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.nav-button--weiter {
  background: #fff1a8;
}

.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(255, 255, 255, 0.95);
}

.nav-button:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

@media (max-width: 760px) {
  .erzaehlleiste {
    grid-template-columns: 1fr 1fr;
  }

  .erzaehltext {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 1rem;
  }

  .nav-button {
    grid-row: 2;
    width: 100%;
  }
}


@media (max-height: 760px) {
  .modul-label {
    font-size: 0.76rem;
    margin-bottom: 1px;
  }

  h1 {
    font-size: clamp(1.08rem, 1.8vw, 1.65rem);
  }

  .erzaehltext {
    font-size: clamp(0.92rem, 1.25vw, 1.12rem);
    line-height: 1.22;
  }

  .nav-button {
    padding: 0.5rem 0.82rem;
  }
}
