/* © 2026 Hans Stellmacher. WebinarButler. Alle Rechte vorbehalten. */
/* WebinarButler, gemeinsames Stylesheet */
:root {
  --navy: #0b1f35;
  --orange: #f07d00;
  --orange-hover: #d96e00;
  --light-bg: #f2f4f7;
  --text: #2c2c2c;
  --text-muted: #666;
  --radius: 8px;
  --wb-b: pvz3yn7nua;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
}

.webinar-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.webinar-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.webinar-box h1 { font-size: 24px; margin-bottom: 16px; color: var(--navy); }
/* Anmeldeseite: breiter (600 statt 480 px), damit die lange Headline besser liest */
.webinar-box-anmeldung { max-width: 520px; }

/* iFrame-Einbettung (…?embed=1): Karte, Zentrierung und Hintergrund entfernen,
   damit sich das Formular nahtlos in die einbettende Seite (z. B. eine mit einem
   Pagebuilder erstellte Landingpage) fügt */
body.embed { background: transparent; }
body.embed .webinar-wrapper { min-height: 0; padding: 0; display: block; }
body.embed .webinar-box { max-width: 520px; margin: 0 auto; background: transparent; box-shadow: none; padding: 4px 0; }
.untertitel { color: var(--text-muted); margin-bottom: 24px; }
/* Hinweisbalken, wenn die Seite nur für Admin/Vorschau sichtbar ist.
   Bleibt beim Scrollen oben kleben: Der Inhaltsbereich darunter ist einen ganzen
   Bildschirm hoch (min-height:100vh), sonst würde der Balken schon beim kleinsten
   Scrollen aus dem Blick rutschen. */
.vorschau-balken {
  position: sticky; top: 0; z-index: 100;
  background: #c0392b; color: #fff; text-align: center; padding: 10px 16px;
  font-size: 13px; font-weight: 600; line-height: 1.45;
}
/* Der Balken zählt zur Seitenhöhe, der Bereich darunter wird entsprechend
   kürzer, damit keine unnötige Bildlaufleiste entsteht. */
.vorschau-balken ~ .webinar-wrapper { min-height: calc(100vh - 42px); }
body.embed .vorschau-balken { position: static; border-radius: var(--radius); margin-bottom: 12px; }

/* Anmeldeseite: Webinar-Untertitel direkt unter der Überschrift (Nutzenversprechen) */
.anmelde-untertitel { color: var(--navy); font-weight: 600; font-size: 17px; line-height: 1.4; margin: -6px 0 16px; }

