/* KB Media · Luminous Dark · Endlose Bildlaufbänder
   Feste Zeilenhöhe, Breite folgt dem echten Seitenverhältnis: kein Zuschnitt.
   Bewegung per transform auf einer doppelten Spur, läuft bei Hover weiter.
   Anhalten: Schalter (WCAG 2.2.2) und prefers-reduced-motion. */

.lx-marquee { position: relative; overflow: hidden; padding-block: 6px; }
.lx-marquee + .lx-marquee { margin-top: clamp(10px, 1.2vw, 16px); }
.lx-marquee__mask {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.lx-marquee__track {
	display: flex; width: max-content;
	animation: lx-marquee var(--dur, 60s) linear infinite;
	animation-direction: var(--dir, normal);
	will-change: transform;
}
.lx-marquee__group { display: flex; gap: var(--gap, 14px); padding-right: var(--gap, 14px); list-style: none; margin: 0; padding-left: 0; }
.lx-marquee__item {
	position: relative; flex: none; margin: 0;
	height: var(--h, clamp(220px, 26vw, 400px));
	aspect-ratio: var(--ar, 3 / 2);
	border-radius: var(--lx-r-m); overflow: hidden;
	background: var(--lx-surface);
	box-shadow: 0 0 0 1px rgba(241, 245, 249, 0.05);
}
.lx-marquee__item img { width: 100%; height: 100%; object-fit: cover; }
.lx-marquee__item figcaption {
	position: absolute; left: 12px; bottom: 12px;
	padding: 5px 10px; border-radius: var(--lx-r-pill);
	background: rgba(7, 9, 13, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: 0.75rem; font-weight: 600; color: var(--lx-text);
	opacity: 0; transform: translateY(6px);
	transition: opacity var(--lx-d2) var(--lx-ease), transform var(--lx-d2) var(--lx-ease);
}
.lx-marquee__item:hover figcaption { opacity: 1; transform: none; }
.lx-marquee--lg { --h: clamp(260px, 30vw, 460px); }
.lx-marquee--sm { --h: clamp(180px, 19vw, 300px); }
.lx-marquees--compact .lx-marquee--lg { --h: clamp(150px, 15vw, 230px); }
.lx-marquees--compact .lx-marquee--sm { --h: clamp(130px, 12.5vw, 196px); }
.lx-marquees--compact .lx-marquee__item figcaption { opacity: 1; transform: none; }

@keyframes lx-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* Pausiert per Schalter oder außerhalb des Viewports */
.lx-marquees.is-paused .lx-marquee__track,
.lx-marquees.is-offscreen .lx-marquee__track { animation-play-state: paused; }
.lx-marquees__bar { display: flex; justify-content: flex-end; margin: -24px auto 18px; }

@media (prefers-reduced-motion: reduce) {
	.lx-marquee__track { animation: none; }
	.lx-marquee { overflow-x: auto; scrollbar-width: none; }
	.lx-marquee__group[aria-hidden="true"] { display: none; }
	.lx-marquees__bar { display: none; }
}
@media (max-width: 640px) {
	.lx-marquee__item { border-radius: 14px; }
	.lx-marquee--lg { --h: 240px; }
	.lx-marquee--sm { --h: 180px; }
}
