/* Voice Demo · Assistent (Chat, Unterchat „Protokoll neue Ansicht", 19.11.2026) — Ergänzung zu voice_live.css. */

/* Umschalter: im Assistenten nur der Chat sichtbar, sonst der Chat versteckt. */
#seite-voice.vl-chat #vl-karte { display: none; }
#seite-voice:not(.vl-chat) #vc-karte { display: none; }
/* Philip, 19.11.2026: nur noch der Chat — Umschalter weg. */
#seite-voice #vl-modus { display: none; }

.vc-karte { grid-column: 1 / -1; padding: .75rem .8rem .6rem; display: flex; flex-direction: column; }

/* Kopf: Titel + Fortschritt, Knopf „Übersicht" */
.vc-kopf { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.vc-titel { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vc-titel strong { font-size: 1rem; }
#vc-fortschritt { font-size: .8rem; color: var(--leise); }
.vc-ueb-knopf {
  flex: none; display: inline-flex; align-items: center; gap: .2rem; border: 0.5px solid var(--rand2);
  background: var(--flaeche); color: var(--akzent); border-radius: 99px; padding: .3rem .75rem; font: inherit; font-size: .88rem;
}
.vc-ueb-knopf[aria-expanded="true"] { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.vc-balken { margin: .5rem 0 0; }
/* Aufgeklappt nimmt die Übersicht den Platz des Verlaufs ein; Eingabe und Antwort-Knöpfe bleiben stehen. */
.vc-uebersicht { margin-top: .6rem; height: min(52vh, 560px); overflow-y: auto; overscroll-behavior: contain; border-radius: 12px; }
.vc-karte.ueb-offen .vc-verlauf { display: none; }
@media (max-width: 699px) {
  .vc-uebersicht { height: max(200px, calc(100dvh - 450px)); }
}
.vc-liste { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0; padding: .6rem .8rem;
  background: var(--flaeche2); border-radius: 12px; font-size: .9rem; }
.vc-liste dt { color: var(--leise); }
.vc-liste dd { margin: 0; }

/* Verlauf */
.vc-verlauf {
  margin-top: .6rem; height: min(52vh, 560px); min-height: 220px; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .45rem; padding: .2rem .1rem;
}
/* Handy: Verlauf so hoch, dass Eingabe + Antwort-Knöpfe über der Pille unten stehen, ohne zu scrollen. */
@media (max-width: 699px) {
  .vc-verlauf { height: max(200px, calc(100dvh - 450px)); }
}
.vc-zeile { display: flex; flex-direction: column; max-width: 86%; }
.vc-zeile.bot { align-self: flex-start; }
.vc-zeile.ich { align-self: flex-end; align-items: flex-end; }
.vc-blase {
  padding: .5rem .8rem; border-radius: 18px; font-size: .97rem; line-height: 1.35; white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vc-zeile.bot .vc-blase { background: var(--flaeche2); border: 0.5px solid var(--rand); border-bottom-left-radius: 6px; }
.vc-zeile.ich .vc-blase { background: var(--akzent); color: #fff; border-bottom-right-radius: 6px; }
.vc-blase.fehler { background: var(--rot-grund); color: var(--schlecht-text); border-color: transparent; }
.vc-marken { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .3rem; }
.vc-marken span {
  font-size: .78rem; background: var(--gut-grund); color: var(--gut-text); border-radius: 99px; padding: .12rem .55rem;
}
/* „tippt …" */
.vc-tippt { display: inline-flex; gap: 4px; padding: .7rem .9rem; }
.vc-tippt i { width: 7px; height: 7px; border-radius: 50%; background: var(--leise); animation: vc-punkt 1s infinite ease-in-out; }
.vc-tippt i:nth-child(2) { animation-delay: .15s; }
.vc-tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes vc-punkt { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Antwort-Knöpfe */
.vc-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin: .5rem 0 0; min-height: 0; }
.vc-vorschlaege:empty { display: none; }
.vc-vorschlaege button {
  border: 1px solid var(--akzent); color: var(--akzent); background: var(--flaeche); border-radius: 99px;
  padding: .35rem .85rem; font: inherit; font-size: .92rem;
}
.vc-vorschlaege button:active { background: var(--akzent); color: #fff; }
/* Mehrfachauswahl (21.11.2026): angetippt = blau gefüllt; „Weiter" schickt ab. Über die ID, damit Aussehen A nicht überdeckt. */
#vc-vorschlaege button.vc-mehr:active { background: var(--flaeche); color: var(--akzent); }
#vc-vorschlaege button.vc-mehr.an { background: var(--akzent); color: #fff; }
#vc-vorschlaege button.vc-weiter { background: var(--akzent); color: #fff; font-weight: 600; }
.vc-mehr-hinweis { align-self: center; font-size: .8rem; color: var(--leise); }

/* Eingabe unten */
.vc-eingabe { display: flex; align-items: flex-end; gap: .5rem; margin-top: .6rem; }
.vc-mikro { width: 48px; height: 48px; }
.vc-mikro svg { width: 24px; height: 24px; }
#vc-text {
  flex: 1; min-width: 0; resize: none; height: 48px; max-height: 110px; box-sizing: border-box;
  font: inherit; font-size: 16px; line-height: 1.3;                       /* < 16 px zoomt das iPhone */
  border: 0.5px solid var(--rand2); border-radius: 24px; padding: .7rem .95rem; background: var(--flaeche2); color: var(--text);
}
#vc-text:focus { outline: 2px solid var(--akzent); outline-offset: -1px; background: var(--flaeche); }
.vc-senden {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--akzent); color: #fff;
  display: grid; place-items: center;
}
.vc-senden svg { width: 22px; height: 22px; }

.vc-fuss { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .45rem; flex-wrap: wrap; }
.vc-fuss .vl-status { flex: 1; min-width: 10rem; }
.vc-fuss-knoepfe { display: inline-flex; gap: 1rem; font-size: .9rem; }
.vc-fuss-knoepfe .vl-rot { color: var(--schlecht-text); }
