/*
 * Structured solution page layout.
 */

.solution-page {
	--solution-page-image-radius: 0.9375rem;
	overflow: hidden;
	background: var(--color-bg);
	color: var(--color-on-dark-muted);
}

/* Header-segmentet deles 1:1 med Funktioner-undersiderne (Løsninger 2.0):
   64px titel på én linje, 18px intro i Billetter-bredden, ens spacing. */
.solution-page__hero {
	padding-block: clamp(4rem, 8vw, 7rem);
	background: var(--color-blue-overlay);
	color: var(--color-white);
}

.solution-page__hero-inner {
	max-width: 64rem;
	margin-inline: auto;
	text-align: center;
}

.solution-page__title {
	margin-bottom: 1.25rem;
	color: var(--color-white);
	font-size: clamp(3rem, 5vw, 4rem);
	line-height: 1.1;
}

.solution-page__intro {
	max-width: 56rem;
	margin: 0 auto;
	color: var(--color-on-dark-muted);
	font-size: var(--font-size-lead);
	line-height: 1.7;
}

.solution-page__lead {
	padding-block: 0 clamp(3.25rem, 7vw, 6.25rem);
	background: #fff;
	color: var(--color-text);
}

.solution-page__detail {
	padding-block: clamp(3.25rem, 7vw, 6.5rem);
	background: var(--color-blue-overlay);
	color: var(--color-on-dark-muted);
}

.solution-page__quote-band {
	padding-block: clamp(3rem, 7vw, 6.25rem);
	background: #fff;
}

.solution-page__closing {
	padding-block: clamp(3.25rem, 7vw, 6.5rem);
	background: var(--color-blue-overlay);
	color: var(--color-on-dark-muted);
}

.solution-page__cases {
	background: #fff;
	color: var(--color-text);
}

.solution-page__case {
	background: #fff;
	color: var(--color-text);
}

.solution-page__case-main {
	padding-block: clamp(3.75rem, 7vw, 6rem);
	background: #fff;
	color: var(--color-text);
}

/* 3.0-mock: mindre luft mellem referencen og den grå funktionsboks
   (gælder alle cases med citat). */
.solution-page__case-main:has(.solution-page__case-quote-wrap) {
	padding-block-end: clamp(1.25rem, 2.5vw, 2rem);
}

.solution-page__case:nth-child(even) .solution-page__case-main {
	background: var(--color-blue-overlay);
	color: var(--color-on-dark-muted);
}

.solution-page__case-inner {
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.solution-page__case--no-image .solution-page__case-inner {
	display: block;
}

.solution-page__case-media {
	overflow: hidden;
	margin: 0;
	aspect-ratio: 1.5 / 1;
	border-radius: var(--solution-page-image-radius);
	background: transparent;
	box-shadow: none;
}

.solution-page__case-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.solution-page__case-content {
	min-width: 0;
}

.solution-page__case-logo {
	display: inline-flex;
	align-items: center;
	max-width: min(14rem, 100%);
	margin: 0 0 1.25rem;
	padding: 0;
}

.solution-page__case-logo img {
	width: auto;
	max-height: 17rem;
	object-fit: contain;
}

.solution-page__case-logo--quote {
	align-self: center;
	max-width: min(24rem, 100%);
	margin: 0;
}

/* Logo-only case: the customer logo fills the media slot at hero size. */
.solution-page__case-hero-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: clamp(1rem, 3vw, 2.5rem);
}

/*
 * The mock places hero logos at roughly 28rem regardless of the source file's
 * pixel size (Erhvervsforum is upscaled in the design too), so force the width
 * instead of only capping it.
 */
.solution-page__case-hero-logo img {
	width: min(100%, 33rem);
	max-height: 30rem;
	object-fit: contain;
}

/* On dark (even) cases the logo sits on a light card to stay legible. */
.solution-page__case:nth-child(even) .solution-page__case-hero-logo {
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
	background: #fff;
	border-radius: var(--card-radius, 1rem);
}

.solution-page__case-title {
	max-width: 18ch;
	margin-bottom: 1rem;
	color: var(--color-blue-dark);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
}

.solution-page__case:nth-child(even) .solution-page__case-title {
	color: var(--color-white);
}

