/* Listenly-Website: Hörprobe, Live-Runde, Hör-Landkarte. Die Farben stehen in style.css, die Klang-Bausteine in klang.css. */
:root { --ok: #1E9E62; --koralle-hell: #FFEDE7; --text-2: #6B6685; --r-s: 12px; --r-m: 18px; --sanft: cubic-bezier(.22, 1, .36, 1); --feder: cubic-bezier(.34, 1.56, .64, 1); --tiefe-2: 0 12px 30px rgba(29, 22, 64, .18); --grund: #FBFAFF; }
.player-karte { font: inherit; text-align: left; cursor: pointer; transition: transform .3s var(--sanft), box-shadow .3s; }
.player-karte:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(29, 22, 64, .1), 0 30px 70px rgba(79, 46, 201, .26); }
.pk-kopf, .pk-titel, .pk-player { display: flex; }
.pk-welle { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.pk-welle i { flex: 1; height: 40%; border-radius: 2px; background: var(--koralle); opacity: .75; animation: pk-welle 1.3s ease-in-out infinite; }
.pk-welle i:nth-child(3n) { animation-delay: -.35s; height: 80%; } .pk-welle i:nth-child(3n+1) { animation-delay: -.7s; height: 55%; } .pk-welle i:nth-child(5n) { animation-delay: -1s; height: 100%; }
@keyframes pk-welle { 50% { transform: scaleY(.45); } }
.player-karte .app-play { display: grid; place-items: center; border-radius: 50%; background: var(--iris); color: #fff; flex: none; }
.player-karte .app-play svg { width: 16px; height: 16px; }

.hoerband { background: linear-gradient(180deg, #fff, var(--lavendel)); }
.hoerprobe { display: grid; gap: 16px; margin-top: 28px; }
.hp-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hp-wahl button { padding: 12px 8px; border: 2px solid transparent; border-radius: var(--rund); background: #fff; color: var(--iris); font: inherit; font-weight: 900; box-shadow: var(--schatten); cursor: pointer; transition: transform .25s var(--sanft), background .2s, color .2s; }
.hp-wahl button span { display: block; font-weight: 700; font-size: .85rem; color: var(--text); }
.hp-wahl button:hover { transform: translateY(-2px); }
.hp-wahl button[aria-pressed="true"] { background: var(--iris); color: #fff; }
.hp-wahl button[aria-pressed="true"] span { color: #E4DEFF; }
.hp-kasten { display: grid; gap: 18px; padding: clamp(16px, 2.4vw, 28px); border-radius: 26px; background: #fff; box-shadow: var(--schatten-hoch); }
.hp-links { display: grid; gap: 12px; align-content: start; min-width: 0; }
.hp-eingabe { display: grid; gap: 4px; font-size: 1rem; line-height: 1.4; }
.hp-eingabe span { font-size: .78rem; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.hp-eingabe q { quotes: none; font-weight: 800; color: var(--tinte); }
.hp-merkmale { font-size: .88rem; font-weight: 700; color: var(--text-2); }
.hp-player { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--iris); box-shadow: 0 16px 40px rgba(79, 46, 201, .3); }
.hp-spielen { flex: none; width: 54px; height: 54px; border: 0; border-radius: 50%; background: #fff; color: var(--iris); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--feder); }
.hp-spielen:active { transform: scale(.9); }
.hp-spielen svg { width: 24px; height: 24px; fill: currentColor; }
#hpWelle.tonwelle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 56px; cursor: pointer; }
#hpWelle.tonwelle i { flex: 1; min-width: 1px; height: var(--h); border-radius: 3px; }
.hp-leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--tinte); }
.hp-schalter { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--lavendel-2); }
.hp-schalter input { position: absolute; opacity: 0; }
.hp-schalter span { display: block; padding: 6px 14px; border-radius: 99px; font-size: .88rem; color: var(--iris); cursor: pointer; transition: background .2s, color .2s; }
.hp-schalter input:checked + span { background: var(--iris); color: #fff; }
.hp-schalter input:focus-visible + span { outline: 3px solid var(--koralle); outline-offset: 2px; }
.hp-stellen { display: grid; gap: 8px; padding-top: 6px; font-size: .95rem; font-weight: 700; color: var(--text); }
.hp-fragen { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-fragen button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lavendel); color: var(--iris); font: inherit; font-weight: 900; cursor: pointer; transition: transform .25s var(--feder), background .2s, color .2s; }
.hp-fragen button:hover { transform: scale(1.1); }
.hp-fragen button.an { background: var(--koralle); color: #fff; }
#hpFrage { min-height: 1.5em; font-weight: 800; color: var(--tinte); }
.hp-text { position: relative; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 14px; align-content: start; max-height: 360px; overflow-y: auto; padding: 4px 8px; font-size: 1.05rem; line-height: 1.55; color: var(--tinte); scrollbar-width: thin; }
.hp-text p { grid-column: 1 / -1; display: grid; grid-template-columns: 62px minmax(0, 1fr); grid-template-columns: subgrid; gap: 10px; padding: 7px 0; } /* subgrid: Namensspalte so breit wie der längste Name („Announcer“) */
.hp-text strong { font-weight: 900; color: var(--iris); font-size: .9rem; padding-top: 2px; }
.hp-klein { text-align: center; font-size: .85rem; color: var(--text-2); }
.hp-text .wz { color: var(--text); }
.hp-text .wz.gehoert { color: var(--tinte); }
.hp-text .wz.jetzt { color: #fff; }

.liveband { background: #120C33; color: #E9E4FF; }
.live-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.live-text .knopf { white-space: normal; text-align: center; height: auto; padding-top: 12px; padding-bottom: 12px; }
.live-text { display: grid; gap: 16px; justify-items: start; }
.live-text h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.live-marke { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px; border-radius: 99px; background: rgba(255, 94, 54, .18); color: #FFB199; font-weight: 800; font-size: .92rem; }
.live-marke i { width: 9px; height: 9px; border-radius: 50%; background: var(--koralle); animation: live-puls 2s infinite; }
@keyframes live-puls { 0% { box-shadow: 0 0 0 0 rgba(255, 94, 54, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 94, 54, 0); } }
.live-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-weight: 700; }
.live-text li { padding-left: 26px; position: relative; }
.live-text li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 12px; height: 7px; border-left: 3px solid #FFB199; border-bottom: 3px solid #FFB199; transform: rotate(-45deg); }
.live-film { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1); background: #120C33; }
.live-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.hk-karte { margin-top: 26px; display: grid; gap: 8px; }
.hk-frage { min-height: 1.6em; font-weight: 800; color: var(--tinte); }
.hk-schueler { margin-top: 18px; text-align: center; }
.hoerkarte .hk-pin { border: 0; font-family: inherit; cursor: pointer; }
@media (min-width: 920px) {
  .hp-kasten { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 30px; }
  .live-raster { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
}
@media (prefers-reduced-motion: reduce) { .pk-welle i, .live-marke i { animation: none; } }

/* Flaggen zur Sprache und Durchlauf der Fragen */
.flagge { display: inline-block; width: 21px; height: 14px; margin-right: 7px; border-radius: 3px; overflow: hidden; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(29, 22, 64, .12); }
.flagge svg { display: block; width: 100%; height: 100%; }
.hp-wahl button span .flagge { width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.hp-text .wz.zeige { background: #FFE3D9; color: var(--tinte); border-radius: 0; box-shadow: 0 0 0 4px #FFE3D9; transition: background .3s, box-shadow .3s; } /* 4px überbrückt die Leerzeichen: ein Band statt einzelner Pillen */
#hpWelle.tonwelle i.stelle { opacity: 1; background: var(--koralle); }

/* Handy: erst nur der Player, der Text klappt auf (Marcel 2026-11-11: sonst zu überladen) */
.hp-aufklappen { display: none; }
@media (max-width: 919px) {
  .hp-aufklappen { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border: 0; border-radius: 14px; background: var(--lavendel); color: var(--iris); font: inherit; font-weight: 800; cursor: pointer; }
  .hp-aufklappen svg { width: 18px; height: 18px; transition: transform .25s var(--sanft); }
  .hp-aufklappen[aria-expanded="true"] svg { transform: rotate(180deg); }
  .hp-kasten:not(.offen) .hp-text { display: none; }
}

/* Beispiel-Arbeitsblatt auf der Startseite */
.ab-raster { display: grid; gap: 28px; margin-top: 28px; align-items: center; }
.ab-vorschau { display: block; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--schatten-hoch); text-decoration: none; transition: transform .3s var(--sanft); }
.ab-vorschau:hover { transform: translateY(-3px); }
.ab-vorschau img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ab-vorschau span { display: block; padding: 12px 18px; font-weight: 800; color: var(--iris); }
.ab-text { display: grid; gap: 18px; }
.ab-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-weight: 700; color: var(--tinte); }
.ab-liste li { position: relative; padding-left: 28px; }
.ab-liste li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--koralle); border-bottom: 3px solid var(--koralle); transform: rotate(-45deg); }
.ab-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.ab-klein { font-size: .9rem; color: var(--text-2); }
@media (min-width: 920px) { .ab-raster { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } }
