/* =============================================================================
   VETI — Chat-Darstellung des Onboardings.

   Nachgebaut nach dem echten Chat im Projekt
   (Frontend/src/features/coach/chat/):

     · Ein Strom, keine Bildschirme. Alles steht untereinander und bleibt
       lesbar — man kann hochscrollen und nachlesen, was VETI gesagt hat.
     · VETI links auf Glas, Ecke unten links eckig, Zipfel am Fuß.
     · Nutzer rechts im Marken-Verlauf, Ecke unten rechts eckig, Text weiß.
     · Auswahlkarten stehen rechtsbündig unter der Frage — also dort, wo der
       Nutzer antwortet, nicht dort, wo VETI spricht.
     · Schreibmaschine für VETI, Denk-Indikator davor.
     · Eingabeleiste fixiert am Fuß, Glas mit weichem Verlauf nach oben.

   Farben und Abstände kommen aus veti.css (Grundlage: Dashboard-Variante v2).
   ========================================================================== */

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

.chat {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.chat__strom {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  /* Platz für die fixierte Eingabeleiste. */
  padding: 84px 0 168px;
}

/* --- Blasen --------------------------------------------------------------- */

.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg--veti { align-self: flex-start; }
.msg--user { align-self: flex-end; align-items: flex-end; }
.msg--voll { max-width: 100%; width: 100%; align-self: stretch; }

/* Fließtext im Gespräch läuft in Lexend. */
.blase {
  font-family: var(--v-lesefont);
  position: relative;
  padding: 13px var(--sp-4);
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.6;
}

/* VETI: Glas, Ecke unten links eckig */
.blase--veti {
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  color: var(--v-body);
}
.blase--veti::after {
  content: '';
  position: absolute; bottom: -1px; left: 8px;
  width: 12px; height: 10px;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 0 0 12px 12px;
  border-bottom-left-radius: 0;
}
.blase--veti strong { color: var(--v-ink); font-weight: 600; }
.blase--veti em { font-style: normal; color: var(--v-accent); font-weight: 600; }

/* Nutzer: Marken-Verlauf, Ecke unten rechts eckig */
.blase--user {
  border-bottom-right-radius: 6px;
  background: var(--v-brand);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(86, 63, 192, .22);
}
.blase--user::after {
  content: '';
  position: absolute; bottom: -1px; right: 8px;
  width: 12px; height: 10px;
  background: var(--c-brand-purple-500);
  border-radius: 0 0 12px 12px;
  border-bottom-right-radius: 0;
}

/* Absender-Zeile über der ersten Blase einer Folge */
.msg__wer {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--v-muted);
}
.msg__avatar {
  width: 20px; height: 20px;
  border-radius: var(--r-pill);
  background: var(--v-brand);
  display: grid; place-items: center;
  color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0;
}

/* --- Denk-Indikator ------------------------------------------------------- */
/* Im Projekt wechseln Phrasen wie „… denkt nach …". Übernommen. */

.denkt { color: var(--v-muted); font-style: italic; }
.denkt__punkt {
  display: inline-block; width: 5px; height: 5px;
  margin-left: 2px;
  border-radius: var(--r-pill);
  background: var(--v-muted);
  animation: denkPuls 1.1s ease-in-out infinite;
}
.denkt__punkt:nth-child(2) { animation-delay: .18s; }
.denkt__punkt:nth-child(3) { animation-delay: .36s; }
@keyframes denkPuls { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* --- Auswahlkarten -------------------------------------------------------- */
/* Die Karte selbst. Ihren Behälter stellt die Fragebogen-Box (.bogen__opts). */

@keyframes aufblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.opt-karte {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px var(--sp-4);
  border: 1.5px solid var(--v-rand);
  border-radius: 14px;
  /* Deckend weiß, nicht durchscheinend: die Karte lag vorher mit 82 % Weiß
     blasser da als das Panel (94 %) und sank darin ein. Damit entfällt auch
     der backdrop-filter — hinter einer deckenden Fläche blurrt er nichts. */
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--v-ink);
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
}
.opt-karte:hover { border-color: var(--v-deep); transform: translateY(-1px); }
.opt-karte__text { min-width: 0; font-family: var(--v-lesefont); }

/* Eine Marke steht nur neben Mehrfachnennungen — sie sagt, dass mehr als eine
   Karte gehen. Bei Einfachauswahl ist sie überflüssig und irreführend. */
.opt-karte[role="checkbox"] { grid-template-columns: 1fr auto; }
.opt-karte__haken {
  width: 20px; height: 20px; flex: none;
  border: 1.5px solid var(--v-hair); border-radius: var(--r-pill);
}
.opt-karte[aria-checked="true"] {
  border-color: var(--v-accent);
  box-shadow: inset 0 0 0 1px var(--v-accent);
  background: var(--v-accent-soft);
}
.opt-karte[aria-checked="true"] .opt-karte__haken {
  border-color: var(--v-accent);
  background: var(--v-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.opt-karte:disabled { opacity: .45; pointer-events: none; }


/* --- Eingebettete Bausteine ----------------------------------------------- */
/* Video, Siegel, Auswertung: volle Breite im Strom, nicht in einer Blase. */

.einbau {
  align-self: stretch;
  width: 100%;
  padding: var(--sp-5);
  border-radius: var(--r-glass);
  border: 1px solid var(--v-hair);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  animation: aufblenden .34s cubic-bezier(.16, 1, .3, 1) both;
}
.einbau__kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-3);
}
.einbau__titel { margin: 0; font-size: 15px; font-weight: 600; color: var(--v-ink); }

/* --- Skala im Chat -------------------------------------------------------- */

.chat .scale { margin-top: 0; }

/* --- Eingabeleiste -------------------------------------------------------- */

.leiste {
  position: fixed;
  left: 50%; bottom: 0;
  z-index: 50;
  width: 100%;
  transform: translateX(-50%);
  padding: var(--sp-4) 0 var(--sp-4);
  /* Nach oben ausblenden, damit der Strom darunter weich verschwindet. */
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.55) 38%, rgba(255,255,255,.8));
  backdrop-filter: saturate(180%) blur(20px);
  transition: opacity 220ms ease;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 32%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 32%, black 100%);
}
.leiste__inner {
  width: 100%; max-width: 920px;
  margin: 0 auto; padding: 0 var(--sp-4);
}
.leiste__feld {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px 6px 6px var(--sp-4);
  border: 1px solid var(--v-hair);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 22px rgba(28, 28, 30, .08);
}
.leiste__feld input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 14.5px; color: var(--v-ink);
}
.leiste__feld input::placeholder { color: var(--v-muted); }
.leiste__senden {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill);
  background: var(--v-deep); color: #fff;
  cursor: pointer;
  transition: background 150ms, opacity 150ms;
}
.leiste__senden:hover { background: var(--v-deep-hover); }
.leiste__senden:disabled { opacity: .3; pointer-events: none; }
/* Sprachnachricht-Knopf (Finding 3): stiller Kreis neben „Senden“; im
   Aufnahme-Zustand rot mit sanftem Puls. */
.leiste__mikro {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill);
  background: rgba(28, 28, 30, .06); color: var(--v-ink);
  cursor: pointer;
  transition: background 150ms, opacity 150ms, color 150ms;
}
.leiste__mikro:hover { background: rgba(28, 28, 30, .12); }
.leiste__mikro:disabled { opacity: .3; pointer-events: none; }
.leiste__mikro.is-recording {
  background: #e5484d; color: #fff;
  animation: mikro-puls 1.2s ease-in-out infinite;
}
@keyframes mikro-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); }
  50%      { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); }
}
.leiste__hinweis {
  margin: 8px 0 0; text-align: center;
  font-size: 11.5px; color: var(--v-muted);
}

/* --- Kopfzeile im Chat ---------------------------------------------------- */

/* Fixiert, nicht sticky: die Bühne (.stage) hat overflow:hidden, damit greift
   sticky nicht. */
.chathead {
  position: fixed; top: 0; left: 50%; z-index: 40;
  width: 100%; max-width: 920px;
  transform: translateX(-50%);
  padding-inline: var(--sp-4);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  background: linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,.72) 70%, rgba(255,255,255,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chathead__wer { display: flex; align-items: center; gap: 10px; }
.chathead__avatar {
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--v-brand);
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.chathead__name { font-size: 14px; font-weight: 600; color: var(--v-ink); }
.chathead__status { font-size: 11.5px; color: var(--v-accent); }
.chathead__rechts { display: flex; align-items: center; gap: var(--sp-2); }

/* Dashboard-Knopf oben rechts — erscheint, sobald das Onboarding durch ist. */
.chathead__dash {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--v-brand);
  color: #fff; font-size: 12.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16,24,40,.12);
}
.chathead__dash[hidden] { display: none; }
.chathead__dash:hover { filter: brightness(1.05); }
.chathead__dash:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }

/* Oben-rechts-Cluster: Dashboard links, Feedback (immer sichtbar) rechts. */
.chathead__rechts { margin-left: auto; }
.chathead__rechts .chathead__dash { margin-left: 0; }

/* Feedback-Knopf — dezent (Umriss), immer sichtbar, rechts vom Dashboard. */
.chathead__feedback {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--v-rand);
  background: rgba(255, 255, 255, .7);
  color: var(--v-ink); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.chathead__feedback:hover { border-color: var(--v-deep); background: #fff; }
.chathead__feedback:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }

/* --- Feedback-Dialog (INU-197) ------------------------------------------- */
.fb-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: var(--sp-4);
  background: rgba(16, 24, 40, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.fb-panel {
  width: 100%; max-width: 420px;
  box-sizing: border-box;
  padding: var(--sp-5);
  border-radius: var(--r-glass);
  border: 1px solid var(--v-hair);
  background: #fff;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .22);
}
.fb-panel__titel { margin: 0 0 var(--sp-3); font-size: 16px; font-weight: 600; color: var(--v-ink); }
.fb-panel__text {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--v-hair); border-radius: 12px;
  font: inherit; font-size: 14.5px; color: var(--v-ink);
  background: var(--c-neutral-100, #f5f5f7);
}
.fb-panel__text:focus { outline: none; border-color: var(--v-accent); background: #fff; }
.fb-panel__text::placeholder { color: var(--v-muted); }
.fb-panel__rating { display: flex; gap: 4px; margin-top: var(--sp-3); }
.fb-stern {
  width: 34px; height: 34px;
  border: 0; border-radius: var(--r-pill); background: transparent;
  font-size: 22px; line-height: 1; color: var(--c-neutral-300, #cfcfd4);
  cursor: pointer; transition: color 120ms ease, transform 120ms ease;
}
.fb-stern:hover { transform: translateY(-1px); }
.fb-stern--an { color: var(--v-accent); }
.fb-stern:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.fb-panel__fehler { margin: var(--sp-2) 0 0; font-size: 12.5px; color: #c0392b; }
.fb-panel__aktionen { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-4); }
.fb-btn {
  padding: 8px 16px; border-radius: var(--r-pill);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.fb-btn--sek { border: 1.5px solid var(--v-rand); background: #fff; color: var(--v-ink); }
.fb-btn--sek:hover { border-color: var(--v-deep); }
.fb-btn--prim { border: 0; background: var(--v-deep); color: #fff; }
.fb-btn--prim:hover { background: var(--v-deep-hover); }
.fb-btn--prim:disabled { opacity: .35; pointer-events: none; }
.fb-btn:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.fb-panel__danke { margin: 0; padding: var(--sp-3) 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--v-ink); }

/* Auf schmalen Geräten (≈390px iPhone) füllt der Dialog die Breite sauber. */
@media (max-width: 420px) {
  .chathead__feedback, .chathead__dash { padding: 7px 11px; font-size: 12px; }
  .fb-panel { padding: var(--sp-4); }
}

/* Fortschritt als dünner Streifen unter der Kopfzeile */
.chathead__bar {
  position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: 6px;
  height: 3px; border-radius: var(--r-pill);
  background: var(--c-neutral-100);
  overflow: hidden;
}
.chathead__fill {
  display: block; height: 100%;
  border-radius: var(--r-pill);
  background: var(--v-brand);
  transition: width 500ms cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 599px) {
  .msg { max-width: 88%; }
  .blase { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .einbau { animation: none; }
}

/* Video im Strom: 16:9 über die volle Chatbreite wären rund 500 px Höhe und
   damit der halbe Bildschirm. Schmaler, damit das Gespräch weiterläuft. */
.einbau .video { max-width: 480px; margin-inline: auto; }
.einbau .video__bar { max-width: 480px; margin-inline: auto; }

/* --- Säulenwahl im Chat ---------------------------------------------------
   Die Karten aus dem Wizard, aber im Strom: drei nebeneinander brauchen die
   volle Breite, nicht die schmale Antwortspalte rechts. */
.saeulenwahl { align-self: stretch; width: 100%; max-width: 100%; }
.saeulenwahl .pillars { animation: aufblenden .34s cubic-bezier(.16, 1, .3, 1) both; }
/* Deckend, nicht durchscheinend: mit 86 % Weiß wusch die Karte über dem
   Seitenhintergrund aus und der Rand verlor mit. */
.saeulenwahl .pillar { background: #fff; }
/* Die gewählte Karte behält ihre Tönung — ohne Haken trägt sie die Auswahl
   allein über Rand, Ring und Fläche. */
.saeulenwahl .pillar[aria-pressed="true"] { background: var(--v-accent-soft); }
.saeulenwahl .pillar:disabled { pointer-events: none; }
.saeulenwahl .pillar:disabled:not([aria-pressed="true"]) { opacity: .45; }

/* --- Handlungen im Strom --------------------------------------------------
   „Weiter", „Verstanden", „Fragebogen starten": das sind Handlungen, keine
   Antworten. Sie stehen deshalb mittig und als echte Knöpfe — die rechte
   Spalte bleibt dem vorbehalten, was der Nutzer gesagt hat. */
.aktion {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin: var(--sp-2) 0;
  animation: aufblenden .3s cubic-bezier(.16, 1, .3, 1) both;
}
@media (prefers-reduced-motion: reduce) { .aktion { animation: none; } }

/* --- Fragebogen als feststehende Box --------------------------------------
   Ein Fragebogen ist kein Gespräch. Vierundzwanzig Fragen als vierundzwanzig
   Nachrichtenpaare machen den Verlauf unlesbar und nehmen dem Bogen seinen
   Zusammenhang — man sieht nicht, wo man steht. Er liegt deshalb als feste
   Box über dem Chat: eine Frage darin, eigener Zähler und Balken, Zurück
   möglich. Der Chat bleibt dahinter sichtbar, aber gedämpft — er wartet.   */

.bogen {
  position: fixed;
  inset: 0;
  z-index: 60;                 /* über Kopfzeile (40) und Eingabeleiste (50) */
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}
.bogen__scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 30, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bogenScrim 260ms ease both;
}
.bogen__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100svh - var(--sp-6)));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: 0 24px 64px rgba(28, 28, 30, 0.24);
  overflow: hidden;
  animation: bogenAuf 320ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes bogenScrim { from { opacity: 0; } to { opacity: 1; } }
@keyframes bogenAuf {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bogen__scrim, .bogen__panel { animation: none; }
}

.bogen__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
}
.bogen__zaehler {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--v-muted);
}
.bogen__marke {
  width: 26px; height: 26px; flex: none;
  border-radius: var(--r-pill);
  background: var(--v-brand);
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700;
}

.bogen__bar {
  height: 3px;
  margin: 0 var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--c-neutral-100);
  overflow: hidden;
}
.bogen__fill {
  display: block; height: 100%;
  border-radius: var(--r-pill);
  background: var(--v-brand);
  transition: width 420ms cubic-bezier(.16, 1, .3, 1);
}

/* Nur der Inhalt rollt — Kopf, Balken und Fuß stehen fest. */
.bogen__leib {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--sp-5);
}
.bogen__frage {
  font-family: var(--v-lesefont);
  margin: 0 0 var(--sp-4);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--v-ink);
}
/* Umblättern zwischen zwei Fragen: raus zügig, rein weich — dieselbe Kurve
   wie überall im Projekt. Bei reduzierter Bewegung schaltet chat.js die
   Bewegung ganz ab und tauscht direkt. */
