/* ============================================================
   Familien-Szenarien (#so-funktionierts)
   Vertrag: docs/FAMILIEN_CONTRACT.md (Abschnitt main.js).
   Präfix fz-. Das iPhone selbst gestaltet phone-demo.css (pd-).

   Aufbau:
   - .fz-picker: drei große Karten (role=tablist, per JS).
   - .fz-stage: randlose Bühne. Darin .fz-view (Canvas, Uhrzeit, Blase,
     Chat) und der Player. Ab 1051 px liegen Player und iPhone über der
     Bühne, darunter steht der Player als Erzählkarte unter der Bühne und
     das iPhone wird zum Bottom Sheet.
   - .fz-below: Besetzung, Hinweis, Tipps.
   - .fz-lib: die statische Fassung ohne JS (SEO). Mit JS ausgeblendet.

   Die Seite setzt `.landing-body p { margin: 0; color: ... }` und eigene
   h3-Größen (Spezifität 0,1,1). Text-Regeln hier stehen darum unter
   `.fz-section` (0,2,0).
   ============================================================ */

.fz-section {
  --fz-gutter: max(1.5rem, calc((100% - var(--content)) / 2));
  position: relative;
  padding-block: clamp(5.5rem, 9vw, 9rem) clamp(4rem, 7vw, 7rem);
  background: var(--paper);
  overflow-x: clip;
}

.fz-section [hidden] {
  display: none !important;
}

/* ---------- Farbwelt je Szenario ---------- */

.fz-root {
  --fz-accent: #f47f5c;
  --fz-accent-soft: #fde4d7;
  --fz-glow-a: #fbd6bf;
  --fz-glow-b: #ffe6a6;
  --fz-safe-right: 0px;
  --fz-safe-left: 0px;
  --fz-dock-h: 0px;
}

.fz-root[data-fz-szenario="allein"] {
  --fz-accent: #8cc3ea;
  --fz-accent-soft: #dcecf8;
  --fz-glow-a: #d3e8f7;
  --fz-glow-b: #cdeee5;
}

.fz-root[data-fz-szenario="solo"] {
  --fz-accent: #a996ee;
  --fz-accent-soft: #e8e2fb;
  --fz-glow-a: #f9d7c6;
  --fz-glow-b: #e0d8fb;
}

.fz-root.is-arbeit {
  --fz-accent: #4fa3a8;
  --fz-accent-soft: #d7eeee;
}

/* Ohne JS (oder bevor main.js läuft) keine leere Bühne. */
html:not(.js) .fz-panel,
.fz-root.is-static .fz-panel {
  display: none;
}

.fz-root:not(.is-ready) .fz-panel {
  visibility: hidden;
}

.js .fz-root:not(.is-static) .fz-lib {
  display: none;
}

/* ---------- Auswahl: drei Familien ---------- */

.fz-picker {
  margin-top: clamp(2rem, 4vw, 3.2rem);
}

.fz-section .fz-picker__label {
  margin: 0 0 .85rem;
  color: var(--ink-soft);
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.fz-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0 0 .5rem;
  list-style: none;
}

.fz-tabs__item {
  display: flex;
  min-width: 0;
}

.fz-tab {
  --fz-t: #fde4d7;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  width: 100%;
  padding: 1.05rem 1.2rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 24px 8px 24px 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.fz-tab--allein { --fz-t: #dcecf8; }
.fz-tab--solo { --fz-t: #e8e2fb; }

.fz-tab:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.fz-tab[aria-selected="true"] {
  background: var(--fz-t);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.fz-tab:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 4px;
}

.fz-tab__top {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.fz-tab__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--fz-t);
  color: var(--ink);
  transition: background-color .16s ease, color .16s ease;
}

.fz-tab[aria-selected="true"] .fz-tab__icon {
  background: var(--ink);
  color: var(--paper);
}

.fz-tab__time {
  color: var(--ink-soft);
  font-size: var(--text-13);
  font-weight: 700;
  line-height: 1.2;
}

.fz-tab__title {
  margin-top: .45rem;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.fz-tab__family {
  color: var(--ink-soft);
  font-size: var(--text-14);
  font-weight: 600;
  line-height: 1.35;
}

.fz-tab__hook {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 2px dashed rgba(24, 33, 61, .2);
  color: var(--ink);
  font-size: var(--text-15);
  font-weight: 650;
  line-height: 1.4;
}

.fz-tab__family {
  margin-bottom: .45rem;
}

/* ---------- Bühne ---------- */

.fz-panel {
  position: relative;
  margin-top: clamp(1rem, 2vw, 1.6rem);
}

.fz-stage {
  position: relative;
}

.fz-view {
  position: relative;
  width: 100%;
  height: clamp(560px, 82vh, 800px);
  overflow: clip;
  isolation: isolate;
}

/* Weicher Übergang in den Seitenhintergrund, wie im Klassenzimmer.
   Nur Hintergrund und Canvas werden maskiert, Karten bleiben scharf. */
.fz-backdrop,
.fz-scene canvas {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 11%, #000 87%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 11%, #000 87%, transparent 100%);
}

.fz-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(52% 62% at 36% 58%, var(--fz-glow-a) 0, transparent 72%),
    radial-gradient(40% 55% at 74% 42%, var(--fz-glow-b) 0, transparent 70%),
    linear-gradient(180deg, var(--paper) 0, var(--cream) 55%, var(--paper) 100%);
  transition: background .5s ease;
}

.fz-scene {
  position: absolute;
  inset: 0;
}

.fz-scene canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  outline: none;
}

.fz-view.is-hovering canvas {
  cursor: pointer;
}

.is-chat .fz-scene {
  display: none;
}

/* ---------- Uhrzeit und Ort ---------- */

.fz-hud {
  position: absolute;
  z-index: 4;
  top: 1.4rem;
  left: var(--fz-gutter);
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  column-gap: .6rem;
  max-width: min(360px, calc(100% - var(--fz-safe-right) - 2 * var(--fz-gutter)));
  padding: .5rem 1rem .55rem .55rem;
  border: 2px solid var(--ink);
  border-radius: 18px 6px 18px 6px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--fz-accent);
  pointer-events: none;
  transition: opacity .25s ease;
}

