/* WL Webinar – schlichtes, mobil optimiertes Layout
   Farben & Hintergrund: Webinare → Einstellungen → Darstellung */

/* ---------- Eigenes Seitenlayout: Theme-Elemente ausblenden ---------- */
.wl-clean .fusion-page-title-bar,
.wl-clean .avada-page-titlebar-wrapper,
.wl-clean .page-title-bar { display: none !important; }
.wl-clean #main { padding-top: 0 !important; padding-bottom: 0 !important; }
.wl-page { display: block; width: 100%; }

/* ---------- Grundgerüst ---------- */
.wl-brand {
	--wl-brand: #544cd8;
	--wl-brand-2: #473ec8;
	--wl-dark: #3229a6;
	--wl-accent: #7ee2aa;
	--wl-accent-ink: #333333;
	--wl-accent-hover: #6cd49c;
	--wl-sky: #89d3fb;
	--wl-ink: #fff;
	--wl-soft: #d9d7f3;
	--wl-card-bg: #fff;
	--wl-card-ink: #1f1d3a;
	position: relative;
	box-sizing: border-box;
	margin: 32px auto;
	padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px);
	border-radius: 14px;
	background: linear-gradient(135deg, var(--wl-brand) 0%, var(--wl-brand-2) 100%);
	color: var(--wl-ink);
	font-size: 16px;
	line-height: 1.55;
}
.wl-brand *, .wl-brand *::before, .wl-brand *::after { box-sizing: border-box; }
.wl-brand.wl-text-dark { --wl-ink: #1f1d3a; --wl-soft: #4b4a63; }
.wl-brand.wl-bg-none { padding-left: 0; padding-right: 0; }

/* volle Breite im eigenen Seitenlayout */
.wl-brand.wl-full {
	width: 100vw; max-width: 100vw;
	margin: 0 0 0 calc(50% - 50vw);
	border-radius: 0;
	min-height: 60vh;
}
.wl-inner { max-width: 1120px; margin: 0 auto; }
.wl-narrow { max-width: 620px; }

.wl-brand p { margin: 0 0 12px; }
.wl-brand a { color: inherit; text-decoration: underline; }

.wl-eyebrow {
	margin: 0 0 8px !important;
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wl-soft);
}
.wl-brand .wl-title {
	margin: 0 0 10px; padding: 0;
	font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.15;
	color: var(--wl-ink); text-transform: none; letter-spacing: -.01em;
}
.wl-date { font-size: 17px; font-weight: 700; color: var(--wl-accent); }
.wl-text-dark .wl-date { color: var(--wl-brand); }

/* ---------- Anmeldung: Raster ---------- */
.wl-reg {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	grid-template-areas: "head form" "info form";
	grid-template-rows: auto 1fr;
	gap: 8px 48px;
	align-items: start;
}
.wl-reg-head { grid-area: head; }
.wl-reg-form { grid-area: form; position: sticky; top: 24px; }
.wl-reg-info { grid-area: info; }
.wl-reg:not(:has(.wl-reg-head)) { grid-template-areas: "info form"; grid-template-rows: auto; }

@media (max-width: 900px) {
	.wl-reg,
	.wl-reg:not(:has(.wl-reg-head)) {
		grid-template-columns: 1fr;
		grid-template-areas: "head" "form" "info";
		grid-template-rows: auto;
		gap: 20px;
	}
	.wl-reg-form { position: static; }
}

/* Beschreibung */
.wl-text { color: var(--wl-ink); font-size: 16px; }
.wl-text p { margin: 0 0 12px; }
.wl-text ul, .wl-text ol { margin: 0 0 12px 1.2em; padding: 0; }
.wl-text h2, .wl-text h3, .wl-text h4 { color: var(--wl-ink); margin: 18px 0 8px; font-size: 19px; line-height: 1.3; }
.wl-topic-desc { font-size: 17px; margin-bottom: 18px; }
.wl-series-desc { color: var(--wl-soft); }

