/*
 * Zeitplan - Raster und Tagesliste, Filter, Seitenleiste je Vortrag (E2f, E3b).
 *
 * Raster: eine Spalte Zeitachse plus je Bühne eine; ein Rasterschritt sind
 * 5 Minuten (--uc-zp-schritt). Die Lage jedes Zeitfensters setzt das Widget
 * als Regel mit Ganzzahlen. Plenum und Pause laufen über alle Bühnen.
 *
 * Tagesliste: je Tag eine geordnete Liste, Zeit links, Eintrag rechts; unter
 * 480 px steht die Zeit darüber. Sie ist für Screenreader die Hauptansicht.
 *
 * Welche Ansicht: Ohne Skript breit das Raster, schmal (unter 720 px) die
 * Liste. Mit Skript entscheidet der Umschalter (`data-ansicht` am Wrapper),
 * am Handy steht zuerst die Liste.
 *
 * Bühnenfarben sind Rollen des Themes (--uc-bereich-1 …); sie zeigen sich nur
 * als Kante und Punkt, nie allein als Information - der Name steht immer
 * dabei (Baukasten 3.2 Regel 4). Merkmale stehen als Text.
 *
 * Nur Rollen, keine Markenfarbe (Projektregel 8). Ember trägt keinen Text;
 * Fokus orange (Ember druck), nie dunkelblaue Ringe; nie Hover ohne :active.
 *
 * @FEAT:AGENDA.SLOTS
 * @FEAT:AGENDA.TIMETABLE
 * @FEAT:AGENDA.BREAKS
 * @FEAT:AGENDA.A11Y
 * @FEAT:ELEMENTOR.WIDGETS
 */

.uc-zeitplan {
	box-sizing: border-box;
	color: var( --uc-text, #1c2b4a );
}

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

/* `hidden` gewinnt immer - auch gegen display in den Regeln unten */
.uc-zeitplan [hidden] {
	display: none !important;
}

/* Nur für Screenreader */
.uc-zeitplan__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;
}

