/* =========================================================
   effektbar meet – Design-Tokens übernommen von effektbar.de
   ========================================================= */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: 'Geist Variable', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
  --bg: #f4f4f3;
  --bg-raised: #ffffff;
  --bg-sunken: #eaeae8;
  --fg: #232425;
  --fg-2: #4a4c4e;
  --fg-3: #626466;
  --line: rgba(35, 36, 37, 0.1);
  --line-strong: rgba(35, 36, 37, 0.18);
  --accent: #262829;
  --accent-hover: #3b3e40;
  --on-accent: #ffffff;
  --brand: #7855f3;
  --brand-text: #5b3bd6;
  --code-ink: 35, 36, 37;
  --code-alpha: 0.15;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --card-glass: rgba(255, 255, 255, 0.38);
  --card-edge: rgba(255, 255, 255, 0.7);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 0 0 1px rgba(35, 36, 37, 0.04), 0 30px 80px -30px rgba(60, 40, 140, 0.28);
  --glow-1: rgba(120, 85, 243, 0.34);
  --glow-2: rgba(155, 130, 255, 0.26);
  --glow-3: rgba(35, 36, 37, 0.07);
  --glow-4: rgba(255, 255, 255, 0.9);
  --grain-opacity: 0.18;
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 50px rgba(30, 33, 33, 0.1);
  --btn-shadow: 0 10px 28px -14px rgba(35, 36, 37, 0.55);
  --tile: #2a2b2e;
  --tile-fg: #f2f2f1;
  --danger: #c0392b;
  --danger-hover: #a93226;
  --vignette: rgba(30, 33, 33, 0.07);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #1c1d1f;
  --bg-raised: #252629;
  --bg-sunken: #161719;
  --fg: #f2f2f1;
  --fg-2: #c6c7c9;
  --fg-3: #939599;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ececea;
  --accent-hover: #ffffff;
  --on-accent: #1c1d1f;
  --brand: #9b82ff;
  --brand-text: #a993ff;
  --code-ink: 225, 226, 228;
  --code-alpha: 0.2;
  --glass: rgba(38, 39, 42, 0.55);
  --glass-strong: rgba(38, 39, 42, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px rgba(0, 0, 0, 0.45);
  --card-glass: rgba(40, 41, 44, 0.42);
  --card-edge: rgba(255, 255, 255, 0.09);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow-1: rgba(120, 85, 243, 0.3);
  --glow-2: rgba(155, 130, 255, 0.14);
  --glow-3: rgba(0, 0, 0, 0.35);
  --glow-4: rgba(255, 255, 255, 0.03);
  --grain-opacity: 0.12;
  --btn-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  --tile: #252629;
  --danger: #e0503f;
  --danger-hover: #ff6a58;
  --vignette: rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #1c1d1f;
    --bg-raised: #252629;
    --bg-sunken: #161719;
    --fg: #f2f2f1;
    --fg-2: #c6c7c9;
    --fg-3: #939599;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #ececea;
    --accent-hover: #ffffff;
    --on-accent: #1c1d1f;
    --brand: #9b82ff;
    --brand-text: #a993ff;
    --code-ink: 225, 226, 228;
    --code-alpha: 0.2;
    --glass: rgba(38, 39, 42, 0.55);
    --glass-strong: rgba(38, 39, 42, 0.8);
    --glass-edge: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px rgba(0, 0, 0, 0.45);
    --card-glass: rgba(40, 41, 44, 0.42);
    --card-edge: rgba(255, 255, 255, 0.09);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    --glow-1: rgba(120, 85, 243, 0.3);
    --glow-2: rgba(155, 130, 255, 0.14);
    --glow-3: rgba(0, 0, 0, 0.35);
    --glow-4: rgba(255, 255, 255, 0.03);
    --grain-opacity: 0.12;
    --btn-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --tile: #252629;
    --danger: #e0503f;
    --danger-hover: #ff6a58;
    --vignette: rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
[hidden] { display: none !important; }
a { color: var(--brand-text); }
button { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Hintergrund: weiche Lichtflächen in den Markenfarben, die langsam wandern */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow span { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.glow .g1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -16vmax; background: radial-gradient(circle, var(--glow-1), transparent 68%); animation: drift1 38s ease-in-out infinite alternate; }
.glow .g2 { width: 40vmax; height: 40vmax; right: -14vmax; top: 18vh; background: radial-gradient(circle, var(--glow-2), transparent 68%); animation: drift2 44s ease-in-out infinite alternate; }
.glow .g3 { width: 50vmax; height: 50vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, var(--glow-3), transparent 70%); animation: drift3 52s ease-in-out infinite alternate; }
.glow .g4 { width: 30vmax; height: 30vmax; left: 38vw; top: -10vmax; background: radial-gradient(circle, var(--glow-4), transparent 70%); animation: drift2 60s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 10vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-10vw, 6vh) scale(.94); } }
@keyframes drift3 { to { transform: translate(-6vw, -8vh) scale(1.1); } }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Code-Terminal unten rechts: neue Zeilen unten, ältere wandern nach oben und verblassen */
.code-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 30%, transparent 55%, var(--vignette) 100%);
}
.view { position: relative; z-index: 1; height: 100%; }

