/* Rufinger: Live-Seite des Live-Video-Agenten (live.js). Dunkle Bühne wie ein Bildschirm, Farben aus den Tokens der
   Konsole (Telefonie-Blau, Koralle für Live). Videoflächen: object-fit cover, Gesicht oben mittig; das Seitenverhältnis
   kommt vom Video (fest 512 × 512, im Rückfall 3:4; live.js setzt --seiten), vorher vom Standbild (--bild-seiten: das
   quadratische Standbild hat genau den Ausschnitt des Videos), damit beim Start nichts springt und der Kopf nie
   abgeschnitten wird. Über dem Standbild läuft, wo es eine gibt, die stumme Schleife des Gesichts (video[data-ruhevideo]). */

.live {
  --l-bg: #0B1220; --l-flaeche: #121A2B; --l-flaeche-2: #182238; --l-flaeche-3: #1F2A44; --l-rand: #243047;
  --l-text: #E2E8F0; --l-leise: #94A3B8; --l-primaer: #2563EB; --l-primaer-hover: #1D4ED8; --l-primaer-text: #60A5FA;
  --l-akzent: #E8552B; --l-erfolg: #4ADE80; --l-warnung: #FBBF24; --l-fehler: #F87171;
  --l-radius: 16px; --l-abstand: clamp(12px, 2.2vmin, 24px);
  position: relative; isolation: isolate; display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden;
  color: var(--l-text); background: radial-gradient(1200px 700px at 30% 0%, #15214A 0%, var(--l-bg) 62%);
  font-family: var(--schrift, "Inter", system-ui, sans-serif); color-scheme: dark; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.live *, .live *::before, .live *::after { box-sizing: border-box; }
.live button { font: inherit; color: inherit; cursor: pointer; }
.live .ic { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Seite (Vorschau, Kiosk) ---------- */
html:has(body.live-seite) { background: #0B1220; }
body.live-seite { margin: 0; min-height: 100dvh; height: 100dvh; display: flex; flex-direction: column; background: #0B1220; color: #E2E8F0; overflow: hidden; }
.live-haupt { flex: 1 1 auto; min-height: 0; display: flex; }
.live-haupt > .live { flex: 1 1 auto; }
.live-leer { margin: auto; max-width: 520px; padding: 24px; display: flex; gap: 12px; align-items: flex-start; color: #E2E8F0; }
.live-kopf {
  display: flex; align-items: center; gap: 14px; padding: 8px 16px; min-height: 56px; flex: none; flex-wrap: wrap;
  background: rgba(11, 18, 32, .92); border-bottom: 1px solid #243047; color: #E2E8F0; position: relative; z-index: 5;
}
.live-kopf-marke img { display: block; height: 26px; width: auto; }
.live-kopf-titel { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.live-kopf-unter { font-size: 12px; color: #94A3B8; }
.live-kopf-wahl { margin-left: auto; }
.live-kopf-aktionen { display: flex; gap: 6px; }
.live-kopf-knopf {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid #243047; background: #121A2B; color: #E2E8F0; font-size: 13px; text-decoration: none;
}
.live-kopf-knopf:hover { border-color: #3B4A6B; text-decoration: none; }
.live-ecke {
  position: fixed; right: 12px; top: 12px; z-index: 20; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(11, 18, 32, .5); color: #94A3B8; opacity: .35;
}
.live-ecke:hover, .live-ecke:focus-visible { opacity: 1; }
:fullscreen .live-ecke { opacity: 0; }
:fullscreen .live-ecke:hover { opacity: .8; }

/* Wahl des Szenarios (Vorschau, Live-Demo) */
.live-wahl { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #121A2B; border: 1px solid #243047; flex-wrap: wrap; }
.live-wahl-punkt {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0;
  background: transparent; color: #94A3B8; font-size: 13px; font-weight: 600;
}
.live-wahl-punkt:hover { color: #E2E8F0; }
.live-wahl-punkt.ist-an { background: #2563EB; color: #fff; }

/* ---------- Ruhebild ----------
   Das Standbild steht als Rahmen über dem Text (hochkant) bzw. links daneben (quer), in seinem eigenen Seitenverhältnis
   (--bild-r aus live.js): so sieht das Ruhebild aus wie gleich das Video, nichts springt und nichts wird stark gezoomt. */
.live-ruhe {
  position: absolute; inset: 0; container-type: size; display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center;
  gap: clamp(8px, 2cqh, 22px); padding: var(--l-abstand); cursor: pointer; animation: live-ein .4s ease both;
}
.live-ruhe-bild {
  position: relative; align-self: end; overflow: hidden; background: var(--l-flaeche); border-radius: 24px;
  width: min(calc(100cqw - 2 * var(--l-abstand)), calc((100cqh - 290px) * var(--bild-r, 1)), 960px); aspect-ratio: var(--bild-seiten, 1 / 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .05);
}
.live-ruhe-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.live-ruhe-ohne { display: grid; place-items: center; width: 100%; height: 100%; color: var(--l-leise); }
.live-ruhe-ohne .ic { width: 96px; height: 96px; stroke-width: 1.2; }
.live-ruhe-text {
  position: relative; z-index: 1; align-self: start; justify-self: center; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 0 var(--l-abstand) var(--l-abstand); text-align: center; max-width: 640px;
}
.live-ruhe-ober { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--l-primaer-text); font-weight: 600; }
.live-ruhe-name { margin: 0; font-size: clamp(28px, 6vmin, 52px); font-weight: 650; letter-spacing: -.02em; line-height: 1.05; }
.live-ruhe-hinweis { margin: 0; font-size: 13px; color: var(--l-leise); }
.live-start {
  position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; min-height: 64px; padding: 0 34px;
  border-radius: 999px; border: 0; background: var(--l-primaer); color: #fff; font-size: clamp(17px, 2.4vmin, 21px); font-weight: 650;
  box-shadow: 0 12px 34px rgba(37, 99, 235, .45);
}
.live-start .ic { width: 24px; height: 24px; }
.live-start:hover { background: var(--l-primaer-hover); }
.live-start-ring { position: absolute; inset: -8px; border-radius: 999px; border: 2px solid rgba(96, 165, 250, .55); animation: live-ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes live-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes live-ein { from { opacity: 0; } to { opacity: 1; } }

/* Querformat: Standbild links als Rahmen, Text rechts */
.live.ist-quer .live-ruhe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-content: stretch; align-items: center; }
.live.ist-quer .live-ruhe-bild { align-self: center; justify-self: end; margin-right: 4cqw;
  width: min(calc(50cqw - 6cqw), calc(84cqh * var(--bild-r, 1)), 760px); }
.live.ist-quer .live-ruhe-text { align-self: center; justify-self: start; align-items: flex-start; text-align: left; padding: 0 var(--l-abstand) 0 0; }

/* ---------- Gespräch ---------- */
.live-gespraech {
  position: absolute; inset: 0; display: grid; gap: var(--l-abstand); padding: var(--l-abstand);
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  grid-template-areas: "flaeche" "rechts" "leiste"; animation: live-ein .3s ease both;
}
.live.ist-quer .live-gespraech { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "flaeche rechts" "leiste leiste"; }
.live.ist-quer.szenario-kasse .live-gespraech { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.live.szenario-ohne:not(.ist-quer) .live-gespraech { grid-template-rows: minmax(0, 1.6fr) minmax(0, .8fr) auto; }

.live-flaeche { grid-area: flaeche; position: relative; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; }
/* Videofläche so groß wie möglich im Seitenverhältnis des Videos (vorher: des Standbilds) */
.live-video {
  position: relative; width: min(100cqw, calc(100cqh * var(--video-r, var(--bild-r, 1)))); height: auto; max-width: 100%;
  aspect-ratio: var(--seiten, var(--bild-seiten, 1 / 1)); border-radius: var(--l-radius); overflow: hidden;
  background: #0A1020; box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .05);
}
.live-video video, .live-video-poster { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.live-video.hat-video .live-video-poster { display: none; }
.live-video::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04); transition: box-shadow .3s ease; }
.live[data-zustand="speaking"] .live-video::after { box-shadow: inset 0 0 0 3px rgba(232, 85, 43, .7); }
.live[data-zustand="listening"] .live-video::after { box-shadow: inset 0 0 0 3px rgba(74, 222, 128, .45); }

.live-zustand {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; background: rgba(11, 18, 32, .72); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: var(--l-leise);
}
.live-zustand-punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-zustand[data-z="listening"] { color: var(--l-erfolg); }
.live-zustand[data-z="listening"] .live-zustand-punkt { animation: live-puls 1.6s infinite; }
.live-zustand[data-z="thinking"] { color: var(--l-warnung); }
.live-zustand[data-z="speaking"] { color: #FF8A65; }
.live-zustand[data-z="speaking"] .live-zustand-punkt { animation: live-puls .8s infinite; }
@keyframes live-puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.live-untertitel {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); width: min(92%, 720px); margin: 0;
  padding: 10px 14px; border-radius: 12px; background: rgba(11, 18, 32, .74); backdrop-filter: blur(10px); text-align: center;
  font-size: clamp(15px, 2vmin, 19px); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.live-untertitel:empty { display: none; }
.live-erledigt { position: absolute; right: 12px; top: 12px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: min(70%, 360px); }
.live-toast {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: rgba(11, 18, 32, .84); border: 1px solid rgba(74, 222, 128, .45); backdrop-filter: blur(8px);
}
.live-toast .ic { color: var(--l-erfolg); }
.live-toast.ist-neu { animation: live-toast .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes live-toast { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }

.live-seite-rechts { grid-area: rechts; min-height: 0; display: flex; flex-direction: column; gap: var(--l-abstand); overflow: hidden; }
.live-tafel { flex: none; max-height: 100%; overflow: auto; }
.live-tafel[hidden] { display: none; }
.live.szenario-kasse .live-tafel { flex: 1 1 auto; }
.live-verlauf {
  flex: 1 1 auto; min-height: 64px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  border-radius: var(--l-radius); background: rgba(18, 26, 43, .7); border: 1px solid var(--l-rand); scroll-behavior: smooth;
}
.live-verlauf:empty::before { content: "Die Mitschrift erscheint hier."; margin: auto; color: var(--l-leise); font-size: 13px; }
.live-zeile { margin: 0; padding-left: 10px; border-left: 2px solid var(--l-primaer-text); font-size: 14px; line-height: 1.45; }
.live-zeile::before { content: attr(data-wer) "  "; font-weight: 650; color: var(--l-primaer-text); }
.live-zeile.ist-nutzer { border-left-color: var(--l-leise); color: #CBD5E1; }
.live-zeile.ist-nutzer::before { color: var(--l-leise); }
.live-zeile.ist-hinweis { border-left-color: var(--l-warnung); color: var(--l-leise); font-size: 13px; }
.live-zeile.ist-vorlaeufig { opacity: .72; }
.live.szenario-kasse .live-verlauf, .live.szenario-totem .live-verlauf { flex: 0 1 auto; max-height: 30%; min-height: 54px; }
.live.szenario-kasse:not(.ist-quer) .live-verlauf { display: none; }

.live-leiste { grid-area: leiste; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.live-knopf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--l-rand); background: var(--l-flaeche); color: var(--l-text); font-size: 15px; font-weight: 600;
}
.live-knopf:hover:not(:disabled) { border-color: #3B4A6B; }
.live-knopf:disabled { opacity: .4; cursor: default; }
.live-knopf.ist-ende { border-color: rgba(248, 113, 113, .45); color: #FCA5A5; background: rgba(248, 113, 113, .1); }
.live-knopf .nur-aus { display: none; }
.live-knopf.ist-aus .nur-an { display: none; }
.live-knopf.ist-aus .nur-aus { display: inline-block; }
.live-knopf.ist-aus { color: var(--l-warnung); }

.live-eingabe { display: flex; gap: 8px; flex: none; }
.live-eingabe[hidden] { display: none; }
.live-eingabe input {
  flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--l-rand);
  background: var(--l-flaeche); color: var(--l-text); font-size: 15px; box-shadow: none;
}
.live-eingabe input:focus-visible { outline: 2px solid var(--l-primaer-text); outline-offset: 1px; border-color: transparent; }
.live-eingabe .knopf { min-width: 46px; min-height: 46px; border-radius: 50%; }

/* ---------- Meldung (Danke, Fehler, Kiosk-Link) ---------- */
.live-meldung {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; background: rgba(11, 18, 32, .88); backdrop-filter: blur(6px); animation: live-ein .3s ease both;
}
.live-meldung-zeichen .ic { width: 56px; height: 56px; stroke-width: 1.6; color: var(--l-erfolg); }
.live[data-phase="fehler"] .live-meldung-zeichen .ic, .live[data-phase="laden"] .live-meldung-zeichen .ic { color: var(--l-warnung); }
.live-meldung-titel { margin: 0; font-size: clamp(22px, 4vmin, 32px); font-weight: 650; }
.live-meldung-text { margin: 0; max-width: 520px; color: var(--l-leise); font-size: 15px; line-height: 1.5; }

/* ---------- Szenario: Website im Chat-Layout ---------- */
.live.szenario-web .live-gespraech, .live.szenario-web.ist-quer .live-gespraech {
  width: min(100%, 560px); margin: 0 auto; left: 0; right: 0; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, .8fr) minmax(0, 1.2fr) auto; grid-template-areas: "flaeche" "rechts" "leiste";
}
.live.szenario-web .live-video { width: 100%; height: 100%; aspect-ratio: auto; }
.live.szenario-web .live-untertitel { display: none; }
.live.szenario-web .live-verlauf { background: rgba(18, 26, 43, .5); }
.live.szenario-web .live-zeile { align-self: flex-start; max-width: 86%; padding: 9px 13px; border: 0; border-radius: 16px 16px 16px 4px; background: var(--l-flaeche-3); }
.live.szenario-web .live-zeile::before { content: none; }
.live.szenario-web .live-zeile.ist-nutzer { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--l-primaer); color: #fff; }
.live.szenario-web .live-zeile.ist-hinweis { align-self: center; background: none; font-size: 12px; }
.live.szenario-web .live-leiste .live-knopf { min-height: 40px; font-size: 14px; }

/* ---------- Tafel: gemeinsame Bausteine ---------- */
.live-tafel { color: var(--l-text); }
.lt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.lt-titel { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--l-leise); font-weight: 600; }
.lt-korb { font-size: 13px; font-weight: 650; color: var(--l-primaer-text); white-space: nowrap; }
.lt-inhalt { display: flex; flex-direction: column; gap: 10px; }
.lt-hinweis { margin: 0; color: var(--l-leise); font-size: 15px; line-height: 1.45; }
.lt-knopf, .lt-chip, .lt-haupt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px;
  border-radius: 14px; border: 1px solid var(--l-rand); background: var(--l-flaeche); color: var(--l-text); font-size: 15px; font-weight: 600; text-align: center;
}
.lt-knopf:hover, .lt-chip:hover { border-color: rgba(96, 165, 250, .6); background: var(--l-flaeche-2); }
.lt-knopf.ist-hervor { border-color: rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .1); }
.lt-haupt { background: var(--l-primaer); border-color: transparent; color: #fff; }
.lt-haupt:hover { background: var(--l-primaer-hover); }
.lt-haupt:disabled { opacity: .6; }
.lt-schnell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-chip { min-height: 40px; border-radius: 999px; font-size: 14px; }
.lt-zeile-titel { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-warnung); font-weight: 650; }

/* Kasse */
.live.szenario-kasse .live-tafel, .live.szenario-web .live-tafel { padding: 16px; border-radius: var(--l-radius); background: rgba(18, 26, 43, .78); border: 1px solid var(--l-rand); }
.lt-produkte { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lt-produkt {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 44px; border-radius: 14px;
  background: var(--l-flaeche); border: 1px solid var(--l-rand); font-size: 13px;
}
.lt-produkt b { font-size: 15px; line-height: 1.25; }
.lt-produkt.ist-angebot { border-color: rgba(251, 191, 36, .55); }
.lt-preis { color: var(--l-primaer-text); font-weight: 700; }
.lt-preis s { color: var(--l-leise); font-weight: 500; font-size: 12px; margin-left: 4px; }
.lt-ort { color: var(--l-leise); font-size: 12px; }
.lt-plus { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--l-primaer); color: #fff; }
.lt-korbliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lt-korbliste li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--l-flaeche); font-size: 15px; }
.lt-menge { color: var(--l-leise); font-variant-numeric: tabular-nums; }
.lt-name { min-width: 0; overflow-wrap: anywhere; }
.lt-betrag { font-variant-numeric: tabular-nums; font-weight: 650; }
.lt-weg { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--l-rand); background: transparent; color: var(--l-leise); }
.lt-marke { font-style: normal; font-size: 11px; font-weight: 700; color: #241A00; background: var(--l-warnung); border-radius: 5px; padding: 1px 6px; margin-left: 4px; }
.lt-summe { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 0; border-top: 1px solid var(--l-rand); font-size: 16px; }
.lt-summe b { font-size: 26px; font-variant-numeric: tabular-nums; }
.lt-zahlarten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lt-terminal { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px; border-radius: 18px; background: #0A1020; border: 1px solid var(--l-rand); text-align: center; }
.lt-terminal-titel { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--l-leise); }
.lt-terminal-betrag { font-size: clamp(30px, 5vmin, 44px); font-weight: 700; font-variant-numeric: tabular-nums; }
.lt-terminal p { margin: 0; color: var(--l-leise); font-size: 15px; }
.lt-wellen { display: flex; gap: 8px; }
.lt-wellen i { width: 12px; height: 12px; border-radius: 50%; background: var(--l-primaer-text); animation: live-puls 1.2s infinite; }
.lt-wellen i:nth-child(2) { animation-delay: .2s; }
.lt-wellen i:nth-child(3) { animation-delay: .4s; }
.lt-auflegen { flex-direction: column; gap: 2px; width: 100%; min-height: 60px; font-size: 17px; }
.lt-auflegen .ic { display: none; }
.lt-auflegen small { font-size: 12px; font-weight: 500; opacity: .8; }
.lt-beleg {
  background: #F8F6EF; color: #1D2A2F; border-radius: 8px; padding: 16px 18px; font-size: 14px; line-height: 1.55;
  font-family: var(--mono, "Geist Mono", ui-monospace, monospace); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); animation: live-beleg .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes live-beleg { from { transform: translateY(-14px); opacity: 0; clip-path: inset(0 0 100% 0); } to { transform: none; opacity: 1; clip-path: inset(0 0 0 0); } }
.lt-beleg-kopf { display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed #B8B2A4; }
.lt-beleg-kopf b { font-size: 16px; }
.lt-beleg ul { list-style: none; margin: 8px 0; padding: 0; }
.lt-beleg li { display: flex; justify-content: space-between; gap: 10px; }
.lt-beleg .lt-summe { border-top: 1px dashed #B8B2A4; }
.lt-beleg .lt-summe b { font-size: 19px; }
.lt-mwst { display: flex; flex-direction: column; font-size: 12px; color: #5B6468; margin-top: 4px; }
.lt-bezahlt { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: #0D7A4F; }

/* Hotel-Totem: Karte über dem unteren Rand des Gesichts (hochkant) bzw. neben dem Gesicht (quer) */
.lt-karte {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--l-radius);
  background: rgba(18, 26, 43, .82); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); animation: live-toast .35s ease both;
}
.lt-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--l-primaer-text); font-weight: 650; }
.lt-gross { font-size: clamp(20px, 3vmin, 28px); font-weight: 650; }
.lt-text { color: var(--l-text); font-size: 15px; line-height: 1.45; }
.lt-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-knoepfe > button { flex: 1 1 140px; }
.lt-zimmer { display: flex; align-items: center; gap: 14px; }
.lt-zimmer b { font-size: clamp(40px, 7vmin, 64px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--l-primaer-text); }
.lt-zimmer span { color: var(--l-leise); font-size: 14px; line-height: 1.3; }
.lt-zeilen { display: flex; flex-direction: column; gap: 4px; color: var(--l-leise); font-size: 14px; }
.lt-zeilen span { display: block; }
.lt-zeilen span .ic { vertical-align: -3px; margin-right: 8px; }
.lt-zeilen b { color: var(--l-text); }
.lt-ausgabe { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-weight: 650; color: var(--l-erfolg); }
.lt-ausgabe i { width: 40px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, #60A5FA, #1D4ED8); box-shadow: 0 4px 12px rgba(37, 99, 235, .5); animation: live-karte 1.6s ease-in-out infinite; }
@keyframes live-karte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Lebendiges Ruhebild ----------
   Die stumme Schleife des Gesichts liegt über dem Standbild (gleicher Ausschnitt, gleiches JPG als Poster) und wird erst
   sichtbar, wenn sie läuft (live.js setzt .laeuft) – so gibt es weder Schwarz noch einen Sprung. Hinter dem Live-Video
   (hat-video) ist sie aus, bei Wunsch nach weniger Bewegung bleibt das Standbild. */
video[data-ruhevideo] {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
  pointer-events: none; opacity: 0; transition: opacity .35s ease; background: transparent;
}
video[data-ruhevideo].laeuft { opacity: 1; }
video[data-ruhevideo][hidden] { display: none !important; }
.live-video.hat-video .live-video-ruhe, .gb-video.hat-video .gb-ruhe { display: none; }
.gb-kasse .gb-ruhe { object-position: 50% 15%; }
.gb-chat .gb-ruhe { object-position: 50% 20%; }
/* Mini-Geräte (start.css): das Ruhevideo deckt das Bild im selben Rahmen ab */
.mini-chat-bild, .mini-kasse-bild, .mini-totem-bild { position: relative; }
.mini video[data-ruhevideo] { object-position: 50% 12%; }
@media (prefers-reduced-motion: reduce) { video[data-ruhevideo] { display: none !important; } }
html[data-bewegung="aus"] video[data-ruhevideo] { display: none !important; }   /* Konsole: Schalter „Live-Animationen“ */

/* ---------- Eingebettet (Live-Demo der Website) ---------- */
.live.modus-demo { height: clamp(560px, 80vh, 780px); border-radius: 22px; box-shadow: 0 30px 80px rgba(2, 6, 23, .35); }

/* ---------- Schmal (Telefon) ---------- */
.live.ist-schmal .live-gespraech { padding: 12px; gap: 10px; grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr) auto; }
.live.ist-schmal .live-knopf { min-height: 44px; padding: 0 14px; font-size: 14px; }
.live.ist-schmal .live-knopf span { display: none; }
.live.ist-schmal .live-knopf.ist-ende span { display: inline; }
.live.ist-schmal .lt-schnell, .live.ist-schmal .lt-zahlarten { grid-template-columns: minmax(0, 1fr); }
.live.ist-schmal .lt-korbliste li { grid-template-columns: 52px minmax(0, 1fr) auto 32px; gap: 8px; font-size: 14px; }
.live.ist-schmal .live-untertitel { font-size: 14px; bottom: 8px; }
.live.ist-schmal .live-zustand { left: 8px; top: 8px; padding: 5px 10px; font-size: 12px; }
.live.ist-schmal .live-erledigt { top: 8px; right: 8px; max-width: calc(100% - 112px); }
.live.ist-schmal .live-erledigt .live-toast:not(:last-child) { display: none; }   /* klein: nur das Neueste, über dem Haar */
.live.ist-schmal .live-toast { max-width: 100%; padding: 6px 9px; font-size: 12px; }
.live.ist-schmal .live-toast span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Hochkant mit Tafel (Kasse, Totem): die Tafel so hoch wie ihr Inhalt, bei Platzmangel scrollt sie in sich; darunter
   füllt die Mitschrift den Rest. Auf dem Telefon bekommt die Tafel mehr Platz und die Mitschrift bleibt kurz. */
.live:not(.ist-quer) .live-tafel { flex: 0 1 auto; min-height: 0; max-height: none; }
.live:not(.ist-quer).szenario-totem .live-verlauf { flex: 1 1 auto; max-height: none; }
.live.ist-schmal.hat-tafel:not(.szenario-web) .live-gespraech { grid-template-rows: minmax(0, 1fr) minmax(0, 1.3fr) auto; }
.live.ist-schmal.szenario-totem .live-verlauf { flex: 0 0 auto; max-height: 76px; }
@media (max-width: 640px) {
  .live-kopf { gap: 8px; padding: 8px 12px; }
  .live-kopf-wahl { order: 3; width: 100%; margin-left: 0; }
  .live-kopf-wahl .live-wahl { width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  .live-kopf-wahl .live-wahl-punkt { flex: 1 1 auto; justify-content: center; gap: 5px; padding: 0 8px; font-size: 12.5px; }
  .live-kopf-aktionen { margin-left: auto; }
  .live-kopf-knopf span { display: none; }
  .live.modus-demo { height: min(86svh, 720px); border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .live *, .live *::before, .live *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* =====================================================================================================================
   Geräte-Ansicht der Website (Live-Demo auf Startseite und Produktseite, _live.html › geraete): Totem, Kasse und
   Browser als Geräte im Petrol der Vorführgeräte, Cyan als Akzent. Gesicht und Tafel hängt live.js in das gewählte
   Gerät; Videoflächen object-fit cover, Gesicht oben mittig. Die Gerätefläche hat eine feste Mindesthöhe, damit der
   Wechsel zwischen den Geräten die Seite nicht springen lässt. */
.gb {
  --gb-tief: #031820; --gb-hell: #0d4a5c; --gb-glas: rgba(255, 255, 255, .055); --gb-glas-stark: rgba(255, 255, 255, .09);
  --gb-rand: rgba(255, 255, 255, .12); --gb-text: #e8f5f8; --gb-leise: #93b6c0; --gb-cyan: #2cc9ea; --gb-cyan-tief: #0891bd;
  --gb-gruen: #3ddc97; --gb-gelb: #f6c453; --gb-rot: #f47067; --gb-geraet: #101418; --gb-geraet-rand: #2a3138;
  /* Farben der Tafel (Kasse, Hotel) aus live.js */
  --l-bg: var(--gb-tief); --l-flaeche: rgba(255, 255, 255, .06); --l-flaeche-2: rgba(255, 255, 255, .1); --l-flaeche-3: rgba(255, 255, 255, .12);
  --l-rand: var(--gb-rand); --l-text: var(--gb-text); --l-leise: var(--gb-leise); --l-primaer: var(--gb-cyan); --l-primaer-hover: #5bd7f0;
  --l-primaer-text: var(--gb-cyan); --l-akzent: var(--gb-cyan); --l-erfolg: var(--gb-gruen); --l-warnung: var(--gb-gelb); --l-fehler: var(--gb-rot);
  --l-radius: 14px;
  position: relative; isolation: isolate; display: grid; gap: clamp(14px, 2vw, 22px); padding: clamp(12px, 2.4vw, 28px);
  border-radius: 24px; overflow: hidden; color: var(--gb-text); color-scheme: dark; text-align: left;
  background-color: var(--gb-tief);
  background-image: radial-gradient(1100px 640px at 30% 8%, var(--gb-hell) 0%, #072d39 46%, var(--gb-tief) 100%);
  box-shadow: 0 30px 80px rgba(2, 18, 24, .32), 0 0 0 1px rgba(255, 255, 255, .04);
  font-family: var(--schrift, "Inter", system-ui, sans-serif); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gb *, .gb *::before, .gb *::after { box-sizing: border-box; }
.gb button, .gb input { font: inherit; color: inherit; }
.gb button { cursor: pointer; }
.gb .ic { width: 1.1em; height: 1.1em; flex: none; }
.gb [hidden] { display: none !important; }
.gb .unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Wahl des Geräts wie in den Vorführgeräten */
.gb-wahl { display: flex; justify-content: center; }
.gb .live-wahl { gap: 4px; padding: 4px; border-radius: 999px; background: var(--gb-glas); border: 1px solid var(--gb-rand); flex-wrap: nowrap; }
.gb .live-wahl-punkt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--gb-leise); font-size: 13px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
}
.gb .live-wahl-punkt .ic { display: none; }
.gb .live-wahl-punkt:hover { color: var(--gb-text); }
.gb .live-wahl-punkt.ist-an { background: var(--gb-cyan); color: #04212b; }
.gb .live-wahl-punkt:focus-visible { outline: 2px solid var(--gb-cyan); outline-offset: 2px; }

.gb-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.gb-geraete { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 720px; }
.gb-geraet { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; animation: gb-auf .35s ease both; }
@keyframes gb-auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gb-platz { position: relative; overflow: hidden; background: #0b1114; cursor: pointer; }
.gb-geraete > .gb-video { display: none; }                 /* bis live.js es in ein Gerät hängt */
.gb-video { position: absolute; inset: 0; z-index: 0; }
.gb-video video, .gb-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.gb-poster[src=""] { display: none; }
.gb-video.hat-video .gb-poster { display: none; }
.gb-tafel-halter { display: none; }
.gb .live-erledigt { top: 10px; right: 10px; left: 10px; align-items: flex-end; max-width: none; }
.gb .live-toast { font-size: 12px; padding: 7px 10px; border-color: rgba(61, 220, 151, .45); background: rgba(5, 28, 36, .84); }
.gb .live-toast .ic { color: var(--gb-gruen); }
.gb[data-zustand="speaking"] .gb-platz { box-shadow: inset 0 0 0 3px rgba(44, 201, 234, .6); }

/* Untertitel und großer Knopf im Gerät */
.gb-untertitel {
  margin: 0; min-height: 2.8em; font-size: 15px; line-height: 1.4; text-align: center; color: var(--gb-text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gb-untertitel.ist-klein { margin-top: auto; min-height: 3.6em; font-size: 13px; text-align: left; color: var(--gb-leise); }
.gb-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--gb-cyan); color: #04212b; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 6px 20px rgba(44, 201, 234, .35);
}
.gb-cta:hover { background: #5bd7f0; text-decoration: none; }
.gb-cta.ist-ende { background: rgba(244, 112, 103, .15); color: var(--gb-rot); box-shadow: inset 0 0 0 1px rgba(244, 112, 103, .45); }
.gb-cta:focus-visible, .gb-haupt:focus-visible, .gb-neben:focus-visible { outline: 2px solid var(--gb-cyan); outline-offset: 3px; }

/* ---------- Totem: Stele mit Hochkant-Bildschirm ---------- */
.gb-totem-schirm {
  width: min(340px, 100%); border-radius: 22px; overflow: hidden; background: var(--gb-geraet); border: 10px solid var(--gb-geraet);
  outline: 1px solid var(--gb-geraet-rand); box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.gb-totem .gb-platz { aspect-ratio: 4 / 5; border-radius: 12px 12px 0 0; }
.gb-totem-leiste { display: grid; gap: 12px; justify-items: center; padding: 14px 16px 16px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #0f2a33, #0a1d24); }
.gb-totem-hals { width: 26px; height: 96px; background: linear-gradient(90deg, #1b2227, #39434a, #1b2227); }
.gb-totem-fuss { width: 220px; max-width: 70%; height: 18px; border-radius: 50%; background: radial-gradient(ellipse at center, #2c353b 0%, #12181c 70%); box-shadow: 0 18px 30px rgba(0, 0, 0, .5); }
/* Zimmerkarte: kompakt über dem unteren Rand, Mund und Kinn bleiben frei; was nicht hineinpasst, lässt sich schieben */
.gb-totem-karte { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; pointer-events: none; }
.gb-totem-karte .lt-karte {
  pointer-events: auto; gap: 3px; padding: 9px 12px; max-height: 44cqh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  border-radius: 14px; font-size: 11.5px; line-height: 1.35; background: rgba(5, 28, 36, .84); border-color: rgba(255, 255, 255, .14);
}
.gb-totem-karte .lt-karte::-webkit-scrollbar { display: none; }
.gb-totem .gb-platz { container-type: size; }
.gb-totem-karte .lt-label { font-size: 11px; letter-spacing: .1em; color: var(--gb-cyan); }
.gb-totem-karte .lt-gross { font-size: 16px; }
.gb-totem-karte .lt-text, .gb-totem-karte .lt-zeilen { font-size: 11.5px; line-height: 1.35; color: var(--gb-leise); }
.gb-totem-karte .lt-zeilen { gap: 1px; }
.gb-totem-karte .lt-zeilen span .ic { margin-right: 6px; }
.gb-totem-karte .lt-zeilen b { color: var(--gb-text); }
.gb-totem-karte .lt-zimmer { gap: 10px; }
.gb-totem-karte .lt-zimmer b { font-size: 26px; color: var(--gb-cyan); }
.gb-totem-karte .lt-zimmer span { font-size: 11px; line-height: 1.25; }
.gb-totem-karte .lt-knoepfe { display: flex; gap: 6px; margin-top: 2px; }
.gb-totem-karte .lt-knoepfe > * { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 0 8px; border-radius: 999px; font-size: 12px; }
.gb-totem-karte .lt-haupt { color: #04212b; }
.gb-totem-karte .lt-ausgabe { gap: 10px; margin-top: 1px; font-size: 11.5px; color: var(--gb-gruen); }
.gb-totem-karte .lt-ausgabe i { width: 26px; height: 17px; background: linear-gradient(135deg, var(--gb-cyan), #0b6f8c); }

/* ---------- Kasse: Monitor auf Ständer ---------- */
.gb-kasse-schirm {
  width: min(760px, 100%); aspect-ratio: 16 / 10; display: grid; grid-template-columns: 52% minmax(0, 1fr); overflow: hidden;
  border: 12px solid var(--gb-geraet); outline: 1px solid var(--gb-geraet-rand); border-radius: 20px; background: #0e1f26;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45); transform: perspective(1400px) rotateX(4deg);
}
.gb-kasse .gb-platz { height: 100%; }
.gb-kasse .gb-video video, .gb-kasse .gb-poster { object-position: 50% 15%; }
.gb-kasse-menue { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 18px 18px 14px; background: linear-gradient(160deg, #123340, #0b2029); overflow: hidden; }
.gb-kasse-menue .gb-tafel-ort { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.gb-kasse-menue .lt-kopf { margin-bottom: 8px; }
.gb-kasse-menue .lt-titel { font-size: 11px; color: var(--gb-leise); }
.gb-kasse-menue .lt-titel .ic { display: none; }
.gb-kasse-menue .lt-korb { font-size: 12px; color: var(--gb-cyan); }
.gb-kasse-menue .lt-hinweis { font-size: 14px; }
.gb-kasse-menue .lt-knopf, .gb-kasse-menue .lt-chip, .gb-kasse-menue .lt-haupt { min-height: 38px; font-size: 13px; border-radius: 12px; }
.gb-kasse-menue .lt-knopf, .gb-kasse-menue .lt-chip { border-color: rgba(44, 201, 234, .35); background: rgba(44, 201, 234, .1); }
.gb-kasse-menue .lt-knopf:hover, .gb-kasse-menue .lt-chip:hover { background: rgba(44, 201, 234, .22); border-color: rgba(44, 201, 234, .55); }
.gb-kasse-menue .lt-knopf.ist-hervor { border-color: rgba(246, 196, 83, .55); background: rgba(246, 196, 83, .16); }
.gb-kasse-menue .lt-chip { border-radius: 999px; padding: 0 12px; }
.gb-kasse-menue .lt-knopf .ic, .gb-kasse-menue .lt-chip .ic { display: none; }
.gb-kasse-menue .lt-haupt, .gb-kasse-menue .lt-plus { color: #04212b; }
.gb-kasse-menue .lt-produkte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gb-kasse-menue .lt-produkt { padding: 10px 10px 40px; }
.gb-kasse-menue .lt-produkt b { font-size: 14px; }
.gb-kasse-menue .lt-korbliste li { grid-template-columns: 48px minmax(0, 1fr) auto 30px; gap: 8px; padding: 8px 10px; font-size: 14px; }
.gb-kasse-menue .lt-weg { width: 28px; height: 28px; }
.gb-kasse-menue .lt-summe b { font-size: 22px; }
.gb-kasse-menue .lt-zahlarten .ic { display: none; }
.gb-kasse-menue .lt-terminal { padding: 16px 12px; background: #0a1418; border-color: var(--gb-geraet-rand); }
.gb-kasse-menue .lt-terminal-betrag { font-size: 30px; }
.gb-kasse-menue .lt-auflegen { min-height: 52px; font-size: 15px; }
.gb-kasse-menue .lt-beleg { font-size: 13px; padding: 14px 16px; }
.gb-kasse-hals { width: 70px; height: 64px; background: linear-gradient(90deg, #161c20, #30393f, #161c20); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.gb-kasse-fuss { width: 300px; max-width: 60%; height: 16px; border-radius: 8px; background: linear-gradient(#2a3338, #12181c); box-shadow: 0 16px 28px rgba(0, 0, 0, .5); }

/* ---------- Website: Browserfenster mit Chat ---------- */
.gb-browser { position: relative; width: min(820px, 100%); height: 580px; border-radius: 12px; overflow: hidden; background: #f4f7f9; color: #20323a; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.gb-browser-leiste { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e3e9ed; }
.gb-browser-leiste i { width: 11px; height: 11px; border-radius: 50%; background: #c5cfd5; }
.gb-browser-leiste span { margin-left: 12px; padding: 4px 14px; border-radius: 6px; background: #fff; font-size: 12px; color: #6a7c84; }
.gb-seite { display: grid; gap: 14px; max-width: 460px; padding: 36px 40px; }
.gb-seite > div { border-radius: 6px; background: #dfe6ea; }
.gb-s-titel { height: 28px; width: 70%; }
.gb-s-zeile { height: 12px; }
.gb-s-zeile.ist-kurz { width: 60%; }
.gb-s-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; background: none !important; }
.gb-s-kacheln div { height: 110px; border-radius: 10px; background: #dfe6ea; }
.gb-chat { position: absolute; right: 18px; bottom: 18px; width: 320px; height: 510px; max-height: calc(100% - 64px); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(10, 40, 52, .35); }
.gb-chat-video { position: relative; height: 200px; flex: none; }
.gb-chat-video .gb-platz { position: absolute; inset: 0; }
.gb-chat .gb-video video, .gb-chat .gb-poster { object-position: 50% 20%; }
.gb-chat-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 8px; align-items: baseline; padding: 28px 14px 10px; background: linear-gradient(transparent, rgba(4, 25, 33, .86)); color: #fff; pointer-events: none; }
.gb-chat-name small { color: #bfe9f3; }
.gb-chat-verlauf { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #f6f9fa; }
.gb-blase { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.gb-blase.ist-agent { align-self: flex-start; background: #e6eef1; color: #20323a; border-bottom-left-radius: 4px; }
.gb-blase.ist-nutzer { align-self: flex-end; background: var(--gb-cyan-tief); color: #fff; border-bottom-right-radius: 4px; }
.gb-blase.ist-vorlaeufig { opacity: .7; }
.gb-chat-eingabe { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e3e9ed; background: #fff; }
.gb-chat-eingabe input { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 14px; border: 1px solid #d3dde2; border-radius: 999px; color: #20323a; background: #fff; }
.gb-chat-eingabe input:focus-visible { outline: 2px solid var(--gb-cyan-tief); outline-offset: 1px; }
.gb-chat-eingabe button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--gb-cyan-tief); color: #fff; }

/* ---------- Gespräch: Mitschrift und Steuerung neben dem Gerät ---------- */
.gb-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; border-radius: 14px; background: var(--gb-glas); border: 1px solid var(--gb-rand); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gb-panel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gb-panel h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gb-leise); }
.gb-zustand { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--gb-glas-stark); color: var(--gb-leise); font-size: 13px; font-weight: 600; white-space: nowrap; }
.gb-zustand-punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gb-zustand[data-z="listening"] { color: var(--gb-gruen); }
.gb-zustand[data-z="listening"] .gb-zustand-punkt { animation: live-puls 1.6s infinite; }
.gb-zustand[data-z="thinking"], .gb-zustand[data-z="verbindet"], .gb-zustand[data-z="initializing"] { color: var(--gb-gelb); }
.gb-zustand[data-z="speaking"] { color: var(--gb-cyan); }
.gb-zustand[data-z="speaking"] .gb-zustand-punkt { animation: live-puls .8s infinite; }
.gb-meldung { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .3); }
.gb[data-phase="fehler"] .gb-meldung { background: rgba(246, 196, 83, .08); border-color: rgba(246, 196, 83, .35); }
.gb-meldung-zeichen .ic { width: 22px; height: 22px; color: var(--gb-gruen); }
.gb[data-phase="fehler"] .gb-meldung-zeichen .ic { color: var(--gb-gelb); }
.gb-meldung-titel { margin: 0; font-weight: 700; }
.gb-meldung-text { margin: 2px 0 0; color: var(--gb-leise); font-size: 13px; line-height: 1.45; }
.gb-verlauf { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 14px; line-height: 1.5; scroll-behavior: smooth; }
.gb-verlauf:empty::before { content: attr(data-leer); margin: auto 0; padding: 0 12px; color: var(--gb-leise); text-align: center; }
.gb-verlauf .live-zeile { border-left-color: var(--gb-cyan); }
.gb-verlauf .live-zeile::before { color: var(--gb-cyan); }
.gb-verlauf .live-zeile.ist-nutzer { border-left-color: var(--gb-leise); color: #c9dde3; }
.gb-verlauf .live-zeile.ist-nutzer::before { color: var(--gb-leise); }
.gb-steuerung { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gb-haupt {
  grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0;
  border-radius: 11px; background: var(--gb-cyan); color: #04212b; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(44, 201, 234, .3);
}
.gb-haupt:hover { background: #5bd7f0; text-decoration: none; }
.gb-haupt.ist-ende { background: rgba(244, 112, 103, .15); color: var(--gb-rot); box-shadow: inset 0 0 0 1px rgba(244, 112, 103, .45); }
.gb-haupt.ist-ende .ic { display: none; }
.gb-neben { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 10px; border: 1px solid var(--gb-rand); border-radius: 10px; background: var(--gb-glas); font-size: 13px; }
.gb-neben:disabled { opacity: .4; cursor: default; }
.gb-neben .nur-aus { display: none; }
.gb-neben.ist-aus .nur-an { display: none; }
.gb-neben.ist-aus .nur-aus { display: inline-block; }
.gb-neben.ist-aus { color: var(--gb-gelb); }
.gb-hinweis { margin: 0; font-size: 12px; line-height: 1.55; color: var(--gb-leise); }
.gb.ist-aus .gb-cta, .gb.ist-aus .gb-haupt { box-shadow: none; }

/* ---------- Schmaler: Gerät über der Mitschrift ---------- */
@media (max-width: 1100px) {
  .gb-raster { grid-template-columns: minmax(0, 1fr); }
  .gb-geraete { min-height: 700px; }
  .gb-verlauf { height: 200px; }
}
@media (max-width: 700px) {
  .gb { border-radius: 18px; }
  .gb .live-wahl { width: 100%; }
  .gb .live-wahl-punkt { flex: 1 1 0; min-width: 0; padding: 0 8px; letter-spacing: .04em; }
  .gb-geraete { min-height: 690px; }
  .gb-totem-schirm { width: min(320px, 100%); }
  .gb-totem-hals { height: 70px; }
  .gb-totem-karte .lt-karte { gap: 2px; padding: 8px 10px; font-size: 11px; line-height: 1.3; }
  .gb-totem-karte .lt-text, .gb-totem-karte .lt-zeilen { font-size: 11px; line-height: 1.3; }
  .gb-totem-karte .lt-zimmer b { font-size: 22px; }
  .gb-totem-karte .lt-ausgabe { display: none; }      /* schmaler Totem: Platz für Zimmer, Weg und WLAN */
  .gb-kasse-schirm { grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; transform: none; border-width: 10px; }
  .gb-kasse .gb-platz { height: auto; aspect-ratio: 16 / 10; }
  .gb-kasse-menue { height: 390px; padding: 14px; }
  .gb-kasse-hals { height: 46px; }
  .gb-browser { height: 560px; }
  .gb-seite { display: none; }
  .gb-chat { left: 10px; right: 10px; bottom: 10px; width: auto; height: auto; top: 50px; max-height: none; }
  .gb-panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gb *, .gb *::before, .gb *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .gb-kasse-schirm { transform: none; }
}
