/* KB Media · Luminous Dark · Hero
   Ohne JS bzw. bei reduzierter Bewegung: Text oben, Bühne als gerahmtes Panorama darunter.
   Mit Motion (.lx-hero--scrub): Bühne liegt vollflächig dahinter und wird per clip-path
   aus dem Panorama auf die volle Fläche geöffnet. */

.lx-hero { position: relative; background: var(--lx-base); }
.lx-hero__inner {
	position: relative; min-height: 100svh; overflow: hidden;
	display: flex; flex-direction: column;
	padding: calc(var(--lx-header-h) + clamp(24px, 4vh, 56px)) 0 var(--lx-gutter);
}
.lx-hero .lx-light--a { --w: 90vw; --c: var(--lx-light-cyan); top: -38vw; left: -22vw; }
.lx-hero .lx-light--b { --w: 70vw; --c: var(--lx-light-blue); top: -20vw; right: -30vw; }

.lx-hero__copy {
	position: relative; z-index: 3;
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end;
	gap: var(--lx-s3) var(--lx-s6);
}
.lx-hero__copy .lx-eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.lx-hero__title { font-size: clamp(3.75rem, 8.4vw, 9.5rem); }
.lx-hero__aside { display: grid; gap: var(--lx-s3); padding-bottom: 0.6vw; }
.lx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bühne */
.lx-hero__stage {
	position: relative; z-index: 1;
	flex: 1; min-height: 340px;
	margin: clamp(28px, 4vh, 48px) var(--lx-gutter) 0;
	border-radius: var(--lx-r-l); overflow: hidden;
	background: var(--lx-surface);
	box-shadow: var(--lx-shadow-2);
}
.lx-hero__media { position: absolute; inset: 0; will-change: transform; }
.lx-hero__slide {
	position: absolute; inset: 0; margin: 0;
	opacity: 0; transition: opacity 1200ms var(--lx-ease-inout);
}
.lx-hero__slide.is-active { opacity: 1; }
.lx-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7000ms linear; }
.lx-hero__slide.is-active img { transform: scale(1); }
.lx-hero__stage::after {
	/* Lesbarkeit für Bildunterschrift und Steuerung, kein Vollflächen-Overlay */
	content: ""; position: absolute; inset: auto 0 0 0; height: 50%; pointer-events: none;
	background: linear-gradient(180deg, rgba(7, 9, 13, 0) 0%, rgba(7, 9, 13, 0.45) 55%, rgba(7, 9, 13, 0.82) 100%);
}

.lx-hero__hud {
	position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	padding: clamp(16px, 2.2vw, 28px);
}
.lx-hero__caption { color: var(--lx-text); font-size: var(--lx-fs-small); line-height: 1.4; min-height: 2.8em; }
.lx-hero__caption b { display: block; font-weight: 600; }
.lx-hero__caption span { color: var(--lx-text-2); }
.lx-hero__caption [data-cap] { display: none; }
.lx-hero__caption [data-cap].is-active { display: block; animation: lx-cap-in var(--lx-d3) var(--lx-ease) both; }
@keyframes lx-cap-in { from { opacity: 0; transform: translateY(8px); } }

.lx-hero__controls { display: flex; align-items: center; gap: 8px; }
.lx-pill {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border-radius: var(--lx-r-pill);
	background: rgba(7, 9, 13, 0.5); border: 1px solid var(--lx-glass-border);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	font-size: var(--lx-fs-label); font-weight: 600; color: var(--lx-text-2);
	transition: color var(--lx-d2) var(--lx-ease), background-color var(--lx-d2) var(--lx-ease);
}
.lx-pill:hover { color: var(--lx-text); }
.lx-pill[aria-current="true"] { color: var(--lx-text); background: rgba(16, 23, 34, 0.75); }
.lx-pill__bar { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: rgba(241, 245, 249, 0.12); overflow: hidden; opacity: 0; }
.lx-pill[aria-current="true"] .lx-pill__bar { opacity: 1; }
.lx-pill__bar i { position: absolute; inset: 0; background: var(--lx-accent); transform-origin: 0 50%; transform: scaleX(0); }
.lx-pill--warm .lx-pill__bar i { background: var(--lx-warm); }

.lx-hero__scroll {
	position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%);
	display: none;
}

/* Scroll-Inszenierung aktiv: Steuerung folgt dem sichtbaren Ausschnitt */
.lx-hero--scrub .lx-hero__copy { z-index: 0; }
.lx-hero--scrub .lx-hero__stage { z-index: 2; }
.lx-hero--scrub .lx-hero__hud { left: var(--clip-x, 24px); right: var(--clip-x, 24px); bottom: var(--clip-b, 24px); }
.lx-hero--scrub .lx-hero__stage::after { bottom: var(--clip-b, 24px); }
.lx-hero--scrub .lx-hero__stage {
	position: absolute; inset: 0; margin: 0; border-radius: 0; box-shadow: none;
	clip-path: inset(var(--clip-t, 50%) var(--clip-x, 24px) var(--clip-b, 24px) var(--clip-x, 24px) round var(--clip-r, 28px));
}

@media (max-width: 1023.98px) {
	.lx-hero__copy { grid-template-columns: 1fr; }
	.lx-hero__title { font-size: clamp(3.5rem, 13.5vw, 7rem); }
	.lx-hero__aside { padding-bottom: 0; }
}
@media (max-width: 560px) {
	.lx-hero__inner { padding-top: calc(var(--lx-header-h) + 20px); }
	.lx-hero__copy { gap: 18px; }
	.lx-hero__actions .lx-btn { flex: 1 1 auto; }
	.lx-hero__stage { min-height: 300px; }
	.lx-hero__hud { flex-direction: column; align-items: stretch; }
	.lx-hero__controls { justify-content: space-between; }
	.lx-hero__caption { min-height: 0; }
}
