/* TuS Vinnhorst – Startseiten-Slider */
.tvhs {
	--tvhs-navy: #00253e;
	--tvhs-red: #dc092b;
	--tvhs-white: #fff;
	--tvhs-gutter: clamp(16px, 4.5vw, 72px);
	--tvhs-nav-height: 132px;
	position: relative;
	margin: 0 0 30px;
	color: var(--tvhs-white);
	background: var(--tvhs-navy);
	overflow: hidden;
	isolation: isolate;
}

.tvhs--full {
	width: calc(100vw - var(--tvhs-sbw, 0px));
	max-width: none;
	margin-left: calc(50% - (100vw - var(--tvhs-sbw, 0px)) / 2);
	margin-right: 0;
}

.tvhs *,
.tvhs *::before,
.tvhs *::after {
	box-sizing: border-box;
}

.tvhs__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
}

/* Desktop: Slider samt Überschrift und News-Leiste immer vollständig im sichtbaren Bereich */
@media (min-width: 768px) {
	.tvhs__stage {
		aspect-ratio: auto;
		height: min(56.25vw, calc(100vh - var(--tvhs-top, 0px)));
		height: min(56.25vw, calc(100svh - var(--tvhs-top, 0px)));
		min-height: 420px;
	}
}

/* Folien */
.tvhs__slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.tvhs__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease, visibility 0s linear 0s;
}

.tvhs__media,
.tvhs__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}

.tvhs__img {
	object-fit: cover;
	object-position: center 30%;
	transform: scale(1.04);
	transition: transform 9s ease-out;
}

.tvhs__slide.is-active .tvhs__img {
	transform: scale(1);
}

.tvhs__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(0, 37, 62, 0.96) 0%, rgba(0, 37, 62, 0.7) 26%, rgba(0, 37, 62, 0.15) 58%, rgba(0, 37, 62, 0) 72%),
		linear-gradient(to right, rgba(0, 37, 62, 0.55) 0%, rgba(0, 37, 62, 0) 55%);
	pointer-events: none;
}

.tvhs__content {
	position: absolute;
	left: var(--tvhs-gutter);
	right: calc(var(--tvhs-gutter) + 170px);
	bottom: var(--tvhs-content-bottom, calc(var(--tvhs-nav-height) + clamp(20px, 3vw, 44px)));
	z-index: 2;
	max-width: 900px;
}

