/* TAR Hero-Slider: Layout, Verlauf, Steuerung. Schrift kommt vom Theme. */

.tar-hero,
.tar-hero * { box-sizing: border-box; }

.tar-hero {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #222;
	color: #fff;
	line-height: 1.2;
	touch-action: pan-y;
	box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45);
}

/* Im Hero der Startseite: rechtsbündig, 70 Prozent der Breite, wie der bisherige Meldungsblock. */
.meldung-home .tar-hero {
	width: 70%;
	margin-left: auto;
}

.tar-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
}
.tar-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .9s ease;
}

.tar-hero .tar-hero__slide > a,
.tar-hero .tar-hero__slide > a:hover,
.tar-hero .tar-hero__slide > a:focus {
	position: absolute;
	inset: 0;
	display: block;
	color: #fff;
	text-decoration: none;
	outline-offset: -4px;
}

.tar-hero .tar-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 7s ease-out;
}
.tar-hero__slide.is-active .tar-hero__img { transform: scale(1.04); }

/* Schattiger unterer Bildbereich */
.tar-hero__slide > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 62%;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .72) 28%, rgba(0, 0, 0, .38) 58%, rgba(0, 0, 0, 0) 100%);
}

.tar-hero__cap {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	padding: 0 30px 34px;
}
.tar-hero__kicker {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	letter-spacing: .09em;
	text-transform: uppercase;
	opacity: .9;
}
.tar-hero__title {
	display: block;
	max-width: 88%;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.02;
	letter-spacing: -.02em;
	text-transform: uppercase;
	text-wrap: balance;
}
.tar-hero__sub {
	display: block;
	max-width: 78%;
	margin-top: 10px;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: -.01em;
	opacity: .95;
}
.tar-hero__cta {
	display: inline-block;
	margin-top: 14px;
	padding-bottom: 2px;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 255, 255, .7);
}
.tar-hero__slide > a:hover .tar-hero__cta,
.tar-hero__slide > a:focus-visible .tar-hero__cta { border-bottom-color: #fff; }

/* Steuerung */
.tar-hero__ctrl {
	position: absolute;
	z-index: 4;
	right: 22px;
	bottom: 22px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.tar-hero__dots { display: flex; gap: 9px; }
.tar-hero .tar-hero__dot {
	width: 10px;
	height: 10px;
	min-width: 0;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	box-shadow: none;
}
.tar-hero .tar-hero__dot[aria-current="true"] { background: #fff; }
.tar-hero .tar-hero__pp {
	width: 30px;
	height: 30px;
	min-width: 0;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 50%;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.tar-hero .tar-hero__arrow {
	position: absolute;
	z-index: 4;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	min-width: 0;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 50%;
	background: rgba(0, 0, 0, .28);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s;
	box-shadow: none;
}
.tar-hero__arrow--prev { left: 14px; }
.tar-hero__arrow--next { right: 14px; }
.tar-hero:hover .tar-hero__arrow,
.tar-hero:focus-within .tar-hero__arrow { opacity: 1; }

.tar-hero__progress {
	position: absolute;
	z-index: 4;
	left: 0;
	bottom: 0;
	width: 0;
	height: 3px;
	background: #fff;
}
.tar-hero__progress.is-running { animation: tar-hero-progress var(--tar-hero-dur, 6000ms) linear forwards; }
.tar-hero.is-paused .tar-hero__progress { animation: none; width: 0; }
@keyframes tar-hero-progress { to { width: 100%; } }

@media (max-width: 1100px) {
	/* Tablet und Handy: volle Breite der Spalte (der Wrapper ist dort sonst auf 85 Prozent begrenzt). */
	.meldung-home:has(.tar-hero) { max-width: 100% !important; }
	.meldung-home .tar-hero { width: 100%; }
}

@media (max-width: 640px) {
	.tar-hero { aspect-ratio: 1 / 1; }
	.tar-hero__cap { padding: 0 18px 56px; }
	.tar-hero__kicker { font-size: 12px; }
	.tar-hero__title { max-width: 100%; font-size: clamp(18px, 5.2vw, 24px); overflow-wrap: anywhere; hyphens: auto; }
	.tar-hero__sub { max-width: 100%; font-size: 15px; }
	.tar-hero__cta { display: none; }
	.tar-hero__ctrl { right: auto; left: 18px; bottom: 18px; }
	.tar-hero .tar-hero__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tar-hero__slide,
	.tar-hero__slide.is-active { transition: none; }
	.tar-hero .tar-hero__img,
	.tar-hero__slide.is-active .tar-hero__img { transition: none; transform: none; }
	.tar-hero__progress.is-running { animation: none; }
}