.fz-hud.is-covered,
.is-sheet-open .fz-hud {
  opacity: 0;
}

.fz-hud__icon {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fz-accent-soft);
  color: var(--ink);
}

.fz-hud__time {
  color: var(--ink);
  font: 700 1.05rem/1.15 "Poppins", "Inter", sans-serif;
  letter-spacing: -.02em;
}

.fz-hud__place {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: var(--text-13);
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Wer spricht ---------- */

.fz-section .fz-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .4rem;
  margin: 0 0 .4rem;
  color: var(--lilac-deep);
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.fz-who__dot {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-right: .1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--fz-c, var(--lavender));
}

.fz-who[data-kind="telefon"] .fz-who__dot,
.fz-marker .fz-who__dot:has(svg) {
  width: 22px;
  height: 22px;
  background: var(--paper);
  color: var(--ink);
}

.fz-who__dot svg {
  width: 13px;
  height: 13px;
}

.fz-who__sep,
.fz-who__role {
  color: var(--ink-soft);
}

.fz-who__role {
  letter-spacing: .05em;
}

.fz-who[data-kind="erzaehler"] {
  display: none;
}

/* ---------- Sprechblase (breit, am Kopf) ---------- */

.fz-bubble {
  --fz-tail-x: 50%;
  --fz-tail-y: 30px;
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: min(360px, calc(100% - 36px));
  padding: .95rem 1.15rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  will-change: transform;
}

.fz-bubble::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-width: 0 2px 2px 0;
  background: inherit;
  content: "";
}

.fz-bubble[data-side="top"]::after {
  bottom: -11px;
  left: var(--fz-tail-x);
  transform: translateX(-50%) rotate(45deg);
}

.fz-bubble[data-side="right"]::after {
  top: var(--fz-tail-y);
  left: -11px;
  transform: translateY(-50%) rotate(135deg);
}

.fz-bubble[data-side="left"]::after {
  top: var(--fz-tail-y);
  right: -11px;
  transform: translateY(-50%) rotate(-45deg);
}

.fz-bubble[data-side="free"]::after,
.fz-bubble:not([data-side])::after {
  display: none;
}

.fz-bubble[data-kind="abby"] {
  background: #f0ebfe;
}

.fz-bubble[data-kind="telefon"] {
  border-style: dashed;
  background: #eef6fc;
}

.fz-bubble[data-kind="telefon"]::after {
  border-style: dashed;
}

.fz-section .fz-bubble__text {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-17);
  line-height: 1.45;
}

.fz-bubble.is-pop > *,
.fz-subtitle.is-pop,
.fz-line.is-pop > * {
  animation: fz-rise .38s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes fz-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Erzähler: Untertitel über dem Player, mittig im freien Teil. */
.fz-section .fz-subtitle {
  position: absolute;
  z-index: 6;
  bottom: calc(var(--fz-dock-h) + 2.4rem);
  left: calc((100% - var(--fz-safe-right)) / 2);
  width: min(620px, calc(100% - var(--fz-safe-right) - 2 * var(--fz-gutter)));
  margin: 0;
  padding: .95rem 1.35rem 1rem;
  border-radius: 18px 6px 18px 6px;
  background: rgba(24, 33, 61, .92);
  box-shadow: 0 14px 30px rgba(24, 33, 61, .22);
  color: var(--paper);
  font-size: var(--text-17);
  line-height: 1.5;
  text-align: center;
  transform: translateX(-50%);
}

.fz-subtitle.is-pop {
  animation-name: fz-rise-center;
}

@keyframes fz-rise-center {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translateX(-50%); }
}

/* Namensschild über dem Kopf (schmal: Sprecher, breit: Maus darüber). */
.fz-section .fz-marker {
  --fz-tail-x: 50%;
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .28rem .7rem .28rem .35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-size: var(--text-13);
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
}

.fz-marker::after {
  position: absolute;
  bottom: -7px;
  left: var(--fz-tail-x);
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-width: 0 2px 2px 0;
  background: var(--paper);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.fz-marker .fz-who__dot {
  width: 12px;
  height: 12px;
  margin: 0;
}

.fz-marker.is-off {
  visibility: hidden;
}

.fz-section .fz-loading {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: calc((100% - var(--fz-safe-right) + var(--fz-safe-left)) / 2);
  margin: 0;
  padding: .5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-14);
  font-weight: 650;
  transform: translate(-50%, -50%);
}

/* ---------- Chatverlauf (ohne WebGL) ---------- */

.fz-chat {
  position: absolute;
  z-index: 3;
  top: 1.25rem;
  right: var(--fz-safe-right);
  bottom: calc(var(--fz-dock-h) + 2.2rem);
  left: max(var(--fz-gutter), calc(var(--fz-safe-left) + 1rem));
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.is-beat .fz-chat {
  top: 6rem;
}

.fz-section .fz-chat__note {
  order: 2;
  align-self: flex-start;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-12);
  font-weight: 600;
}

