/* Ferien-Held — Bausteine der freien Startseite, der Ruhe-Ecke und der
   Geschichten. Aus Jonas' „Lern-Held" übernommen (25.07.2026), auf Leonies
   Palette umgefärbt. Ergänzt app.css — die Farben kommen aus dessen :root,
   deshalb sieht derselbe Aufbau hier rosa statt blau aus. */

/* ============ STARTSEITE: freie Auswahl (kein Wochenplan) ============ */

.lern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
  margin-bottom: 6px;
}

.lern-karte {
  position: relative;
  background: var(--card);
  border: 3px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 10px 12px;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  animation: rein 0.4s backwards;
}

.lern-karte:active { transform: scale(0.96); border-color: var(--accent); }

.lern-karte .lk-icon { font-size: 46px; line-height: 1; }
.lern-karte .lk-titel { font-size: 15px; line-height: 1.2; text-align: center; color: var(--ink); }
.lern-karte .lk-muenzen { font-size: 14px; font-weight: 800; color: #b8860b; }

/* Reine Spiele geben keine Münzen — das steht offen auf der Karte, damit es
   hinterher nicht wie ein Fehler wirkt. */
.lern-karte .lk-spass { font-size: 13px; font-weight: 700; color: var(--ink-soft); }

/* Level-Abzeichen: der Stolz-Faktor. Sitzt oben rechts wie in einem Spiel. */
.lern-karte .lk-level {
  position: absolute;
  top: -10px;
  right: -6px;
  background: linear-gradient(180deg, #ffd166, var(--gold));
  color: #6b4e00;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  padding: 3px 10px;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(180, 120, 0, 0.35);
}

.lern-karte .lk-balken {
  display: block;
  width: 72%;
  height: 7px;
  border-radius: 999px;
  background: #fbe3f0;
  overflow: hidden;
}

.lern-karte .lk-balken > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.6s ease;
}

.offline-karte { border-color: #ffd98a; background: linear-gradient(180deg, #fffaf0, #fff); }
.ruhe-karte { border-color: #d9c6ff; background: linear-gradient(180deg, #f7f2ff, #fff); }

.tages-hinweis, .wartet-hinweis {
  background: rgba(255, 255, 255, 0.78);
  border: 2px dashed var(--rand);
  border-radius: 16px;
  padding: 10px 14px;
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.wartet-hinweis { border-color: #ffd98a; background: #fff8e8; color: #8a6300; }



.jubel-level {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink-soft);
  width: 100%;
  max-width: 280px;
  margin: 6px auto 0;
}

.jubel-level .fortschritt-balken { flex: 1; }


/* ============ RUHE-ECKE ============ */

.ruhe-voll, .tagebuch-voll { gap: 12px; position: relative; }

.vulkan {
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vulkan-berg {
  font-size: 120px;
  line-height: 1;
  position: relative;
  z-index: 2;
  transition: transform 1s ease;
}

/* Die Glut atmet mit: beim Einatmen wächst sie, beim Ausatmen wird sie ruhig */
.vulkan-glut {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 30, 0.85), rgba(255, 60, 30, 0) 70%);
  transform: scale(0.75);
  transition: transform 4s ease-in-out, opacity 4s ease-in-out;
}

.vulkan.ein .vulkan-glut { transform: scale(1.45); opacity: 1; transition-duration: 4s; }
.vulkan.aus .vulkan-glut { transform: scale(0.6); opacity: 0.45; transition-duration: 6s; }
.vulkan.ein .vulkan-berg { transform: scale(1.08); }
.vulkan.aus .vulkan-berg { transform: scale(0.97); }
.vulkan.ruhig .vulkan-glut { opacity: 0.12; transform: scale(0.5); }

.atem-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--magenta);
  min-height: 1.4em;
  text-align: center;
}

.atem-runden { display: flex; gap: 12px; font-size: 30px; }
.atem-runden span { opacity: 0.3; }
.atem-runden span.ok { opacity: 1; }

.mikro-knopf {
  font-size: 56px;
  line-height: 1;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fdeaf5);
  border: 4px solid var(--accent);
  box-shadow: 0 8px 18px rgba(150, 50, 120, 0.3);
}

.mikro-knopf.hoert { border-color: var(--danger); animation: klatschpuls 1.1s ease-in-out infinite; }

/* Pulsieren, solange das Mikrofon zuhört */
@keyframes klatschpuls {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(184, 44, 91, 0.3); }
  50% { transform: scale(1.07); box-shadow: 0 10px 28px rgba(255, 79, 154, 0.6); }
}

.tagebuch-liste {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tagebuch-zeile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 2px solid var(--rand);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 15px;
  text-align: left;
}

.tagebuch-zeile .tb-text { flex: 1; }

@keyframes rein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ============ GESCHICHTEN ============ */

.geschichte-mitte { justify-content: flex-start; padding-top: 8px; gap: 12px; }

.geschichte-wahl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.geschichte-karte {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 3px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  animation: rein 0.4s backwards;
  min-height: 76px;
}

.geschichte-karte:active { transform: scale(0.97); border-color: var(--accent); }
.geschichte-karte .gk-icon { font-size: 40px; line-height: 1; }
.geschichte-karte .gk-titel { flex: 1; font-size: 17px; line-height: 1.25; }

.geschichte-karte .gk-hoeren {
  font-size: 24px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fdeaf5;
}

.geschichte-buehne { display: flex; justify-content: center; }

/* Der Erzähltext: groß und ruhig — er wird ohnehin vorgelesen, die Schrift
   ist vor allem für die Eltern, die mitlesen. */
