/* Gespraechsmodus (gespraech.js, 08.11.2026). Vollbild auf fast schwarzem Grund, kuehles
   Leuchten aus --accent. Raster, Lichtschimmer und Eckwinkel hier, Kugel und Ringe im Canvas.
   Eigenes Design; keine Nachbildung einer Filmoberflaeche. */

/* ---------- Einstieg: Wellen-Knopf ---------- */
.gsp-einstieg { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--text); color: var(--bg); cursor: pointer;
  transition: transform .15s, box-shadow .2s; }
.gsp-einstieg svg { width: 20px; height: 20px; }
.gsp-einstieg:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.gsp-einstieg:active { transform: scale(.95); }
.gsp-einstieg:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Am schwebenden Assistenten: kleine Plakette oben links an der Kugel. */
.ao .gsp-einstieg--orb { position: absolute; right: 46px; bottom: 46px; width: 30px; height: 30px; box-shadow: var(--shadow), 0 2px 8px #0004; }
.ao .gsp-einstieg--orb svg { width: 15px; height: 15px; }
html.gsp-offen .ao { visibility: hidden; }
/* Haupteinstieg in der Assistenten-Ansicht: gross und klar, wie der Sprachknopf bei ChatGPT. */
.gsp-einstieg--haupt { display: inline-flex; align-items: center; gap: 14px; width: auto; height: auto; margin: 14px 0 6px;
  padding: 12px 22px 12px 14px; border-radius: 999px; text-align: left; font: inherit; }
.gsp-einstieg--haupt svg { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 50%;
  background: var(--accent); color: var(--on-accent, #04110d); }
.gsp-einstieg__text { display: grid; gap: 2px; }
.gsp-einstieg__text b { font-size: 16px; }
.gsp-einstieg__text small { font-size: 12.5px; opacity: .75; }
.gsp-einstieg--haupt:active { transform: scale(.98); }

/* ---------- Overlay ---------- */
.gsp { --gsp-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --gsp-glut: color-mix(in srgb, var(--accent) 80%, #fff);
  position: fixed; inset: 0; z-index: 400; overflow: hidden; color: #dfe9ec; outline: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, color-mix(in srgb, var(--accent) 13%, #04070a) 0%, #030507 55%, #010203 100%); }
.gsp[hidden] { display: none; }
/* Raster, zur Mitte hin sichtbar, am Rand verlaufend. */
.gsp::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000 15%, transparent 80%);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000 15%, transparent 80%); }
/* Lichtschimmer: ein weiches Band zieht langsam von oben nach unten. */
.gsp::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; opacity: .5;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 7%, transparent) 50%, transparent);
  animation: gsp-schimmer 9s linear infinite; }
@keyframes gsp-schimmer { to { transform: translateY(440%); } }
.gsp-buehne { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: default; }

.gsp-ecke { position: absolute; width: 34px; height: 34px; pointer-events: none;
  border: 0 solid color-mix(in srgb, var(--accent) 55%, transparent); }
.gsp-ecke--lo { top: 22px; left: 22px; border-top-width: 1px; border-left-width: 1px; }
.gsp-ecke--ro { top: 22px; right: 22px; border-top-width: 1px; border-right-width: 1px; }
.gsp-ecke--lu { bottom: 22px; left: 22px; border-bottom-width: 1px; border-left-width: 1px; }
.gsp-ecke--ru { bottom: 22px; right: 22px; border-bottom-width: 1px; border-right-width: 1px; }

.gsp-kopf { position: absolute; top: 30px; left: 70px; right: 70px; display: flex; justify-content: space-between; pointer-events: none;
  font: 500 11px/1 var(--gsp-mono); letter-spacing: .28em; color: color-mix(in srgb, var(--gsp-glut) 60%, transparent); }
.gsp-uhr { font-variant-numeric: tabular-nums; }