.fz-chat__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .75rem;
  min-height: 0;
  margin: 0;
  padding: 1.25rem .5rem .6rem 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.25rem);
  mask-image: linear-gradient(180deg, transparent 0, #000 1.25rem);
}

/* Wie im Messenger: wenige Nachrichten stehen unten, zu Beginn steht die
   Besetzung mittig. */
.fz-chat__list > :first-child {
  margin-top: auto;
}

.is-intro .fz-chat__list > :first-child {
  margin-bottom: auto;
}

.is-chat.is-intro .fz-cast {
  display: none;
}

.fz-msg {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  max-width: 600px;
}

.fz-msg__body {
  min-width: 0;
  padding: .7rem .95rem .8rem;
  border: 2px solid var(--ink);
  border-radius: 18px 18px 18px 6px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(24, 33, 61, .85);
}

.fz-msg .fz-who {
  margin-bottom: .25rem;
}

.fz-section .fz-msg__text {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-15);
  line-height: 1.5;
}

.fz-msg.is-current .fz-msg__body {
  box-shadow: 5px 5px 0 var(--fz-accent), 0 0 0 1px var(--ink);
}

.fz-msg--abby .fz-msg__body {
  background: #f0ebfe;
}

.fz-msg--telefon .fz-msg__body {
  border-style: dashed;
  background: #eef6fc;
}

.fz-section .fz-msg__phone {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: .45rem 0 0;
  padding: .15rem .55rem .15rem .4rem;
  border-radius: 999px;
  background: var(--fz-accent-soft);
  color: var(--ink);
  font-size: var(--text-12);
  font-weight: 700;
}

.fz-msg--erzaehler {
  align-self: center;
  max-width: 560px;
}

.fz-section .fz-msg--erzaehler .fz-msg__text {
  padding: .7rem 1.1rem;
  border-radius: 16px 6px 16px 6px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.fz-msg--erzaehler.is-current .fz-msg__text {
  box-shadow: 5px 5px 0 var(--fz-accent);
}

.fz-msg--time {
  align-self: center;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgba(24, 33, 61, .07);
  color: var(--ink-soft);
  font-size: var(--text-12);
  font-weight: 750;
  letter-spacing: .04em;
}

.fz-msg--cast {
  display: block;
  align-self: stretch;
  max-width: none;
  padding: 1rem 1.1rem 1.1rem;
  border: 2px dashed rgba(24, 33, 61, .25);
  border-radius: 22px 8px 22px 8px;
}

.fz-section .fz-msg__cast-title {
  margin: 0 0 .7rem;
  color: var(--ink);
  font: 700 var(--text-16)/1.2 "Poppins", "Inter", sans-serif;
}

.fz-msg__people {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fz-person {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: .5rem;
  min-height: 44px;
  padding: .3rem .8rem .3rem .3rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fz-person .fz-avatar {
  grid-row: span 2;
}

.fz-person__name {
  font-size: var(--text-14);
  font-weight: 750;
  line-height: 1.15;
}

.fz-person__role {
  color: var(--ink-soft);
  font-size: var(--text-12);
  line-height: 1.15;
}

.fz-person:hover {
  background: var(--fz-accent-soft);
}

/* ---------- Avatare ---------- */

.fz-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--fz-c, var(--lavender));
  color: var(--fz-c-ink, var(--ink));
  font: 700 .95rem/1 "Poppins", "Inter", sans-serif;
}

.fz-avatar svg {
  width: 16px;
  height: 16px;
}

.fz-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: .82rem;
}

.fz-avatar--md {
  width: 34px;
  height: 34px;
  font-size: .85rem;
}

.fz-avatar--lg {
  width: 54px;
  height: 54px;
  font-size: 1.35rem;
}

/* ---------- Steckbrief ---------- */

.fz-profile {
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  width: 300px;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 24px 8px 24px 8px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--fz-c, var(--fz-accent));
}

.fz-profile .fz-profile__close {
  position: absolute;
  top: .55rem;
  right: .55rem;
}

.fz-section .fz-profile__name {
  margin: .7rem 2.6rem .1rem 0;
  font-size: var(--text-20);
  letter-spacing: -.03em;
  line-height: 1.2;
}

.fz-section .fz-profile__name:focus {
  outline: none;
}

.fz-section .fz-profile__name:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
}

.fz-section .fz-profile__meta {
  color: var(--lilac-deep);
  font-size: var(--text-14);
  font-weight: 750;
}

.fz-section .fz-profile__job {
  margin-top: .6rem;
  color: var(--ink);
  font-size: var(--text-14);
  line-height: 1.45;
}

.fz-section .fz-profile__text {
  margin-top: .45rem;
  color: var(--ink-soft);
  font-size: var(--text-14);
  line-height: 1.5;
}

.fz-profile.is-docked {
  top: auto;
  right: .75rem;
  bottom: .75rem;
  left: .75rem;
  width: auto;
  max-height: calc(100% - 1.5rem);
  overflow-y: auto;
  transform: none;
}

/* ---------- Player: Intro, Beat, Ende, Knöpfe ---------- */

.fz-player {
  position: relative;
  z-index: 7;
}

.fz-player.is-swap {
  animation: fz-fade .4s ease;
}