/* Termine */
.wl-dates-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.wl-text-dark .wl-dates-box { border-top-color: rgba(0, 0, 0, .12); }
.wl-dates-head { font-size: 15px; color: var(--wl-soft); }
.wl-dates-head strong { color: var(--wl-ink); }
.wl-dates { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.wl-dates li { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 8px 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wl-text-dark .wl-dates li { border-bottom-color: rgba(0, 0, 0, .08); }
.wl-dates .wl-d { font-weight: 700; white-space: nowrap; }
.wl-dates .wl-t { color: var(--wl-soft); }
.wl-more-dates { margin-top: 6px; }
.wl-more-dates summary { cursor: pointer; padding: 8px 0; font-weight: 700; color: var(--wl-accent); }
.wl-text-dark .wl-more-dates summary { color: var(--wl-brand); }

/* ---------- Formular-Karte ---------- */
.wl-card {
	background: var(--wl-card-bg); color: var(--wl-card-ink);
	border-radius: 12px; padding: clamp(20px, 3vw, 30px);
	box-shadow: 0 18px 48px rgba(15, 10, 70, .22);
}
.wl-card a { color: var(--wl-brand); }
.wl-center { text-align: center; }
.wl-card .wl-title { color: var(--wl-card-ink); font-size: 26px; }
.wl-form-title { font-size: 20px; font-weight: 800; margin: 0 0 16px !important; color: var(--wl-card-ink); }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.wl-row:has(> :only-child) { grid-template-columns: 1fr; }
@media (max-width: 480px) { .wl-row { grid-template-columns: 1fr; } }
.wl-field { display: block; margin: 0 0 14px; }
.wl-field > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; color: var(--wl-card-ink); }
.wl-field small { font-weight: 400; color: #77768c; }
.wl-brand input[type=text], .wl-brand input[type=email], .wl-brand input[type=tel], .wl-brand textarea {
	display: block; width: 100%; margin: 0; padding: 12px 14px;
	background: #fff; color: #1f1d3a; border: 1px solid #cfcde3; border-radius: 6px;
	font: inherit; font-size: 16px; /* 16px verhindert Zoom auf iPhone */
	box-shadow: none; height: auto; line-height: 1.4;
}
.wl-brand input:focus, .wl-brand textarea:focus { outline: none; border-color: var(--wl-brand); box-shadow: 0 0 0 3px rgba(84, 76, 216, .2); }
.wl-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 13px; line-height: 1.45; color: #55546b; cursor: pointer; }
.wl-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wl-brand); }
.wl-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Buttons – wie auf boersenrobos.de: Mint, dunkelgraue Schrift, gesperrte Großbuchstaben */
.wl-brand .wl-btn, .wl-brand .wl-cta-btn, .wl-cta-btn {
	display: inline-block; cursor: pointer; text-decoration: none !important; text-align: center;
	background: var(--wl-accent) !important; color: var(--wl-accent-ink) !important;
	border: 0 !important; border-radius: 4px; box-shadow: none !important;
	padding: 15px 32px;
	font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
	transition: background-color .2s ease, color .2s ease;
}
.wl-brand .wl-btn:hover, .wl-brand .wl-btn:focus-visible,
.wl-brand .wl-cta-btn:hover, .wl-brand .wl-cta-btn:focus-visible, .wl-cta-btn:hover {
	background: var(--wl-accent-hover) !important; color: var(--wl-accent-ink-hover, var(--wl-accent-ink)) !important;
}
.wl-brand .wl-btn:disabled { opacity: .6; cursor: default; }
.wl-btn-block { width: 100%; margin-top: 6px; }

/* Hinweise */
.wl-notice { padding: 14px 16px; border-radius: 8px; margin: 0 0 16px; font-size: 15px; }
.wl-ok { background: #ecfdf3; border: 1px solid #7ee2aa; color: #14532d; }
.wl-err { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.wl-muted { color: var(--wl-soft); font-size: 14px; }

/* ---------- Webinar-Raum ---------- */
.wl-room-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.wl-room-head .wl-when { margin: 0; color: var(--wl-accent); font-weight: 700; }
.wl-text-dark .wl-room-head .wl-when { color: var(--wl-brand); }
.wl-live {
	display: inline-flex; align-items: center; gap: 6px; margin-right: 6px;
	background: var(--wl-sky); color: #10295a; border-radius: 3px; padding: 2px 8px; font-size: 12px; letter-spacing: .1em;
}
.wl-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e11d48; animation: wlpulse 1.4s infinite; }
@keyframes wlpulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .6); } 70% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }
.wl-room-desc { margin: -6px 0 18px; color: var(--wl-soft); }
.wl-countdown { background: rgba(255, 255, 255, .12); border-left: 4px solid var(--wl-accent); padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; font-weight: 700; }
.wl-text-dark .wl-countdown { background: rgba(0, 0, 0, .05); }
.wl-cd { color: var(--wl-accent); }
.wl-text-dark .wl-cd { color: var(--wl-brand); }
.wl-kicked[hidden], .wl-countdown[hidden] { display: none !important; }