/* Anmeldeseite: Dringlichkeit + Social Proof direkt über dem Formular */
.dringlichkeit { color: var(--orange); font-weight: 700; margin: -14px 0 4px; }
/* Social Proof: gleiche Schrift wie die Formular-Beschriftungen, in Orange */
.social-proof { color: var(--orange); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.fehler { color: #c0392b; margin-bottom: 16px; }
.hinweis-box { background: #eafaf1; color: #1e7e45; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; text-align: center; }

.anmelde-formular { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.anmelde-formular label { font-weight: 600; font-size: 14px; }
.anmelde-formular input,
.anmelde-formular select {
  padding: 11px 14px; border: 1px solid #ccc; border-radius: var(--radius); font-size: 15px;
  background: #fff; color: var(--text); width: 100%;
}
.anmelde-formular input:focus,
.anmelde-formular select:focus { outline: none; border-color: var(--orange); }

/* Terminauswahl: Solange kein Termin gewählt ist (:invalid, weil Pflichtfeld mit
   leerem Platzhalter), zeigt das geschlossene Feld den orange-fetten Platzhalter
   (= nächster Termin). Sobald ein echter Termin gewählt ist, erscheint er normal. */
#termin_wahl:invalid { color: var(--orange); font-weight: 700; }
#termin_wahl option { color: var(--text); font-weight: 400; }
#termin_wahl option[value=""] { color: var(--orange); font-weight: 700; }
.einwilligung-hinweis { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 2px 0 4px; }

/* Honeypot: für Menschen unsichtbar (fängt automatisierte Bots ab) */
.hp-feld { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }


.btn {
  display: inline-block; background: var(--orange); color: #fff; border: none;
  padding: 13px 20px; border-radius: var(--radius); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--orange-hover); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-klein { padding: 6px 12px; font-size: 13px; background: var(--orange); color: #fff; border: none; border-radius: 6px; cursor: pointer; }

/* Countdown */
/* Warte-/Countdown-Seite: breiter (600 statt 480 px), damit die "Gleich lernst Du"-Bullets Luft haben */
.webinar-box.countdown-box { max-width: 600px; }
.countdown-box .countdown { font-size: 44px; font-weight: 800; color: var(--navy); margin: 20px 0; font-variant-numeric: tabular-nums; }
.hinweis { color: var(--text-muted); font-size: 13px; }

/* Warteraum: "Gleich lernst Du"-Vorschau unter dem Countdown */
.warteraum-info { margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee; text-align: left; }
.warteraum-titel { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.warteraum-info ul { padding-left: 22px; margin-bottom: 14px; }
.warteraum-info li { margin-bottom: 6px; }
.warteraum-tipp { color: var(--text-muted); font-size: 13px; }

/* Video */
.video-box { width: 100%; max-width: 960px; padding: 24px; }
.video-wrapper { position: relative; padding-top: 56.25%; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }

/* Unsichtbare Sperrschicht über dem Video: verhindert Klicks auf Pause,
   Zeitleiste, Geschwindigkeit usw., das Video läuft ungestört automatisch durch. */
.video-sperre { position: absolute; inset: 0; z-index: 5; background: transparent; }

/* Start-Button: einmaliger Klick erlaubt dem Browser, das Video mit Ton
   abzuspielen (Autoplay mit Ton ist ohne Nutzerinteraktion nicht erlaubt). */
.video-start {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 100%;
  background: rgba(11,31,53,0.85);
  color: #fff; border: none; cursor: pointer;
  font-family: 'Inter', Arial, sans-serif; font-size: 16px; font-weight: 600;
  text-align: center; padding: 24px;
}
.video-start:hover { background: rgba(11,31,53,0.92); }
.video-start-icon {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 28px;
}

/* Vollbild-Button: erscheint erst, nachdem das Video gestartet wurde */
.video-fullscreen {
  position: absolute; right: 14px; bottom: 14px; z-index: 7;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11,31,53,0.75); color: #fff; border: none; cursor: pointer;
  font-size: 20px;
}
.video-fullscreen:hover { background: rgba(11,31,53,0.9); }

/* Lautstärkeregelung: unten links, erscheint (wie der Vollbild-Button) erst nach Start */
.video-volume {
  position: absolute; left: 14px; bottom: 14px; z-index: 7;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11,31,53,0.75); border-radius: 22px; padding: 6px 12px 6px 8px;
}
.video-volume-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0; width: 24px; height: 24px;
}
.video-volume-slider { width: 90px; cursor: pointer; accent-color: var(--orange); }

/* Video-Ende: CTA-Overlay über dem Schlussbild. Ohne Endbild bleibt das letzte
   Videobild sichtbar (CTA-Kasten liegt unten); ein optionales Endbild
   (ENDBILD_DATEI) füllt die gesamte Fläche. */
.video-ende {
  position: absolute; inset: 0; z-index: 8;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
}
.video-ende-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-ende-inhalt {
  position: relative;
  background: rgba(11,31,53,0.88); border-radius: var(--radius);
  padding: 22px 26px; text-align: center; max-width: 560px;
}
.video-ende-text { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
@media (max-width: 600px) {
  .video-ende { padding: 10px; }
  .video-ende-inhalt { padding: 14px 16px; }
  .video-ende-text { font-size: 15px; margin-bottom: 10px; }
}

/* Video-Steuerung automatisch aus-/einblenden: standardmäßig unsichtbar und nicht
   bedienbar; erst sichtbar, wenn der Rahmen die Klasse .controls-sichtbar trägt
   (das setzt/entfernt das JavaScript in raum.php bei Mausbewegung/Tippen, auch im
   Vollbild, mit zeitverzögertem Ausblenden). */
.video-fullscreen, .video-volume {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.video-wrapper.controls-sichtbar .video-fullscreen,
.video-wrapper.controls-sichtbar .video-volume {
  opacity: 1;
  pointer-events: auto;
}

/* Im Vollbild braucht es den Seitenverhältnis-Trick (padding-top) nicht mehr,
   der Rahmen füllt ohnehin den ganzen Bildschirm. */
.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen {
  padding-top: 0;
  width: 100vw;
  height: 100vh;
}

.raum-titel {
  color: var(--navy);
  font-size: clamp(40px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  margin: 24px 24px 0;
}

/* Halb so groß wie .raum-titel, bei jeder Fensterbreite proportional dazu */
.raum-untertitel {
  color: var(--text-muted);
  font-size: clamp(20px, 2.5vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  margin: 8px 24px 0;
}

/* Mobil: Webinarraum-Titel kleiner, näher an der Subheadline (Breite bleibt) */
@media (max-width: 600px) {
  .raum-titel { font-size: 28px; }
}

/* Call-to-Action im Webinarraum */
.cta-box {
  margin-top: 20px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  animation: cta-einblenden 0.5s ease;
}
.cta-text { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }

@keyframes cta-einblenden {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Admin */
.admin-wrapper { max-width: 1000px; margin: 0 auto; padding: 32px 24px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; padding: 20px 28px; border-radius: var(--radius); margin-bottom: 24px; }
.admin-header h1 { font-size: 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: 24px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.admin-card h2 { font-size: 16px; margin-bottom: 16px; color: var(--navy); }
.termin-formular { display: flex; flex-direction: column; gap: 12px; }
.termin-formular label { font-size: 13px; font-weight: 600; }
.termin-formular input { padding: 9px 12px; border: 1px solid #ccc; border-radius: 6px; }
.admin-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-tabelle th, .admin-tabelle td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eee; }
.admin-tabelle th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; }

/* Funnel-Dashboard: alle fünf Kennzahlen nebeneinander in EINER Reihe.
   Schrift und Innenabstände sind darauf abgestimmt, damit auch längere
   Beschriftungen wie „Bestätigt / DOI · 100 %" ohne Umbruch hineinpassen. */
.funnel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.funnel-stat { background: var(--light-bg); border-radius: var(--radius); padding: 14px 8px; text-align: center; }
.funnel-zahl { display: block; font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.funnel-label { display: block; font-size: 11px; line-height: 1.35; color: var(--text-muted); margin-top: 6px; }
.reset-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

@media (max-width: 760px) {
  .admin-grid { grid-template-columns: 1fr; }
  .funnel-grid { grid-template-columns: 1fr 1fr; }
}

/* Smartphone: Video größer darstellen, nur noch ein schmaler Rand zum
   Bildschirmrand (statt der üblichen 24px+24px Innenabstände). */
@media (max-width: 600px) {
  .webinar-wrapper { padding: 10px; }
  .video-box { padding: 10px 0; }
}

/* ============================================================
   FOOTER + RECHTSTEXTE (Impressum / Datenschutz)
============================================================ */
.seiten-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.seiten-footer a { color: var(--text-muted); text-decoration: underline; }
.seiten-footer a:hover { color: var(--orange); }
.seiten-footer span { margin: 0 8px; color: #bbb; }

.rechtstext {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  background: #fff;
}
.rechtstext h1 { font-size: 28px; color: var(--navy); margin-bottom: 24px; }
.rechtstext h2 { font-size: 18px; color: var(--navy); margin: 28px 0 10px; }
.rechtstext p, .rechtstext li { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.rechtstext ul { padding-left: 22px; margin-bottom: 10px; }
.rechtstext a { color: var(--orange); }