.gsp-status { position: absolute; left: 0; right: 0; bottom: 118px; margin: 0; display: flex; justify-content: center; align-items: center; gap: 12px;
  pointer-events: none; font: 600 13px/1 var(--gsp-mono); letter-spacing: .38em; color: var(--gsp-glut);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.gsp-status__punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--gsp-glut);
  box-shadow: 0 0 10px var(--accent); animation: gsp-puls 1.4s ease-in-out infinite; }
.gsp[data-zustand=denkt] .gsp-status__punkt { animation-duration: .6s; }
.gsp[data-zustand=fehler] .gsp-status { color: #f3a39b; text-shadow: none; }
.gsp[data-zustand=fehler] .gsp-status__punkt { background: #f3a39b; box-shadow: none; animation: none; }
@keyframes gsp-puls { 50% { opacity: .25; } }

.gsp-meldung { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); width: min(520px, calc(100vw - 48px)); margin: 0;
  text-align: center; font-size: 14px; line-height: 1.5; color: #c9d6da; }

/* Anleitung bei gesperrtem Mikrofon: liegt ueber der Kugel, gross lesbar. */
.gsp-anleitung { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); width: min(560px, calc(100vw - 40px));
  padding: 28px 30px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: #05090cf0; box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 16%, transparent); color: #e8f1f3; }
.gsp-anleitung[hidden] { display: none; }
.gsp-anleitung h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.25; }
.gsp-anleitung__schritte { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: schritt; }
.gsp-anleitung__schritte li { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; font-size: 17px; line-height: 1.4; }
.gsp-anleitung__schritte svg { width: 24px; height: 24px; padding: 9px; border-radius: 12px; color: var(--gsp-glut);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.gsp-anleitung__neu { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent, #04110d);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gsp-anleitung__neu:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gsp-leiste { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 18px; }
.gsp-knopf { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: #ffffff0a; color: #dfe9ec;
  transition: background .2s, border-color .2s, transform .15s; }
.gsp-knopf svg { width: 20px; height: 20px; }
.gsp-knopf:hover { background: #ffffff16; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.gsp-knopf:active { transform: scale(.95); }
.gsp-knopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gsp-knopf[aria-pressed=true] { background: #f3a39b22; border-color: #f3a39b88; color: #f3c1bb; }

/* ---------- Klein: nach einem Navigationsbefehl, damit die Ansicht dahinter sichtbar ist ---------- */
.gsp--klein { inset: auto; right: 22px; bottom: 22px; width: 188px; height: 188px; border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 18px 50px #000a, 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.gsp--klein::before, .gsp--klein::after, .gsp--klein .gsp-ecke, .gsp--klein .gsp-kopf, .gsp--klein .gsp-meldung { display: none; }
.gsp--klein .gsp-buehne { cursor: zoom-in; }
.gsp--klein .gsp-status { bottom: 12px; font-size: 8.5px; letter-spacing: .24em; gap: 6px; }
.gsp--klein .gsp-status__punkt { width: 5px; height: 5px; }
.gsp--klein .gsp-leiste { left: auto; right: 6px; top: 6px; bottom: auto; gap: 4px; }
.gsp--klein .gsp-knopf { width: 26px; height: 26px; }
.gsp--klein .gsp-knopf svg { width: 12px; height: 12px; }

@media (max-width: 640px) {
  .gsp-kopf { left: 28px; right: 28px; top: 26px; font-size: 9.5px; letter-spacing: .2em; }
  .gsp-ecke { width: 22px; height: 22px; }
  .gsp--klein { right: 12px; bottom: 96px; width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .gsp::after, .gsp-status__punkt { animation: none; }
  .gsp::after { display: none; }
}
html[data-motion=off] .gsp::after { display: none; }
html[data-motion=off] .gsp-status__punkt { animation: none; }

/* Wetterkarte im Sprachmodus (15.11.2026, gespraech.js wetterSzene) */
@keyframes gkw { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes gkc { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
@keyframes gkr { from { transform: translateY(-40px); } to { transform: translateY(250px); } }
@keyframes gkp { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
@keyframes gks { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
