/* ==========================================================================
   Hero (variant-styret). Faste, forudsigelige højder pr. variant, så
   undersider ikke driver. Baggrundsbillede som cover (strækkes aldrig).
   Bruger temaets CSS-variabler med fallback.
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--color-primary, #1f3a5f);
}

/* Baggrundsbillede sættes via inline --hero-bg, lagt som cover. */
.hero--has-bg {
	background-image: var(--hero-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Video dækker hele hero'en bag indholdet. */
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero__content {
	max-width: 680px;
}

.hero__h1 {
	font-size: clamp(1.9rem, 4vw, 3.1rem);
	line-height: 1.1;
	margin: 0 0 16px;
}

.hero-h1__accent {
	color: var(--color-accent, #e0a449);
}

.hero__lead {
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.55;
	margin: 0 0 24px;
	max-width: 58ch;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
}

.hero__chips .chip {
	background: rgba(255, 255, 255, 0.14);
	color: var(--paper);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.85rem;
}

/* ---- Tekstfarve: hvid når der er baggrund/video --------------------------- */
.hero--has-bg .hero__h1,
.hero--has-bg .hero__lead,
.hero--full .hero__h1,
.hero--full .hero__lead,
.hero--centered .hero__h1,
.hero--centered .hero__lead,
.hero--compact .hero__h1,
.hero--compact .hero__lead {
	color: var(--paper);
}

/* ==========================================================================
   Varianter, med FASTE højder så sider ikke skifter format
   ========================================================================== */

/* full: høj forside-hero */
.hero--full {
	min-height: clamp(520px, 70vh, 760px);
	padding: 80px 0;
}

/* centered: centreret tekst over billede */
.hero--centered {
	min-height: clamp(480px, 64vh, 680px);
	padding: 80px 0;
	text-align: center;
}

.hero--centered .hero__content {
	max-width: 760px;
	margin: 0 auto;
}

.hero--centered .hero__cta,
.hero--centered .hero__chips {
	justify-content: center;
}

/* split: tekst + billede side om side */
.hero--split {
	min-height: 460px;
	padding: 64px 0;
	background-color: var(--color-surface, #f6f7f9);
}

.hero--split .hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.hero--split .hero__h1,
.hero--split .hero__lead {
	color: var(--color-text, #1f2937);
}

.hero--split .hero__media {
	border-radius: var(--radius-lg, 18px);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.hero--split .hero__media-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* compact: undersidernes banner. FAST højde = ingen drift mellem sider */
.hero--compact {
	min-height: 280px;
	padding: 56px 0;
}

/* minimal: farvebånd uden billede til utility-sider */
.hero--minimal {
	min-height: 180px;
	padding: 48px 0;
}

.hero--minimal .hero__h1,
.hero--minimal .hero__lead {
	color: var(--paper);
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 768px) {
	.hero--full {
		min-height: clamp(440px, 70vh, 560px);
		padding: 56px 0;
	}

	.hero--centered {
		min-height: 420px;
	}

	.hero--split .hero__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hero--split {
		min-height: 0;
	}

	.hero--compact {
		min-height: 200px;
		padding: 40px 0;
	}
}