/* Logo: Schrift in currentColor, Quadrat in Lila (kommt aus dem SVG) */
.logo { display: inline-block; line-height: 0; color: var(--fg); }
.logo svg { height: 26px; width: auto; stroke: none; }
.logo-sm svg { height: 18px; }

.card {
  position: relative;
  background: linear-gradient(155deg, color-mix(in srgb, var(--card-glass) 100%, transparent), color-mix(in srgb, var(--card-glass) 60%, transparent));
  border: 1px solid var(--card-edge);
  box-shadow: var(--card-shadow);
  border-radius: var(--r-l);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
}
/* feine Lichtkante oben links wie bei Glas */
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent 38%);
  mix-blend-mode: soft-light;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-link { background: none; color: var(--fg-2); min-height: 40px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- Vor dem Beitritt ---------- */
#prejoin { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.brandbar { width: 100%; max-width: 1040px; display: flex; justify-content: flex-start; padding: 0 4px 22px; }
.prejoin {
  width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; padding: 22px;
}
.preview { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--tile); align-self: center; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.preview-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--tile-fg); }
.preview.has-video .preview-off { display: none; }
.muted-label { font-size: 14px; color: rgba(242, 242, 241, .7); }
.preview-controls { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.preview-controls .ctrl { background: rgba(20, 21, 22, .55); color: #fff; border-color: rgba(255, 255, 255, .14); }
.preview-controls .ctrl[aria-pressed='false'] { background: var(--danger); border-color: transparent; }

.join-form { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 8px 8px 0; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; color: var(--brand-text); }
.eyebrow::before { content: ''; display: inline-block; width: 7px; height: 11px; margin-right: 8px; background: var(--brand); vertical-align: -1px; }
.join-form h1 { margin: 0; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.02em; font-weight: 650; }
.lead { margin: 0; color: var(--fg-2); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.field input, .field select {
  font: inherit; font-size: 16px; color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--line-strong); border-radius: var(--r-s); padding: 12px 14px; min-height: 48px; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.devices { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; display: block; }
.devices summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.devices[open] { display: flex; flex-direction: column; gap: 12px; }
.level { height: 6px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.level span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .08s linear; }
.form-error { margin: 0; min-height: 1.2em; color: var(--danger); font-size: 14px; }
.fineprint { margin: 0; font-size: 13px; color: var(--fg-3); }

/* ---------- Im Gespräch ---------- */
.call { display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 1fr auto; gap: 0; height: 100dvh; }
.call-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.call-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-meta { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.live-dot { width: 7px; height: 11px; background: var(--brand); display: inline-block; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.banner {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  padding: 8px 16px; border-radius: 999px; font-size: 14px;
}

.stage { grid-column: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 12px; }
.spotlight { flex: 1 1 auto; min-height: 0; display: flex; }
.spotlight .tile { flex: 1; aspect-ratio: auto; }
.stage.has-spotlight .grid { flex: 0 0 auto; display: flex; gap: 12px; overflow-x: auto; height: 140px; }
.stage.has-spotlight .grid .tile { width: 220px; flex: none; aspect-ratio: auto; height: 100%; }
.grid { flex: 1; min-height: 0; display: grid; gap: 12px; align-content: center; justify-content: center; grid-template-columns: repeat(var(--cols, 1), minmax(0, var(--tile-w, 1fr))); }

.tile {
  position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--tile); color: var(--tile-fg);
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; min-width: 0;
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, .45);
  transition: box-shadow .2s var(--ease);
}
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.is-local video { transform: scaleX(-1); }
.tile.is-screen video { object-fit: contain; background: #111; transform: none; }
.tile.is-speaking { box-shadow: 0 0 0 3px var(--brand), 0 18px 44px -24px rgba(0, 0, 0, .45); }
.tile .avatar { display: flex; }
.tile.has-video .avatar { display: none; }
.tile-name {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20, 21, 22, .55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
}
.tile-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name svg { width: 15px; height: 15px; color: #ff8a7a; display: none; }
.tile.is-muted .tile-name svg { display: block; }
.tile-quality { position: absolute; right: 10px; top: 10px; font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(20, 21, 22, .55); color: #ffcf8a; display: none; }
.tile.is-poor .tile-quality { display: block; }

.avatar {
  width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 26%, #2f3033); color: #fff; font-weight: 600; font-size: 26px; display: flex;
}
.avatar-lg { width: 96px; height: 96px; font-size: 34px; }

.controls {
  grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}
.ctrl {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 52px; height: 52px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.ctrl:hover { transform: translateY(-1px); }
.ctrl-label { font-size: 11px; font-weight: 500; line-height: 1; color: var(--fg-2); }
.controls .ctrl { flex-direction: row; gap: 8px; padding: 0 18px; }
.controls .ctrl-label { font-size: 14px; color: inherit; }
.ctrl .i-off { display: none; }
.ctrl[aria-pressed='false'] .i-on { display: none; }
.ctrl[aria-pressed='false'] .i-off { display: block; }
.controls .ctrl#btn-mic[aria-pressed='false'], .controls .ctrl#btn-cam[aria-pressed='false'] { background: var(--danger); color: #fff; border-color: transparent; }
.controls .ctrl#btn-screen[aria-pressed='true'], .controls .ctrl#btn-chat[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.ctrl-leave { background: var(--danger) !important; color: #fff; border-color: transparent !important; }
.ctrl-leave:hover { background: var(--danger-hover) !important; }
.badge { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* Chat */
.chat { grid-column: 2; grid-row: 2; width: 340px; margin: 4px 20px 12px 0; display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-list { list-style: none; margin: 0; padding: 14px 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-list li { display: flex; flex-direction: column; gap: 2px; }
.chat-list .who { font-size: 12px; font-weight: 600; color: var(--fg-3); }
.chat-list .who time { font-family: var(--font-mono); font-weight: 400; margin-left: 6px; }
.chat-list .text { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.chat-list li.me { align-items: flex-end; }
.chat-list li.me .text { background: var(--accent); color: var(--on-accent); border-color: transparent; border-radius: 14px 4px 14px 14px; }
.chat-list .empty { color: var(--fg-3); font-size: 14px; text-align: center; margin: auto 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; color: var(--fg); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 14px; }
.chat-form input:focus { outline: none; border-color: var(--brand); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--bg-sunken); }

/* Hinweis-Seiten */
.center { display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.message { max-width: 480px; width: 100%; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.message h1 { margin: 12px 0 0; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }

.fineprint { display: flex; align-items: flex-start; gap: 8px; }
.fineprint svg { width: 15px; height: 15px; margin-top: 2px; color: var(--fg-3); }
.helpline { margin: -6px 0 0 23px; font-size: 13px; color: var(--fg-3); }
.helpline a { color: var(--fg-2); text-decoration: none; font-weight: 500; }
.helpline a:hover { color: var(--brand-text); }
.btn svg { width: 19px; height: 19px; }

.contact { width: 100%; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.contact-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.contact-list a, .contact-static {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--fg); text-decoration: none;
  background: color-mix(in srgb, var(--bg-raised) 55%, transparent); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-list a:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--bg-raised); }
.contact-list svg { width: 16px; height: 16px; color: var(--brand-text); }
.contact-static { color: var(--fg-2); }
.contact-addr { margin: 2px 0 0; font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); letter-spacing: -.01em; }

.legal {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--fg-3); pointer-events: none;
}
.legal a { color: var(--fg-3); text-decoration: none; pointer-events: auto; }
.legal a:hover { color: var(--fg); text-decoration: underline; }
body.in-call .legal, body.embed .legal { display: none; }
/* In collai eingebettet: Fenster hat eigene Titelleiste, Ende schließt das Fenster */
body.embed .call-top .logo { display: none; }
body.embed #rejoin-btn, body.embed #ended .btn-link, body.embed #ended .contact { display: none; }
/* Im Gespräch ruhiger Hintergrund: Lichtflächen ja, Code-Terminal nein */
.code-bg { transition: opacity .6s var(--ease); }
body.in-call .code-bg { opacity: 0; }
#prejoin, .center { padding-bottom: 56px; }

/* Hell/Dunkel-Schalter */
.theme-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); color: var(--fg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.05); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: none; }
}
body.in-call .theme-toggle { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: 20px; width: 52px; height: 52px; }
body, .card, .ctrl, .tile, .field input, .field select { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }

/* Beitreten per Code */
.code-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 999px; font: inherit;
  font-family: var(--font-mono); font-size: 16px; letter-spacing: .06em; color: var(--fg);
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent); border: 1px solid var(--line-strong);
}
.code-row input::placeholder { letter-spacing: .02em; color: var(--fg-3); }
.code-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.code-row .btn { padding: 0 22px; }
.code-hint { margin: 0; font-size: 13px; color: var(--fg-3); min-height: 1.3em; }
.code-hint.is-error { color: var(--danger); }
.or { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--fg-3); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.room-code { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); margin: -6px 0 0; }
.room-code button { font: inherit; color: var(--fg-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .prejoin { grid-template-columns: 1fr; gap: 20px; padding: 14px; }
  .join-form { padding: 0 4px 6px; }
  .brandbar { padding-bottom: 14px; }
  .call-top { padding: 12px 16px; }
  .stage { padding: 4px 16px 8px; }
  .controls { gap: 8px; }
  .controls .ctrl { padding: 0; width: 52px; }
  .controls .ctrl-label { display: none; }
  .chat { position: fixed; inset: auto 0 0 0; z-index: 10; width: auto; height: 70dvh; margin: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--glass-strong); }
  .stage.has-spotlight .grid { height: 100px; }
  .stage.has-spotlight .grid .tile { width: 150px; }
}
@media (max-width: 380px) {
  .controls .ctrl { width: 46px; min-width: 46px; height: 46px; }
}
@media (max-width: 820px) {
  #prejoin { justify-content: flex-start; }
  .theme-toggle { top: 12px; right: 12px; width: 40px; height: 40px; }
  body.in-call .theme-toggle { top: 8px; bottom: auto; right: 10px; width: 36px; height: 36px; }
  body.in-call .call-top { padding-right: 56px; }
  .legal { background: linear-gradient(transparent, var(--bg) 55%); }
  .contact-list a, .contact-static { font-size: 13px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
