/* Listenly UI – Grundlagen und Komponenten. Vorführung aller Teile: komponenten.html
   Regel: Iris ist die Bedienfarbe. Koralle bleibt Akzent: Senden, Kopfhörer, Leuchten. Weiße Schrift nur auf Iris. */
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@property --winkel { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

:root {
  --iris: #4F2EC9; --iris-tief: #2A1773; --iris-hell: #E6E0FF; --lavendel: #F3F0FF; --lavendel-2: #EAE4FF;
  --koralle: #FF5E36; --koralle-tief: #F0461C; --koralle-hell: #FFEDE7; --ok: #1E9E62; --ok-hell: #E7F7EF;
  --tinte: #1D1640; --text: #4A4566; --text-2: #6B6685; --linie: rgba(29, 22, 64, .09); --grund: #FBFAFF; --flaeche: #fff;
  --glas: rgba(255, 255, 255, .72);
  --r-s: 12px; --r-m: 18px; --r-l: 26px; --r-xl: 34px;
  --tiefe-1: 0 1px 2px rgba(29, 22, 64, .05), 0 4px 14px rgba(79, 46, 201, .06);
  --tiefe-2: 0 2px 6px rgba(29, 22, 64, .06), 0 14px 36px rgba(79, 46, 201, .12);
  --tiefe-3: 0 6px 16px rgba(29, 22, 64, .10), 0 34px 80px rgba(42, 23, 115, .24);
  --sanft: cubic-bezier(.22, 1, .36, 1);
  --feder: cubic-bezier(.34, 1.56, .64, 1); /* iOS unter 17.2 kennt linear() nicht, ohne Ersatz fielen alle Übergänge weg */
  --regenbogen: var(--iris), #8A5CF0, var(--koralle), #FFB199, #B79CFF, var(--iris);
}
@supports (animation-timing-function: linear(0, 1)) { :root {
  --feder: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161,
    1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
} }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--tinte);
  background: var(--grund); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(79, 46, 201, .45); outline-offset: 2px; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.titel-gross { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; color: var(--tinte); }