.bogen__leib--raus-l { animation: bogenRausL 180ms cubic-bezier(.4, 0, 1, 1) both; }
.bogen__leib--raus-r { animation: bogenRausR 180ms cubic-bezier(.4, 0, 1, 1) both; }
.bogen__leib--rein-r { animation: bogenReinR 240ms cubic-bezier(.16, 1, .3, 1) both; }
.bogen__leib--rein-l { animation: bogenReinL 240ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes bogenRausL { to { opacity: 0; transform: translateX(-18px); } }
@keyframes bogenRausR { to { opacity: 0; transform: translateX(18px); } }
@keyframes bogenReinR { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes bogenReinL { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }

/* Der Klick rastet sichtbar ein, bevor umgeblättert wird. */
.opt-karte--rastet { transform: scale(.985); }

.bogen__opts {
  display: grid;
  gap: var(--sp-2);
}
@media (min-width: 600px) {
  .bogen__opts--breit { grid-template-columns: 1fr 1fr; }
  .bogen__opts--drei  { grid-template-columns: 1fr 1fr; }
}
.bogen__weiter {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-4);
}

.bogen__fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5) var(--sp-4);
  border-top: 1px solid var(--v-hair-2);
}
.bogen__fuss .bogen__hinweis { text-align: right; }
.bogen__zurueck:disabled { opacity: .35; pointer-events: none; }

/* Die Skala steht in der Box breiter als im Strom. */
.bogen__leib .scale { margin: var(--sp-5) 0 var(--sp-3); }

/* Hinter der Box wird weder gerollt noch getippt — der Chat wartet. */
body.bogen-offen { overflow: hidden; }
body.bogen-offen .leiste { opacity: 0; pointer-events: none; }

@media (max-width: 599px) {
  .bogen { padding: 0; place-items: end stretch; }
  .bogen__panel {
    width: 100%;
    max-height: 92svh;
    border-radius: 24px 24px 0 0;
  }
  .bogen__frage { font-size: 17px; }
  .bogen__kopf, .bogen__leib { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .bogen__bar { margin: 0 var(--sp-4); }
  .bogen__fuss { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}