@keyframes fz-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fz-section .fz-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
  margin: 0 0 .95rem;
}

.fz-kicker__tag {
  display: inline-flex;
  align-items: center;
  padding: .32rem .75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--fz-accent);
  color: var(--ink);
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.fz-kicker__tag--end {
  background: var(--mint);
}

.fz-kicker__meta {
  color: var(--ink-soft);
  font-size: var(--text-13);
  font-weight: 700;
}

.fz-section .fz-intro__title,
.fz-section .fz-end__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.fz-section .fz-intro__title:focus,
.fz-section .fz-end__title:focus {
  outline: none;
}

.fz-section .fz-intro__title:focus-visible,
.fz-section .fz-end__title:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 4px;
}

.fz-section .fz-intro__text,
.fz-section .fz-end__text {
  color: var(--ink-soft);
  font-size: var(--text-15);
  line-height: 1.6;
}

.fz-quote {
  margin: 1rem 0 0;
  padding: .85rem 1rem .85rem 1.1rem;
  border-left: 5px solid var(--fz-accent);
  border-radius: 0 16px 16px 0;
  background: var(--fz-accent-soft);
}

.fz-section .fz-quote p {
  margin: 0;
  color: var(--ink);
  font: 600 var(--text-16)/1.4 "Poppins", "Inter", sans-serif;
  letter-spacing: -.01em;
}

.fz-quote footer {
  margin-top: .35rem;
  color: var(--ink-soft);
  font-size: var(--text-13);
  font-weight: 700;
}

.fz-section .fz-beleg {
  margin-top: .85rem;
  color: var(--ink-soft);
  font-size: var(--text-12);
  line-height: 1.5;
}

.fz-section .fz-beleg__src {
  color: var(--lilac-deep);
  font-weight: 750;
}

.fz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.2rem;
  margin-top: 1.3rem;
}

.fz-actions .landing-button {
  gap: .5rem;
}

.fz-actions .landing-button svg {
  width: 18px;
  height: 18px;
}

.fz-textbtn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 .15rem;
  border: 0;
  background: none;
  color: var(--lilac-deep) !important;
  font: 750 var(--text-15)/1.2 "Inter", system-ui, sans-serif;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.fz-section .fz-line__text {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-17);
  line-height: 1.5;
}

.fz-line[data-kind="erzaehler"] .fz-line__text {
  font-style: italic;
}

.fz-controls {
  display: grid;
  grid-template-areas:
    "phases count"
    "buttons buttons"
    "phone phone";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .7rem .75rem;
}

.fz-phases {
  display: grid;
  grid-area: phases;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  min-width: 0;
}

.fz-phase {
  --fz-ph: #f47f5c;
  display: flex;
  flex-direction: column;
  gap: .32rem;
  min-width: 0;
}

.fz-phase--wende { --fz-ph: #f2b21e; }
.fz-phase--loesung { --fz-ph: #2fa58f; }
.fz-phase--ergebnis { --fz-ph: #7057df; }

.fz-phase__label {
  overflow: hidden;
  padding-top: .12em;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fz-phase.is-current .fz-phase__label,
.fz-phase.is-done .fz-phase__label {
  color: var(--ink);
}

.fz-phase__track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 33, 61, .1);
}

.fz-phase.is-current .fz-phase__track {
  box-shadow: 0 0 0 2px var(--ink);
}

.fz-phase__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fz-ph);
  transform: scaleX(var(--fz-fill, 0));
  transform-origin: left center;
  transition: transform .35s ease;
}

.fz-section .fz-count {
  grid-area: count;
  margin: 0;
  color: var(--ink-soft);
  font: 700 var(--text-13)/1 "Poppins", "Inter", sans-serif;
  font-variant-numeric: tabular-nums;
}

.fz-buttons {
  display: flex;
  grid-area: buttons;
  align-items: center;
  gap: .5rem;
}

.fz-next {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-height: 48px;
  padding: .55rem 1rem .55rem 1.2rem;
  border: 2px solid var(--lilac-deep);
  border-radius: 16px;
  background: var(--lilac);
  box-shadow: 0 4px 0 var(--lilac-deep);
  color: var(--white);
  font: 750 var(--text-16)/1.1 "Inter", system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.fz-next svg {
  width: 20px;
  height: 20px;
}

.fz-next:hover {
  background: var(--lilac-deep);
  box-shadow: 0 2px 0 var(--lilac-deep);
  transform: translateY(2px);
}

.fz-next:active {
  box-shadow: 0 0 0 var(--lilac-deep);
  transform: translateY(4px);
}

.fz-next.is-family {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 4px 0 #0d142b;
}

.fz-next.is-family:hover {
  background: #101936;
  box-shadow: 0 2px 0 #0d142b;
}

.fz-next:focus-visible,
.fz-icon-btn:focus-visible,
.fz-chip:focus-visible,
.fz-person:focus-visible,
.fz-open-phone:focus-visible,
.fz-textbtn:focus-visible,
.fz-hint__more:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
}

