/**
 * O.A.S.E. Highlights – Frontend-Styles.
 * Neutral & self-contained. Farben lassen sich per CSS-Variablen überschreiben
 * (z. B. in "Design → Customizer → Zusätzliches CSS"):
 *
 *   .oase-highlights { --oase-accent: #1f6f43; --oase-badge: #ff5a3c; }
 */

.oase-highlights {
	--oase-accent: #111827;      /* Button-/Preisfarbe */
	--oase-accent-hover: #374151;
	--oase-badge: #ff5a3c;       /* Badge-Hintergrund */
	--oase-card-bg: #ffffff;
	--oase-card-border: #ececec;
	--oase-text: #1a1a1a;
	--oase-muted: #6b7280;
	--oase-radius: 16px;
	--oase-gap: 28px;

	box-sizing: border-box;
	width: 100%;
	margin-block: clamp(32px, 6vw, 72px);
}

.oase-highlights *,
.oase-highlights *::before,
.oase-highlights *::after {
	box-sizing: border-box;
}

/* Kopfbereich */
.oase-highlights__head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(24px, 4vw, 44px);
	padding-inline: 16px;
}

.oase-highlights__title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.5vw, 2.6rem);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--oase-text);
}

.oase-highlights__intro {
	margin: 0;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.6;
	color: var(--oase-muted);
}

/* Slider-Rahmen (Position für die Pfeile) */
.oase-highlights__slider {
	position: relative;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
}

/* Slider-Spur: horizontal, wischbar, mit Snap. Verhindert die "Tapete" auf Mobil. */
.oase-highlights__track {
	display: flex;
	gap: var(--oase-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scroll-padding-left: 2px;
	padding-block: 8px 12px;
	/* Scrollbar dezent ausblenden */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.oase-highlights__track::-webkit-scrollbar {
	display: none;
}

.oase-highlights__track:focus-visible {
	outline: 2px solid var(--oase-accent);
	outline-offset: 4px;
	border-radius: var(--oase-radius);
}

/* Kartenbreite: so viele wie --oase-cols passen sichtbar nebeneinander. */
.oase-highlights__track > .oase-highlight-card {
	flex: 0 0 calc((100% - (var(--oase-cols) - 1) * var(--oase-gap)) / var(--oase-cols));
	scroll-snap-align: start;
}

/* Pfeil-Buttons (Desktop). Werden per JS ein-/ausgeblendet, wenn nötig. */
.oase-highlights__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--oase-card-bg);
	color: var(--oase-text);
	border: 1px solid var(--oase-card-border);
	border-radius: 999px;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.oase-highlights__nav:hover {
	background: var(--oase-accent);
	color: #fff;
}

.oase-highlights__nav[hidden] {
	display: none;
}

.oase-highlights__nav:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.oase-highlights__nav--prev {
	left: -4px;
}

.oase-highlights__nav--next {
	right: -4px;
}

/* Karte */
.oase-highlight-card {
	display: flex;
	flex-direction: column;
	background: var(--oase-card-bg);
	border: 1px solid var(--oase-card-border);
	border-radius: var(--oase-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.oase-highlight-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.oase-highlight-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f4f4f5;
	overflow: hidden;
}

.oase-highlight-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.oase-highlight-card:hover .oase-highlight-card__img {
	transform: scale(1.04);
}

.oase-highlight-card__img--placeholder {
	background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 12px, #e9e9e9 12px, #e9e9e9 24px);
}

.oase-highlight-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: var(--oase-badge);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
}

.oase-highlight-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px 22px 24px;
}

.oase-highlight-card__brand {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--oase-accent);
	margin-bottom: 6px;
}

.oase-highlight-card__name {
	margin: 0 0 10px;
	font-size: 1.3rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--oase-text);
}

.oase-highlight-card__subtitle {
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--oase-muted);
	margin-top: 2px;
}

.oase-highlight-card__desc {
	margin: 0 0 18px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--oase-muted);
}

.oase-highlight-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	flex-wrap: wrap;
}

.oase-highlight-card__price {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--oase-text);
}

.oase-highlight-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--oase-accent);
	color: #fff !important;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	padding: 11px 18px;
	border-radius: 999px;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.oase-highlight-card__btn:hover,
.oase-highlight-card__btn:focus {
	background: var(--oase-accent-hover);
	color: #fff !important;
}

/* Hinweis-Box (nur für Redakteure sichtbar, wenn noch nichts angelegt ist) */
.oase-highlights--empty {
	max-width: 640px;
	margin: 24px auto;
	padding: 20px 24px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	color: #475569;
	text-align: center;
}

/* Responsiv – Slider zeigt weniger Karten gleichzeitig, statt sie zu stapeln. */

/* Tablet: ~2 Karten sichtbar */
@media (max-width: 900px) {
	.oase-highlights__track > .oase-highlight-card {
		flex-basis: calc((100% - var(--oase-gap)) / 2);
	}
}

/* Mobil: ~1 Karte + Anschnitt der nächsten -> zeigt an, dass man wischen kann.
   Pfeile weg, weil hier gewischt wird. Feste Höhe statt endloser "Tapete". */
@media (max-width: 560px) {
	.oase-highlights {
		--oase-gap: 16px;
	}

	.oase-highlights__track > .oase-highlight-card {
		flex-basis: 84%;
	}

	.oase-highlights__nav {
		display: none;
	}

	.oase-highlights__slider {
		/* etwas Anschnitt am rechten Rand, damit die nächste Karte "durchlugt" */
		padding-inline: 16px;
	}
}

/* Wer Bewegung reduziert haben will, bekommt kein Smooth-Scroll. */
@media (prefers-reduced-motion: reduce) {
	.oase-highlights__track {
		scroll-behavior: auto;
	}
}