/* Swoosh mit Kategorie */
.tvhs .tvhs__swoosh {
	display: inline-block;
	margin: 0 0 clamp(10px, 1.2vw, 18px);
	padding: 0.6em 1.5em 0.5em;
	color: var(--tvhs-white);
	background-color: var(--tvhs-red);
	background-image: var(--tvhs-swoosh, none);
	background-position: var(--tvhs-swoosh-pos, center);
	background-repeat: no-repeat;
	background-size: var(--tvhs-swoosh-size, 100% 100%);
	font-size: clamp(11px, 0.95vw, 15px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tvhs[style*="--tvhs-swoosh"] .tvhs__swoosh {
	background-color: transparent;
}

.tvhs .tvhs__title {
	margin: 0;
	padding: 0;
	color: var(--tvhs-white);
	font-size: clamp(26px, 3.3vw, 58px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: none;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.tvhs .tvhs__title a,
.tvhs .tvhs__title a:visited,
.tvhs .tvhs__title a:hover,
.tvhs .tvhs__title a:focus {
	color: var(--tvhs-white);
	text-decoration: none;
}

.tvhs .tvhs__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.tvhs a:focus-visible,
.tvhs button:focus-visible {
	outline: 3px solid var(--tvhs-white);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--tvhs-navy);
}

/* Steuerung */
.tvhs__controls {
	position: absolute;
	right: var(--tvhs-gutter);
	bottom: var(--tvhs-content-bottom, calc(var(--tvhs-nav-height) + clamp(20px, 3vw, 44px)));
	z-index: 3;
	display: flex;
	gap: 8px;
}

.tvhs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--tvhs-white);
	background: rgba(0, 37, 62, 0.55);
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tvhs__btn:hover {
	background: var(--tvhs-red);
	border-color: var(--tvhs-red);
}

.tvhs__btn svg {
	display: block;
}

/* Punkte (nur mobil) */
.tvhs__dots {
	display: none;
}

.tvhs .tvhs__btn::before,
.tvhs .tvhs__btn::after {
	content: none !important;
	display: none !important;
}

.tvhs .tvhs__icon-play,
.tvhs.is-stopped .tvhs__icon-pause {
	display: none;
}

.tvhs.is-stopped .tvhs__icon-play {
	display: block;
}

/* News-Leiste am unteren Rand */
.tvhs__nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 0 var(--tvhs-gutter);
	background: linear-gradient(to top, rgba(0, 37, 62, 0.92), rgba(0, 37, 62, 0.6));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.tvhs__list {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 0 clamp(12px, 1.6vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tvhs__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tvhs__item::before,
.tvhs__item::marker {
	content: none;
}

.tvhs .tvhs__link,
.tvhs .tvhs__link:visited {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: var(--tvhs-nav-height);
	padding: 22px 0 18px;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tvhs .tvhs__link:hover,
.tvhs .tvhs__item.is-active .tvhs__link {
	color: var(--tvhs-white);
}

.tvhs__progress {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.28);
	overflow: hidden;
}

.tvhs__progress-bar {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--tvhs-red);
	transform: scaleX(0);
	transform-origin: left center;
}

.tvhs__item.is-active .tvhs__progress-bar {
	transform: scaleX(1);
}

.tvhs.is-running .tvhs__item.is-active .tvhs__progress-bar {
	animation: tvhs-progress var(--tvhs-interval, 7s) linear both;
}

.tvhs.is-paused .tvhs__item.is-active .tvhs__progress-bar {
	animation-play-state: paused;
}

@keyframes tvhs-progress {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

.tvhs .tvhs__cat {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ff5a72;
}

.tvhs .tvhs__headline {
	color: inherit;
}

.tvhs__headline {
	display: -webkit-box;
	overflow: hidden;
	font-size: clamp(14px, 1.05vw, 17px);
	font-weight: 700;
	line-height: 1.25;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.tvhs__live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tablet */
@media (max-width: 1199px) {
	.tvhs {
		--tvhs-nav-height: 116px;
	}

	.tvhs__headline {
		-webkit-line-clamp: 2;
	}
}

/* Mobil: Hochformat 9:16 */
@media (max-width: 767px) {
	.tvhs {
		--tvhs-gutter: 16px;
		--tvhs-nav-height: auto;
	}

	.tvhs__stage {
		aspect-ratio: 9 / 16;
	}

	.tvhs__img {
		object-position: center center;
	}

	.tvhs__shade {
		background: linear-gradient(to top, rgba(0, 37, 62, 0.98) 0%, rgba(0, 37, 62, 0.9) 45%, rgba(0, 37, 62, 0.3) 70%, rgba(0, 37, 62, 0) 82%);
	}

	.tvhs .tvhs__nav {
		display: none;
	}

	.tvhs__list {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		gap: 0;
	}

	.tvhs .tvhs__link,
	.tvhs .tvhs__link:visited {
		flex-direction: row;
		align-items: center;
		gap: 10px;
		height: auto;
		min-height: 44px;
		padding: 8px 0 8px 14px;
		border-top: 1px solid rgba(255, 255, 255, 0.16);
	}

	.tvhs__progress {
		top: 8px;
		bottom: 8px;
		right: auto;
		width: 3px;
		height: auto;
	}

	.tvhs__progress-bar {
		transform: scaleY(0);
		transform-origin: center top;
	}

	.tvhs__item.is-active .tvhs__progress-bar {
		transform: scaleY(1);
	}

	@keyframes tvhs-progress {
		from {
			transform: scaleY(0);
		}

		to {
			transform: scaleY(1);
		}
	}

	.tvhs .tvhs__cat {
		display: none;
	}

	.tvhs__headline {
		font-size: 14px;
		-webkit-line-clamp: 1;
	}

	.tvhs__content {
		right: var(--tvhs-gutter);
		bottom: calc(var(--tvhs-mobile-bottom, 16px) + 56px);
	}

	.tvhs .tvhs__title {
		font-size: clamp(24px, 7.2vw, 34px);
	}

	.tvhs__controls {
		top: auto;
		right: var(--tvhs-gutter);
		bottom: var(--tvhs-mobile-bottom, 16px);
	}

	.tvhs__dots {
		position: absolute;
		left: calc(var(--tvhs-gutter) - 6px);
		bottom: var(--tvhs-mobile-bottom, 16px);
		z-index: 3;
		display: flex;
		align-items: center;
		height: 44px;
	}

	.tvhs .tvhs__dot {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 44px;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		cursor: pointer;
	}

	.tvhs .tvhs__dot::before,
	.tvhs .tvhs__dot::after {
		content: none !important;
		display: none !important;
	}

	.tvhs .tvhs__dot-bar {
		position: relative;
		display: block;
		width: 24px;
		height: 4px;
		background: rgba(255, 255, 255, 0.45);
		overflow: hidden;
	}

	.tvhs .tvhs__dot-bar::after {
		content: "";
		position: absolute;
		inset: 0;
		background: var(--tvhs-red);
		transform: scaleX(0);
		transform-origin: left center;
	}

	.tvhs .tvhs__dot.is-active .tvhs__dot-bar {
		background: rgba(255, 255, 255, 0.85);
	}

	.tvhs .tvhs__dot.is-active .tvhs__dot-bar::after {
		transform: scaleX(1);
	}

	.tvhs.is-running .tvhs__dot.is-active .tvhs__dot-bar::after {
		animation: tvhs-dot var(--tvhs-interval, 7s) linear both;
	}

	.tvhs.is-paused .tvhs__dot.is-active .tvhs__dot-bar::after {
		animation-play-state: paused;
	}

	.tvhs .tvhs__dot:focus-visible {
		outline: 3px solid var(--tvhs-white);
		outline-offset: -3px;
		box-shadow: none;
	}

	.tvhs__prev,
	.tvhs__next {
		display: none;
	}
}

@keyframes tvhs-dot {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvhs__slide,
	.tvhs__slide.is-active,
	.tvhs__img,
	.tvhs__btn,
	.tvhs .tvhs__link {
		transition: none;
	}

	.tvhs__img {
		transform: none;
	}

	.tvhs.is-running .tvhs__item.is-active .tvhs__progress-bar,
	.tvhs.is-running .tvhs__dot.is-active .tvhs__dot-bar::after {
		animation: none;
	}
}