.fz-icon-btn {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

.fz-icon-btn svg {
  width: 20px;
  height: 20px;
}

.fz-icon-btn:hover {
  background: var(--lavender);
}

.fz-icon-btn.is-disabled {
  border-color: rgba(24, 33, 61, .3);
  background: transparent;
  color: rgba(24, 33, 61, .38);
  cursor: default;
}


.fz-play .fz-ic-pause {
  display: none;
}

.is-playing .fz-play {
  background: var(--sun);
}

.is-playing .fz-play .fz-ic-play {
  display: none;
}

.is-playing .fz-play .fz-ic-pause {
  display: block;
}

/* Fortschritt bis zum nächsten Moment als Ring um den Knopf. */
.fz-play__bar {
  position: absolute;
  inset: -7px;
  display: none;
  border-radius: 50%;
  background: conic-gradient(var(--lilac-deep) calc(var(--fz-play, 0) * 360deg), rgba(24, 33, 61, .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  pointer-events: none;
}

.is-playing .fz-play__bar {
  display: block;
}

.is-held .fz-play__bar {
  opacity: .4;
}

.fz-open-phone {
  position: relative;
  display: none;
  grid-area: phone;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding: .45rem 1rem .45rem .8rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: 750 var(--text-15)/1.15 "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.fz-open-phone > svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.fz-open-phone__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.fz-open-phone__sub {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: var(--text-12);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fz-open-phone.is-new {
  background: var(--fz-accent-soft);
  box-shadow: 3px 3px 0 var(--ink);
}

.fz-open-phone__new {
  margin-left: auto;
  padding: .28rem .55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.fz-more {
  display: none;
}

/* ---------- iPhone ---------- */

.fz-phone {
  width: 100%;
}

.fz-phone .pd-root {
  --pd-width: var(--fz-pd-width, 300px);
  --pd-dev-width: var(--fz-pd-dev-width, calc(var(--fz-pd-width, 300px) * 1.4));
}

/* Tablet (Lina, Elias): Gerätename mit Tablet-Symbol. */
.fz-section .is-tablet .fz-device__label::before {
  width: 15px;
  height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 18'%3E%3Crect x='1.2' y='1.2' width='12.6' height='15.6' rx='1.8' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='7.5' cy='4' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 18'%3E%3Crect x='1.2' y='1.2' width='12.6' height='15.6' rx='1.8' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='7.5' cy='4' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fz-phone__static {
  display: block;
  width: var(--fz-pd-width, 300px);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border: 9px solid #121320;
  border-radius: var(--radius-device);
  box-shadow: var(--shadow-phone);
}

.has-phone .fz-phone picture {
  display: none;
}

.fz-phone-box.is-pop {
  animation: fz-bump .5s cubic-bezier(.3, 1.4, .5, 1);
}

@keyframes fz-bump {
  0% { transform: none; }
  35% { transform: translateY(-8px) rotate(-1deg); }
  100% { transform: none; }
}

.fz-section .fz-device__label::before {
  width: 14px;
  height: 16px;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Crect x='1.2' y='1.2' width='11.6' height='13.6' rx='2.4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 12h4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Crect x='1.2' y='1.2' width='11.6' height='13.6' rx='2.4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 12h4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fz-section .fz-device__label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: .38rem .9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--fz-accent);
  color: var(--ink);
  font-size: var(--text-13);
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.fz-hint {
  position: relative;
  padding: .85rem 1rem .95rem;
  border: 2px solid var(--ink);
  border-radius: 18px 18px 6px 18px;
  background: #fff3cc;
  box-shadow: 4px 4px 0 var(--ink);
}

.fz-section .fz-hint__kicker {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .35rem;
  color: var(--ink);
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fz-hint__kicker svg {
  width: 18px;
  height: 18px;
}

.fz-section .fz-hint__text {
  color: var(--ink);
  font-size: var(--text-14);
  line-height: 1.45;
}

.fz-section .fz-hint__note {
  margin-top: .55rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(24, 33, 61, .2);
  color: var(--ink);
  font-size: var(--text-13);
  font-weight: 750;
}

.fz-hint__more {
  display: none;
}

.fz-section .fz-device__caption {
  max-width: 260px;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-12);
  line-height: 1.4;
  text-align: center;
}

.fz-sheet__head {
  display: none;
}

/* ---------- Unter der Bühne ---------- */

.fz-below {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 2rem;
  margin-top: 1.1rem;
}

.fz-cast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
}

.fz-section .fz-cast__label {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-14);
  font-weight: 750;
}

.fz-cast__label span {
  color: var(--ink-soft);
  font-weight: 500;
}

.fz-cast__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fz-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  min-height: 44px;
  padding: .3rem .9rem .3rem .3rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.fz-chip .fz-avatar {
  width: 30px;
  height: 30px;
  font-size: .8rem;
}

.fz-chip__name {
  font-size: var(--text-14);
  font-weight: 750;
  line-height: 1.1;
}

.fz-chip__role {
  color: var(--ink-soft);
  font-size: var(--text-13);
  line-height: 1.1;
}

.fz-chip:hover,
.fz-chip[aria-expanded="true"] {
  background: var(--fz-accent-soft);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.fz-section .fz-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  max-width: 44ch;
  margin: 0 0 0 auto;
  color: var(--ink-soft);
  font-size: var(--text-13);
  line-height: 1.45;
}

.fz-disclaimer svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: .05rem;
}

/* ---------- Tipps am Ende ---------- */

.fz-tips {
  flex: 1 1 100%;
  margin-top: clamp(1.8rem, 4vw, 3rem);
  padding-top: clamp(1.8rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
  animation: fz-rise .5s ease;
}

.fz-tips:focus {
  outline: none;
}

.fz-tips:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 6px;
}

.fz-section .fz-tips__title {
  max-width: 24ch;
  margin: 0 0 1.6rem;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.08;
}

.fz-tips__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fz-tip {
  --fz-tip: var(--fz-accent);
  min-width: 0;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 30px 10px 30px 10px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--fz-tip);
}

.fz-tip--2 { --fz-tip: var(--mint); }
.fz-tip--3 { --fz-tip: var(--lavender); }

.fz-tip__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 700 var(--text-15)/1 "Poppins", "Inter", sans-serif;
}

