/* ============================================================
   Termin-Block für Elementor – Basis-Styles
   Alle Werte sind über die Widget-Optionen (CSS-Variablen)
   überschreibbar. Die Angaben hier sind nur die Standardwerte.
   ============================================================ */

.termin-block {
	--tb-rot: #e8291c;
	--tb-grau-oben: #4c4c4c;
	--tb-grau-unten: #333333;
	--tb-spalte: 20%;
	--tb-linie: rgba(255, 255, 255, .35);
	--tb-linie-stil: dotted;
	--tb-linie-breite: 1px;
	--tb-pfeil-groesse: 10px;

	display: flex;
	color: #fff;
	line-height: 1.3;
	background: var(--tb-grau-oben);
}

/* ---------- roter Datumsblock ---------- */
.termin-block .tb-datum {
	flex: 0 0 var(--tb-spalte);
	max-width: var(--tb-spalte);
	background: var(--tb-rot);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 32px 26px;
	box-sizing: border-box;
}

.termin-block .tb-datum-text {
	display: block;
	margin: 0;
	font-size: clamp(20px, 2.1vw, 34px);
	font-weight: 800;
	text-align: inherit;
	white-space: nowrap;
	color: inherit;
}

/* ---------- rechte Spalte ---------- */
.termin-block .tb-inhalt {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.termin-block .tb-liste {
	list-style: none;
	margin: 0;
	padding: 22px 30px;
	box-sizing: border-box;
}

.termin-block .tb-oben {
	background: var(--tb-grau-oben);
	flex: 1 1 auto;
}

.termin-block .tb-unten {
	background: var(--tb-grau-unten);
	padding-top: 16px;
}

.termin-block .tb-titel {
	background: var(--tb-grau-unten);
	margin: 0;
	padding: 20px 30px 4px;
	font-size: clamp(15px, 1.15vw, 19px);
	font-weight: 800;
	line-height: 1.3;
}

/* ---------- Einträge ---------- */
.termin-block .tb-liste li {
	position: relative;
	margin: 0;
	padding: 9px 0 9px 30px;
	font-size: clamp(13px, .95vw, 17px);
	border-bottom: var(--tb-linie-breite) var(--tb-linie-stil) var(--tb-linie);
	list-style: none;
}

.termin-block:not(.tb-letzte-linie) .tb-liste li:last-child {
	border-bottom: 0;
}

.termin-block .tb-liste li.tb-hervor {
	font-weight: 700;
}

/* roter Pfeil */
.termin-block .tb-liste li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: calc(var(--tb-pfeil-groesse) * .6) 0 calc(var(--tb-pfeil-groesse) * .6) var(--tb-pfeil-groesse);
	border-color: transparent transparent transparent var(--tb-pfeil, var(--tb-rot));
}

.termin-block.tb-ohne-pfeil .tb-liste li::before {
	display: none;
}

.termin-block.tb-ohne-pfeil .tb-liste li {
	padding-left: 0;
}

.termin-block .tb-liste a {
	color: inherit;
	text-decoration: none;
	transition: color .15s ease;
}

/* ---------- Umbruch ---------- */
@media (max-width: 767px) {
	.termin-block.tb-stack-mobile {
		flex-direction: column;
	}

	.termin-block.tb-stack-mobile .tb-datum {
		flex: 0 0 auto;
		max-width: none;
		width: 100%;
		justify-content: flex-start;
		text-align: left;
	}

	.termin-block.tb-stack-mobile .tb-datum-text {
		font-size: 22px;
		white-space: normal;
	}
}

@media (max-width: 1024px) {
	.termin-block.tb-stack-tablet {
		flex-direction: column;
	}

	.termin-block.tb-stack-tablet .tb-datum {
		flex: 0 0 auto;
		max-width: none;
		width: 100%;
		justify-content: flex-start;
		text-align: left;
	}

	.termin-block.tb-stack-tablet .tb-datum-text {
		white-space: normal;
	}
}