.solution-page__case-copy {
	max-width: 42rem;
	color: var(--color-text-muted);
	font-size: var(--font-size-lead);
	line-height: 1.65;
}

.solution-page__case:nth-child(even) .solution-page__case-copy {
	color: var(--color-on-dark-muted);
}

.solution-page__case-copy p:last-child,
.solution-page__feature-copy p:last-child {
	margin-bottom: 0;
}

.solution-page__case-quote-wrap {
	margin-top: clamp(2.25rem, 5vw, 4.25rem);
}

.solution-page__case-quote {
	position: relative;
	display: grid;
	gap: clamp(1.75rem, 5vw, 4.5rem);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

/* 3.0-mock: anførselstegnet står på første tekstlinje med citatet rykket ind
   ved siden af — ikke hævet over teksten. Tegnet sidder på quote-content, så
   det følger tekstkolonnen i alle varianter (også ved siden af et logo). */
.solution-page__case-quote-content::before {
	content: "\201C";
	position: absolute;
	top: -0.08em;
	left: 0;
	color: var(--color-brand-red);
	font-size: clamp(3.5rem, 8vw, 6.5rem);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	opacity: 0.92;
}

.solution-page__case-quote-content {
	position: relative;
	min-width: 0;
	padding-left: clamp(3rem, 5vw, 3.75rem);
}

.solution-page__case-quote-text {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--color-brand-red);
	font-size: var(--font-size-lead);
	font-style: italic;
	font-weight: var(--font-weight-regular);
	line-height: 1.6;
}

.solution-page__case:nth-child(even) .solution-page__case-quote-text,
.solution-page__case:nth-child(even) .solution-page__case-quote-content::before {
	color: var(--color-white);
}

/* 3.0-mock: referencen i brødtekstfarve — ikke citatets røde. */
.solution-page__case-quote-footer {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: 1.2rem;
	color: var(--color-text);
	text-align: right;
}

.solution-page__case-quote-footer strong {
	font-weight: var(--font-weight-bold);
}

.solution-page__case-quote-footer span {
	color: var(--color-text-muted);
	font-size: var(--font-size-small);
}

/* A quote without a companion logo uses the full case container. */
.solution-page .solution-page__case .solution-page__case-quote--full,
.solution-page .solution-page__case .solution-page__case-quote--full .solution-page__case-quote-content {
	width: 100%;
	max-width: none;
}

.solution-page__case:nth-child(even) .solution-page__case-quote-footer {
	color: var(--color-white);
}

.solution-page__case:nth-child(even) .solution-page__case-quote-footer span {
	color: rgba(255, 255, 255, 0.7);
}

/* Mobil (skærm til skærm): båndet beholder sin fulde grå baggrund.
   Fra tablet og op flytter det grå over på et afrundet panel (mock 2.0). */
.solution-page__case-feature-band {
	padding-block: clamp(2.6rem, 5vw, 4.25rem);
	background: var(--color-surface-light);
}

.solution-page__feature-panel {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.solution-page__feature-band-title {
	margin: 0;
	color: var(--color-blue-dark);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.2;
	text-align: center;
}

.solution-page__feature-grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 5vw, 4rem);
}

.solution-page__feature-card {
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* 1 punkt fylder hele rækken; 2-4 punkter fordeles i to kolonner (tablet+). */
.solution-page__feature-card:only-child {
	grid-column: 1 / -1;
}

.solution-page__feature-header {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.75rem;
}

.solution-page__feature-title {
	margin: 0;
}

.solution-page__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--color-brand-red);
	flex: 0 0 auto;
}

.solution-page__feature-icon .dashicons {
	width: 2rem;
	height: 2rem;
	font-size: 2rem;
	line-height: 1;
}

.solution-page__feature-icon .solution-page__feature-icon-image {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: contain;
}

.solution-page__feature-title {
	color: var(--color-blue-dark);
	font-size: clamp(1.15rem, 1.8vw, 1.375rem);
	line-height: 1.2;
}

.solution-page__feature-copy {
	color: var(--color-text-muted);
	font-size: var(--font-size-lead);
	line-height: 1.65;
}

