/*
 * Bühne (Slider) auf der Startseite
 * Überblendung, randloses Loop-Video, Film-Overlay, Pfeile, Fortschrittsbalken.
 */

.header-slider {
	padding: 0;
	margin: 0;
	position: relative;
}

.swiper-header {
	--sh-delay: 9000ms;
	--sh-bar-bottom: 3rem;   /* Unterkante aller Bedienelemente */
	--sh-bar-h: 52px;        /* gemeinsame Höhe: Pfeile, Balken, Pause, „Film ansehen“ */
	position: relative;
	overflow: hidden;
}

/* Bei Überblendung liegen alle Folien übereinander: Hintergrund pro Folie */
.swiper-header .swiper-slide {
	background: var(--ds-orange-strong, #d83f24);
}

.swiper-header .sh-wrapper {
	position: relative;
	height: 62rem;
	overflow: hidden;
}

/* ---------------------------------------------------------------- Text */

/* Text und Bild exakt je 50 % breit, damit die Steuerung bündig mit dem Text steht */
@media (min-width: 701px) {
	.swiper-header .sh-content,
	.swiper-header .sh-image {
		box-sizing: border-box;
		flex: 0 0 50%;
		max-width: 50%;
	}
}

.swiper-header .sh-content {
	justify-content: center;
	padding: 4rem 3rem 10rem;
}

.swiper-header .sh-content .sh-headline {
	font-family: "Montserrat", sans-serif;
	font-size: clamp(3.2rem, 3.4vw, 4.6rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 2rem;
	text-wrap: balance;
}

.swiper-header .sh-content .sh-text {
	font-size: 1.9rem;
	line-height: 1.55;
	margin: 0 0 2.6rem;
	text-wrap: pretty;
}

.swiper-header .sh-link {
	margin: 0;
}

.swiper-header a.sh-cta {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	min-height: 48px;
	padding: 1.2rem 2.4rem;
	border-radius: 999px;
	background: #fff;
	color: var(--ds-orange-strong, #d83f24);
	font-weight: 700;
	font-size: 1.8rem;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swiper-header a.sh-cta::after {
	display: none !important;
}

.swiper-header a.sh-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.sh-cta-arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.swiper-header a.sh-cta:hover .sh-cta-arrow {
	transform: translateX(4px);
}

.swiper-header a.sh-cta:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

/* ---------------------------------------------------------------- Bild / Video */

.swiper-header .sh-image {
	position: relative;
	overflow: hidden;
}

/* Weicher Übergang von der orangen Fläche ins Bild */
.swiper-header .sh-image::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 -1px;
	width: 18%;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(90deg, var(--ds-orange-strong, #d83f24), rgba(216, 63, 36, 0));
}

.swiper-header .sh-loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #0b3d5c;
}

/* Knopf „Film ansehen“ */
.swiper-header .sh-film-open {
	appearance: none;
	position: absolute;
	left: 3rem;
	bottom: var(--sh-bar-bottom);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 1.2rem;
	box-sizing: border-box;
	height: var(--sh-bar-h);
	padding: 0 2rem 0 6px;
	line-height: 1;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95) !important;
	color: #222;
	font: inherit;
	font-size: 1.7rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: transform 0.2s ease;
}

.swiper-header .sh-film-open:hover {
	transform: scale(1.03);
	text-decoration: none;
}

.swiper-header .sh-film-open:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.sh-film-icon {
	position: relative;
	display: block;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ds-orange-strong, #d83f24);
}

.sh-film-icon::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 12px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}

.sh-film-len {
	font-weight: 400;
	color: #555;
}

/* Fotos: ganz langsamer Zoom auf der aktiven Folie */
@media (prefers-reduced-motion: no-preference) {
	.swiper-header .sh-image--foto {
		transform: scale(1.0);
		transition: transform 12s ease-out;
	}

	.swiper-header .swiper-slide-active .sh-image--foto {
		transform: scale(1.08);
	}

	.swiper-header.is-paused .swiper-slide-active .sh-image--foto {
		transition: none;
	}

	/* Text der aktiven Folie kommt sanft herein (nur wenn der Slider läuft) */
	.swiper-header.swiper-fade .swiper-slide-active .sh-content > * {
		animation: sh-text-rein 0.7s ease both;
	}

	.swiper-header.swiper-fade .swiper-slide-active .sh-content > :nth-child(2) { animation-delay: 0.12s; }
	.swiper-header.swiper-fade .swiper-slide-active .sh-content > :nth-child(3) { animation-delay: 0.24s; }
}

@keyframes sh-text-rein {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

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

.sh-controls-row {
	position: absolute;
	z-index: 10;
	left: 0;
	right: 0;
	bottom: var(--sh-bar-bottom);
	display: flex;
	pointer-events: none;
}

/* übernimmt Breite und Innenabstand der Textspalte (Klasse sh-content) */
.swiper-header .sh-content.sh-controls-col {
	box-sizing: border-box;
	padding-top: 0;
	padding-bottom: 0;
	justify-content: flex-end;
	background: none;
}

.swiper-header .sh-controls {
	height: var(--sh-bar-h);
	display: flex;
	align-items: center;
	gap: 1rem;
	pointer-events: auto;
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

.swiper-header .sh-nav,
.swiper-header .sh-pause {
	appearance: none;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.75);
	background: transparent !important;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.swiper-header .sh-nav:hover,
.swiper-header .sh-pause:hover {
	background: #fff !important;
	border-color: #fff;
	color: var(--ds-orange-strong, #d83f24);
}

.swiper-header .sh-nav:focus-visible,
.swiper-header .sh-pause:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* Pause-Symbol (zwei Balken) bzw. Play-Dreieck */
.sh-pause .sh-pause-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.sh-pause .sh-pause-icon {
	width: 12px;
	height: 14px;
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
	box-sizing: border-box;
}

.sh-pause.is-paused .sh-pause-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 3px;
}

/* Punkte → Fortschrittsbalken (Trefferfläche 36 × 24 px) */
.swiper-header .sh-controls .swiper-pagination {
	position: static;
	display: flex;
	align-items: center;
	gap: 6px;
	width: auto;
	margin: 0 0.4rem;
}

.swiper-header .swiper-pagination-bullet {
	position: relative;
	width: 36px;
	height: 24px;
	margin: 0 !important;
	border-radius: 0;
	background: transparent;
	opacity: 1;
	cursor: pointer;
}

.swiper-header .swiper-pagination-bullet::before,
.swiper-header .swiper-pagination-bullet::after {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	height: 4px;
	border-radius: 2px;
}

.swiper-header .swiper-pagination-bullet::before {
	width: 100%;
	background: rgba(255, 255, 255, 0.45);
}

.swiper-header .swiper-pagination-bullet::after {
	width: 0;
	background: #fff;
}

.swiper-header .swiper-pagination-bullet-active::after {
	width: 100%;
}

.swiper-header .swiper-pagination.is-running .swiper-pagination-bullet-active::after {
	animation: sh-progress var(--sh-delay) linear both;
}

.swiper-header .swiper-pagination-bullet:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@keyframes sh-progress {
	from { width: 0; }
	to   { width: 100%; }
}

/* ---------------------------------------------------------------- Film-Overlay */

.sh-film {
	width: min(110rem, 94vw);
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.sh-film::backdrop {
	background: rgba(10, 20, 30, 0.88);
}

.sh-film-video {
	display: block;
	width: 100%;
	max-height: 86vh;
	border-radius: 12px;
	background: #000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sh-film .sh-film-close {
	appearance: none;
	position: absolute;
	right: 0;
	top: -56px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: transparent !important;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.sh-film .sh-film-close:hover {
	background: #fff !important;
	color: #222;
}

.sh-film .sh-film-close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- Tablet */

@media (max-width: 1100px) {

	.swiper-header .sh-content > * {
		padding-right: 0;
	}
}

/* ---------------------------------------------------------------- Handy */

@media (max-width: 700px) {
	.swiper-header .sh-wrapper {
		height: 100%;
	}

	.swiper-header .sh-image,
	.swiper-header .sh-wrapper .sh-image {
		height: 26rem;
		flex: 0 0 auto;
		width: 100%;
	}

	.swiper-header .sh-image::before {
		inset: auto 0 0 0;
		width: 100%;
		height: 25%;
		background: linear-gradient(0deg, var(--ds-orange-strong, #d83f24), rgba(216, 63, 36, 0));
	}

	.swiper-header .sh-content {
		justify-content: flex-start;
		padding: 2.4rem 2rem 11rem;
	}

	.swiper-header .sh-content .sh-headline {
		font-size: 2.8rem;
		margin-bottom: 1.4rem;
	}

	.swiper-header .sh-content .sh-text {
		font-size: 1.7rem;
		margin-bottom: 2rem;
	}

	.swiper-header .sh-film-open {
		left: 1.4rem;
		bottom: 1.4rem;
		height: 48px;
		font-size: 1.5rem;
		padding-right: 1.4rem;
	}

	.sh-film-len {
		display: none;
	}

	.swiper-header {
		--sh-bar-bottom: 2.4rem;
	}

	.sh-film .sh-film-close {
		top: -52px;
	}
}

/* Untertitel im Film gut lesbar */
.sh-film-video::cue {
	font-family: "Source Sans 3", sans-serif;
	font-size: 2.2rem;
	line-height: 1.35;
	color: #fff;
	background: rgba(0, 0, 0, 0.78);
}
