:root {
  --grund: #fff7e8;
  --karte: #ffffff;
  --tinte: #3b3355;
  --leise: #8a82a3;
  --gelesen: #8f63d9;
  --marker: #ffe066;
  --akzent: #ff8fb1;
  --akzent-dunkel: #e8638f;
  --schrift: 30px;
  font-family: "Andika", "Nunito", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--grund); color: var(--tinte); }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, #ffe3ef 0, transparent 40%),
    radial-gradient(circle at 95% 15%, #e3ecff 0, transparent 35%),
    var(--grund);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
[hidden] { display: none !important; }

/* ---------- Übersicht ---------- */
#liste { max-width: 1000px; margin: 0 auto; padding: 24px 18px 60px; }
.kopf { text-align: center; margin: 8px 0 28px; }
.logo { font-size: 52px; }
.kopf h1 { font-size: 46px; margin: 4px 0 6px; letter-spacing: .5px; color: var(--akzent-dunkel); }
.unterzeile { font-size: 21px; margin: 0; color: var(--leise); }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.karte {
  text-align: left; background: var(--karte); border-radius: 24px; padding: 0;
  box-shadow: 0 6px 18px rgba(80, 60, 120, .10); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s;
}
.karte:active { transform: scale(.97); }
.karte .bild { font-size: 58px; padding: 16px 20px 10px; display: flex; justify-content: space-between; align-items: flex-start; }
.karte .stern { font-size: 30px; }
.karte h2 { font-size: 24px; margin: 0 20px 8px; line-height: 1.25; }
.karte p { font-size: 18px; line-height: 1.45; margin: 0 20px 14px; color: #5d5675; }
.karte .info { margin: auto 20px 18px; font-size: 15px; color: var(--leise); }

/* ---------- Lesen ---------- */
#leser { max-width: 900px; margin: 0 auto; padding: 0 20px 190px; }
.leiste-oben {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 12px 0; background: linear-gradient(var(--grund) 75%, transparent);
}
.fortschritt { flex: 1; height: 12px; background: #f0e6ff; border-radius: 99px; overflow: hidden; }
#balken { height: 100%; width: 0; background: linear-gradient(90deg, #c39bff, var(--akzent)); border-radius: 99px; transition: width .3s linear; }
.knopf-rund {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; font-size: 24px;
  box-shadow: 0 3px 10px rgba(80, 60, 120, .14); flex: none;
}
.knopf-rund.klein { width: 46px; height: 46px; font-size: 18px; font-weight: 700; }

.text { font-size: var(--schrift); line-height: 1.9; padding-top: 6px; }
.text h1 { font-size: 1.25em; line-height: 1.4; margin: 4px 0 18px; color: var(--akzent-dunkel); }
.text .emoji { font-size: 1.6em; display: block; line-height: 1.2; }
.text p { margin: 0 0 .7em; }
.w {
  border-radius: .25em; padding: 0 .06em; margin: 0 -.06em;
  transition: background-color .12s, color .2s;
  cursor: pointer;
}
.w.gelesen { color: var(--gelesen); }
.w.jetzt {
  background: var(--marker); color: var(--tinte);
  box-shadow: 0 0 0 .08em var(--marker);
}
.text h1 .w.gelesen { color: #b877c9; }

.steuerung {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; justify-content: center; align-items: center; gap: 26px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  box-shadow: 0 -4px 18px rgba(80, 60, 120, .10);
  border-radius: 28px 28px 0 0;
}
.knopf-play {
  width: 92px; height: 92px; border-radius: 50%; font-size: 40px; color: #fff;
  background: linear-gradient(145deg, var(--akzent), var(--akzent-dunkel));
  box-shadow: 0 6px 16px rgba(232, 99, 143, .45);
}
.knopf-play:active, .knopf-rund:active, .knopf-tempo:active { transform: scale(.94); }
.knopf-tempo {
  width: 84px; height: 62px; border-radius: 20px; background: #eef7e8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 26px; line-height: 1;
}
.knopf-tempo small { font-size: 13px; margin-top: 3px; color: #4f7a3c; }
.hinweis {
  position: fixed; left: 0; right: 0; bottom: calc(130px + env(safe-area-inset-bottom));
  text-align: center; font-size: 15px; color: var(--leise); margin: 0; pointer-events: none;
  transition: opacity .6s;
}

.ende {
  background: #fff; border-radius: 28px; padding: 26px 22px; margin: 26px 0;
  text-align: center; box-shadow: 0 6px 18px rgba(80, 60, 120, .10);
}
.sterne { font-size: 40px; }
.ende h2 { font-size: 32px; margin: 6px 0; color: var(--akzent-dunkel); }
.ende > p { font-size: 22px; margin: 6px 0 16px; }
.frage {
  display: block; width: 100%; text-align: left; font-size: 21px; line-height: 1.4;
  background: #f7f1ff; border-radius: 18px; padding: 14px 18px; margin: 0 0 12px;
}
.frage .antwort { display: block; color: #4f7a3c; margin-top: 8px; }
.frage .tipp { display: block; font-size: 15px; color: var(--leise); margin-top: 4px; }
.knopf-breit {
  display: block; width: 100%; max-width: 380px; margin: 14px auto 0; padding: 16px; border-radius: 20px;
  font-size: 21px; font-weight: 700; color: #fff; background: linear-gradient(145deg, var(--akzent), var(--akzent-dunkel));
}
.knopf-breit.hell { background: #f0e6ff; color: var(--tinte); }

@media (max-width: 600px) {
  :root { --schrift: 24px; }
  .kopf h1 { font-size: 38px; }
  .knopf-play { width: 80px; height: 80px; font-size: 34px; }
  .hinweis { bottom: calc(118px + env(safe-area-inset-bottom)); font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