.fz-section .fz-tip__title {
  margin: 1rem 0 .6rem;
  color: var(--ink);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: var(--text-20);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.22;
}

.fz-section .fz-tip__text {
  font-size: var(--text-15);
  line-height: 1.6;
}

.fz-tips__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.2rem;
  margin-top: 2rem;
}

.fz-section .fz-tips__note {
  color: var(--ink-soft);
  font-size: var(--text-14);
  font-weight: 650;
}

.fz-tips__next {
  gap: .45rem;
  margin-left: auto;
}

.fz-section .fz-tips__kicker {
  margin: 0 0 .8rem;
}

/* ---------- Statische Fassung (ohne JS) ---------- */

.fz-lib {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.fz-lib__item > * {
  max-width: 76ch;
}

.fz-lib__item {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 28px 10px 28px 10px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--mint);
}

.fz-lib__item--kuechentisch { box-shadow: 8px 8px 0 var(--peach); }
.fz-lib__item--solo { box-shadow: 8px 8px 0 var(--lavender); }

.fz-section .fz-lib__meta {
  margin-bottom: .4rem;
  color: var(--lilac-deep);
  font-size: var(--text-13);
  font-weight: 800;
}

.fz-section .fz-lib__headline {
  margin: .5rem 0 .6rem;
  color: var(--ink);
  font-size: var(--text-17);
  font-weight: 700;
}

.fz-lib__quote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--coral);
}

.fz-section .fz-lib__quote p {
  color: var(--ink);
  font-weight: 600;
}

.fz-lib__quote footer,
.fz-section .fz-lib__beleg {
  color: var(--ink-soft);
  font-size: var(--text-13);
}

.fz-section .fz-lib__result {
  margin-top: .8rem;
}

.fz-lib h4 {
  margin: 1.2rem 0 .5rem;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: var(--text-17);
}

.fz-lib__tips {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding-left: 1.3rem;
  color: var(--ink-soft);
}

.fz-lib__tips strong {
  color: var(--ink);
}

/* ============================================================
   Breit: Player und iPhone schweben über der Bühne
   ============================================================ */

@media (min-width: 1051px) {
  .fz-player {
    position: absolute;
  }

  /* Beat: kompakte Steuerleiste unten mittig im freien Teil. */
  .is-beat .fz-player {
    bottom: 1.2rem;
    left: calc((100% - var(--fz-safe-right)) / 2);
    width: min(540px, calc(100% - var(--fz-safe-right) - 2 * var(--fz-gutter)));
    padding: .85rem .9rem .9rem 1.1rem;
    border: 2px solid var(--ink);
    border-radius: 22px 8px 22px 8px;
    background: rgba(255, 253, 248, .96);
    box-shadow: 5px 5px 0 var(--ink), 0 18px 40px rgba(24, 33, 61, .14);
    transform: translateX(-50%);
  }

  .is-beat .fz-controls {
    gap: .75rem 1rem;
  }

  /* Intro und Ende: große Karte links über der Bühne. */
  .is-intro .fz-player,
  .is-end .fz-player {
    top: 50%;
    left: var(--fz-gutter);
    width: min(450px, 37%);
    max-height: calc(100% - 2.4rem);
    overflow-y: auto;
    padding: clamp(1.4rem, 2vw, 1.9rem) clamp(1.4rem, 2.2vw, 2rem);
    border: 2px solid var(--ink);
    border-radius: 32px 12px 32px 12px;
    background: var(--paper);
    box-shadow: 10px 10px 0 var(--fz-accent);
    transform: translateY(-50%);
    scrollbar-width: thin;
  }

  /* Ohne 3D steht der Chat links, die Leiste darunter bündig. */
  .is-chat.is-beat .fz-player {
    left: var(--fz-gutter);
    transform: none;
  }

  .is-end .fz-controls {
    margin-top: 1.3rem;
    padding-top: 1.1rem;
    border-top: 2px dashed rgba(24, 33, 61, .18);
  }

  .is-intro .fz-hud,
  .is-end .fz-hud {
    display: none;
  }

  .fz-line {
    display: none;
  }

  .fz-open-phone {
    display: none !important;
  }

  .fz-device {
    position: absolute;
    z-index: 8;
    top: 50%;
    right: var(--fz-gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    transform: translateY(-50%);
  }

  .fz-hint {
    position: absolute;
    right: calc(100% + 24px);
    bottom: 18%;
    width: 250px;
  }

  .fz-hint::after {
    position: absolute;
    right: -11px;
    bottom: 26px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ink);
    border-width: 2px 2px 0 0;
    background: #fff3cc;
    content: "";
    transform: rotate(45deg);
  }
}

/* Etwas niedrigere Fenster: Karte kompakter, damit nichts scrollt. */
@media (min-width: 1051px) and (max-height: 860px) {
  .fz-section .fz-intro__text,
  .fz-section .fz-end__text {
    font-size: var(--text-14);
    line-height: 1.55;
  }

  .fz-quote {
    margin-top: .8rem;
    padding-block: .7rem;
  }

  .fz-section .fz-quote p {
    font-size: var(--text-15);
  }

  .is-intro .fz-player,
  .is-end .fz-player {
    padding-block: 1.25rem;
  }

  .fz-actions {
    margin-top: 1rem;
  }
}

