/* ===========================================================================
   Onda-Dummy — Shell
   Tor, Drehbitte, Strecke. Alles, was ueber allen Stationen liegt.
   =========================================================================== */

[hidden] { display: none !important; }

/* Kopfzeile und Inhalt stapeln sich, statt sich zu überlagern: Bei fester
   Kopfzeile müsste jeder Zustand ihren Platz selbst freihalten – und der
   erste, der es vergisst, schiebt den Inhalt darunter. */
body { display: flex; flex-direction: column; }

#app {
  flex: 1;
  min-height: 0;
  display: flex;
  padding-left: var(--onda-safe-side);
  padding-right: var(--onda-safe-side);
}

#app > section, #app > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* ===========================================================================
   Das Tor  (T2)
   ---------------------------------------------------------------------------
   Kommt aus dem Kit: app/kit/tor.css (R14.4.12, R15.4.1). Hier steht nichts
   mehr - das Tor traegt Klassen (.tor, .tor-tipp, .tor-marke, .tor-sub), die
   IDs #tor und #tor-tipp gehoeren app.js.
   =========================================================================== */

/* ===========================================================================
   Drehbitte  (T3)
   ---------------------------------------------------------------------------
   Kommt aus dem Kit: app/kit/drehbitte.css (R14.4.15, R15.2.4). Der Entwurf
   vom 13.09. stand hier, bis Jan-Philip ihn freigegeben hat; seither traegt
   das Kit die Regel. Die ID #drehen gehoert app.js.
   =========================================================================== */

/* ===========================================================================
   Die Strecke — Aufbau und Maße stehen in buehne.css (R14.4.11).
   Hier bleibt nur, was zu den Knöpfen selbst gehört.
   =========================================================================== */

/* Bedienknöpfe kommen aus dem Kit: app/kit/knoepfe.css (R14.5.1, R14.3.3). */

/* ===========================================================================
   Platzhalter-Station  (bis T5-T9)
   =========================================================================== */

.platzhalter {
  text-align: center;
  padding: 24px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.platzhalter .eyebrow {
  font: 600 12px/1 var(--onda-font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--onda-petrol);
  margin: 0;
}
.platzhalter .wort {
  font: 600 clamp(34px, 8vmin, 58px)/1 var(--onda-font-display);
  color: var(--onda-ink);
  margin: 0;
}
.platzhalter .titel {
  font: 400 clamp(16px, 3.4vmin, 22px)/1.3 var(--onda-font-serif);
  color: var(--onda-text-body);
  margin: 0;
}
.platzhalter .aufgabe {
  font: 300 12px/1.5 var(--onda-font-body);
  color: var(--onda-text-faint);
  max-width: 46ch;
  margin: 4px 0 0;
}

.hoeren {
  margin-top: 6px;
  border: 0;
  border-radius: var(--onda-radius-button);   /* 13px, keine volle Pille */
  background: var(--onda-pink);
  color: #fff;
  font: 500 15px/1 var(--onda-font-body);
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(242, 102, 139, .35);
}
.hoeren .ikon {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.hoeren[data-laeuft] .ikon { animation: welle .9s ease-in-out infinite; }
@keyframes welle {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.6); opacity: .6; }
}

/* ===========================================================================
   Weckhinweis und Pruefstand
   =========================================================================== */

/* Kein Debug: iOS suspendiert den Tonkanal, sobald das Geraet weggelegt wird.
   Ohne diesen Hinweis waere die Strecke danach stumm, ohne sichtbaren Grund. */
#weckhinweis {
  position: fixed;
  left: 50%;
  bottom: calc(var(--onda-safe-bottom) + 8px);
  transform: translateX(-50%);
  z-index: 20;
  border: 0;
  border-radius: var(--onda-radius-button);
  background: var(--onda-petrol);
  color: #fff;
  font: 500 14px/1 var(--onda-font-body);
  padding: 12px 18px;
  box-shadow: var(--onda-shadow-petrol);
  display: flex;
  align-items: center;
  gap: 10px;
}
#weckhinweis .buddy { --buddy: .16; }