.geschichte-text {
  background: var(--card);
  border: 3px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  font-size: 19px;
  line-height: 1.5;
  max-width: 480px;
  min-height: 5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.geschichte-text.geschichte-frage {
  background: linear-gradient(180deg, #fff8e8, #fff);
  border-color: var(--gold);
  font-weight: 800;
  color: var(--magenta);
}

/* Das Maskottchen "holt Luft", solange die Sprachausgabe noch geladen wird.
   Ohne dieses Signal wirken ein bis zwei Sekunden Stille wie ein kaputter Knopf. */
.m-figur.holt-luft { animation: luftholen 1s ease-in-out infinite; }

@keyframes luftholen {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 6px 12px rgba(150, 50, 120, 0.28)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 8px 18px rgba(255, 79, 154, 0.55)); }
}


/* ============ Englisch lernen ============ */
/* Aus Jonas' App übernommen (17.08.2026) — nutzt nur vorhandene Variablen,
   sieht hier deshalb automatisch rosa aus. */

/* Kopfhörer-Symbol: zeigt „hier musst du HÖREN, nicht lesen" */
.en-lauscher { font-size: 46px; line-height: 1; }

.en-neu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #fff9e6, var(--card));
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 26px 18px;
}

.en-neu-band {
  background: var(--gold);
  border-radius: 999px;
  color: #7a5200;
  font-size: 15px;
  font-weight: 900;
  padding: 3px 14px;
}

/* Deutsches Wort + englische Schreibweise. Leonie (7) liest schon — sie nimmt
   das Schriftbild mit; die Aufgabe bleibt trotzdem eine HÖR-Aufgabe. */
.en-wortschild {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.en-wortschild .en-de { font-size: 19px; font-weight: 800; color: var(--ink-soft); }
.en-wortschild .en-en { font-size: 27px; font-weight: 900; color: var(--magenta); letter-spacing: 0.02em; }

/* Mengen-Felder (englische Zahlwörter): große Touch-Ziele mit Bildern drin */
.en-mengen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 460px;
}

.antwort.en-menge {
  font-size: 30px;
  line-height: 1.15;
  max-width: 210px;
  padding: 14px 16px;
  word-break: break-all;   /* viele Emojis dürfen umbrechen */
}

/* Zwei-Wort-Aufgaben: „three cats" bzw. „a red star" */
.antwort.en-kombi { font-size: 34px; line-height: 1.1; padding: 12px 16px; max-width: 190px; }
.en-kombi-dinge { display: inline-block; word-break: break-all; }
.en-form { display: inline-block; line-height: 0; }

/* Wort unter dem großen Referenz-Bild */
.referenz-wort {
  font-size: 24px;
  font-weight: 900;
  color: var(--magenta);
  margin-top: 6px;
}

/* Extra-Tag: Die Eltern haben die Tages-Grenze hochgesetzt (z. B. weil sich ein
   Ausflug verdient werden soll). Deutlich hervorgehoben — das ist eine gute
   Nachricht und kein Kleingedrucktes. */
.tages-hinweis.extra-tag {
  background: linear-gradient(180deg, #fff4d6, #fffaf0);
  border: 2px solid var(--gold);
  border-style: solid;
  color: #8a6300;
  font-size: 15px;
  font-weight: 800;
}

/* ============ Ruhe-Atmen: Zeit-Balken, Zähler, Phasen ============ */
/* Aus Jonas' App übernommen (17.08.2026): Sechs angeleitete Atemzüge mit
   Ansage, Symbol und ablaufendem Balken — vorher lief es ohne Rückmeldung,
   man konnte nur raten, wie lange eine Phase noch dauert. */

.atem-symbol {
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

.atem-balken {
  width: min(340px, 80vw);
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--rand);
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.atem-balken i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
}

/* Jede Phase hat ihre eigene Farbe — auch ohne Ton erkennbar */
.atem-balken.phase-ein i    { background: linear-gradient(90deg, #9bd8ff, #4b9ae6); }
.atem-balken.phase-halten i { background: linear-gradient(90deg, #ffdf7a, #f2a11a); }
.atem-balken.phase-aus i    { background: linear-gradient(90deg, #f7b6dc, #d24a95); }

/* Sekunden zum Mitzählen — nebenbei Zahlen üben, während man ruhig wird */
.atem-zaehler {
  font-size: 34px;
  font-weight: 900;
  color: var(--ink-soft);
  min-height: 1.15em;
  line-height: 1.15;
}

.atem-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

/* ============ „Abschließen": abmelden mit Schloss-Animation ============ */
/* Christoph 17.08.2026 (aus Jonas' App): Der Knopf sitzt bewusst ganz unten
   und ruhig — er soll gefunden werden, wenn man ihn sucht, und nicht mitten
   im Üben getroffen werden. */

.abschluss-knopf {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  border: 2px solid var(--rand);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.abschluss-knopf:active { transform: scale(0.96); border-color: var(--accent); }

.abschluss-voll {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Das offene Schloss zappelt kurz … */
.schloss {
  font-size: 112px;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
  animation: schloss-wackeln 0.95s ease-in-out;
}

/* … dann schnappt es zu. */
.schloss.zu { animation: schloss-zu 0.65s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes schloss-wackeln {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-13deg) scale(1.05); }
  50% { transform: rotate(11deg) scale(1.05); }
  80% { transform: rotate(-7deg) scale(1.02); }
}

@keyframes schloss-zu {
  0% { transform: scale(1.45) translateY(-14px); }
  55% { transform: scale(0.88) translateY(4px); }
  100% { transform: scale(1) translateY(0); }
}

.abschluss-text {
  font-size: 27px;
  font-weight: 900;
  color: var(--magenta);
  text-align: center;
}