/* ============================================================
   Schmal: Erzählkarte unter der Bühne, iPhone im Bottom Sheet
   ============================================================ */

@media (max-width: 1050px) {
  .fz-section {
    --fz-gutter: 1.25rem;
  }

  .fz-tabs {
    display: flex;
    gap: .8rem;
    margin-inline: calc(var(--fz-gutter) * -1);
    padding: .25rem var(--fz-gutter) 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--fz-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fz-tabs::-webkit-scrollbar {
    display: none;
  }

  .fz-tabs__item {
    flex: 0 0 min(300px, 78%);
    scroll-snap-align: start;
  }

  .fz-tab {
    padding: .85rem 1rem .95rem;
  }

  .fz-tab__icon {
    width: 36px;
    height: 36px;
  }

  .fz-tab__icon svg {
    width: 19px;
    height: 19px;
  }

  .fz-tab__title {
    margin-top: .3rem;
    font-size: 1.1rem;
  }

  .fz-tab__family {
    font-size: var(--text-13);
  }

  .fz-tab__hook {
    padding-top: .6rem;
    font-size: var(--text-14);
  }

  .fz-view {
    height: min(56vh, 620px);
    height: min(56svh, 620px);
    min-height: 360px;
  }

  .fz-section .fz-bubble,
  .fz-section .fz-subtitle {
    display: none;
  }

  .fz-hud {
    top: .7rem;
    left: .7rem;
    display: flex;
    gap: .45rem;
    max-width: calc(100% - 1.4rem);
    padding: .25rem .75rem .25rem .25rem;
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--fz-accent);
  }

  .fz-hud__icon {
    width: 28px;
    height: 28px;
  }

  .fz-hud__icon svg {
    width: 16px;
    height: 16px;
  }

  .fz-hud__time {
    flex: 0 0 auto;
    font-size: var(--text-14);
  }

  .fz-hud__place {
    min-width: 0;
    font-size: var(--text-12);
  }

  .fz-hud__place::before {
    content: "· ";
  }

  .fz-chat {
    top: 3.3rem;
    right: .75rem;
    bottom: .5rem;
    left: .75rem;
  }

  .is-beat .fz-chat {
    top: 3.3rem;
  }

  .is-chat .fz-line {
    display: none;
  }

  .is-chat.is-beat .fz-controls {
    padding-top: 0;
    border-top: 0;
  }

  .fz-section .fz-chat__note {
    display: none;
  }

  .fz-player {
    margin: 1rem var(--fz-gutter) 0;
    padding: 1.05rem 1rem 1.1rem;
    border: 2px solid var(--ink);
    border-radius: 24px 8px 24px 8px;
    background: var(--paper);
    box-shadow: 6px 6px 0 var(--fz-accent);
  }

  .fz-line {
    margin-bottom: 1rem;
  }

  /* Platz für den längsten Satz reservieren, damit die Knöpfe beim
     Weiterblättern nicht springen. */
  .fz-section .fz-line__text {
    min-height: calc(2 * 1.5em);
  }

  .is-beat .fz-controls {
    padding-top: .9rem;
    border-top: 2px dashed rgba(24, 33, 61, .15);
  }

  .is-end .fz-controls {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 2px dashed rgba(24, 33, 61, .15);
  }

  .fz-open-phone {
    display: flex;
  }

  .fz-next {
    min-height: 52px;
    font-size: var(--text-17);
  }

  .fz-section .fz-intro__title,
  .fz-section .fz-end__title {
    font-size: clamp(1.4rem, 5.6vw, 1.8rem);
  }

  .fz-actions .landing-button {
    flex: 1 1 auto;
  }

  .fz-section .fz-intro:not(.is-open) .fz-intro__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .fz-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--lilac-deep);
    font: 750 var(--text-14)/1.2 "Inter", system-ui, sans-serif;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
  }

  .fz-more:focus-visible {
    outline: 3px solid var(--lilac-deep);
    outline-offset: 3px;
  }

  /* Bottom Sheet */
  .fz-device {
    position: fixed;
    z-index: 120;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 84vh;
    height: 84dvh;
    max-height: 920px;
    padding: 0 .75rem max(.4rem, env(safe-area-inset-bottom));
    border-top: 2px solid var(--ink);
    border-radius: 24px 24px 0 0;
    background: var(--paper);
    box-shadow: 0 -12px 40px rgba(24, 33, 61, .22);
    overscroll-behavior: contain;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
  }

  .fz-device.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  }

  .fz-device.is-dragging {
    transition: none;
  }

  .fz-sheet__head {
    position: relative;
    display: grid;
    grid-row: 1;
    gap: .25rem;
    padding: .8rem 0 .5rem;
    border-bottom: 1px solid var(--brand-line);
    touch-action: none;
  }

  .fz-sheet__grip {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 999px;
    background: var(--brand-line);
  }

  .fz-sheet__row {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
  }

  .fz-section .fz-sheet__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: var(--text-16);
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fz-section .fz-sheet__title:focus {
    outline: none;
  }

  .fz-section .fz-sheet__title:focus-visible {
    outline: 3px solid var(--lilac-deep);
    outline-offset: 2px;
  }

  .fz-next--small {
    flex: 0 0 auto;
    min-height: 44px;
    padding: .4rem .7rem .4rem .9rem;
    font-size: var(--text-14);
  }

  .fz-section .fz-sheet__line {
    display: -webkit-box;
    min-height: calc(2 * 1.35em);
    overflow: hidden;
    color: var(--ink);
    font-size: var(--text-14);
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .fz-section .fz-sheet__line:empty {
    display: none;
  }

  .fz-sheet__line strong {
    font-weight: 750;
  }

  .fz-device__label,
  .fz-device__caption {
    display: none !important;
  }

  .fz-hint {
    display: grid;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: .55rem 0 .35rem;
    padding: .45rem .75rem .55rem;
    border-radius: 14px;
    box-shadow: none;
  }

  .fz-section .fz-hint__kicker {
    margin: 0;
  }

  .fz-hint__text,
  .fz-hint__note {
    grid-column: 1 / -1;
  }

  .fz-section .fz-hint__text {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--text-13);
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .fz-hint.is-open .fz-hint__text {
    display: block;
  }

  .fz-hint:not(.is-open) .fz-hint__note {
    display: none;
  }

  .fz-hint__more {
    display: inline-flex;
    grid-row: 1;
    grid-column: 2;
    align-items: center;
    min-height: 44px;
    margin: -.55rem -.4rem -.45rem 0;
    padding: 0 .4rem;
    border: 0;
    background: none;
    color: var(--lilac-deep);
    font: 750 var(--text-13)/1 "Inter", system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  .fz-phone-box {
    display: flex;
    grid-row: 3;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-top: .2rem;
    overflow: hidden;
  }

  .fz-device .pd-phone {
    padding: calc(var(--pd-width) * .02);
    box-shadow:
      inset 0 0 0 calc(var(--pd-width) * .008) #0b0c12,
      0 6px 18px rgba(24, 33, 61, .25);
  }

  .fz-device .pd-btn-side {
    display: none;
  }

  .fz-device .pd-phone--tablet {
    padding: calc(var(--pd-dev-width) * .03);
    box-shadow:
      inset 0 0 0 calc(var(--pd-dev-width) * .005) #0b0c12,
      0 6px 18px rgba(24, 33, 61, .25);
  }

  .fz-device .pd-page {
    overscroll-behavior: contain;
  }

  .fz-below {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.4rem;
  }

  .fz-cast {
    width: 100%;
  }

  .fz-cast__list {
    flex-wrap: nowrap;
    width: calc(100% + 2 * var(--fz-gutter));
    margin-inline: calc(var(--fz-gutter) * -1);
    padding: .1rem var(--fz-gutter) .5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .fz-cast__list::-webkit-scrollbar {
    display: none;
  }

  .fz-chip {
    flex: 0 0 auto;
  }

  .fz-section .fz-disclaimer {
    max-width: none;
    margin: 0;
  }

  .fz-tips__list {
    grid-template-columns: 1fr;
  }

  .fz-tips__next {
    margin-left: 0;
  }

  .fz-profile {
    width: auto;
  }
}

/* Handy: Bühne etwa quadratisch, darunter die Erzählkarte. */
@media (max-width: 760px) {
  .fz-panel {
    margin-top: .6rem;
  }

  .fz-view {
    height: auto;
    min-height: 0;
    max-height: 58vh;
    max-height: 58svh;
    aspect-ratio: 1 / 1;
  }

  .fz-backdrop,
  .fz-scene canvas {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%);
  }

  .fz-player {
    margin-top: .4rem;
  }

  .fz-section .fz-line__text {
    min-height: calc(4 * 1.5em);
  }

  .fz-tip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: .85rem;
    padding: 1.2rem 1.15rem 1.3rem;
  }

  .fz-tip__num {
    width: 38px;
    height: 38px;
  }

  .fz-section .fz-tip__title {
    margin: 0;
    font-size: var(--text-17);
  }

  .fz-section .fz-tip__text {
    grid-column: 1 / -1;
    margin-top: .75rem;
  }
}

