/* Elevate — Hero-Karussell Tienda V2 (Paket B2).
 * Struktur, nicht endgültiges Design: alle sichtbaren Werte als Variablen, damit der
 * Entwurf (Christina) eingekleidet werden kann, ohne Markup oder JS zu ändern.
 * Seitenverhältnis kommt aus dem Motiv (--elv-hero-ratio / --elv-hero-ratio-m) und ist
 * vor dem Laden des Bildes reserviert: kein Layoutsprung. */
.elv-hero {
	--elv-hero-max: 1600px;
	--elv-hero-radius: 18px;
	--elv-hero-gap: clamp(16px, 3vw, 32px);
	--elv-hero-ctrl-size: 44px;
	--elv-hero-ctrl-bg: rgba(13, 27, 42, .72);
	--elv-hero-ctrl-fg: #fff;
	--elv-hero-dot: rgba(255, 255, 255, .6);
	--elv-hero-dot-active: var(--gold, #C9A84C);
	--elv-hero-focus: var(--gold, #C9A84C);
	position: relative;
	max-width: var(--elv-hero-max);
	margin: 0 auto var(--elv-hero-gap);
}

.elv-hero__track {
	display: flex;
	aspect-ratio: var(--elv-hero-ratio, 1920 / 550);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	border-radius: var(--elv-hero-radius);
	background: var(--elv-hero-placeholder, #eef0f3);
}

.elv-hero__track::-webkit-scrollbar {
	display: none;
}

.elv-hero__slide {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.elv-hero__link,
.elv-hero__link picture {
	display: block;
	width: 100%;
	height: 100%;
}

.elv-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.elv-hero__arrow,
.elv-hero__toggle,
.elv-hero__dot {
	appearance: none;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.elv-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: var(--elv-hero-ctrl-size);
	height: var(--elv-hero-ctrl-size);
	border-radius: 50%;
	background: var(--elv-hero-ctrl-bg);
	color: var(--elv-hero-ctrl-fg);
	transform: translateY(-50%);
}

.elv-hero__arrow--prev { left: 12px; }
.elv-hero__arrow--next { right: 12px; }

.elv-hero svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.elv-hero__nav {
	position: absolute;
	left: 50%;
	bottom: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--elv-hero-ctrl-bg);
	transform: translateX(-50%);
}

.elv-hero__dots {
	display: flex;
}

.elv-hero__dot {
	position: relative;
	width: 32px;
	height: 32px;
	background: transparent;
}

.elv-hero__dot::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--elv-hero-dot);
	transform: translate(-50%, -50%);
	transition: width .2s ease, background-color .2s ease;
}

.elv-hero__dot[aria-current="true"]::after {
	width: 22px;
	border-radius: 999px;
	background: var(--elv-hero-dot-active);
}

.elv-hero__toggle {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	background: transparent;
	color: var(--elv-hero-ctrl-fg);
}

.elv-hero__toggle svg { width: 16px; height: 16px; }
.elv-hero__toggle .elv-hero__icon-play { display: none; }
.elv-hero__toggle[aria-pressed="true"] .elv-hero__icon-play { display: block; }
.elv-hero__toggle[aria-pressed="true"] .elv-hero__icon-pause { display: none; }

.elv-hero__arrow:focus-visible,
.elv-hero__dot:focus-visible,
.elv-hero__toggle:focus-visible,
.elv-hero__link:focus-visible {
	outline: 3px solid var(--elv-hero-focus);
	outline-offset: 2px;
}

.elv-hero__link:focus-visible {
	outline-offset: -3px;
}

@media (max-width: 720px) {
	.elv-hero {
		--elv-hero-radius: 12px;
		--elv-hero-ctrl-size: 36px;
	}

	.elv-hero__track {
		aspect-ratio: var(--elv-hero-ratio-m, var(--elv-hero-ratio, 1920 / 550));
	}

	.elv-hero__arrow--prev { left: 6px; }
	.elv-hero__arrow--next { right: 6px; }
}

@media (hover: none) {
	.elv-hero__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.elv-hero__track { scroll-behavior: auto; }
	.elv-hero__dot::after { transition: none; }
}