#pruefstand {
  position: fixed;
  top: 0; right: 0;
  z-index: 30;
  background: rgba(1, 31, 38, .82);
  color: #cfe6e9;
  font: 500 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 6px 9px;
  border-bottom-left-radius: 10px;
  pointer-events: none;
}
#pruefstand b { color: #fff; font-weight: 600; }

/* Das Telefon quer ist der engste Fall: 820 x 248 freie Flaeche.
   Hier darf nichts atmen, was nicht muss. */
:root[data-fall="telefon-quer"] .platzhalter { padding: 8px; gap: 4px; }

/* Schrittwippe: Prüfwerkzeug für den Binnenbalken, nur mit ?pruef=1 (T4). */
.wippe {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 31, 38, .06);
  border-radius: var(--onda-radius-button);
  padding: 4px;
}
.wippe button {
  width: 30px; height: 30px;
  border: 0;
  border-radius: 9px;
  background: var(--onda-white);
  color: var(--onda-petrol);
  font: 600 17px/1 var(--onda-font-body);
}
.wippe .stand {
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--onda-text-muted);
  min-width: 44px;
  text-align: center;
}

/* ===========================================================================
   Übung 1 – Buchstabenformation (Kapitel 6, 3.1)
   =========================================================================== */

/* Schreibband und Schreibfeld kommen aus dem Kit: app/kit/schreibband.css
   (R14.5.9, --onda-band-guard je Fall). Hier steht nur, was der Dummy selbst ist. */



/* Der Knopf, mit dem das Kind sich den Buchstaben noch einmal zeigen lässt,
   steht **neben dem Buchstaben**, nicht in der Ecke: Wer nicht weiterweiß,
   schaut dorthin, wo geschrieben wird. Aussehen aus dem Kit (app/kit/knoepfe.css:
   .knopf--funktion, großes Symbol, data-locken atmet). Hier nur das Lokale. */
/* Während vorgemacht wird, ist er :disabled – sichtbar, aber nicht bedienbar (Kit). */

/* Der Platz in der Fußzeile steht links von Zurück und Weiter und bleibt
   leer, wenn die Übung nichts hineinstellt. */
#fuss-aktion:empty { display: none; }
#fuss-aktion { display: flex; align-items: center; gap: 18px; margin-right: 6px; }   /* zwei Knöpfe (Nachschreiben: Von vorn und Vormachen) nicht Kante an Kante, Jan-Philip iPad 19.11.2026 */

/* --- Konfetti ---------------------------------------------------------- */
/* Über die ganze Bühne, nicht nur über die Übung: `#buehne > *` setzt alle
   Kinder auf `position: relative`, damit sie über den Akzent-Blobs liegen –
   das machte aus dem Konfetti ein Kästchen im Textfluss. */
.konfetti {
  position: absolute !important;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.konfetti span {
  position: absolute;
  top: -8%;
  width: 10px;
  height: 15px;
  border-radius: 2px;
  animation: konfetti-fall linear forwards;
}
@keyframes konfetti-fall {
  from { transform: translateY(0) rotate(0); opacity: 1; }
  to   { transform: translateY(115vh) rotate(var(--dreh, 360deg)); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .konfetti { display: none; }
}

/* ===========================================================================
   Übung 4 – Say and Pull (Kapitel 6, 3.4)
   ---------------------------------------------------------------------------
   Kommt aus dem Kit: app/kit/say-and-pull.css (R14.5.17, Maße je Fall aus
   app/kit/layout.css, --onda-sp-*). Hier steht nur, was der Dummy selbst ist.
   =========================================================================== */

/* Ohne Einordnungskarte (R6.3.4.1) beginnt die Übung direkt unter der
   Kopfzeile – der Platz der Karte gehört den Kacheln. Schlägt .buehne > *. */
.buehne > .say-and-pull { padding-top: calc(var(--onda-kopf-h) + 12px); }