@media (max-width: 360px) {
  .fz-section {
    --fz-gutter: .75rem;
  }

  .fz-player {
    padding-inline: .8rem;
  }

  .fz-buttons {
    gap: .4rem;
  }
}

@media (max-width: 1050px) and (prefers-reduced-motion: reduce) {
  .fz-device,
  .fz-device.is-open {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fz-bubble.is-pop > *,
  .fz-subtitle.is-pop,
  .fz-line.is-pop > *,
  .fz-player.is-swap,
  .fz-phone-box.is-pop,
  .fz-tips {
    animation: none;
  }

  .fz-tab,
  .fz-chip,
  .fz-next,
  .fz-icon-btn,
  .fz-phase__fill,
  .fz-backdrop {
    transition: none;
  }

  .is-playing .fz-play__bar {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .fz-tab:hover:not([aria-selected="true"]) {
    box-shadow: none;
    transform: none;
  }

  .fz-next:hover {
    background: var(--lilac);
    box-shadow: 0 4px 0 var(--lilac-deep);
    transform: none;
  }

  .fz-next.is-family:hover {
    background: var(--ink);
    box-shadow: 0 4px 0 #0d142b;
  }
}

@media (prefers-contrast: more) {
  .fz-tab,
  .fz-player,
  .fz-bubble,
  .fz-tip {
    border-width: 3px;
  }
}

/* Screenreader-Texte nie in Versalien: sonst buchstabieren manche
   Sprachausgaben („NEUER BILDSCHIRM“). */
.fz-section .visually-hidden {
  letter-spacing: normal;
  text-transform: none;
}