/* Farbe je Bühne: Klasse aus color_role, Wert aus dem Theme */
.uc-zeitplan--f0 { --uc-zp-farbe: var( --uc-text, #1c2b4a ); }
.uc-zeitplan--f1 { --uc-zp-farbe: var( --uc-bereich-1, #1c2b4a ); }
.uc-zeitplan--f2 { --uc-zp-farbe: var( --uc-bereich-2, #b5622a ); }
.uc-zeitplan--f3 { --uc-zp-farbe: var( --uc-bereich-3, #3f6e5a ); }
.uc-zeitplan--f4 { --uc-zp-farbe: var( --uc-bereich-4, #4f5a70 ); }
.uc-zeitplan--f5 { --uc-zp-farbe: var( --uc-bereich-5, #8a6a1e ); }
.uc-zeitplan--f6 { --uc-zp-farbe: var( --uc-bereich-6, #c94726 ); }

.uc-zeitplan__punkt {
	display: inline-block;
	flex: none;
	width: 9px;
	height: 9px;
	margin-right: 6px;
	border-radius: 50%;
	background: var( --uc-zp-farbe, currentColor );
	vertical-align: 0.05em;
}

/* --------------------------------------------------------- Hinweis */

.uc-zeitplan .uc-zeitplan__hinweis {
	margin: 0 0 var( --uc-zp-hinweis-abstand, 16px );
	color: var( --uc-zp-hinweis-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 14px;
	line-height: 1.5;
}

.uc-zeitplan .uc-zeitplan__hinweis--band {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-radius: var( --uc-radius-klein, 12px );
	background: var( --uc-zp-hinweis-flaeche, var( --uc-flaeche-getoent, #e8e0d2 ) );
	color: var( --uc-text, #1c2b4a );
	font-size: 15px;
	font-weight: 600;
}

.uc-zeitplan__hinweis-symbol {
	flex: none;
	width: 22px;
	height: 22px;
	color: var( --uc-kante-b, #b5622a );
}

.uc-zeitplan__legende {
	margin-top: 14px;
}

/* ------------------------------------------- Werkzeuge: Umschalter, Filter */

.uc-zeitplan__werkzeuge {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var( --uc-zp-werkzeuge-luecke, 16px ) 24px;
	margin-bottom: 20px;
}

.uc-zeitplan__filter {
	display: flex;
	flex-wrap: wrap;
	gap: var( --uc-zp-filter-luecke, 8px );
	margin: 0;
}

.uc-zeitplan .uc-zeitplan__filter button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var( --uc-zp-filter-form-innen, 0 16px );
	border: 1.5px solid var( --uc-zp-filter-rand, var( --uc-rahmen, #e3dacb ) );
	border-radius: var( --uc-zp-filter-form-radius, var( --uc-radius-knopf, 999px ) );
	background: var( --uc-zp-filter-flaeche, transparent );
	color: var( --uc-zp-filter-farbe, var( --uc-text, #1c2b4a ) );
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.uc-zeitplan .uc-zeitplan__filter button:hover {
	border-color: var( --uc-zp-filter-rand-hover, var( --uc-aktion, #1c2b4a ) );
	background: var( --uc-zp-filter-flaeche, transparent );
	color: var( --uc-zp-filter-farbe, var( --uc-text, #1c2b4a ) );
}

.uc-zeitplan .uc-zeitplan__filter button:active {
	background: var( --uc-zp-filter-flaeche-druck, var( --uc-flaeche-getoent, #e8e0d2 ) );
}

.uc-zeitplan .uc-zeitplan__filter button[aria-pressed="true"] {
	border-color: var( --uc-zp-filter-flaeche-aktiv, var( --uc-aktion, #1c2b4a ) );
	background: var( --uc-zp-filter-flaeche-aktiv, var( --uc-aktion, #1c2b4a ) );
	color: var( --uc-zp-filter-schrift-aktiv, var( --uc-auf-aktion, #f2ede4 ) );
}

.uc-zeitplan .uc-zeitplan__filter button:focus-visible {
	outline: 2px solid var( --uc-zp-filter-fokus, var( --uc-zp-fokus, var( --uc-akzent-druck, #c94726 ) ) );
	outline-offset: 2px;
}

/* Raster/Liste: zwei Knöpfe als Segment */
.uc-zeitplan .uc-zeitplan__ansicht {
	gap: 4px;
}

/* Auswahlfelder und Barrierefreiheit */
.uc-zeitplan__auswahl {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var( --uc-zp-werkzeuge-luecke, 16px ) var( --uc-zp-filter-luecke, 12px );
	flex-basis: 100%;
}

.uc-zeitplan__feld {
	display: grid;
	gap: var( --uc-zp-feld-label-abstand, 6px );
	min-width: var( --uc-zp-feld-breite, 180px );
	margin: 0;
	padding: 0;
	border: 0;
}

.uc-zeitplan__feld--knoepfe {
	min-width: 0;
}

.uc-zeitplan .uc-zeitplan__feld-label {
	float: none;
	margin: 0;
	padding: 0;
	color: var( --uc-zp-feld-label-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.uc-zeitplan .uc-zeitplan__feld select {
	width: 100%;
	min-height: var( --uc-zp-feld-hoehe, 44px );
	padding: var( --uc-zp-feld-innen, 0 40px 0 16px );
	border: 1px solid var( --uc-zp-feld-rand, var( --uc-rahmen-feld, #988a73 ) );
	border-radius: var( --uc-zp-feld-radius, var( --uc-radius-feld, 4px ) );
	background-color: var( --uc-zp-feld-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-zp-feld-farbe, var( --uc-text, #1c2b4a ) );
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
}

.uc-zeitplan .uc-zeitplan__feld select:hover {
	border-color: var( --uc-zp-feld-rand-hover, var( --uc-rahmen-stark, #8d826f ) );
}

.uc-zeitplan .uc-zeitplan__feld select:active {
	background-color: var( --uc-zp-feld-flaeche-druck, var( --uc-flaeche-getoent, #e8e0d2 ) );
}

/* Gewählt: Fläche und Rahmen wechseln - der Wert steht ohnehin als Text im Feld */
.uc-zeitplan .uc-zeitplan__feld select.uc-zeitplan__gewaehlt {
	border-color: var( --uc-zp-feld-rand-aktiv, var( --uc-aktion, #1c2b4a ) );
	background-color: var( --uc-zp-feld-flaeche-aktiv, var( --uc-flaeche-hoch, #ffffff ) );
}

/* Fokus im Feld: kein Ring, der Rahmen wird orange (Designsystem) */
.uc-zeitplan .uc-zeitplan__feld select:focus,
.uc-zeitplan .uc-zeitplan__feld select:focus-visible {
	border-color: var( --uc-zp-feld-rand-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline: none;
}

.uc-zeitplan .uc-zeitplan__zuruecksetzen {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var( --uc-zp-zurueck-farbe, var( --uc-text, #1c2b4a ) );
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var( --uc-zp-zurueck-linie, var( --uc-rahmen-stark, #8d826f ) );
	text-underline-offset: 4px;
	cursor: pointer;
}

.uc-zeitplan .uc-zeitplan__zuruecksetzen:hover {
	background: none;
	color: var( --uc-zp-zurueck-farbe, var( --uc-text, #1c2b4a ) );
	text-decoration-color: var( --uc-zp-zurueck-linie-hover, var( --uc-kante-b, #b5622a ) );
}

.uc-zeitplan .uc-zeitplan__zuruecksetzen:active {
	color: var( --uc-zp-zurueck-farbe-druck, var( --uc-text-leise, #4c5c76 ) );
}

.uc-zeitplan .uc-zeitplan__zuruecksetzen:focus-visible {
	outline: 2px solid var( --uc-zp-filter-fokus, var( --uc-zp-fokus, var( --uc-akzent-druck, #c94726 ) ) );
	outline-offset: 2px;
	border-radius: 4px;
}

/* Treffer und leeres Ergebnis */
.uc-zeitplan .uc-zeitplan__treffer {
	margin: 0 0 var( --uc-zp-treffer-abstand, 16px );
	color: var( --uc-zp-treffer-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.uc-zeitplan .uc-zeitplan__treffer:empty {
	display: none;
}

.uc-zeitplan .uc-zeitplan__treffer--leer {
	padding: var( --uc-zp-leer-innen, 18px 22px );
	border-radius: var( --uc-zp-leer-radius, var( --uc-radius, 20px ) );
	background: var( --uc-zp-leer-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-zp-leer-farbe, var( --uc-text, #1c2b4a ) );
	font-weight: 500;
}

/* ------------------------------------------------------------- Tage */

.uc-zeitplan__tag + .uc-zeitplan__tag {
	margin-top: 32px;
}

.uc-zeitplan .uc-zeitplan__tag-titel {
	margin: 0 0 var( --uc-zp-tag-titel-abstand, 12px );
	color: var( --uc-zp-tag-titel-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
}

/* Mit Skript zeigen die Tag-Knöpfe den Tag - im Raster bleibt die Überschrift nur für Screenreader */
.uc-zeitplan--js[data-ansicht="raster"] .uc-zeitplan__tag-titel {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

/* --------------------------------------------------------------- Raster */

.uc-zeitplan__plan {
	padding: var( --uc-zp-plan-innen, 20px );
	border-radius: var( --uc-zp-plan-radius, var( --uc-radius-gross, 28px ) );
	background: var( --uc-zp-plan-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	overflow-x: auto;
}

.uc-zeitplan__plan:focus-visible {
	outline: 2px solid var( --uc-zp-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
}

.uc-zeitplan__raster {
	display: grid;
	grid-template-columns: 64px repeat( var( --uc-zp-spalten, 3 ), minmax( var( --uc-zp-spalte, 220px ), 1fr ) );
	grid-auto-rows: var( --uc-zp-schritt, 14px );
	column-gap: var( --uc-zp-luecke, 12px );
}

.uc-zeitplan__buehne {
	grid-row: 1 / span 6;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	margin-bottom: 6px;
	padding: var( --uc-zp-buehne-innen, 0 14px );
	border-radius: var( --uc-zp-buehne-radius, var( --uc-radius-klein, 12px ) );
	background: var( --uc-zp-buehne-flaeche, var( --uc-grund, #f2ede4 ) );
}

.uc-zeitplan__buehne-name {
	color: var( --uc-zp-buehne-name-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 15px;
	line-height: 1.2;
}

.uc-zeitplan__buehne-info {
	display: flex;
	align-items: center;
	color: var( --uc-zp-buehne-info-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 12px;
	font-weight: 600;
}

.uc-zeitplan__zeit {
	grid-column: 1;
	padding-top: 2px;
	border-top: 1px solid var( --uc-zp-linie, var( --uc-rahmen, #e3dacb ) );
	color: var( --uc-zp-zeit-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums lining-nums;
}

/* ---------------------------------------------------- Zeitfenster im Raster */

.uc-zeitplan__slot {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 2px 0;
	padding: var( --uc-zp-slot-innen, 10px 14px );
	border-left: var( --uc-zp-kante, 4px ) solid var( --uc-zp-farbe, var( --uc-text, #1c2b4a ) );
	border-radius: var( --uc-zp-slot-radius, var( --uc-radius-klein, 12px ) );
	background: var( --uc-zp-slot-flaeche, var( --uc-grund, #f2ede4 ) );
	color: var( --uc-text, #1c2b4a );
	text-decoration: none;
	overflow: hidden;
	transition: background-color var( --uc-zeit-kurz, 120ms ) var( --uc-kurve, ease ), opacity var( --uc-zeit, 250ms ) var( --uc-kurve, ease );
}

.elementor-widget .uc-zeitplan a.uc-zeitplan__slot {
	color: var( --uc-text, #1c2b4a );
	text-decoration: none;
}

a.uc-zeitplan__slot:hover {
	background: var( --uc-zp-slot-flaeche-hover, var( --uc-flaeche-getoent, #e8e0d2 ) );
}

a.uc-zeitplan__slot:active {
	background: var( --uc-zp-slot-flaeche-druck, var( --uc-rahmen, #ddd3c2 ) );
}

a.uc-zeitplan__slot:focus-visible {
	outline: 2px solid var( --uc-zp-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
}

.uc-zeitplan__slot-zeit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var( --uc-zp-slot-zeit-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums lining-nums;
}

.uc-zeitplan__slot-titel {
	color: var( --uc-zp-slot-titel-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 15px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.uc-zeitplan .uc-zeitplan__slot-wer {
	margin: 0;
	color: var( --uc-zp-slot-wer-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 13px;
	line-height: 1.35;
}

.uc-zeitplan__slot-merkmale {
	color: var( --uc-zp-slot-merkmale-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.uc-zeitplan__format {
	padding: 1px 8px;
	border-radius: var( --uc-radius-knopf, 999px );
	background: var( --uc-flaeche-hoch, #ffffff );
	color: var( --uc-zp-format-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 11px;
	font-weight: 700;
}

/* Plenum: dunkel, Ember-Kante (Ember nur als Kante, nie als Text) */
.uc-zeitplan__slot--plenum {
	--uc-zp-farbe: var( --uc-akzent, #e85d3a );
	background: var( --uc-zp-plenum-flaeche, var( --uc-aktion, #1c2b4a ) );
}

.uc-zeitplan .uc-zeitplan__slot--plenum,
.uc-zeitplan .uc-zeitplan__slot--plenum .uc-zeitplan__slot-titel,
.elementor-widget .uc-zeitplan a.uc-zeitplan__slot--plenum {
	color: var( --uc-zp-plenum-schrift, var( --uc-auf-aktion, #f2ede4 ) );
}

.uc-zeitplan .uc-zeitplan__slot--plenum .uc-zeitplan__slot-zeit,
.uc-zeitplan .uc-zeitplan__slot--plenum .uc-zeitplan__slot-wer,
.uc-zeitplan .uc-zeitplan__slot--plenum .uc-zeitplan__slot-merkmale {
	color: var( --uc-zp-plenum-schrift, var( --uc-auf-aktion, #f2ede4 ) );
	opacity: 0.8;
}

a.uc-zeitplan__slot--plenum:hover,
a.uc-zeitplan__slot--plenum:active {
	background: var( --uc-zp-plenum-flaeche, var( --uc-aktion-druck, #142039 ) );
	opacity: 0.92;
}

/* Pause und Einlass: gestreift, ruhig, ohne Ziel */
.uc-zeitplan__slot--pause {
	--uc-zp-farbe: var( --uc-rahmen, #e3dacb );
	justify-content: center;
	background: repeating-linear-gradient( 135deg, var( --uc-zp-pause-flaeche, var( --uc-grund, #f2ede4 ) ) 0 10px, var( --uc-zp-pause-streifen, var( --uc-flaeche-getoent, #ece5d8 ) ) 10px 20px );
}

.uc-zeitplan .uc-zeitplan__pause-titel {
	color: var( --uc-zp-pause-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 14px;
	font-weight: 700;
}

.uc-zeitplan__slot--abgesagt .uc-zeitplan__slot-titel,
.uc-zeitplan__eintrag--abgesagt .uc-zeitplan__eintrag-titel {
	text-decoration: line-through;
}

/* Firmenlogo des Vortrags (AGENDA.CARD): nur mit freigegebenem Logo, sonst nichts */
.uc-zeitplan__slot-logo,
.uc-zeitplan__leiste-logo {
	display: inline-flex;
	align-self: flex-start;
	justify-self: start;
	align-items: center;
}

.uc-zeitplan__slot-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: var( --uc-zp-logo-hoehe, 20px );
	object-fit: contain;
}

/* Im dunklen Kopf der Seitenleiste auf heller Pille - dunkle Logos verschwinden sonst */
.uc-zeitplan__leiste-logo {
	padding: 8px 14px;
	border-radius: var( --uc-radius-knopf, 999px );
	background: var( --uc-zp-logo-flaeche, var( --uc-aktion, #f2ede4 ) );
}

.uc-zeitplan__leiste-logo img {
	display: block;
	width: auto;
	max-width: 160px;
	height: 26px;
	object-fit: contain;
}

/* Absage mit Grund: Rahmen und Klartext, nie nur Farbe */
.uc-zeitplan .uc-zeitplan__leiste-absage {
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid var( --uc-fehler, #b3261e );
	border-radius: var( --uc-radius-klein, 12px );
	color: var( --uc-text, #1c2b4a );
	line-height: 1.5;
}

.uc-zeitplan__leiste-absage b {
	color: var( --uc-fehler, #b3261e );
	text-transform: capitalize;
}

/* Ausgefiltert: im Raster tritt es zurück, in der Liste verschwindet es */
.uc-zeitplan__plan [data-aus] {
	opacity: var( --uc-zp-aus, 0.25 );
}

.uc-zeitplan__liste [data-aus] {
	display: none;
}

/* ------------------------------------------------------------- Tagesliste */

.uc-zeitplan__liste {
	display: none;
	padding: var( --uc-zp-liste-innen, 8px 24px );
	border-radius: var( --uc-zp-liste-radius, var( --uc-radius-gross, 28px ) );
	background: var( --uc-zp-liste-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
}

.uc-zeitplan .uc-zeitplan__eintraege {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uc-zeitplan .uc-zeitplan__eintrag {
	display: grid;
	grid-template-columns: var( --uc-zp-zeitspalte, 120px ) minmax( 0, 1fr );
	gap: var( --uc-zp-eintrag-luecke, 8px ) 20px;
	margin: 0;
	padding: var( --uc-zp-eintrag-innen, 18px ) 0;
	border-top: 1px solid var( --uc-zp-liste-linie, var( --uc-rahmen, #e3dacb ) );
}

.uc-zeitplan .uc-zeitplan__eintrag:first-child {
	border-top: 0;
}

.uc-zeitplan .uc-zeitplan__eintrag-zeit {
	margin: 0;
	color: var( --uc-zp-eintrag-zeit-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	font-variant-numeric: tabular-nums lining-nums;
}

.uc-zeitplan__eintrag-abgesagt {
	display: block;
	color: var( --uc-fehler, #b3261e );
	font-size: 13px;
	font-weight: 700;
}

.uc-zeitplan__eintrag-inhalt {
	display: grid;
	justify-items: start;
	gap: var( --uc-zp-eintrag-luecke, 8px );
	min-width: 0;
}

.uc-zeitplan .uc-zeitplan__eintrag-ort {
	display: flex;
	align-items: center;
	margin: 0;
	color: var( --uc-zp-eintrag-ort-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.uc-zeitplan .uc-zeitplan__eintrag-titel {
	margin: 0;
	color: var( --uc-zp-eintrag-titel-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.uc-zeitplan .uc-zeitplan__eintrag-titel a,
.elementor-widget .uc-zeitplan .uc-zeitplan__eintrag-titel a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var( --uc-zp-eintrag-linie, transparent );
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.uc-zeitplan .uc-zeitplan__eintrag-titel a:hover {
	color: inherit;
	text-decoration-color: var( --uc-zp-eintrag-linie-hover, var( --uc-kante-b, #b5622a ) );
}

.uc-zeitplan .uc-zeitplan__eintrag-titel a:active {
	color: var( --uc-zp-eintrag-farbe-druck, var( --uc-text-leise, #4c5c76 ) );
}

.uc-zeitplan .uc-zeitplan__eintrag-titel a:focus-visible {
	outline: 2px solid var( --uc-zp-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
	border-radius: 4px;
}

/* Plenum in der Liste: Ember-Punkt statt Bühnenfarbe (nur als Punkt, nie als Text) */
.uc-zeitplan__eintrag--plenum {
	--uc-zp-farbe: var( --uc-akzent, #e85d3a );
}

/* Pause und Einlass in der Liste: ruhig, gestreift, ohne Link */
.uc-zeitplan .uc-zeitplan__eintrag--pause {
	--uc-zp-farbe: var( --uc-rahmen-stark, #8d826f );
	margin: 6px 0;
	padding: 12px 16px;
	border-top: 0;
	border-radius: var( --uc-radius-klein, 12px );
	background: repeating-linear-gradient( 135deg, var( --uc-zp-pause-flaeche, var( --uc-grund, #f2ede4 ) ) 0 10px, var( --uc-zp-pause-streifen, var( --uc-flaeche-getoent, #ece5d8 ) ) 10px 20px );
}

.uc-zeitplan .uc-zeitplan__eintrag--pause + .uc-zeitplan__eintrag {
	border-top: 0;
}

.uc-zeitplan .uc-zeitplan__eintrag--pause .uc-zeitplan__eintrag-zeit {
	color: var( --uc-zp-pause-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-weight: 700;
}

/* ------------------------------------------------- Merkmale, Themen, Änderung */

.uc-zeitplan .uc-zeitplan__merkmale,
.uc-zeitplan .uc-zeitplan__themen {
	display: flex;
	flex-wrap: wrap;
	gap: var( --uc-zp-merkmal-luecke, 8px );
	margin: 0;
	padding: 0;
	list-style: none;
}

.uc-zeitplan .uc-zeitplan__merkmale li,
.uc-zeitplan .uc-zeitplan__themen li {
	margin: 0;
	padding: var( --uc-zp-merkmal-innen, 7px 12px );
	border-radius: var( --uc-zp-merkmal-radius, var( --uc-radius-knopf, 999px ) );
	background: var( --uc-zp-merkmal-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-zp-merkmal-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

/* In der Liste kleiner und auf getönter Fläche - die Liste selbst ist weiß */
.uc-zeitplan .uc-zeitplan__merkmale--klein li {
	padding: var( --uc-zp-merkmal-innen, 3px 10px );
	background: var( --uc-zp-merkmal-flaeche, var( --uc-grund, #f2ede4 ) );
	font-size: 12px;
}

.uc-zeitplan .uc-zeitplan__themen li {
	box-shadow: inset 0 0 0 1px var( --uc-rahmen, #e3dacb );
}

.uc-zeitplan .uc-zeitplan__ersetzt {
	margin: 0;
	padding: var( --uc-zp-ersetzt-innen, 6px 12px );
	border-left: 3px solid var( --uc-zp-ersetzt-kante, var( --uc-kante-b, #b5622a ) );
	border-radius: var( --uc-zp-ersetzt-radius, 0 8px 8px 0 );
	background: var( --uc-zp-ersetzt-flaeche, transparent );
	color: var( --uc-zp-ersetzt-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 13px;
	line-height: 1.45;
}

.uc-zeitplan .uc-zeitplan__ersetzt b {
	color: var( --uc-text, #1c2b4a );
	font-weight: 700;
}

/* ------------------------------------------------------------ Seitenleiste */

.uc-zeitplan__leiste {
	position: fixed;
	inset: 0 0 0 auto;
	width: min( var( --uc-zp-leiste-breite, 520px ), 100% );
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var( --uc-zp-leiste-flaeche, var( --uc-grund, #f2ede4 ) );
	color: var( --uc-text, #1c2b4a );
	box-shadow: var( --uc-schatten-schwebe, -24px 0 48px rgba( 20, 32, 57, 0.18 ) );
}

.uc-zeitplan__leiste[open] {
	display: flex;
	flex-direction: column;
}

.uc-zeitplan__leiste::backdrop {
	background: var( --uc-zp-schleier, rgba( 20, 32, 57, 0.45 ) );
}

@media ( prefers-reduced-motion: no-preference ) {
	.uc-zeitplan__leiste[open] {
		animation: uc-zeitplan-herein 0.35s var( --uc-kurve, ease );
	}
}

@keyframes uc-zeitplan-herein {
	from {
		transform: translateX( 24px );
		opacity: 0;
	}
}

.uc-zeitplan__leiste-kopf {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 28px 28px 30px;
	background: var( --uc-zp-leiste-kopf, var( --uc-flaeche, #1c2b4a ) );
}

.uc-zeitplan .uc-zeitplan__zu {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 242, 237, 228, 0.12 );
	color: var( --uc-text, #f2ede4 );
	cursor: pointer;
}

.uc-zeitplan .uc-zeitplan__zu:hover {
	background: rgba( 242, 237, 228, 0.2 );
}

.uc-zeitplan .uc-zeitplan__zu:active {
	transform: scale( 0.94 );
}

.uc-zeitplan .uc-zeitplan__zu:focus-visible {
	outline: 2px solid var( --uc-akzent-text, #ff8c6b );
	outline-offset: 2px;
}

.uc-zeitplan__zu-symbol {
	width: 20px;
	height: 20px;
}

.uc-zeitplan__marken {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0 52px 0 0;
	list-style: none;
}

.uc-zeitplan__marken li {
	margin: 0;
	padding: 4px 12px;
	border-radius: var( --uc-radius-knopf, 999px );
	background: rgba( 242, 237, 228, 0.12 );
	color: var( --uc-text, #f2ede4 );
	font-size: 13px;
	font-weight: 700;
}

.uc-zeitplan .uc-zeitplan__leiste-titel {
	margin: 0 0 var( --uc-zp-leiste-titel-abstand, 0 );
	padding-right: 52px;
	color: var( --uc-zp-leiste-titel-farbe, var( --uc-text, #f2ede4 ) );
	font-size: clamp( 1.6rem, 3vw, 2rem );
	font-weight: 800;
	letter-spacing: var( --uc-spationierung-titel, -0.03em );
	line-height: 1.1;
}

.uc-zeitplan .uc-zeitplan__leiste-zeit {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var( --uc-text-leise, #9aa8c0 );
	font-weight: 600;
}

.uc-zeitplan__leiste-symbol {
	width: 18px;
	height: 18px;
}

.uc-zeitplan__leiste-inhalt {
	display: grid;
	align-content: start;
	gap: 22px;
	padding: 26px 28px 32px;
	overflow-y: auto;
}

/* Die Teile kommen geklont aus der Vorlage je Vortrag - sie tragen das Raster selbst */
.uc-zeitplan__leiste [data-teil="kopf"] {
	display: grid;
	gap: 14px;
}

.uc-zeitplan__leiste [data-teil="inhalt"] {
	display: grid;
	gap: 22px;
}

.uc-zeitplan .uc-zeitplan__leiste-text {
	margin: 0 0 var( --uc-zp-leiste-text-abstand, 0 );
	color: var( --uc-zp-leiste-text-farbe, var( --uc-text, #1c2b4a ) );
	line-height: 1.6;
}

.uc-zeitplan .uc-zeitplan__plaetze {
	margin: 0;
	color: var( --uc-text-leise, #4c5c76 );
	font-size: 14px;
	font-weight: 600;
}

.uc-zeitplan .uc-zeitplan__leiste-unter {
	margin: 0 0 -12px;
	font-size: 1rem;
	font-weight: 800;
}

.uc-zeitplan__personen {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uc-zeitplan__person {
	display: grid;
	grid-template-columns: 56px 1fr;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: var( --uc-zp-person-innen, 12px );
	border-radius: var( --uc-zp-person-radius, var( --uc-radius, 20px ) );
	background: var( --uc-zp-person-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
}

.uc-zeitplan__person-bild {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.uc-zeitplan__person-bild--ohne {
	background: var( --uc-flaeche-getoent, #e8e0d2 );
	color: var( --uc-text-leise, #4c5c76 );
	font-size: 18px;
	font-weight: 800;
}

.uc-zeitplan .uc-zeitplan__person-name {
	display: block;
	color: var( --uc-text, #1c2b4a );
	font-weight: 800;
	text-decoration: none;
}

.uc-zeitplan a.uc-zeitplan__person-name:hover {
	text-decoration: underline;
	text-decoration-color: var( --uc-kante-b, #b5622a );
}

.uc-zeitplan a.uc-zeitplan__person-name:active {
	opacity: 0.75;
}

.uc-zeitplan a.uc-zeitplan__person-name:focus-visible {
	outline: 2px solid var( --uc-zp-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
	border-radius: 4px;
}

.uc-zeitplan__person-funktion {
	display: block;
	color: var( --uc-text-leise, #4c5c76 );
	font-size: 14px;
}

.uc-zeitplan__firma {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: var( --uc-radius-knopf, 999px );
	box-shadow: 0 0 0 1px var( --uc-rahmen, #e3dacb );
	color: var( --uc-text, #1c2b4a );
	font-size: 13px;
	font-weight: 800;
}

.uc-zeitplan__firma img {
	display: block;
	width: auto;
	max-width: 130px;
	height: 22px;
	object-fit: contain;
}

.uc-zeitplan__leiste-aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}

/* ----------------------------------------------------- Welche Ansicht */

/* Mit Skript: der Umschalter entscheidet */
.uc-zeitplan[data-ansicht="liste"] .uc-zeitplan__plan {
	display: none;
}

.uc-zeitplan[data-ansicht="liste"] .uc-zeitplan__liste {
	display: block;
}

/* ------------------------------------------------------------ Responsive */

@media ( max-width: 720px ) {
	/* Ohne Skript: schmal die Liste */
	.uc-zeitplan:not( [data-ansicht] ) .uc-zeitplan__plan {
		display: none;
	}

	.uc-zeitplan:not( [data-ansicht] ) .uc-zeitplan__liste {
		display: block;
	}

	.uc-zeitplan__liste {
		padding: var( --uc-zp-liste-innen, 4px 18px );
	}

	.uc-zeitplan__feld {
		flex: 1 1 100%;
		min-width: 0;
	}

	/*
	 * Seitenleiste am Handy: volle Höhe, die ganze Leiste scrollt — vorher
	 * blieb unter dem dunklen Kopf nur ein kleiner Rest zum Scrollen
	 * (Tobias 2026-10-11). Das X bleibt oben rechts stehen.
	 */
	.uc-zeitplan__leiste {
		inset: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.uc-zeitplan__leiste[open] {
		display: block;
	}

	.uc-zeitplan__leiste-inhalt {
		overflow: visible;
	}

	.uc-zeitplan .uc-zeitplan__zu {
		position: fixed;
		top: calc( 12px + env( safe-area-inset-top, 0px ) );
		right: 12px;
		z-index: 3;
	}

	.uc-zeitplan__leiste-kopf [data-teil="kopf"] > .uc-kopfaktionen {
		position: fixed;
		top: calc( 12px + env( safe-area-inset-top, 0px ) );
		right: 64px;
		z-index: 3;
	}

	/*
	 * Raster am Handy: höhere Zeilen und nur das Wichtigste in der Kachel —
	 * Zeit, Titel, Speaker. Logo und Merkmale stehen in der Seitenleiste.
	 */
	.uc-zeitplan__raster {
		grid-auto-rows: var( --uc-zp-schritt, 20px );
	}

	.uc-zeitplan__slot {
		gap: 2px;
		padding: var( --uc-zp-slot-innen, 8px 10px );
	}

	.uc-zeitplan__slot .uc-zeitplan__slot-logo,
	.uc-zeitplan__slot .uc-zeitplan__slot-merkmale {
		display: none;
	}

	.uc-zeitplan__slot .uc-zeitplan__slot-titel {
		display: -webkit-box;
		font-size: 14px;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
	}

	.uc-zeitplan .uc-zeitplan__slot .uc-zeitplan__slot-wer {
		overflow: hidden;
		font-size: 12px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	@keyframes uc-zeitplan-herein {
		from {
			transform: translateY( 16px );
			opacity: 0;
		}
	}
}

@media ( max-width: 480px ) {
	.uc-zeitplan .uc-zeitplan__eintrag {
		grid-template-columns: minmax( 0, 1fr );
	}
}

/* ----------------------------------------------------- Merken (DASH.BOOKMARKS) */

/* Liste: rundes Merken-Symbol oben rechts im Eintrag */
.uc-zeitplan .uc-zeitplan__eintrag-inhalt {
	position: relative;
}

.uc-zeitplan .uc-zeitplan__eintrag-inhalt:has( > .uc-kopfaktionen ) {
	padding-right: 56px;
}

.uc-zeitplan .uc-zeitplan__eintrag-inhalt > .uc-kopfaktionen {
	position: absolute;
	top: 0;
	right: 0;
}

/* Seitenleiste: links neben „Schließen“ (oben rechts im Kopf) */
.uc-zeitplan__leiste-kopf [data-teil="kopf"] > .uc-kopfaktionen {
	position: absolute;
	top: 16px;
	right: 68px;
}

.uc-zeitplan__leiste-kopf [data-teil="kopf"]:has( > .uc-kopfaktionen ) {
	padding-right: 64px;
}

/* Raster: gemerkte Vorträge mit Lesezeichen in der Ecke (Klasse von merken.js) */
.uc-zeitplan .uc-zeitplan__slot.uc-ist-gemerkt::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V21l-6.5-4.5L5.5 21V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E" ) center / contain no-repeat;
	mask: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V21l-6.5-4.5L5.5 21V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E" ) center / contain no-repeat;
}

