/* Listenly: alles, was Ton sichtbar macht. Grundlagen stehen in ui.css. */
.tonwelle.echt i { background: var(--f, #fff); opacity: .36; transition: opacity .15s; }
.tonwelle.echt i.gespielt { background: var(--f, #fff); opacity: 1; }
.tonwelle.echt { gap: 2px; }
.player.feier .tonwelle.echt i { animation: balken-wachsen .7s var(--feder) both; animation-delay: calc(var(--n) * 7ms); }
@keyframes balken-wachsen { from { transform: scaleY(.04); opacity: 0; } }

/* Wörter im Takt */
.wz { border-radius: 5px; transition: color .12s, background-color .12s; cursor: pointer; }
.wz.jetzt { background: var(--iris); color: #fff; box-shadow: 0 0 0 2px var(--iris); }
.wz.kern { font-weight: 900; color: var(--iris); }
.wz.kern.jetzt { background: var(--koralle); color: #fff; box-shadow: 0 0 0 2px var(--koralle); }
.wz.vokabel { text-decoration: underline dotted var(--koralle) 2px; text-underline-offset: 3px; }
.dialog-text .wz { cursor: inherit; }

/* Hörstelle */
.stelle-knopf { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0 16px 0 10px; border-radius: 99px; background: var(--lavendel); color: var(--iris); font-weight: 800; font-size: .95rem; transition: background .2s, transform .3s var(--feder); }
.stelle-knopf:hover { background: var(--lavendel-2); }
.stelle-knopf:active { transform: scale(.96); }
.stelle-knopf svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--iris); fill: #fff; flex: none; }
.stelle-knopf.spielt { background: var(--iris); color: #fff; }
.stelle-knopf.spielt svg { background: #fff; fill: var(--iris); animation: stelle-puls 1s ease-in-out infinite; }
.stelle-zeit { font-variant-numeric: tabular-nums; opacity: .7; font-weight: 700; }
@keyframes stelle-puls { 50% { transform: scale(.82); } }
.stelle-text { padding: 12px 14px; border-radius: var(--r-s); background: var(--grund); border-left: 3px solid var(--iris); font-size: 1.08rem; font-weight: 600; color: var(--tinte); line-height: 1.6; animation: kommt .5s var(--feder) both; }
.vokabel-blase { position: absolute; z-index: 5; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 10px; background: var(--tinte); color: #fff; font-weight: 700; font-size: .92rem; white-space: nowrap; pointer-events: none; box-shadow: var(--tiefe-2); }
.schueler > div:has(.vokabel-blase) { position: relative; }

/* Hör-Landkarte */
.hoerkarte { position: relative; padding: 34px 0 6px; }
.hk-welle { display: flex; align-items: center; gap: 2px; height: 76px; }
.hk-welle i { flex: 1; min-width: 1px; height: var(--h); border-radius: 3px; background: rgba(79, 46, 201, .16); }
.hk-welle i.an { background: var(--iris); }
.hk-welle i.gut { background: var(--ok); }
.hk-welle i.mittel { background: #F2A516; }
.hk-welle i.schwer { background: var(--koralle); }
.hk-pins { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.hk-pin { position: absolute; top: 0; translate: -50% 0; width: 28px; height: 28px; border-radius: 50%; background: var(--iris); color: #fff; font-weight: 900; font-size: .82rem; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(29, 22, 64, .25); transition: transform .3s var(--feder); }
.hk-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 10px; margin-left: -1px; background: inherit; }
.hk-pin:hover { transform: scale(1.18); }
.hk-pin.gut { background: var(--ok); }
.hk-pin.mittel { background: #D88C05; }
.hk-pin.schwer { background: var(--koralle-tief); }
.hk-pin.spielt { outline: 3px solid currentColor; outline-offset: 2px; }
.hoerkarte.dunkel .hk-welle i { background: rgba(255, 255, 255, .22); }
.hoerkarte.dunkel .hk-welle i.an { background: #B79CFF; }
.hoerkarte.dunkel .hk-welle i.gut { background: #35D08A; }
.hoerkarte.dunkel .hk-welle i.mittel { background: #FFC24B; }
.hoerkarte.dunkel .hk-welle i.schwer { background: #FF7A59; }
.hk-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; font-weight: 700; color: var(--text-2); }
.hk-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--c); }
.schwerste { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-m); background: var(--koralle-hell); color: var(--tinte); }
.schwerste strong { color: #B8330F; }
.schwerste q { font-weight: 800; quotes: "„" "“"; }

/* Feier */
.feier-buehne { position: fixed; z-index: 80; width: 0; height: 0; pointer-events: none; }
.feier-buehne i { position: absolute; width: 6px; border-radius: 3px; animation: funke 1.4s cubic-bezier(.16, .8, .3, 1) both; }
@keyframes funke { from { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 75% { opacity: 1; } to { transform: translate(var(--x), calc(var(--y) + 120px)) rotate(var(--d)) scale(1); opacity: 0; } }

/* Live-Knopf in der App */
.live-knopf { position: relative; }
.live-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--koralle); box-shadow: 0 0 0 0 rgba(255, 94, 54, .7); animation: live-puls 2s infinite; }
@keyframes live-puls { 70% { box-shadow: 0 0 0 10px rgba(255, 94, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 94, 54, 0); } }
.km-welle { width: min(760px, 100%); height: 84px; }