.wl-stage { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .wl-stage { grid-template-columns: 1fr; } }
.wl-player { position: relative; aspect-ratio: 16 / 9; align-self: start; background: #0f0c3d; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgba(15, 10, 80, .35); }
.wl-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wl-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #d9d7f3; padding: 20px; text-align: center; }
.wl-kicked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: #fff; background: rgba(32, 25, 120, .95); }
.wl-qa { background: var(--wl-card-bg); color: var(--wl-card-ink); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; }
.wl-text-dark .wl-qa, .wl-bg-none .wl-qa { border: 1px solid #e3e1f0; }
.wl-qa h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: var(--wl-card-ink); }
.wl-qa .wl-muted { color: #6b6a80; }
.wl-qform { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.wl-qform textarea { resize: vertical; min-height: 120px; }
.wl-qform .wl-btn { width: 100%; padding-left: 12px; padding-right: 12px; }
.wl-qstatus { min-height: 1.2em; font-size: 14px; color: #15803d; text-align: center; }
.wl-who { margin-top: auto !important; padding-top: 14px; font-size: 13px; color: #6b6a80; }
.wl-next { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.wl-text-dark .wl-next { border-top-color: rgba(0, 0, 0, .1); }
.wl-next p { margin: 0 0 8px; }

/* Vorteile / Ablauf (Anmeldung) */
.wl-series { margin: -4px 0 8px !important; color: var(--wl-soft); font-weight: 600; }
.wl-perks { list-style: none !important; margin: 22px 0 8px !important; padding: 18px 0 0 !important; border-top: 1px solid rgba(255, 255, 255, .18); }
.wl-text-dark .wl-perks { border-top-color: rgba(0, 0, 0, .12); }
.wl-perks li { position: relative; margin: 0 0 10px; padding-left: 30px; }
.wl-perks li::before {
	content: "✓"; position: absolute; left: 0; top: 1px;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--wl-accent); color: var(--wl-accent-ink);
	font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.wl-perks strong { font-size: 17px; }

/* ---------- Banner Testangebot ---------- */
.wl-cta {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
	margin: 28px 0 8px; padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 44px);
	border-radius: 14px; border: 2px solid var(--wl-accent);
	background: radial-gradient(circle at 100% 0%, rgba(126, 226, 170, .28), transparent 45%), linear-gradient(120deg, #241c86 0%, #4a41cf 100%);
	color: #fff; box-shadow: 0 22px 50px rgba(30, 20, 120, .3);
}
.wl-cta-wrap { margin-top: 36px; }
.wl-cta-kicker {
	display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 30px;
	background: var(--wl-accent); color: var(--wl-accent-ink);
	font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.wl-cta .wl-cta-title { margin: 0 0 8px !important; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.15; color: #fff; }
.wl-cta .wl-cta-text { margin: 0 0 14px !important; font-size: 17px; color: #dedcf7; max-width: 640px; }
.wl-cta-points { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.wl-cta-points li { position: relative; margin: 0; padding-left: 26px; font-weight: 600; color: #fff; }
.wl-cta-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wl-accent); font-weight: 800; }
.wl-cta-action { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 280px; }
.wl-cta-price { font-size: 30px; font-weight: 800; color: var(--wl-accent); line-height: 1; }
.wl-brand .wl-cta-btn, .wl-cta-btn { display: block; width: 100%; padding: 18px 22px; font-size: 15px; }
.wl-cta-note { font-size: 12px; color: #c9c6f0; }
@media (max-width: 820px) {
	.wl-cta { grid-template-columns: 1fr; }
	.wl-cta-points { grid-template-columns: 1fr; }
	.wl-cta-action { min-width: 0; }
}
