/*
 * Jetzt / danach - je Bühne, was gerade läuft und was danach kommt (AGENDA.LIVE).
 *
 * Gestaltungslinie Panels (ADR-058): der Bereich als großes Panel, jede Bühne
 * als Karte darin, „Jetzt" auf getönter Fläche. Bühnen ordnen sich ohne
 * Haltepunkt: so viele nebeneinander, wie die Mindestbreite zulässt.
 *
 * Verzug steht als Text mit Kupferkante, nie nur als Farbe. Ember nur als
 * Punkt „live", nie als Text (ADR-009). Nur Rollen, keine Markenfarbe.
 *
 * @FEAT:AGENDA.LIVE
 * @FEAT:ELEMENTOR.WIDGETS
 */

.uc-live {
	box-sizing: border-box;
	display: grid;
	gap: var( --uc-live-luecke, 16px );
	width: 100%;
	max-width: var( --uc-live-breite, none );
	margin: var( --uc-live-ausrichtung, 0 );
	padding: var( --uc-live-innen, clamp( 20px, 3vw, 32px ) );
	border-radius: var( --uc-live-radius, var( --uc-radius-gross, 28px ) );
	background: var( --uc-live-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-text, #1c2b4a );
}

.uc-live *,
.uc-live *::before,
.uc-live *::after {
	box-sizing: border-box;
}

.uc-live[hidden],
.uc-live [hidden] {
	display: none !important;
}

.uc-live__nur-vorlesen {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}

.uc-live .uc-live__titel {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var( --uc-live-titel-abstand, 0 );
	color: var( --uc-live-titel-farbe, var( --uc-text, #1c2b4a ) );
	font-size: var( --uc-schrift-h3, 1.35rem );
	font-weight: 800;
	letter-spacing: var( --uc-spationierung-titel, -0.03em );
	line-height: 1.2;
}

/* Punkt „live": Zierde, kein Text - die Überschrift sagt es */
.uc-live__punkt {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var( --uc-live-punkt, var( --uc-akzent, #e85d3a ) );
}

@media ( prefers-reduced-motion: no-preference ) {
	.uc-live__punkt {
		animation: uc-live-puls 2s var( --uc-kurve, ease ) infinite;
	}
}

@keyframes uc-live-puls {
	50% {
		opacity: 0.35;
	}
}

.uc-live__buehnen {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( var( --uc-live-spalte, 260px ), 100% ), 1fr ) );
	gap: var( --uc-live-luecke, 16px );
}

/* ------------------------------------------------------------- Bühne */

.uc-live__buehne {
	display: grid;
	align-content: start;
	gap: var( --uc-live-buehne-luecke, 12px );
	min-width: 0;
	padding: var( --uc-live-buehne-innen, 20px );
	border-radius: var( --uc-live-buehne-radius, var( --uc-radius, 20px ) );
	background: var( --uc-live-buehne-flaeche, var( --uc-grund, #f2ede4 ) );
}

.uc-live .uc-live__name {
	margin: 0;
	color: var( --uc-live-name-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
}

.uc-live .uc-live__verzug {
	justify-self: start;
	margin: 0;
	padding: var( --uc-live-verzug-innen, 4px 12px );
	border-left: 3px solid var( --uc-live-verzug-kante, var( --uc-kante-b, #b5622a ) );
	border-radius: var( --uc-live-verzug-radius, 0 8px 8px 0 );
	background: var( --uc-live-verzug-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-live-verzug-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

/* ------------------------------------------------------ Jetzt, Danach */

.uc-live__eintrag {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.uc-live__eintrag--jetzt {
	padding: var( --uc-live-jetzt-innen, 14px 16px );
	border-radius: var( --uc-live-jetzt-radius, var( --uc-radius-klein, 12px ) );
	background: var( --uc-live-jetzt-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
}

.uc-live__eintrag--danach {
	padding: var( --uc-live-danach-innen, 12px 16px 0 );
	border-top: 1px solid var( --uc-live-linie, var( --uc-rahmen, #e3dacb ) );
	border-radius: var( --uc-live-danach-radius, 0 );
	background: var( --uc-live-danach-flaeche, transparent );
}

.uc-live .uc-live__label {
	margin: 0;
	color: var( --uc-live-label-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.uc-live .uc-live__zeit {
	margin: 0;
	color: var( --uc-live-zeit-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1.3;
}

.uc-live .uc-live__vortrag {
	margin: 0;
	color: var( --uc-live-vortrag-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.uc-live .uc-live__speaker {
	margin: 0;
	color: var( --uc-live-speaker-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 14px;
	line-height: 1.4;
}

.uc-live .uc-live__frei {
	margin: 0;
	color: var( --uc-live-frei-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 14px;
	line-height: 1.45;
}

.uc-live .uc-live__leer {
	margin: 0;
	color: var( --uc-live-leer-farbe, var( --uc-text-leise, #4c5c76 ) );
	line-height: 1.5;
}

/* ---------------------------------------------------------------- Links */

.uc-live .uc-live__vortrag a,
.elementor-widget .uc-live .uc-live__vortrag a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var( --uc-live-link-linie, transparent );
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.uc-live .uc-live__vortrag a:hover {
	color: inherit;
	text-decoration-color: var( --uc-live-link-linie-hover, var( --uc-kante-b, #b5622a ) );
}

.uc-live .uc-live__vortrag a:active {
	color: var( --uc-live-link-farbe-druck, var( --uc-text-leise, #4c5c76 ) );
}

/* Fokus orange, kein dunkelblauer Ring */
.uc-live .uc-live__vortrag a:focus-visible {
	outline: 2px solid var( --uc-live-link-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
	border-radius: 4px;
}
