/* Web-Anruf per Link: Gast-Seite. Hell/dunkel nach Geräte-Einstellung, Farben wie die App (tint #4F3DC4 / #A79BFF). */
:root {
  --bg: #f6f5fb;
  --card: #ffffff;
  --text: #1b1a22;
  --muted: #5d5a6b;
  --tint: #4f3dc4;
  --on-tint: #ffffff;
  --danger: #c62d3a;
  --line: #e2e0ec;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111017;
    --card: #1c1b24;
    --text: #f2f1f7;
    --muted: #aba8b9;
    --tint: #a79bff;
    --on-tint: #15122e;
    --danger: #ff6b76;
    --line: #2e2c3a;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}
#app { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: 20px 0; min-height: 100dvh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.center { align-items: center; text-align: center; }
h1 { font-size: 24px; line-height: 1.25; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; text-align: center; margin-top: auto; }
label { font-weight: 600; font-size: 15px; margin-top: 4px; }
input {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
input:focus-visible, button:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 14px; min-height: 52px; padding: 12px 18px; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--tint); color: var(--on-tint); font-size: 18px; }
.danger { background: var(--danger); color: #fff; }
.lock { font-size: 14px; color: var(--muted); }
.pulse { width: 72px; height: 72px; border-radius: 50%; background: var(--tint); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.call { padding: 16px; }
.stage { position: relative; aspect-ratio: 3 / 4; max-height: 52dvh; border-radius: 16px; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.stage video { background: #000; }
#remote-video { width: 100%; height: 100%; object-fit: cover; }
#local-video { position: absolute; right: 10px; bottom: 10px; width: 28%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 2px solid var(--card); transform: scaleX(-1); }
.avatar { font-size: 72px; }
.status { text-align: center; font-weight: 600; }
.code { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 14px; }
.code strong { font-size: 28px; letter-spacing: 6px; }
.controls { display: flex; justify-content: center; gap: 16px; }
.round { width: 76px; min-height: 76px; border-radius: 22px; background: var(--bg); color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
.round span { font-size: 24px; }
.round small { font-size: 12px; }
.round[aria-pressed="true"] { background: var(--tint); color: var(--on-tint); border-color: var(--tint); }
.round.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
[hidden] { display: none !important; }