.titel { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.klein { font-size: .88rem; color: var(--text-2); font-weight: 600; }

/* Hintergrund: weiches Polarlicht in Lavendel und Koralle */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(160deg, #F8F4FF, #F2ECFF 50%, #FCF2F8); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); animation: treiben 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 56vmax; height: 40vmax; right: -18vmax; top: -18vmax; background: #FFC4B4; opacity: .55; }
.aurora i:nth-child(2) { width: 62vmax; height: 44vmax; left: -22vmax; bottom: -22vmax; background: #C7B0FF; opacity: .6; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 34vmax; height: 30vmax; right: 8vmax; bottom: -14vmax; background: #FFD6E4; opacity: .42; animation-delay: -14s; }
@keyframes treiben { to { transform: translate(5vmax, 3vmax) scale(1.12); } }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 22px; border-radius: 16px; font-weight: 800;
  background: var(--lavendel); color: var(--iris); transition: transform .35s var(--feder), background .2s, box-shadow .2s; white-space: nowrap; }
.knopf:active { transform: scale(.96); }
.knopf:hover { background: var(--lavendel-2); }
.knopf-haupt { min-height: 58px; padding: 0 30px; border-radius: 99px; background: linear-gradient(180deg, #6240DC, var(--iris) 60%); color: #fff; font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(79, 46, 201, .36), inset 0 1px 0 rgba(255, 255, 255, .26); }
.knopf-haupt:hover { background: linear-gradient(180deg, #6240DC, var(--iris) 60%); filter: brightness(1.06); }
.knopf-glas { background: var(--glas); box-shadow: var(--tiefe-1); border-radius: 99px; }
.knopf-glas:hover { background: #fff; }
.knopf-breit { width: 100%; }
.rundknopf { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 22, 64, .06); color: var(--text); flex: none;
  transition: transform .35s var(--feder), background .2s; }
.rundknopf:hover { background: rgba(29, 22, 64, .1); }
.rundknopf:active { transform: scale(.9); }

/* Pillen */
.pille { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border-radius: 99px; background: var(--lavendel); color: var(--iris);
  font-size: .9rem; font-weight: 800; white-space: nowrap; }
.pille .ic { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.pille-koralle { background: var(--koralle-hell); color: #B83A18; }
.pille-frisch { animation: feder-rein .6s var(--feder) both; }
button.pille { transition: transform .35s var(--feder), background .2s; }
button.pille:hover { background: var(--lavendel-2); }
button.pille:active { transform: scale(.94); }
.vorschlag { min-height: 40px; padding: 0 16px; background: var(--flaeche); color: var(--text); box-shadow: var(--tiefe-1); font-weight: 700; font-size: .95rem; }
button.vorschlag:hover { background: var(--flaeche); color: var(--iris); }
@keyframes feder-rein { from { opacity: 0; transform: scale(.6); } }

/* Zauberfeld: ein Satz genügt. Der Spiegel liegt unter dem Textfeld und färbt erkannte Wörter. */
.zauberfeld { --x: 24px; --y: 20px; --schrift: 1.22rem; position: relative; width: 100%; border-radius: var(--r-xl); isolation: isolate; }
.zauberfeld::before, .zauberfeld::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--winkel), var(--regenbogen)); opacity: 0; transition: opacity .5s; }
.zauberfeld::before { z-index: 1; padding: 2px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.zauberfeld::after { inset: 2px; z-index: -1; filter: blur(22px); }
.zauberfeld.wach::before { opacity: 1; animation: drehen 6s linear infinite; }
.zauberfeld.wach::after { opacity: .62; animation: drehen 6s linear infinite; }
@keyframes drehen { to { --winkel: 360deg; } }
.zauber-innen { position: relative; padding: var(--y) 72px var(--y) var(--x); border-radius: inherit; background: rgba(255, 255, 255, .84); box-shadow: var(--tiefe-2), inset 0 0 0 1px rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); }
.zauber-spiegel, .zauber-eingabe, .zauber-platzhalter { display: block; width: 100%; margin: 0; padding: 0; font-size: var(--schrift); line-height: 1.45; font-weight: 700; letter-spacing: -.005em;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.zauber-spiegel { color: var(--tinte); min-height: 2.9em; }
.zauber-spiegel mark { background: none; color: var(--iris); box-shadow: inset 0 -.14em 0 var(--iris-hell); border-radius: 3px; }
.zauber-eingabe { position: absolute; left: var(--x); top: var(--y); width: calc(100% - var(--x) - 72px); height: calc(100% - 2 * var(--y)); border: 0; outline: 0; background: none; resize: none;
  color: transparent; caret-color: var(--koralle); overflow: hidden; }
.zauber-platzhalter { position: absolute; left: var(--x); top: var(--y); width: calc(100% - var(--x) - 72px); color: #A7A2BC; pointer-events: none; transition: opacity .2s; }
.zauberfeld.gefuellt .zauber-platzhalter { opacity: 0; }
.senden { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--koralle); color: #fff;
  box-shadow: 0 6px 18px rgba(255, 94, 54, .4); transform: scale(0); opacity: 0; transition: transform .5s var(--feder), opacity .2s, background .2s; }
.senden .ic { width: 24px; height: 24px; stroke-width: 2.8; }
.zauberfeld.gefuellt .senden { transform: none; opacity: 1; }
.senden:hover { background: var(--koralle-tief); }
.senden:active { transform: scale(.9); }

@media (min-width: 700px) {
  .zauberfeld { --x: 34px; --y: 26px; --schrift: 1.6rem; }
  .zauber-spiegel { min-height: 1.45em; }
  .zauber-innen { padding-right: 90px; }
  .zauber-eingabe, .zauber-platzhalter { width: calc(100% - var(--x) - 90px); }
  .senden { right: 18px; bottom: 16px; width: 56px; height: 56px; }
}

/* Segment-Schalter */
.segment { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 99px; background: rgba(79, 46, 201, .08); isolation: isolate; }
.segment label { position: relative; display: block; cursor: pointer; }
.segment input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segment span { display: block; text-align: center; padding: 8px 10px; font-weight: 800; font-size: .95rem; color: var(--text); transition: color .2s; border-radius: 99px; white-space: nowrap; }
.segment input:checked + span { color: #fff; }
.segment input:focus-visible + span { outline: 3px solid rgba(79, 46, 201, .45); }
.segment-daumen { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; background: linear-gradient(180deg, #6240DC, var(--iris)); box-shadow: 0 3px 10px rgba(79, 46, 201, .34);
  transition: transform .45s var(--feder), width .3s var(--sanft); }

/* Drehrad: iOS-Auswahl, mehrere Räder teilen sich die Lupe */
.drehraeder { position: relative; display: flex; height: 136px; }
.drehraeder::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 40px; margin-top: -20px; border-radius: 12px; background: var(--lavendel-2); pointer-events: none; }
.drehrad { position: relative; flex: 1; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask: linear-gradient(transparent, #000 34%, #000 66%, transparent); mask: linear-gradient(transparent, #000 34%, #000 66%, transparent); outline-offset: -3px; }
.drehrad::-webkit-scrollbar { display: none; }
.drehrad ul { list-style: none; margin: 0; padding: 48px 0; }
.drehrad li { height: 40px; line-height: 40px; text-align: center; font-size: 1.15rem; font-weight: 700; color: var(--text-2); scroll-snap-align: center; cursor: pointer; white-space: nowrap; }
.drehrad li span { display: block; }
.drehrad li.gewaehlt { color: var(--tinte); font-weight: 800; }

/* Regler */
.regler { --wert: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: none; margin: 0; cursor: pointer; }
.regler::-webkit-slider-runnable-track { height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--iris) var(--wert), rgba(29, 22, 64, .1) var(--wert)); }
.regler::-moz-range-track { height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--iris) var(--wert), rgba(29, 22, 64, .1) var(--wert)); }
.regler::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(29, 22, 64, .2), 0 4px 12px rgba(29, 22, 64, .18); }
.regler::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(29, 22, 64, .2), 0 4px 12px rgba(29, 22, 64, .18); }

/* Schalter */
.schalter { position: relative; display: inline-block; width: 52px; height: 32px; flex: none; }
.schalter input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.schalter i { position: absolute; inset: 0; border-radius: 99px; background: rgba(29, 22, 64, .14); transition: background .25s; }
.schalter i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(29, 22, 64, .24), 0 3px 8px rgba(29, 22, 64, .16);
  transition: transform .45s var(--feder), width .2s; }
.schalter input:checked + i { background: var(--iris); }
.schalter input:checked + i::after { transform: translateX(20px); }
.schalter input:active + i::after { width: 32px; }
.schalter input:checked:active + i::after { transform: translateX(16px); }
.schalter input:focus-visible + i { outline: 3px solid rgba(79, 46, 201, .45); outline-offset: 2px; }

/* Gruppe: Liste mit Haarlinien wie in den iOS-Einstellungen */
.gruppe { background: rgba(255, 255, 255, .8); border-radius: var(--r-l); box-shadow: var(--tiefe-1); overflow: hidden; }
.glas { background: var(--glas); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); box-shadow: var(--tiefe-1), inset 0 0 0 1px rgba(255, 255, 255, .6); border-radius: var(--r-l); }
.gruppe-titel { display: block; margin: 22px 16px 7px; font-size: .86rem; font-weight: 800; color: var(--text-2); }
.zeile { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; position: relative; }
.zeile + .zeile::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--linie); }
.zeile-text { flex: 1; min-width: 0; font-weight: 700; }
.zeile-text small { display: block; font-size: .84rem; font-weight: 600; color: var(--text-2); }
.zeile-wert { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.zeile-block { display: block; padding: 12px 16px 14px; }

/* Stimmen: Karte mit Sprechprobe, zwei sind gewählt */
.stimmen { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; scroll-snap-type: x proximity; }
.stimmen::-webkit-scrollbar { display: none; }
.stimme { flex: 0 0 142px; scroll-snap-align: start; display: flex; align-items: center; gap: 9px; padding: 9px 12px 9px 9px; border-radius: 18px; background: #fff; text-align: left; box-shadow: inset 0 0 0 1.5px var(--linie); transition: box-shadow .2s, background .2s, transform .35s var(--feder); }
.stimme:active { transform: scale(.96); }
.stimme[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--iris); background: #FBFAFF; }
.stimme-probe { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lavendel-2); color: var(--iris); }
.stimme-probe svg { width: 15px; height: 15px; fill: currentColor; margin-left: 2px; }
.stimme-welle { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2.5px; background: var(--iris); opacity: 0; transition: opacity .15s; }
.stimme-welle i { width: 3px; height: 6px; border-radius: 3px; background: #fff; }
.stimme.spricht .stimme-welle { opacity: 1; }
.stimme.spricht .stimme-welle i { animation: sprechen .5s ease-in-out infinite alternate; }
.stimme-welle i:nth-child(2) { animation-delay: -.2s !important; }
.stimme-welle i:nth-child(3) { animation-delay: -.38s !important; }
@keyframes sprechen { to { height: 20px; } }
.stimme-name { display: block; font-weight: 800; line-height: 1.15; }
.stimme-art { display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); line-height: 1.2; }

/* Tonwelle */
.tonwelle { display: flex; align-items: center; gap: 3px; height: 60px; width: 100%; }
.tonwelle i { flex: 1; min-width: 2px; height: var(--h); border-radius: 4px; background: rgba(255, 255, 255, .38); transition: background .15s; }
.tonwelle i.gespielt { background: #fff; }
.tonwelle-farbig i { background: linear-gradient(180deg, var(--iris), var(--koralle)); background-size: 100% 100%; transform: scaleY(.04); opacity: .25; transition: transform .7s var(--feder), opacity .4s; transition-delay: calc(var(--n) * 14ms); }
.tonwelle-farbig.an i { transform: none; opacity: 1; }

/* Player */
.player { position: relative; background: var(--iris); color: #fff; border-radius: var(--r-l); padding: 18px 18px 14px; box-shadow: 0 16px 40px rgba(79, 46, 201, .32); overflow: hidden; isolation: isolate; }
.player::before { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -130px; top: -190px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 94, 54, .5), transparent); }
.player-reihe { display: flex; align-items: center; gap: 14px; }
.player-spielen { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--iris); display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(29, 22, 64, .25); transition: transform .4s var(--feder); }
.player-spielen:active { transform: scale(.9); }
.player-spielen svg { width: 24px; height: 24px; fill: currentColor; }
.player-unten { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #E4DEFF; }
.player-tempo { min-height: 28px; padding: 0 11px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800; font-size: .84rem; }

/* Dialog mit mitlaufender Hervorhebung */
.dialog { display: grid; gap: 4px; }
.dialog-zeile { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 8px; padding: 9px 12px; border-radius: 15px; transition: background .25s; }
.dialog-zeile.dran { background: var(--lavendel-2); }
.dialog-name { font-size: .95rem; line-height: 1.35; padding-top: .1em; font-weight: 900; color: var(--iris); overflow-wrap: anywhere; } /* lange Rollen wie „Station Announcer“ brechen um */
@media (max-width: 520px) { .dialog-zeile { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.dialog-text { display: block; font-size: 1.04rem; line-height: 1.42; font-weight: 600; outline: 0; border-radius: 6px; cursor: text; overflow-wrap: anywhere; }
.dialog-text:focus { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--iris-hell); background: #fff; }
.dialog-text .w { transition: color .12s; color: var(--tinte); }
.dialog-zeile.dran .dialog-text .w { color: var(--text-2); }
.dialog-zeile.dran .dialog-text .w.gehoert { color: var(--iris); }
.wort { display: inline-block; opacity: 0; animation: wort-an .55s var(--sanft) forwards; animation-delay: calc(var(--i) * var(--takt, 40ms)); }
@keyframes wort-an { from { opacity: 0; filter: blur(9px); transform: translateY(5px); } to { opacity: 1; filter: blur(0); transform: none; } }
.schimmer { position: relative; }
.schimmer::after { content: ""; position: absolute; inset: -6px; border-radius: 18px; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(79, 46, 201, .16) 44%, rgba(255, 94, 54, .22) 50%, rgba(79, 46, 201, .16) 56%, transparent 70%) 0 0 / 300% 100%;
  animation: schimmern 1s var(--sanft) both; }
@keyframes schimmern { from { background-position: 120% 0; } to { background-position: -40% 0; } }

/* Fragekarte */
.frage { background: var(--flaeche); border-radius: var(--r-m); box-shadow: var(--tiefe-1); padding: 16px; display: grid; gap: 8px; }
.frage-kopf { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 800; color: var(--text-2); }
.frage-text { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.antwort { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 13px; background: rgba(29, 22, 64, .04); text-align: left; font-weight: 600; width: 100%; transition: background .2s, transform .35s var(--feder); }
.antwort:active { transform: scale(.98); }
.antwort-punkt { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(29, 22, 64, .16); display: grid; place-items: center; color: #fff; transition: background .2s, box-shadow .2s; }
.antwort-punkt .ic { width: 14px; height: 14px; stroke-width: 3.4; opacity: 0; transform: scale(.4); transition: transform .4s var(--feder), opacity .15s; }
.antwort[aria-pressed="true"] { background: var(--ok-hell); font-weight: 800; }
.antwort[aria-pressed="true"] .antwort-punkt { background: var(--ok); box-shadow: none; }
.antwort[aria-pressed="true"] .antwort-punkt .ic { opacity: 1; transform: none; }

/* Arbeitsblatt-Vorschau */
.papier { background: #fff; border-radius: 8px; box-shadow: var(--tiefe-2); padding: 26px 24px; aspect-ratio: 1 / 1.414; overflow: hidden; font-size: .78rem; line-height: 1.4; color: var(--tinte); }
.papier-kopf { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--iris); padding-bottom: 8px; margin-bottom: 10px; }
.papier-kopf img { height: 18px; width: auto; }
.papier h3 { font-size: 1.15rem; font-weight: 900; color: var(--iris); }
.papier-frage { margin-top: 9px; font-weight: 700; }
.papier-frage span { display: block; font-weight: 500; padding-left: 12px; }
.papier-frage .loesung { color: #C6401C; font-weight: 800; }
.kaestchen { display: inline-block; width: 9px; height: 9px; border: 1.2px solid var(--tinte); border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.loesung .kaestchen { background: var(--koralle); border-color: var(--koralle); }
.papier-linie { display: inline-block; width: 42%; border-bottom: 1px solid var(--text-2); height: 1em; }

/* Blatt von unten (am Computer mittig) */
.blatt { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; margin: 0; padding: 0; border: 0; background: #F6F4FD; color: inherit; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--tiefe-3); overflow: hidden;
  transform: translateY(100%); transition: transform .55s var(--sanft); }
.blatt[open] { display: flex; flex-direction: column; }
.blatt.auf { transform: none; }
.blatt::backdrop { background: rgba(29, 22, 64, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .4s, backdrop-filter .4s; }
.blatt.auf::backdrop { background: rgba(29, 22, 64, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.blatt-griff { width: 100%; padding: 8px 0 2px; flex: none; touch-action: none; cursor: grab; }
.blatt-griff::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 9px; margin: 0 auto; background: rgba(29, 22, 64, .18); }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 8px 20px; flex: none; touch-action: none; }
.blatt-inhalt { overflow-y: auto; padding: 0 16px 16px; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.blatt-fuss { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); flex: none; background: linear-gradient(transparent, #F6F4FD 22%); }
@media (min-width: 700px) {
  .blatt { inset: 0; margin: auto; width: 480px; height: fit-content; max-height: 88dvh; border-radius: var(--r-xl); transform: translateY(30px) scale(.96); opacity: 0; transition: transform .5s var(--feder), opacity .25s; }
  .blatt.auf { opacity: 1; }
  .blatt-griff { display: none; }
  .blatt-kopf { padding-top: 16px; }
}

/* Insel: kurze Rückmeldung oben, wächst aus einem Punkt */
.insel { position: fixed; z-index: 90; top: calc(10px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; height: 44px; max-width: 44px; padding: 0 14px; overflow: hidden; border-radius: 99px;
  background: var(--tinte); color: #fff; font-weight: 800; font-size: .95rem; white-space: nowrap; opacity: 0; transform: scale(.7) translateY(-16px); pointer-events: none; box-shadow: var(--tiefe-2); transition: max-width .55s var(--feder), opacity .2s, transform .5s var(--feder); }
.insel.auf { max-width: 340px; opacity: 1; transform: none; }
.insel .ic { color: #8FE6B9; stroke-width: 3; }

/* Leuchten: der Bildschirmrand während des magischen Moments */
.leuchten { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .9s; overflow: hidden; }
.leuchten.an { opacity: 1; }
.leuchten i { position: absolute; inset: -30px; }
.leuchten i::before { content: ""; position: absolute; inset: 0; padding: var(--dicke); background: conic-gradient(from var(--winkel), var(--regenbogen)); animation: drehen 5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.leuchten i:nth-child(1) { --dicke: 76px; filter: blur(38px); opacity: .9; }
.leuchten i:nth-child(2) { --dicke: 38px; filter: blur(7px); }

/* Zeichen, das zuhört */
.lauscher { position: relative; display: inline-block; width: var(--groesse, 64px); aspect-ratio: 81.2 / 171.3; }
.lauscher svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lauscher .kh { fill: var(--koralle); transform-origin: 50% 18%; }
.lauscher .i { fill: var(--iris); }
.lauscher.wippt svg { animation: wippen 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wippen { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.lauscher.hoert::before, .lauscher.hoert::after { content: ""; position: absolute; left: 50%; top: 18%; width: 140%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--iris); translate: -50% -50%; opacity: 0; animation: schall 2.4s var(--sanft) infinite; }
.lauscher.hoert::after { animation-delay: 1.2s; border-color: var(--koralle); }
@keyframes schall { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(2.3); opacity: 0; } }

/* Schritte im magischen Moment */
.schrittliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.schrittliste li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-2); transition: color .3s, opacity .3s; opacity: .55; }
.schrittliste li.laeuft { opacity: 1; color: var(--tinte); }
.schrittliste li.fertig { opacity: 1; color: var(--text); }
.schritt-punkt { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 2px rgba(29, 22, 64, .14); transition: background .2s, box-shadow .2s; }
.schritt-punkt .ic { width: 14px; height: 14px; stroke-width: 3.4; transform: scale(0); transition: transform .5s var(--feder); }
.laeuft .schritt-punkt { box-shadow: none; background: conic-gradient(var(--iris), var(--koralle), transparent 78%); -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 66%); mask: radial-gradient(closest-side, transparent 62%, #000 66%); animation: kreisen .8s linear infinite; }
.fertig .schritt-punkt { background: var(--iris); box-shadow: none; }
.fertig .schritt-punkt .ic { transform: none; }
@keyframes kreisen { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
