/* ==========================================================================
   FAB: Hero Header
   Alle Tokens sind überschreibbar – am besten global in assets/css/tokens.css
   ========================================================================== */

.fab-hero {
	--fab-hero-blue: var(--fab-blue, #009ee0);
	--fab-hero-blue-dark: var(--fab-blue-dark, #0079ab);
	--fab-hero-ink: var(--fab-ink, #101a22);
	--fab-hero-muted: var(--fab-muted, #566670);
	--fab-hero-lead: var(--fab-hero-lead-color, #009ee0);
	--fab-hero-overlay: 0.55;
	--fab-hero-container: var(--fab-container, 1240px);
	--fab-hero-gutter: clamp(1.25rem, 5vw, 2.5rem);

	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: #0b141b;
	color: #fff;
	isolation: isolate;
}

/* Höhenvarianten ---------------------------------------------------------- */
.fab-hero--h-m { min-height: clamp(26rem, 58vh, 38rem); }
.fab-hero--h-l { min-height: clamp(34rem, 78vh, 51rem); }
.fab-hero--h-full { min-height: 100svh; }

/* Hintergrundbild + Overlay ---------------------------------------------- */
.fab-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.fab-hero__media picture,
.fab-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fab-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(6, 12, 17, calc(var(--fab-hero-overlay) + 0.22)) 0%,
		rgba(6, 12, 17, var(--fab-hero-overlay)) 48%,
		rgba(6, 12, 17, calc(var(--fab-hero-overlay) * 0.5)) 100%
	);
}

.fab-hero--no-image {
	background-color: var(--fab-hero-ink);
}

/* Raster ------------------------------------------------------------------ */
.fab-hero__inner {
	width: 100%;
	max-width: var(--fab-hero-container);
	margin-inline: auto;
	padding: clamp(3.5rem, 9vw, 6rem) var(--fab-hero-gutter);
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

@media (min-width: 62rem) {
	.fab-hero__inner {
		grid-template-columns: minmax(0, 1fr) 19.5rem;
	}
}

/* Textspalte -------------------------------------------------------------- */
.fab-hero__content {
	max-width: 36rem;
}

.fab-hero__eyebrow {
	margin: 0 0 1.25rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fab-hero-blue);
}

.fab-hero__headline {
	margin: 0;
	font-size: clamp(2.25rem, 6vw, 4rem);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: #fff;
}

.fab-hero__text {
	margin-top: 1.5rem;
	max-width: 32rem;
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.fab-hero__text p { margin: 0 0 0.75rem; }
.fab-hero__text p:last-child { margin-bottom: 0; }

/* Buttons ----------------------------------------------------------------- */
.fab-hero__actions {
	margin-top: 2.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
}

.fab-hero__btn {
	--btn-shift: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.875rem 1.75rem;
	border: 2px solid transparent;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transform: translateY(var(--btn-shift));
	transition: background-color 0.22s ease, border-color 0.22s ease,
		color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.fab-hero__btn--primary {
	background-color: var(--fab-hero-blue);
	border-color: var(--fab-hero-blue);
	color: #fff;
}

.fab-hero__btn--primary:hover,
.fab-hero__btn--primary:focus-visible {
	--btn-shift: -2px;
	background-color: var(--fab-hero-blue-dark);
	border-color: var(--fab-hero-blue-dark);
	color: #fff;
	box-shadow: 0 0.75rem 1.5rem rgba(0, 121, 171, 0.35);
}

.fab-hero__btn--secondary {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.65);
	color: #fff;
}

.fab-hero__btn--secondary:hover,
.fab-hero__btn--secondary:focus-visible {
	--btn-shift: -2px;
	background-color: #fff;
	border-color: #fff;
	color: var(--fab-hero-ink);
	box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.28);
}

.fab-hero__btn:active { --btn-shift: 0; }

.fab-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Videoteaser ------------------------------------------------------------- */
.fab-hero__teaser {
	width: 100%;
	max-width: 22rem;
	background-color: #fff;
	color: var(--fab-hero-ink);
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

@media (min-width: 62rem) {
	.fab-hero__teaser {
		justify-self: end;
		max-width: none;
	}
}

.fab-hero__teaser-media {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: #0b141b;
}

.fab-hero__teaser-trigger { cursor: pointer; }

.fab-hero__teaser-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.fab-hero__teaser-trigger:hover .fab-hero__teaser-img {
	transform: scale(1.04);
}

.fab-hero__teaser-trigger:focus-visible {
	outline: 3px solid var(--fab-hero-blue);
	outline-offset: 3px;
}

.fab-hero__teaser-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.3125rem 0.625rem;
	background-color: var(--fab-hero-blue);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
}

.fab-hero__teaser-duration {
	position: absolute;
	right: 0.625rem;
	bottom: 0.625rem;
	padding: 0.25rem 0.5rem;
	background-color: rgba(10, 16, 22, 0.82);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

/* Playbutton mit Puls ----------------------------------------------------- */
.fab-hero__play {
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.3);
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.fab-hero__play svg {
	position: relative;
	z-index: 1;
	width: 1.75rem;
	height: 1.75rem;
	margin-left: 0.15rem;
	fill: var(--fab-hero-blue);
}

.fab-hero__play::before,
.fab-hero__play::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.75);
	animation: fab-hero-pulse 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.fab-hero__play::after { animation-delay: 1.2s; }

@keyframes fab-hero-pulse {
	0%   { transform: scale(1);    opacity: 0.8; }
	70%  { transform: scale(1.75); opacity: 0; }
	100% { transform: scale(1.75); opacity: 0; }
}

.fab-hero__teaser-trigger:hover .fab-hero__play,
.fab-hero__teaser-trigger:focus-visible .fab-hero__play {
	transform: scale(1.08);
}

/* Teaser-Text ------------------------------------------------------------- */
.fab-hero__teaser-body {
	padding: 1.25rem 1.375rem 1.5rem;
	border-top: 4px solid var(--fab-hero-blue);
}

.fab-hero__teaser-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--fab-hero-ink);
}

.fab-hero__teaser-copy {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--fab-hero-muted);
}

.fab-hero__teaser-lead { color: var(--fab-hero-lead); }

/* Lightbox ---------------------------------------------------------------- */
.fab-hero__modal[hidden] { display: none; }

.fab-hero__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: var(--fab-hero-gutter);
}

.fab-hero__modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(6, 12, 17, 0.88);
}

.fab-hero__modal-dialog {
	position: relative;
	width: min(64rem, 100%);
}

.fab-hero__modal-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background-color: #000;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
}

.fab-hero__modal-frame iframe,
.fab-hero__modal-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fab-hero__modal-close {
	position: absolute;
	top: -3rem;
	right: 0;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-hero__modal-close:hover { transform: rotate(90deg); }

.fab-hero__modal-close svg {
	width: 1.5rem;
	height: 1.5rem;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	stroke-linecap: round;
}

body.fab-modal-open { overflow: hidden; }

/* Editor-Platzhalter ------------------------------------------------------ */
.fab-hero__placeholder {
	padding: 3rem 1.5rem;
	border: 1px dashed #b3bcc4;
	background-color: #f4f6f8;
	color: #566670;
	text-align: center;
	font-size: 0.9375rem;
}

/* Motion-Präferenz -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.fab-hero__play::before,
	.fab-hero__play::after {
		animation: none;
		opacity: 0;
	}

	.fab-hero *,
	.fab-hero *::before,
	.fab-hero *::after {
		transition-duration: 0.01ms !important;
	}
}