.solution-page__lead-inner,
.solution-page__detail-inner,
.solution-page__quote-inner,
.solution-page__closing-inner {
	position: relative;
}

.solution-page__lead-inner {
	margin-top: calc(clamp(2rem, 5vw, 4.25rem) * -1);
}

.solution-page__wide-media,
.solution-page__detail-media {
	overflow: hidden;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.solution-page__detail .solution-page__detail-media,
.solution-page__closing .solution-page__wide-media {
	background: transparent;
	box-shadow: none;
}

.solution-page__lead .solution-page__wide-media {
	overflow: visible;
	padding-top: var(--space-xl);
	border: 0;
	background: transparent;
	box-shadow: none;
}

.solution-page__wide-media {
	aspect-ratio: 16 / 8.4;
}

.solution-page__detail-media {
	aspect-ratio: 4 / 3;
}

.solution-page__wide-media img,
.solution-page__detail-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.solution-page__lead .solution-page__wide-media img,
.solution-page__lead .solution-page__media--empty::before {
	height: 100%;
	min-height: calc(18rem - var(--space-xl));
	border-radius: var(--solution-page-image-radius);
	box-shadow: var(--shadow-card);
}

.solution-page__media--empty::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	min-height: 18rem;
	background: repeating-linear-gradient(135deg, rgba(2, 34, 56, 0.06) 0 1px, transparent 1px 18px);
}

.solution-page__detail .solution-page__media--empty::before,
.solution-page__closing .solution-page__media--empty::before {
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

.solution-page__lead-copy {
	max-width: 52rem;
	margin: clamp(1.75rem, 4vw, 3rem) auto 0;
	text-align: center;
}

.solution-page__section-title {
	margin-bottom: 1rem;
	color: var(--color-blue-dark);
	font-size: clamp(1.85rem, 3.6vw, 3rem);
}

.solution-page__detail .solution-page__section-title {
	color: var(--color-white);
}

.solution-page__text {
	color: var(--color-text-muted);
	font-size: var(--font-size-lead);
	line-height: 1.75;
}

.solution-page__detail .solution-page__text {
	color: var(--color-on-dark-muted);
}

.solution-page__text p:last-child {
	margin-bottom: 0;
}

.solution-page__detail-inner {
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.solution-page__detail-card {
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--card-radius);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.solution-page__quote {
	position: relative;
	max-width: 58rem;
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 4.75rem) 0 0 clamp(2.25rem, 6vw, 6rem);
	border: 0;
	background: transparent;
	color: var(--color-brand-red);
	font-size: clamp(2rem, 5vw, 4.25rem);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0;
	line-height: 1.05;
	text-align: left;
}

.solution-page__quote p {
	margin: 0;
}

.solution-page__quote::before {
	content: "\201C";
	position: absolute;
	top: -0.12em;
	left: 0;
	color: var(--color-brand-red);
	font-size: clamp(5rem, 11vw, 9rem);
	line-height: 1;
	opacity: 0.68;
}

.solution-page__wide-media--closing {
	aspect-ratio: 16 / 7.6;
}

.solution-page__editor-content {
	max-width: var(--site-max-width);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 5rem);
	color: var(--color-on-dark-muted);
}

/* Klasserne sættes i PHP (eventit_get_editor_content_classes). Tidligere stod
   der :has(> :first-child.alignfull) her, og browsere uden :has() smed reglen
   væk — det gav 80px hvid luft over og under det blå prisbånd. */
.solution-page__editor-content--flush-top {
	padding-top: 0;
}

.solution-page__editor-content--flush-bottom {
	padding-bottom: 0;
}

.solution-page__editor-content > :not(.alignfull) {
	max-width: var(--content-max-width);
	margin-inline: auto;
}

/* Pricing-CTA'en følger de globale cta-centered-regler (48px/18px, "ens på
   alle sider") — de tidligere lokale nedskaleringer er fjernet med vilje. */
.solution-page .solution-page-pricing-cta {
	/* Løsningssidernes gemte blokke bruger spacingPreset "none". Giv derfor
	   wrapperen samme responsive compact-luft som på funktionssiderne. */
	padding-block: clamp(2rem, 4vw, 3rem);
}

