/*
 * TGSZ Bühne — Karussell und Terminliste
 * Farben kommen aus Variablen und lassen sich im Customizer überschreiben.
 */

.tgsz-kar,
.tgsz-termine {
	--tgsz-blau: #0075b7;
	--tgsz-marine: #003b59;
	--tgsz-nacht: #051724;
	--tgsz-cyan: #00adef;
	--tgsz-creme: #f8f1e8;
	--tgsz-hell: #c6d5de;
	--tgsz-gedaempft: #5b7a8c;
	--tgsz-weiss: #fff;
	--tgsz-schrift: Archivo, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Karussell ---------- */

.tgsz-kar {
	background: var(--tgsz-nacht);
	color: var(--tgsz-creme);
	font-family: var(--tgsz-schrift);
	padding: clamp(28px, 5vw, 68px) clamp(22px, 4.5vw, 64px) clamp(22px, 3vw, 44px);
}

.tgsz-kar__buehne {
	display: grid;
	max-width: var(--tgsz-satzbreite, 1440px);
	margin-inline: auto;
}

.tgsz-kar__folie {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease;
}

.tgsz-kar__folie--mit-bild {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.tgsz-kar__folie[data-aktiv] {
	opacity: 1;
	visibility: visible;
}

/* Darunter bleibt für Titel und Bild nebeneinander kein Platz. */
@media (max-width: 820px) {
	.tgsz-kar__folie--mit-bild {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Gestapelt wirkt ein flaches Bild besser als ein hohes. */
	.tgsz-kar__bild img {
		aspect-ratio: 16 / 9;
		max-height: 340px;
	}
}

.tgsz-kar__punkttrenner {
	padding: 0 6px;
}

.tgsz-kar__text {
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 2vw, 24px);
	min-width: 0;
}

.tgsz-kar__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.tgsz-chip {
	background: var(--tgsz-cyan);
	color: var(--tgsz-nacht);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 7px 14px;
}

.tgsz-chip--klein {
	font-size: 0.7rem;
	padding: 4px 9px;
	letter-spacing: 0.12em;
	vertical-align: middle;
}

.tgsz-kar__datum {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7fc4e8;
}

.tgsz-kar__titel {
	margin: 0;
	font-family: var(--tgsz-schrift);
	font-size: clamp(2.1rem, 5.4vw, 4.6rem);
	font-weight: 900;
	line-height: 0.96;
	letter-spacing: -0.04em;
	color: var(--tgsz-creme);
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: auto;
}

.tgsz-kar__beschreibung {
	margin: 0;
	font-size: clamp(1rem, 1.5vw, 1.28rem);
	line-height: 1.55;
	color: var(--tgsz-hell);
	max-width: 62ch;
}

.tgsz-kar__ort {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #8faec0;
}

.tgsz-kar__weitere {
	color: var(--tgsz-cyan);
	font-weight: 700;
}

.tgsz-kar__weitere::before {
	content: " · ";
	color: #8faec0;
	font-weight: 400;
}

.tgsz-kar__aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin: 6px 0 0;
}

.tgsz-kar__dringlich {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--tgsz-cyan);
}

.tgsz-kar__bild img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Steuerung ---------- */

.tgsz-kar__steuerung {
	max-width: var(--tgsz-satzbreite, 1440px);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: clamp(24px, 3vw, 38px);
	border-top: 1px solid rgba(127, 196, 232, 0.28);
	padding-top: 22px;
}

.tgsz-kar__punkte {
	display: flex;
	gap: 9px;
}

.tgsz-kar__punkt {
	width: 34px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	background: rgba(127, 196, 232, 0.38);
	transition: background 0.2s ease;
}

.tgsz-kar__punkt[data-aktiv] {
	background: var(--tgsz-cyan);
}

.tgsz-kar__stand {
	margin: 0;
	margin-right: auto;
	padding-left: 18px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #7fc4e8;
	font-variant-numeric: tabular-nums;
}

.tgsz-kar__pfeile {
	display: flex;
	gap: 10px;
}

.tgsz-kar__pfeil {
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--tgsz-creme);
	border: 1px solid rgba(127, 196, 232, 0.5);
	border-radius: 0;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tgsz-kar__pfeil:hover {
	background: var(--tgsz-blau);
	border-color: var(--tgsz-blau);
}

.tgsz-kar__punkt:focus-visible,
.tgsz-kar__pfeil:focus-visible,
.tgsz-knopf:focus-visible {
	outline: 3px solid var(--tgsz-cyan);
	outline-offset: 3px;
}

/* ---------- Knopf ---------- */

.tgsz-knopf {
	display: inline-block;
	background: var(--tgsz-blau);
	color: var(--tgsz-weiss);
	font-family: var(--tgsz-schrift);
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	padding: 17px 32px;
	border: 0;
	transition: background 0.2s ease;
}

.tgsz-knopf:hover,
.tgsz-knopf:focus {
	background: var(--tgsz-marine);
	color: var(--tgsz-weiss);
}

.tgsz-knopf--klein {
	font-size: 0.95rem;
	padding: 12px 22px;
}

/* ---------- Terminliste ---------- */

.tgsz-termine {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--tgsz-schrift);
	color: var(--tgsz-marine);
	border-top: 2px solid var(--tgsz-marine);
}

.tgsz-termin {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(16px, 2.4vw, 28px);
	padding: 20px 0;
	border-bottom: 1px solid rgba(0, 59, 89, 0.22);
	margin: 0;
}

.tgsz-termin:last-child {
	border-bottom: 2px solid var(--tgsz-marine);
}

.tgsz-termin__datum {
	width: 82px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--tgsz-marine);
	color: var(--tgsz-creme);
	padding: 9px 0;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.tgsz-termin__monat {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.tgsz-termin__tag {
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
}

.tgsz-termin__jahr {
	font-size: 0.7rem;
	font-weight: 600;
	color: #7fc4e8;
}

.tgsz-termin__text {
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tgsz-termin__titel {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: var(--tgsz-marine);
}

.tgsz-termin__ort {
	margin: 0;
	font-size: 1rem;
	color: var(--tgsz-gedaempft);
}

.tgsz-termin__trenner {
	padding: 0 4px;
}

.tgsz-termin__aktion {
	margin: 0;
	flex-shrink: 0;
}

/* ---------- Nur für Screenreader ---------- */

.tgsz-nur-vorlesen {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Hinweise ---------- */

.tgsz-hinweis {
	font-family: var(--tgsz-schrift, inherit);
	padding: 16px 20px;
	background: rgba(0, 117, 183, 0.08);
	border-left: 4px solid var(--tgsz-blau, #0075b7);
	color: inherit;
}

.tgsz-hinweis--fehler {
	background: rgba(192, 70, 38, 0.1);
	border-left-color: #c04626;
}

@media (prefers-reduced-motion: reduce) {
	.tgsz-kar__folie,
	.tgsz-kar__punkt,
	.tgsz-kar__pfeil,
	.tgsz-knopf {
		transition: none;
	}
}
