/* ===========================================================================
   Webinar-Software — heller Apple-Look (Verwaltung + Anmeldeseiten),
   plus ein fokussierter dunkler Webinar-Raum.
   Selbst gehostet, kein Fremd-CDN.
   =========================================================================== */

:root {
  --bg:#f5f5f7; --card:#fff; --ink:#1d1d1f; --muted:#6e6e73;
  --accent:#1877f2; --accent-dark:#166fe5; --line:#e4e4e7;
  --ok:#0a7d3a; --ok-bg:#eafaf0; --warn:#b25c00; --warn-bg:#fff3e0;
  --err:#c0322b; --err-bg:#fff0f0;
  --radius:14px; --maxw:1200px;
  --shadow:0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06);
}

/* ── Anmeldeseite + Replay im Dunkel-Modus ──
   Aktiviert per Body-Klasse pub-dark (public_header), wenn der Betreiber für das
   Webinar die dunkle Optik gewählt hat — damit Anmeldeseite, Raum und Replay aus
   EINEM Guss wirken. Überschreibt die Kern-Variablen + die wenigen fest
   verdrahteten Weißwerte der öffentlichen Seiten. Standard bleibt hell. */
body.pub-dark {
  --bg:#0e131c; --card:#161b24; --ink:#E6EAF2; --muted:#9AA3B2; --line:#262c38;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 16px 44px rgba(0,0,0,.4);
  background:
    radial-gradient(900px 520px at 80% -12%, rgba(46,96,168,.18), transparent 60%),
    linear-gradient(160deg,#121722,#0e131c 62%,#0b0f17);
  background-attachment:fixed; min-height:100vh;
}
body.pub-dark .pub-desc { color:#C2C9D6; }
body.pub-dark input:not([type]), body.pub-dark input[type=text],
body.pub-dark input[type=email], body.pub-dark input[type=password],
body.pub-dark input[type=url], body.pub-dark input[type=number],
body.pub-dark input[type=time], body.pub-dark input[type=tel],
body.pub-dark input[type=datetime-local],
body.pub-dark select, body.pub-dark textarea {
  background:#0f131a; color:var(--ink); border-color:var(--line);
}
body.pub-dark .btn-secondary { background:#1b2230; }
body.pub-dark .form-hint { background:transparent; }
body.pub-dark .pub-hero-img { background:#161b24; }

* { box-sizing:border-box; margin:0; padding:0; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; }
h1,h2,h3,h4 { line-height:1.25; }

/* ── Verwaltungs-Gerüst ── */
.shell { display:flex; min-height:100vh; }
.side {
  width:230px; background:var(--card); border-right:1px solid var(--line);
  display:flex; flex-direction:column; padding:20px 14px;
  position:sticky; top:0; height:100vh; overflow-y:auto;
}
.brand { padding:2px 8px 18px; font-size:17px; font-weight:800; letter-spacing:-.02em; }
.brand span { color:var(--accent); }
.nav { display:flex; flex-direction:column; gap:1px; flex:1; }
.nav a {
  display:flex; align-items:center; gap:9px; padding:9px 12px; border-radius:9px;
  color:var(--ink); font-size:14px; font-weight:500;
}
.nav a:hover { background:var(--bg); text-decoration:none; }
.nav a.on { background:var(--accent); color:#fff; }
.nav .ic { width:18px; text-align:center; }
.who { border-top:1px solid var(--line); margin-top:14px; padding:14px 8px 0; }
.who-name { font-weight:600; font-size:14px; }
.who-mail { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; }
.who-links { margin-top:6px; }
.who-links a { font-size:13px; color:var(--muted); }
.who-lang { position:relative; margin-top:8px; }
.who-lang .lang-toggle {
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 9px; border:1px solid var(--line); border-radius:8px;
  background:#fff; color:var(--ink); font:inherit; font-size:12.5px;
  font-weight:500; cursor:pointer;
}
.who-lang .lang-toggle:hover { border-color:var(--ink); }
.who-lang .lang-toggle .lang-caret { font-size:10px; color:var(--muted); }
.who-lang .lang-menu {
  position:absolute; left:0; bottom:calc(100% + 6px); z-index:50;
  min-width:160px; background:#fff; border:1px solid var(--line);
  border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.10);
  padding:5px; display:flex; flex-direction:column;
}
.who-lang .lang-menu[hidden] { display:none; }
.who-lang .lang-option {
  display:flex; align-items:center; gap:6px;
  padding:7px 10px; border-radius:7px;
  font-size:13.5px; color:var(--ink); text-decoration:none;
}
.who-lang .lang-option:hover { background:var(--bg); }
.who-lang .lang-option.on { font-weight:600; }
.who-lang .lang-check {
  width:14px; text-align:center; color:var(--accent); font-weight:700;
}

.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar { border-bottom:1px solid var(--line); background:var(--card); }
.topbar-inner {
  display:flex; align-items:center; gap:14px;
  max-width:var(--maxw); margin:0 auto; padding:16px 32px; width:100%;
}
.topbar h1 { font-size:22px; font-weight:700; }

/* ── Glocke (Hinweis-Center) ── */
.bell { margin-left:auto; position:relative; }
.bell-btn {
  position:relative; background:none; border:0; cursor:pointer; padding:6px;
  color:var(--ink); line-height:0; border-radius:8px;
}
.bell-btn:hover { background:var(--bg, #f2f2f7); }
.bell-dot {
  position:absolute; top:0; right:0; min-width:17px; height:17px; padding:0 4px;
  background:var(--err); color:#fff; border-radius:9px; font-size:11px;
  font-weight:700; line-height:17px; text-align:center;
}
.bell-menu {
  display:none; position:absolute; top:calc(100% + 8px); right:0; width:330px;
  max-height:70vh; overflow-y:auto; background:var(--card); border:1px solid var(--line);
  border-radius:14px; box-shadow:0 12px 34px rgba(0,0,0,.16); z-index:60;
}
.bell-menu.open { display:block; }
.bell-head {
  padding:13px 16px; font-weight:700; font-size:14px; border-bottom:1px solid var(--line);
  position:sticky; top:0; background:var(--card);
}
.bell-empty { padding:26px 16px; text-align:center; color:var(--muted); font-size:14px; }
.bell-item {
  display:block; padding:13px 16px; border-bottom:1px solid var(--line);
  text-decoration:none; color:inherit;
}
.bell-item:last-child { border-bottom:0; }
a.bell-link:hover { background:var(--bg, #f7f7fb); }
.bell-item-top { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.bell-typ {
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  padding:2px 8px; border-radius:999px; background:#eee; color:#555;
}
.bell-typ-chat { background:var(--ok-bg); color:var(--ok); }
.bell-typ-neu { background:#e7f0ff; color:#1e5fd0; }
.bell-typ-wartung { background:#fff3e0; color:#b26a00; }
.bell-typ-info { background:#eef0f3; color:#52606d; }
.bell-date { font-size:12px; color:var(--muted); margin-left:auto; }
.bell-titel { font-weight:700; font-size:14px; margin-bottom:2px; }
.bell-text { font-size:13px; color:var(--muted); line-height:1.45; }
.bell-ok {
  margin-top:9px; border:0; background:var(--accent); color:#fff; font-size:12px;
  font-weight:700; cursor:pointer; font-family:inherit; padding:6px 13px; border-radius:8px;
}
.bell-ok:hover { opacity:.9; }
.burger { display:none; background:none; border:0; cursor:pointer; padding:4px; color:var(--ink); }
.side-backdrop { display:none; }
.content { max-width:var(--maxw); margin:0 auto; padding:28px 32px 56px; width:100%; flex:1; }
.app-footer {
  border-top:1px solid var(--line); padding:18px 32px;
  text-align:center; color:var(--muted); font-size:12.5px;
}
.app-footer a { color:var(--muted); }

/* ── Text & Überschriften ── */
.page-intro { color:var(--muted); font-size:14.5px; margin-bottom:22px; max-width:680px; }
.section-title {
  font-size:13px; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; color:var(--muted); margin:30px 0 12px;
}
.muted { color:var(--muted); }

/* ── Hinweis-Streifen ── */
.alert {
  border-radius:var(--radius); padding:14px 18px; font-size:14px; margin-bottom:20px;
}
.alert-error   { background:var(--err-bg); border:1px solid #f3c9c6; color:#8a2820; }
.alert-info    { background:#eaf1fd; border:1px solid #cfe0fb; color:#15407c; }
.alert-success { background:var(--ok-bg); border:1px solid #bfe7cd; color:var(--ok); }
.alert-warn    { background:var(--warn-bg); border:1px solid #f3dcae; color:var(--warn); }
.msg { padding:12px 15px; border-radius:10px; font-size:14px; margin-bottom:16px; }
.msg-ok  { background:var(--ok-bg); color:var(--ok); border:1px solid #bfe7cd; }
.msg-err { background:var(--err-bg); color:var(--err); border:1px solid #f3c9c6; }

/* ── Karten / Tafeln ── */
.panel {
  background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:24px; margin-bottom:22px;
}
.panel h2 { font-size:17px; font-weight:700; margin-bottom:6px; }
.panel-sub { font-size:13.5px; color:var(--muted); margin-bottom:16px; }
.panel-head { display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.panel-head h2 { margin-bottom:0; }

/* ── Knöpfe ── */
.btn, .btn-primary {
  display:inline-block; padding:11px 22px; border:0; border-radius:10px;
  background:var(--accent); color:#fff; font-size:15px; font-weight:600;
  font-family:inherit; cursor:pointer; text-align:center;
}
.btn:hover, .btn-primary:hover { background:var(--accent-dark); color:#fff; text-decoration:none; }
.btn-secondary {
  display:inline-block; padding:11px 22px; border:1px solid var(--line);
  border-radius:10px; background:#fff; color:var(--ink); font-size:15px;
  font-weight:600; font-family:inherit; cursor:pointer; text-align:center;
}
.btn-secondary:hover { background:var(--bg); color:var(--ink); text-decoration:none; }
.btn-ghost {
  display:inline-block; padding:7px 14px; border:1px solid var(--line);
  border-radius:8px; background:#fff; color:var(--ink); font-size:13px;
  font-weight:600; font-family:inherit; cursor:pointer;
}
.btn-ghost:hover { background:var(--bg); text-decoration:none; }
.btn-danger { background:var(--err); }
.btn-danger:hover { background:#a82a24; }
.btn-block { display:block; width:100%; }
.btn-large { padding:15px 32px; font-size:17px; }
.btn-row { display:flex; gap:10px; flex-wrap:wrap; }

/* ── Formularfelder ── */
label { display:block; font-size:13px; font-weight:600; margin:14px 0 6px; }
input:not([type]), input[type=text], input[type=email], input[type=password],
input[type=url], input[type=number], input[type=time], input[type=tel],
select, textarea {
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px;
  font-size:15px; font-family:inherit; background:#fff; color:var(--ink);
}
textarea { min-height:110px; resize:vertical; line-height:1.55; }
input:focus, select:focus, textarea:focus {
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(24,119,242,.15);
}
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
.form-grid .full { grid-column:1 / -1; }
.form-hint { font-size:12px; color:var(--muted); margin-top:5px; }
@media (max-width:640px) { .form-grid { grid-template-columns:1fr; } }

/* ── Tabellen ── */
.table-wrap {
  background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
  overflow-x:auto;
}
.table { width:100%; border-collapse:collapse; font-size:14px; }
.table th, .table td { padding:12px 16px; text-align:left; vertical-align:middle; }
.table thead th {
  background:#fafafa; color:var(--muted); font-size:12px; font-weight:600;
  text-transform:uppercase; letter-spacing:.03em; border-bottom:1px solid var(--line);
  white-space:nowrap;
}
.table tbody tr { border-bottom:1px solid var(--line); }
.table tbody tr:last-child { border-bottom:0; }
.table tbody tr:hover { background:#fafbfc; }

/* ── Etiketten ── */
.badge { display:inline-block; padding:3px 10px; border-radius:20px;
  font-size:12px; font-weight:600; }
.badge-ok   { background:var(--ok-bg); color:var(--ok); }
.badge-off  { background:#f0f0f2; color:var(--muted); }

/* ── Anmelde-/Verwalter-Login ── */
.auth-wrap {
  min-height:100vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; padding:32px 18px;
}
.auth-box {
  background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:36px; width:100%; max-width:420px;
}
.auth-brand { text-align:center; font-size:19px; font-weight:800;
  letter-spacing:-.02em; margin-bottom:6px; }
.auth-brand span { color:var(--accent); }
.auth-title { text-align:center; font-size:21px; font-weight:700; margin:12px 0 4px; }
.auth-sub { text-align:center; font-size:14px; color:var(--muted); margin-bottom:22px; }
.auth-foot { margin-top:22px; text-align:center; font-size:12px; color:var(--muted); }

/* ── Öffentliche Anmeldeseite (Teilnehmer) ── */
.pub { max-width:680px; margin:0 auto; padding:48px 20px 64px; }
.pub-brand { font-size:15px; font-weight:800; letter-spacing:-.02em; color:var(--muted);
  margin-bottom:26px; }
.pub-brand span { color:var(--accent); }
.pub-logo { max-height:40px; max-width:200px; height:auto; }
.pub-card {
  background:var(--card); border-radius:18px; box-shadow:var(--shadow); overflow:hidden;
}
.pub-hero { padding:34px 36px 26px; }
.pub-live-tag {
  display:inline-block; background:#fdecea; color:#c0322b; font-size:12px;
  font-weight:800; text-transform:uppercase; letter-spacing:.06em;
  padding:5px 11px; border-radius:20px; margin-bottom:14px;
}
.pub-hero h1 { font-size:28px; font-weight:800; letter-spacing:-.02em; line-height:1.2; }
.pub-presenter { color:var(--muted); font-size:14.5px; margin-top:10px; }
.pub-desc { font-size:15px; line-height:1.65; color:#3a3a3c; margin-top:16px; }
.pub-desc p { margin:0 0 12px; }
.pub-desc p:last-child { margin-bottom:0; }
.pub-desc-side p { margin:0 0 12px; }
.pub-desc-side p:last-child { margin-bottom:0; }
.pub-body { padding:8px 36px 36px; }

/* Termin-Auswahl */
.slot-list { display:flex; flex-direction:column; gap:10px; margin:6px 0 4px; }
.slot {
  display:flex; align-items:center; gap:12px; padding:14px 16px;
  border:1.5px solid var(--line); border-radius:12px; cursor:pointer;
  transition:border-color .12s ease, background .12s ease;
}
.slot:hover { border-color:#c7d6ee; background:#fafbff; }
.slot input { width:auto; margin:0; flex:none; }
.slot-when { font-weight:600; font-size:15px; }
.slot:has(input:checked) { border-color:var(--accent); background:#f1f6ff; }

/* Platz-Verknappung unter dem Termin-Auswahlmenü */
.slot-info { font-size:13.5px; color:var(--muted); margin-top:8px; min-height:18px; }
.slot-info.urgent { color:#c0322b; font-weight:700; }

/* ── Vorlage „Mit Moderator-Foto" — breiterer Container ── */
.pub:has(.pub-with-photo) { max-width:1040px; }
.pub-with-photo .pub-banner {
  background:var(--accent); color:#fff; padding:14px 22px; text-align:center;
  font-weight:700; font-size:14.5px; letter-spacing:.02em;
}
.pub-hero-photo { text-align:center; padding:46px 48px 28px; }
.pub-hero-photo h1 {
  font-size:44px; font-weight:800; letter-spacing:-.02em; line-height:1.15;
  margin:0 0 22px;
}
.pub-hero-photo h1 .hl-accent { color:var(--accent); }
.pub-cta {
  display:inline-block; background:var(--accent); color:#fff !important;
  padding:16px 34px; border-radius:12px; font-weight:700; font-size:18px;
  text-decoration:none; box-shadow:0 6px 18px rgba(24,119,242,.25);
}
.pub-cta:hover { filter:brightness(1.06); }

/* 2-Spalten: Foto links, Vortrags-Text + Moderator-Info rechts. */
.pub-presenter-row {
  display:grid; grid-template-columns:200px 1fr; align-items:start;
  gap:32px; padding:24px 48px 36px;
}
.pub-photo-circle {
  width:200px; height:200px; border-radius:50%; overflow:hidden;
  background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.10);
}
.pub-photo-circle img { width:100%; height:100%; object-fit:cover; display:block; }
.pub-presenter-text { min-width:0; }
.pub-desc-side {
  font-size:16.5px; line-height:1.6; color:#3a3a3c; margin:0 0 18px;
}
.pub-presenter-label {
  font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em;
  font-weight:700; margin-bottom:4px;
}
.pub-presenter-name { font-size:22px; font-weight:800; color:var(--accent); margin-bottom:2px; }
.pub-presenter-role { font-size:14.5px; color:#3a3a3c; }

@media (max-width:560px) {
  .pub-hero, .pub-body { padding-left:22px; padding-right:22px; }
  .pub-hero h1 { font-size:23px; }
  .pub-hero-photo { padding:28px 22px 22px; }
  .pub-hero-photo h1 { font-size:28px; }
  .pub-cta { padding:13px 24px; font-size:16px; }
  .pub-presenter-row {
    grid-template-columns:1fr; padding:18px 22px 24px; gap:18px;
    justify-items:center; text-align:center;
  }
  .pub-photo-circle { width:140px; height:140px; }
}

/* ── Webinar-Raum ──
   Optik per Body-Klasse: .room-light (Standard, hell & lebendig) oder
   .room-dark (edles Dunkel). Alle Farben laufen über --rm-*-Variablen, damit
   beide Modi aus EINER Stelle gepflegt werden. */
body.room {
  /* Helle Standard-Optik (lebendig statt flaches Grau) */
  --rm-surface:#ffffff; --rm-border:#E3E9F2;
  --rm-text:#1B2430; --rm-soft:#5A6473; --rm-title:#0B1220;
  --rm-name:#1877f2; --rm-input-bg:#ffffff; --rm-input-border:#D5DEEA;
  --rm-foot:#9AA3B2; --rm-foot-link:#5A6473;
  --rm-stage-shadow:0 18px 50px rgba(11,30,60,.16);
  --rm-card-shadow:0 12px 34px rgba(11,30,60,.08);
  --rm-cover:radial-gradient(circle at 50% 38%, #ffffff, #E9F1FB);
  --rm-sticky-bg:rgba(24,119,242,.08);
  --rm-host-bg:rgba(17,122,77,.10); --rm-host-name:#178a4b;
  color:var(--rm-text);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(24,119,242,.08), transparent 60%),
    radial-gradient(820px 460px at 92% 108%, rgba(199,126,18,.06), transparent 62%),
    linear-gradient(180deg,#FBFDFF,#EFF4FB);
  background-attachment:fixed; min-height:100vh;
}
body.room.room-dark {
  /* Edles Dunkel (kein hartes Schwarz — tiefes Navy/Anthrazit) */
  --rm-surface:#161b24; --rm-border:#262c38;
  --rm-text:#E6EAF2; --rm-soft:#9AA3B2; --rm-title:#ffffff;
  --rm-name:#7FB6FF; --rm-input-bg:#0f131a; --rm-input-border:#2b3340;
  --rm-foot:#7E8796; --rm-foot-link:#9AA3B2;
  --rm-stage-shadow:0 20px 60px rgba(0,0,0,.5);
  --rm-card-shadow:0 16px 44px rgba(0,0,0,.38);
  --rm-cover:radial-gradient(circle at 50% 40%, #1c2230, #0c0d10);
  --rm-sticky-bg:rgba(24,119,242,.16);
  --rm-host-bg:rgba(52,210,123,.10); --rm-host-name:#34d27b;
  background:
    radial-gradient(900px 520px at 80% -12%, rgba(46,96,168,.20), transparent 60%),
    linear-gradient(160deg,#121722,#0e131c 62%,#0b0f17);
}
.room-wrap { max-width:1080px; margin:0 auto; padding:24px 18px 48px; }
.room-bar {
  display:flex; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap;
}
.room-live {
  display:inline-flex; align-items:center; gap:7px; background:#c0322b; color:#fff;
  font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em;
  padding:5px 11px; border-radius:20px;
}
.room-live .dot {
  width:8px; height:8px; border-radius:50%; background:#fff;
  animation:pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.25; } }
.room-title { font-size:16px; font-weight:700; color:var(--rm-title); }
.room-clock { margin-left:auto; font-size:13px; color:var(--rm-soft);
  font-variant-numeric:tabular-nums; }

.stage {
  position:relative; width:100%; aspect-ratio:16/9; background:#000;
  border-radius:14px; overflow:hidden; box-shadow:var(--rm-stage-shadow);
}
.stage video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; }
/* Schutzschicht: liegt unsichtbar über dem Video, fängt jeden Klick ab —
   so kommt die Maus nie ans Video (kein Rechtsklick-Menü, kein Speichern). */
.stage-shield { position:absolute; inset:0; z-index:5; }
/* Join-Vorhang: erst ein Klick erlaubt Ton-Wiedergabe */
.stage-cover {
  position:absolute; inset:0; z-index:10; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:14px; text-align:center;
  /* Halbtransparenter Schleier: das (stumme) Webinar läuft sichtbar dahinter —
     vorne nur der „Ton freischalten"-Knopf (EverWebinar-Muster). */
  background:rgba(9,13,20,.46); backdrop-filter:blur(2px); padding:24px; cursor:pointer;
}
.stage-cover h2 { color:#fff; font-size:22px; font-weight:700; }
.stage-cover p { color:rgba(255,255,255,.82); font-size:14px; max-width:380px; }
.stage-cover.hidden { display:none; }

/* Countdown-Bildschirm */
.count-wrap {
  min-height:78vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; padding:24px;
}
.count-when { color:var(--rm-soft); font-size:15px; margin-bottom:8px; }
.count-title { color:var(--rm-title); font-size:24px; font-weight:800; margin-bottom:26px;
  letter-spacing:-.02em; }
.count-clock {
  font-size:54px; font-weight:800; color:var(--rm-title); letter-spacing:.01em;
  font-variant-numeric:tabular-nums;
}
.count-label { color:var(--rm-soft); font-size:13px; text-transform:uppercase;
  letter-spacing:.08em; margin-top:8px; }
.room-note { text-align:center; color:var(--rm-soft); font-size:13px; margin-top:18px; }
.room-foot { text-align:center; color:var(--rm-foot); font-size:12px; margin-top:30px; }
.room-foot a { color:var(--rm-foot-link); }

/* ── Raum: Video + Live-Chat nebeneinander ── */
.room-main { display:flex; gap:16px; align-items:stretch; }
.stage-col { flex:1; min-width:0; display:flex; flex-direction:column; }
.offer-bar { margin-top:12px; }
.offer-bar .btn { box-shadow:0 8px 24px rgba(24,119,242,.4); }
/* Knopf-Leiste unter dem Video: ein Knopf = voll-breit; zwei = gleich breit
   nebeneinander (WhatsApp links, Bestellen rechts). Mobil gestapelt. */
.offer-row { display:flex; gap:10px; align-items:stretch; }
.offer-row > a { flex:1 1 0; min-width:0; text-align:center;
  display:inline-flex; align-items:center; justify-content:center; }
.offer-row .btn-wa, .chat-btn-wa { background:#25D366; box-shadow:0 8px 24px rgba(37,211,102,.40); }
.offer-row .btn-wa:hover { background:#1ebe5b; }
@media (max-width:560px) { .offer-row.offer-two { flex-direction:column-reverse; } }
/* Mini-Knöpfe im Chat-Drehbuch */
.chat-btn { display:inline-flex; align-items:center; gap:3px; vertical-align:middle;
  background:#1877f2; color:#fff !important; text-decoration:none; font-weight:600;
  font-size:12.5px; line-height:1.2; padding:5px 11px; border-radius:8px; margin:3px 4px 1px 0; }
.chat-btn:hover { text-decoration:none; filter:brightness(.95); }

.chat-col {
  width:330px; flex:none; background:var(--rm-surface); border:1px solid var(--rm-border);
  border-radius:14px; display:flex; flex-direction:column; overflow:hidden;
  box-shadow:var(--rm-card-shadow);
}
.chat-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 15px; border-bottom:1px solid var(--rm-border);
  font-size:14px; font-weight:700; color:var(--rm-title);
}
.chat-viewers { font-size:13px; font-weight:600; color:var(--rm-soft); }
.chat-sticky {
  flex:none; background:var(--rm-sticky-bg); border-bottom:1px solid var(--rm-border);
  padding:11px 14px; font-size:13px; line-height:1.5; color:var(--rm-text);
}
.chat-log {
  flex:1; min-height:0; overflow-y:auto; padding:12px 14px;
  display:flex; flex-direction:column; gap:9px;
}
.chat-msg { font-size:13.5px; line-height:1.45; }
.chat-name { font-weight:700; color:var(--rm-name); margin-right:6px; }
.chat-body { color:var(--rm-text); }
.chat-host { background:var(--rm-host-bg); border-radius:7px;
  margin:0 -6px; padding:5px 6px; }
.chat-host .chat-name { color:var(--rm-host-name); }
.chat-locknote { flex:none; padding:10px 14px; font-size:12.5px; line-height:1.45;
  text-align:center; color:var(--rm-soft); border-top:1px solid var(--rm-border);
  background:var(--rm-sticky-bg); }
.chat-input { display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--rm-border); }
.chat-input input {
  flex:1; min-width:0; background:var(--rm-input-bg); border:1px solid var(--rm-input-border);
  border-radius:9px; padding:9px 11px; font-size:13.5px; color:var(--rm-text);
  font-family:inherit;
}
.chat-input input:focus { outline:none; border-color:#1877f2; }
.chat-input button {
  flex:none; width:40px; border:0; border-radius:9px; background:#1877f2;
  color:#fff; font-size:16px; font-weight:700; cursor:pointer;
}
@media (max-width:820px) {
  .room-main { flex-direction:column; }
  .chat-col { width:100%; height:320px; }
}

/* ── Live-Mitlese-Modus (Verwaltung) ── */
.mon-log {
  max-height:460px; overflow-y:auto; border:1px solid var(--line);
  border-radius:10px; background:#fafafa;
}
.mon-msg {
  display:flex; align-items:baseline; gap:8px; padding:8px 14px;
  border-bottom:1px solid #ededf0; font-size:14px;
}
.mon-msg:last-child { border-bottom:0; }
.mon-nm { font-weight:700; color:var(--accent); white-space:nowrap; }
.mon-bd { flex:1; color:var(--ink); word-break:break-word; }
.mon-del {
  flex:none; border:0; background:none; color:var(--err); font-size:12px;
  font-weight:600; cursor:pointer; font-family:inherit;
}
.mon-del:hover { text-decoration:underline; }
.mon-prom {
  flex:none; border:0; background:none; color:var(--accent); font-size:12px;
  font-weight:600; cursor:pointer; font-family:inherit;
}
.mon-prom:hover { text-decoration:underline; }
.mon-promoted {
  flex:none; color:var(--ok); font-size:12px; font-weight:700; white-space:nowrap;
}
.mon-host { background:var(--ok-bg); }
.mon-host .mon-nm { color:var(--ok); }

/* ── Einstiegs-Banner (Plattform-Admin im Kunden-Konto) ── */
.impersonate-bar {
  background:#c0322b; color:#fff; padding:10px 18px; font-size:14px;
  text-align:center; font-weight:500;
}
.impersonate-bar a {
  color:#fff; text-decoration:underline; margin-left:8px; font-weight:600;
}

/* ── Wort-Editor (js/editor.js) ── */
.rt { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.rt-bar {
  display:flex; flex-wrap:wrap; gap:4px; padding:7px;
  background:#fafafa; border-bottom:1px solid var(--line);
}
.rt-btn {
  border:1px solid var(--line); background:#fff; border-radius:6px;
  padding:4px 9px; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer;
  color:var(--ink);
}
.rt-btn:hover { background:var(--bg); }
.rt-chip { font-weight:500; color:var(--muted); }
.rt-chip:hover { color:var(--ink); }
.rt-toggle { margin-left:auto; }
.rt-toggle.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.rt-edit {
  min-height:160px; padding:12px 14px; font-size:14px; line-height:1.6;
  outline:none; background:#fff; color:var(--ink);
}
.rt-edit:focus { box-shadow:inset 0 0 0 2px rgba(24,119,242,.15); }
.rt-source {
  width:100%; min-height:160px; padding:12px 14px; border:0; resize:vertical;
  font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; line-height:1.55;
  background:#fff; color:var(--ink);
}
.rt-source:focus { outline:none; }
.rt-single { border-bottom-left-radius:0; border-bottom-right-radius:0; border-bottom:0; }
.rt-single + .rt-input-attached {
  border-top-left-radius:0 !important; border-top-right-radius:0 !important;
}

/* ── Hilfsklassen ── */
.text-center { text-align:center; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.hidden { display:none; }

/* ── Schmale Bildschirme (Verwaltung) ── */
@media (max-width:860px) {
  .side {
    position:fixed; top:0; left:0; bottom:0; z-index:100; width:262px;
    transform:translateX(-100%); transition:transform .22s ease;
    box-shadow:0 0 40px rgba(0,0,0,.2);
  }
  .shell.menu-open .side { transform:translateX(0); }
  .side-backdrop {
    display:block; position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.45);
    opacity:0; pointer-events:none; transition:opacity .22s ease;
  }
  .shell.menu-open .side-backdrop { opacity:1; pointer-events:auto; }
  .burger { display:block; }
  .topbar-inner { padding:13px 16px; }
  .content { padding:18px; }
}

/* ── CCM19 Cookie-Schutz-Zahnrad nach rechts unten zwingen ─────────────────
   CCM19 (Stand 2026-05) rendert das schwebende Zahnrad als
     <a class="ccm-settings-summoner ...">
       <img class="ccm-settings-summoner--icon" ...>
     </a>
   Standardposition ist unten links — wo bei uns Logout + Sprach-Switcher
   in der Seitenleiste liegen. Wir verschieben das Element nach rechts unten. */
.ccm-settings-summoner,
.ccm-settings-summoner--icon,
[class^="ccm-settings-summoner"] {
    left: auto !important;
    right: 14px !important;
    bottom: 14px !important;
}

/* ── 3-Schritt-Assistent: Schritt-Reiter (webinar-edit.php) ───────────────────
   Global hier statt im Inline-Block, damit es IMMER lädt. Klare, antippbare
   Pillen mit Nummer-Kreis statt zusammengeklebter blauer Links. */
.wiz-steps{
  display:flex; flex-wrap:wrap; gap:10px; margin:0 0 24px;
}
.wiz-step{
  display:inline-flex; align-items:center; gap:10px;
  padding:11px 18px; border:1px solid var(--line); border-radius:12px;
  background:var(--card); color:var(--muted);
  font-size:14.5px; font-weight:600; line-height:1; text-decoration:none;
  transition:border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .05s ease;
}
.wiz-step .wiz-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:50%; background:#eef0f3;
  color:var(--muted); font-size:13px; font-weight:700; flex:0 0 auto;
}
a.wiz-step:hover{ border-color:var(--ink); color:var(--ink); }
a.wiz-step:active{ transform:translateY(1px); }
.wiz-step.is-current{
  border-color:var(--accent); color:var(--ink);
  box-shadow:0 0 0 3px rgba(24,119,242,.15);
}
.wiz-step.is-current .wiz-num{ background:var(--accent); color:#fff; }
.wiz-step.is-done{ color:var(--ink); }
.wiz-step.is-done .wiz-num{ background:#34c759; color:#fff; }
.wiz-step.is-locked{ opacity:.5; cursor:default; }
.wiz-h-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; background:var(--accent);
  color:#fff; font-size:15px; font-weight:700; margin-right:8px;
}
@media (max-width:560px){
  .wiz-steps{ gap:8px; }
  .wiz-step{ padding:9px 13px; font-size:13px; }
}