.solution-page .solution-page-pricing-cta .cta-centered__inner {
	padding-inline: clamp(1.25rem, 4vw, 2.25rem);
}

.solution-page--events-oplevelser .solution-page__case-quote,
.solution-page--undervisning-kurser .solution-page__case-quote {
	max-width: 46rem;
	margin-inline: auto;
}

/* Quotes that carry a customer logo span the full container like the design mock. */
.solution-page--events-oplevelser .solution-page__case-quote--has-logo,
.solution-page--undervisning-kurser .solution-page__case-quote--has-logo {
	max-width: none;
}

.solution-page--events-oplevelser .solution-page__case-quote-content,
.solution-page--undervisning-kurser .solution-page__case-quote-content {
	max-width: 48rem;
}

.solution-page--events-oplevelser .solution-page__case-quote-text br,
.solution-page--undervisning-kurser .solution-page__case-quote-text br {
	display: none;
}

@media (min-width: 56rem) {
	.solution-page__detail-inner {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}

	.solution-page__case-inner {
		grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	}

	.solution-page__case-quote--has-logo {
		grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr);
	}

	.solution-page--events-oplevelser .solution-page__case-quote--has-logo,
	.solution-page--undervisning-kurser .solution-page__case-quote--has-logo {
		grid-template-columns: minmax(14rem, 0.45fr) minmax(0, 1fr);
	}
}

/* Mock 2.0-panelet gælder fra iPad/desktop; under 48rem beholdes det
   nuværende skærm-til-skærm-bånd. */
@media (min-width: 48rem) {
	.solution-page__case-feature-band {
		background: #fff;
	}

	.solution-page__case:nth-child(even) .solution-page__case-feature-band {
		background: var(--color-blue-overlay);
	}

	.solution-page__feature-panel {
		padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.5rem);
		border-radius: 1.5rem;
		background: var(--color-surface-light);
	}

	.solution-page__feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 55.9375rem) {
	.solution-page__lead-copy,
	.solution-page__editor-content,
	.solution-page__quote {
		text-align: left;
	}

	.solution-page__wide-media,
	.solution-page__wide-media--closing {
		aspect-ratio: 4 / 3;
	}

	.solution-page__lead-inner {
		margin-top: -2rem;
	}

	.solution-page__detail-card {
		padding: 1.35rem;
	}

	.solution-page__case-title {
		max-width: none;
	}

	.solution-page__case-media {
		aspect-ratio: 4 / 3;
	}

	.solution-page__feature-icon {
		width: 2.1rem;
		height: 2.1rem;
	}

	.solution-page__feature-icon .dashicons {
		width: 1.8rem;
		height: 1.8rem;
		font-size: 1.8rem;
	}

	.solution-page__feature-icon .solution-page__feature-icon-image {
		width: 1.8rem;
		height: 1.8rem;
	}
}

@media (max-width: 47.9375rem) {
	.solution-page .solution-page-pricing-cta .cta-centered__inner {
		width: min(calc(100% - 1rem), 48rem);
		padding-inline: 1.25rem;
	}
}

/* Mobil (design-review, tilføjet additivt): overskrifter og under-overskrifter
   centreres; titel 32px, intro 16px, case-/sektionsoverskrifter 28px,
   "Udvalgte funktioner kunden bruger" 22px, brødtekst = --font-size-body (14px).
   Desktop uændret. Citat-regler røres ikke. */
@media (max-width: 47.9375rem) {
	.solution-page__hero-inner {
		text-align: center;
	}

	.solution-page__title {
		font-size: 2rem;
	}

	.solution-page__intro {
		font-size: 1rem;
	}

	.solution-page__case-title,
	.solution-page__section-title {
		font-size: 1.75rem;
		text-align: center;
	}

	.solution-page__feature-band-title {
		font-size: 1.375rem;
	}

	.solution-page__case-copy,
	.solution-page__feature-copy,
	.solution-page__text {
		font-size: var(--font-size-body);
	}
}

/* Design-review: mobil-tilpasning. Skal stå sidst — samme specificitet som
   basisreglen, så rækkefølgen afgør. */
@media (max-width: 47.9375rem) {
	.solution-page__case-quote-text {
		font-size: 0.875rem;
	}
}
