﻿/* Base */
:root {
	--color-text: #1a1a1a;
	--color-muted: #6b6b6b;
	--color-bg: #fff6e8;
	--color-border: #e5e5e5;
	--color-input-border: rgba(37, 56, 71, 0.5);
	--color-placeholder: #8a8a8a;
	--color-accent: #1f4e79;
	--color-primary: #ea1822;
	--color-primary-dark: #c8121b;
	--color-dark: #253847;
	--color-overlay: rgba(37, 56, 71, 0.8);
	--color-nav-bg: var(--color-bg);
	--color-nav-highlight: #5f8097;
	--font-base: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-breadcrumbs: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--container-width: 1352px;
	--block-spacing: 7.5rem;
	--container-padding: 1rem;
	--text-image-gap: 149px;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: var(--font-base);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

[hidden] {
	display: none !important;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 600;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

.nav {
	font-family: var(--font-base);
}

/* Layout */
.container {
	width: 100%;
	max-width: calc(var(--container-width) + 2 * var(--container-padding));
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.site-main {
	flex: 1;
}

/* Footer: mørk del med logo og kolonner, hvid bund med copyright og certifikater */
.site-footer .container {
	max-width: calc(1272px + 2 * var(--container-padding));
}

.site-footer__main {
	padding: 5rem 0;
	background: var(--color-dark);
	color: #ffffff;
}

/* Kolonnerne er så brede som deres indhold, med 80px imellem. Logo-delen fylder resten. */
.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr repeat(3, auto);
	gap: 3rem 80px;
}

.site-footer__brand {
	max-width: 302px;
}

.site-footer__logo {
	display: block;
	max-height: 80px;
	width: auto;
}

.site-footer__text {
	margin: 1.75rem 0 0;
}

.site-footer__bottom-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 2.25rem;
}

.site-footer__badge {
	display: block;
	max-height: 80px;
	width: auto;
}

.site-footer__social {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.06);
	transition: background-color 0.15s;
}

.site-footer__social a:hover {
	background: rgba(255, 255, 255, 0.16);
}

.site-footer__social img {
	width: 24px;
	height: 24px;
}

.site-footer__heading {
	margin: 0.5rem 0 24px;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__column a {
	color: #ffffff;
	text-decoration: none;
}

.site-footer__column a:hover {
	text-decoration: underline;
}

.site-footer__paragraph {
	margin: 0 0 1rem;
}

.site-footer__legal {
	padding: 24px 0;
	background: #ffffff;
	color: #b3b3b3;
}

.site-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.site-footer__copyright {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0;
}

.site-footer__copyright a {
	color: inherit;
	text-decoration: none;
}

.site-footer__copyright a:hover {
	color: var(--color-text);
}

.site-footer__certificates {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__certificates img {
	display: block;
	max-height: 40px;
	width: auto;
}

@media (max-width: 1023px) {
	.site-footer__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.site-footer__main {
		padding: 3rem 0;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Navigation */
.site-header {
	position: absolute;
	top: 1rem;
	left: 0;
	right: 0;
	z-index: 10;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 1rem;
	padding: 0.75rem 1.5rem;
	border-radius: 48px;
	background: var(--color-nav-bg);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.nav__logo {
	display: flex;
	align-items: center;
	min-height: 40px;
	font-weight: 700;
	color: var(--color-text);
	text-decoration: none;
}

.nav__logo img {
	width: auto;
	max-height: 32px;
}

.nav__toggle {
	padding: 0.5rem;
	border: 0;
	background: none;
	color: var(--color-text);
	cursor: pointer;
}

.nav__menu {
	display: none;
	flex-basis: 100%;
	flex-direction: column;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
}

.nav__menu.is-open {
	display: flex;
}

.nav:has(.nav__menu.is-open) {
	border-radius: 24px;
}

.nav__row {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.nav__link,
.nav__sublink {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: var(--color-text);
	text-decoration: none;
}

.nav__link--toggle,
.nav__expand {
	cursor: pointer;
}

.nav__link.is-active,
.nav__sublink.is-active {
	font-weight: 700;
}

.nav__link:hover,
.nav__sublink:hover {
	color: var(--color-primary);
}

.nav__expand {
	display: inline-flex;
	padding: 0.5rem 0.25rem;
	border: 0;
	background: none;
	color: var(--color-text);
}

.nav__chevron {
	transition: transform 0.15s;
}

[aria-expanded="true"] > .nav__chevron {
	transform: rotate(180deg);
}

.nav__submenu {
	display: none;
	margin: 0;
	padding: 0 0 0.5rem 1rem;
	list-style: none;
}

.nav__submenu.is-open {
	display: block;
}

@media (min-width: 960px) {
	.nav {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}

	.nav__toggle {
		display: none;
	}

	.nav__menu {
		display: flex;
		flex-direction: row;
		gap: 1.75rem;
		padding: 0;
	}

	.nav__item {
		position: relative;
	}

	/* Dropdown: et kort under menuen med lidt luft. ::before dækker luften, så menuen
	   ikke lukker, mens musen flyttes ned til den. */
	.nav__submenu {
		position: absolute;
		top: calc(100% + 1.5rem);
		left: -1rem;
		min-width: 305px;
		padding: 14px;
		border-radius: 8px;
		background: var(--color-nav-bg);
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	}

	.nav__submenu::before {
		content: "";
		position: absolute;
		right: 0;
		bottom: 100%;
		left: 0;
		height: 1.5rem;
	}

	.nav__submenu li + li {
		margin-top: 1rem;
	}

	.nav__item--dropdown:hover > .nav__submenu,
	.nav__item--dropdown:focus-within > .nav__submenu {
		display: block;
	}

	.nav__sublink {
		display: block;
		padding: 0.375rem 0.625rem;
		border-radius: 4px;
		font-size: 1rem;
		font-weight: 400;
	}

	.nav__sublink:hover,
	.nav__sublink.is-active {
		background: var(--color-nav-highlight);
		color: #ffffff;
		font-weight: 400;
	}
}

/* Brødkrummer: forældresider som grå links, den aktuelle side mørk, med | imellem */
.breadcrumbs {
	padding-top: 3rem;
	font-family: var(--font-breadcrumbs);
	font-size: 0.875rem;
	font-weight: 400;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "|";
	margin: 0 0.75rem;
	color: var(--color-text);
}

.breadcrumbs a {
	color: #b3b3b3;
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--color-text);
}

/* Kontakt-fane: fast i højre side i nederste del af skærmen, følger med ved scroll */
.contact-tab {
	position: fixed;
	bottom: 2rem;
	right: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0.75rem;
	border-radius: 8px 0 0 8px;
	background: var(--color-dark);
	color: #ffffff;
	text-decoration: none;
	transition: background-color 0.15s, transform 0.25s, opacity 0.25s, visibility 0.25s;
}

.contact-tab.is-hidden {
	visibility: hidden;
	opacity: 0;
	transform: translateX(100%);
}

.contact-tab:hover {
	background: var(--color-primary);
}

.contact-tab__text {
	writing-mode: vertical-rl;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 400;
}

.contact-tab__icon {
	width: 36px;
	height: auto;
}

/* På mobil dækker fanen for meget af indholdet, så den skjules. Kontakt findes i menuen og footeren. */
@media (max-width: 767px) {
	.contact-tab {
		display: none;
	}
}

/* Sprogvælger i menuen: runde flag, dropdown med de andre sprog */
.lang-switch {
	position: relative;
	margin-left: auto;
}

.lang-switch__toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem;
	border: 0;
	background: none;
	color: var(--color-text);
	cursor: pointer;
}

.lang-switch__flag {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
}

.lang-switch__flag svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Starter samme sted som menuens dropdowns: de sidder 1.5rem under et menupunkt, der er 2.6rem højt
   (tekst 1.6 linjehøjde + 0.5rem luft over og under). Vælgeren er lavere, så forskellen lægges til. */
.lang-switch__menu {
	position: absolute;
	top: calc(100% + 1.5rem + (2.6rem - 100%) / 2);
	right: 0;
	z-index: 20;
	display: none;
	min-width: 180px;
	margin: 0;
	padding: 0.5rem;
	border-radius: 8px;
	background: var(--color-nav-bg);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	list-style: none;
}

.lang-switch__menu.is-open {
	display: block;
}

/* På brede skærme åbner vælgeren ved hover ligesom menuens dropdowns. ::before dækker luften, så den
   ikke lukker, mens musen flyttes ned til den. Klik virker stadig (touch og tastatur). */
@media (min-width: 960px) {
	.lang-switch:hover > .lang-switch__menu,
	.lang-switch:focus-within > .lang-switch__menu {
		display: block;
	}

	.lang-switch__menu::before {
		content: "";
		position: absolute;
		right: 0;
		bottom: 100%;
		left: 0;
		height: 2rem;
	}
}

.lang-switch__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	border-radius: 4px;
	color: var(--color-text);
	text-decoration: none;
}

.lang-switch__link:hover {
	background: var(--color-nav-highlight);
	color: #ffffff;
}

/* På smalle skærme står vælgeren mellem logoet og menuknappen */
.nav__logo {
	order: 0;
}

.lang-switch {
	order: 1;
}

.nav__toggle {
	order: 2;
}

.nav__menu {
	order: 3;
}

/* På brede skærme står vælgeren i menuens højre kolonne */
@media (min-width: 960px) {
	.lang-switch {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}
}

/* Components */
.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.625rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.button--primary {
	background: var(--color-primary);
	color: #ffffff;
}

.button--primary:hover {
	background: var(--color-primary-dark);
}

.button--outline {
	border-color: #ffffff;
	color: #ffffff;
}

.button--outline:hover {
	background: #ffffff;
	color: var(--color-text);
}

/* Rød kant: rød tekst og kant, fyldt rød ved hover */
.button--outline-red {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.button--outline-red:hover {
	background: var(--color-primary);
	color: #ffffff;
}

/* Sort kant: sort tekst, ikon og kant, fyldt sort ved hover */
.button--outline-dark {
	border-color: var(--color-text);
	color: var(--color-text);
}

.button--outline-dark:hover {
	background: var(--color-text);
	color: #ffffff;
}

/* Mørke streger på lys baggrund ser tykkere ud end hvide på rød, så ikonerne får en tyndere streg her,
   så de ser lige så tynde ud som på den primære knap */
.button--outline-dark .icon path,
.button--outline-red .icon path {
	stroke-width: 1.25;
}

.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Blocks: Hero */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 90vh;
	padding: 6rem 0 4rem;
	background: #2b3540;
	color: #ffffff;
	text-align: center;
	overflow: hidden;
}

/* Undersider: højden følger skærmens bredde, så den er 416px på en 1512px skærm (416 / 1512 = 27,5 %).
   Indholdet kan stadig gøre den højere. */
.hero--small {
	min-height: calc(100vw * 416 / 1512);
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--color-overlay);
}

.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__logo {
	width: auto;
	max-width: min(540px, 100%);
	height: auto;
	max-height: 135px;
	margin-bottom: 1rem;
}

.hero__heading {
	margin: 0 0 1rem;
	font-weight: 600;
	line-height: 1.15;
}

.hero__text {
	max-width: 60ch;
	margin: 0 0 2.5rem;
	font-size: 1rem;
}

.hero .buttons {
	justify-content: center;
}

/* Blocks: fælles */
/* Fast afstand mellem blokkene og fra hero/footer til første/sidste blok */
.umb-block-list {
	display: flex;
	flex-direction: column;
	gap: var(--block-spacing);
	padding: var(--block-spacing) 0;
}

.block__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	margin-bottom: 3rem;
}

.block__heading {
	margin: 0 0 1.5rem;
	font-weight: 600;
	line-height: 1.2;
}

.block__text {
	max-width: 28rem;
	margin: 0;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--color-text);
	text-decoration: none;
}

.link-arrow:hover {
	color: var(--color-primary);
}

/* Slider */
.slider {
	--slider-gap: 2.5rem;
	--slider-per-view: 3;
}

.slider__track {
	display: flex;
	gap: var(--slider-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
	display: none;
}

.slider__slide {
	display: flex;
	flex: 0 0 calc((100% - (var(--slider-per-view) - 1) * var(--slider-gap)) / var(--slider-per-view));
	scroll-snap-align: start;
}

.slider__controls {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-top: 2rem;
}

.slider__dots {
	grid-column: 2;
	display: flex;
	gap: 0.125rem;
}

.slider__dot {
	display: grid;
	place-items: center;
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.slider__dot::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-dark);
}

.slider__dot[aria-current="true"]::before {
	background: var(--color-primary);
}

.slider__arrows {
	grid-column: 3;
	justify-self: end;
	display: flex;
	gap: 1rem;
}

.slider__arrow {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-dark);
	color: #ffffff;
	cursor: pointer;
}

.slider__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Kort */
.card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 290px;
	padding: 2.5rem;
	border-radius: 8px;
	background: var(--color-dark);
	color: #ffffff;
	text-decoration: none;
}

.card {
	transition: background-color 0.15s, color 0.15s;
}

/* Kortenes hover kun med mus: på mobil bliver effekten ellers hængende efter et tryk */
@media (hover: hover) {
	.card:hover {
		background: var(--color-primary);
		color: #ffffff;
	}
}

.card__media {
	display: flex;
	align-items: flex-start;
	height: 40px;
}

.card__icon {
	width: auto;
	height: auto;
	max-width: 40px;
	max-height: 40px;
	transition: filter 0.15s;
}

@media (hover: hover) {
	.card:hover .card__icon {
		filter: brightness(0) invert(1);
	}
}

.card__body {
	padding-top: 50px;
}

.card__title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.card__text {
	margin: 0;
}

@media (max-width: 1023px) {
	.slider {
		--slider-gap: 1.5rem;
		--slider-per-view: 2;
	}
}

/* Blocks: Tekst. Højst 900px bredt og centreret, knapperne centreret under teksten */
/* Centreret på siden */
.text-block__inner {
	max-width: 900px;
	margin: 0 auto;
}

.text-block__text h2 {
	margin: 0 0 1.5rem;
	line-height: 1.25;
}

.text-block__text h3 {
	margin: 2rem 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.text-block__text p {
	margin: 0 0 1.5rem;
}

.text-block__text > :last-child {
	margin-bottom: 0;
}

/* Lister: editoren lægger hvert punkt i et afsnit. Uden afsnittets luft står punkterne tæt med 8px imellem. */
.text-block__text ul,
.text-block__text ol {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
}

.text-block__text li + li {
	margin-top: 0.5rem;
}

.text-block__text li p {
	margin: 0;
}

.text-block__text a {
	color: var(--color-primary);
}

.text-block .buttons {
	justify-content: center;
	margin-top: 3rem;
}

/* Blocks: Billedgalleri med link. Afrundede hjørner på helheden, 8px mellem billederne */
.gallery-link__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	aspect-ratio: 1352 / 800;
	border-radius: 8px;
	overflow: hidden;
}

.gallery-link__open {
	display: block;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	overflow: hidden;
	cursor: zoom-in;
}

.gallery-link__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-link__grid--1 .gallery-link__open {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
}

.gallery-link__grid--2 .gallery-link__open,
.gallery-link__grid--3 .gallery-link__open:first-child {
	grid-row: 1 / -1;
}

.gallery-link__button {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	padding: 8px;
	border-radius: 4px;
}

/* Mobil: første billede i fuld bredde øverst, de andre som firkanter ved siden af hinanden under det */
@media (max-width: 767px) {
	.gallery-link__grid {
		grid-template-rows: none;
		aspect-ratio: auto;
	}

	.gallery-link__grid .gallery-link__open,
	.gallery-link__grid--2 .gallery-link__open,
	.gallery-link__grid--3 .gallery-link__open:first-child {
		grid-row: auto;
		aspect-ratio: 1;
	}

	.gallery-link__grid--1 .gallery-link__open,
	.gallery-link__grid--3 .gallery-link__open:first-child {
		grid-column: 1 / -1;
		aspect-ratio: 4 / 3;
	}

	/* Knappen sidder øverst til venstre på det øverste billede */
	.gallery-link__button {
		top: 1rem;
		bottom: auto;
	}
}

/* Blocks: Tidslinje. Tekst og knapper til venstre, punkterne på en lodret linje til højre */
.timeline__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem 2.5rem;
	align-items: start;
}

.timeline__intro {
	max-width: 570px;
}

.timeline__text p {
	margin: 0 0 1.5rem;
}

.timeline__text > :last-child {
	margin-bottom: 0;
}

.timeline .buttons {
	margin-top: 3rem;
}

/* Sekundær knap er mørk på den lyse baggrund */
.timeline .button--outline {
	border-color: var(--color-dark);
	color: var(--color-text);
}

.timeline .button--outline:hover {
	background: var(--color-dark);
	color: #ffffff;
}

.timeline__list {
	--timeline-gap: 5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline__item {
	position: relative;
	padding-left: 48px;
}

.timeline__item + .timeline__item {
	margin-top: var(--timeline-gap);
}

/* Linjen går fra hver prik ned til den næste. Det sidste punkt har ingen linje under sin prik. */
.timeline__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 12px;
	bottom: calc(-1 * var(--timeline-gap) - 12px);
	left: 11.5px;
	width: 1px;
	background: rgba(37, 56, 71, 0.5);
}

/* Prik som i designet: 24px med tynd rød ring, 16px rød prik i midten og sidens baggrund imellem,
   så linjen ikke ses gennem ringen */
.timeline__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	border: 0.5px solid var(--color-primary);
	border-radius: 50%;
	background: radial-gradient(circle, var(--color-primary) 0 7.75px, var(--color-bg) 8.25px);
	z-index: 1;
}

.timeline__label {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-primary);
	text-transform: uppercase;
}

.timeline__title {
	margin: 0.75rem 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.timeline__description {
	margin: 0;
	font-size: 0.9375rem;
}

@media (max-width: 1023px) {
	.timeline__grid {
		grid-template-columns: 1fr;
	}

	.timeline__list {
		--timeline-gap: 3rem;
	}
}

/* Blocks: Banner med logo. Mørkt bånd i fuld bredde med centreret tekst og logo */
.logo-banner {
	padding: 3.5rem 0;
	background: var(--color-dark);
	color: #ffffff;
	text-align: center;
}

.logo-banner__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}

.logo-banner__text {
	max-width: 880px;
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.5;
}

.logo-banner__logo {
	display: block;
	width: auto;
	max-height: 56px;
}

/* Mobil: mindre luft, tekst og logo, så båndet ikke fylder hele skærmen */
@media (max-width: 767px) {
	.logo-banner {
		padding: 2.5rem 0;
	}

	.logo-banner__inner {
		gap: 1.75rem;
	}

	.logo-banner__text {
		font-size: 1.0625rem;
	}

	.logo-banner__logo {
		max-height: 44px;
	}
}

/* Blocks: Call to action. Baggrundsbillede bag mørkt overlay, tekst til venstre, knapper til højre */
.cta {
	position: relative;
	padding: 6rem 0;
	background: var(--color-dark);
	color: #ffffff;
	overflow: hidden;
}

.cta__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--color-overlay);
}

.cta__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem 4rem;
}

.cta__heading {
	margin: 0 0 1.5rem;
	line-height: 1.2;
}

.cta__text {
	max-width: 550px;
	margin: 0;
}

.cta .buttons {
	flex-shrink: 0;
}

@media (max-width: 767px) {
	.cta {
		padding: 4rem 0;
	}

	.cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Blocks: Dokumenter. Højst 900px bredt og centreret, et mørkt kort pr. dokument */
.document-list__inner {
	max-width: 900px;
	margin: 0 auto;
}

.document-list__intro p {
	margin: 0 0 1.5rem;
}

.document-list__intro > :last-child {
	margin-bottom: 0;
}

.document-list__items {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 5rem 0 0;
	padding: 0;
	list-style: none;
}

.document-card {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	padding: 12px 2.5rem 12px 12px;
	border-radius: 4px;
	background: var(--color-dark);
	color: #ffffff;
}

.document-card__image {
	flex-shrink: 0;
	width: 137px;
	height: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.document-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.document-card__text {
	margin: 0;
}

.document-card__button {
	margin-top: 2.5rem;
}

@media (max-width: 767px) {
	.document-list__items {
		margin-top: 3rem;
	}

	.document-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.document-card__button {
		margin-top: 1.5rem;
	}
}

/* Blocks: Harmonika. Højst 900px bredt og centreret, mørk bjælke pr. sektion, rækker med tekst til venstre og værdi til højre */
.accordion__inner {
	max-width: 900px;
	margin: 0 auto;
}

.accordion__intro {
	margin-bottom: 3rem;
}

.accordion__intro p {
	margin: 0 0 1.5rem;
}

.accordion__intro > :last-child {
	margin-bottom: 0;
}

.accordion__toggle-all {
	display: block;
	margin: 0 0 0.5rem auto;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	color: var(--color-text);
	cursor: pointer;
}

.accordion__toggle-all:hover {
	text-decoration: underline;
}

.accordion__section + .accordion__section {
	margin-top: 1.5rem;
}

.accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	background: var(--color-dark);
	color: #ffffff;
	cursor: pointer;
	list-style: none;
}

.accordion__summary::-webkit-details-marker {
	display: none;
}

.accordion__summary:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.accordion__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.accordion__chevron {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.accordion__section[open] .accordion__chevron {
	transform: rotate(180deg);
}

.accordion__rows {
	margin: 0;
	padding: 1rem 1rem 1.5rem;
}

.accordion__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.625rem 0;
}

.accordion__row dt,
.accordion__row dd {
	margin: 0;
}

.accordion__row dd {
	flex-shrink: 0;
	text-align: right;
}

/* Blocks: Medarbejdere. 3 i hver række med billede, rød titel, navn med store bogstaver og kontaktlinks */
.employees__intro {
	max-width: 900px;
	margin-bottom: 5rem;
}

.employees__text p {
	margin: 0 0 1.5rem;
}

.employees__text > :last-child {
	margin-bottom: 0;
}

.employees__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Billederne er udklippede PNG'er: hele personen vises nederst i midten på mørkeblå baggrund */
.employee__image {
	display: block;
	width: 100%;
	aspect-ratio: 424 / 302;
	object-fit: contain;
	object-position: center bottom;
	border-radius: 8px;
	background: #253847;
}

.employee__image--placeholder {
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.employee__image--placeholder svg {
	display: block;
	height: 85%;
	color: #c5cbd0;
}

.employee__role {
	margin: 2rem 0 0.5rem;
	font-size: 0.9375rem;
	color: var(--color-primary);
}

.employee__name {
	margin: 0 0 16px;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--color-dark);
	text-transform: uppercase;
}

.employee__contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.employee__contact li {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.employee__contact .icon {
	color: var(--color-dark);
}

.employee__contact a {
	color: var(--color-dark);
	text-decoration: none;
}

.employee__contact a:hover {
	color: var(--color-primary);
}

@media (max-width: 1023px) {
	.employees__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.employees__intro {
		margin-bottom: 3rem;
	}

	.employees__list {
		grid-template-columns: 1fr;
	}
}

/* Blocks: Billedgalleri med filtre. Pills øverst, 3 billeder i hver række, klik åbner lightboxen */
.filter-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 4rem;
}

.filter-pill {
	padding: 0.625rem 1.5rem;
	border: 1px solid var(--color-dark);
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: 0.875rem;
	color: var(--color-dark);
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.filter-pill:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.filter-pill[aria-pressed="true"] {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: #ffffff;
}

.filter-gallery__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.filter-gallery__more {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}

.filter-gallery__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	overflow: hidden;
	cursor: zoom-in;
}

.filter-gallery__image {
	display: block;
	width: 100%;
	aspect-ratio: 435 / 300;
	object-fit: cover;
}

@media (max-width: 1023px) {
	.filter-gallery__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.filter-gallery__filters {
		gap: 0.5rem;
		margin-bottom: 2rem;
	}

	/* Mobil: 2 små billeder ved siden af hinanden. Klik åbner dem i stort format i lightboxen. */
	.filter-gallery__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}
}

/* Blocks: Kort. Google Maps i fuld bredde med adressen i en rød boks øverst til venstre */
.map {
	position: relative;
}

.map__canvas {
	height: 600px;
	background: #f2f2f2;
}

/* Pladsholder over kort og YouTube/Vimeo, indtil der er givet samtykke til marketing-cookies */
.consent-placeholder {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	padding: 2rem var(--container-padding);
	text-align: center;
}

.consent-placeholder[hidden] {
	display: none;
}

.consent-placeholder p {
	max-width: 40ch;
	margin: 0;
}

.video .consent-placeholder {
	background: var(--color-dark);
	color: #ffffff;
}

/* Står kortet sidst på siden, går det helt ned til footeren uden luft */
.umb-block-list:has(> .map:last-child) {
	padding-bottom: 0;
}

.map__address {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	z-index: 1;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	background: var(--color-primary);
	color: #ffffff;
	font-size: 0.9375rem;
	text-decoration: none;
}

a.map__address:hover {
	background: var(--color-primary-dark);
}

@media (max-width: 767px) {
	.map__canvas {
		height: 400px;
	}

	.map__address {
		top: 1rem;
		right: 1rem;
		left: 1rem;
	}
}

/* Blocks: Kort-grid */
.card-grid__intro {
	max-width: 860px;
	margin-bottom: 6rem;
}

.card-grid__text p {
	margin: 0 0 1.5rem;
}

.card-grid__text p:last-child {
	margin-bottom: 0;
}

.card-grid__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card-grid__list .card {
	height: 100%;
}

@media (max-width: 1023px) {
	.card-grid__intro {
		margin-bottom: 3rem;
	}

	.card-grid__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.card-grid__list {
		grid-template-columns: 1fr;
	}
}

/* Blocks: Formular (Umbraco Forms, default theme) */
.form-block__header {
	max-width: 46rem;
	margin: 0 auto 3rem;
	text-align: center;
}

.form-block__text p {
	margin: 0;
}

.form-block__text a {
	color: var(--color-primary);
	text-decoration: none;
}

.form-block__text a:hover {
	text-decoration: underline;
}

.form-block__form {
	max-width: 56rem;
	margin: 0 auto;
}

/* Forms indlæser sit eget default-stylesheet efter vores, så reglerne her er scopet til .form-block for at vinde */
.form-block .umbraco-forms-form {
	padding: 0;
}

.form-block .umbraco-forms-form fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.form-block .row-fluid {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
}

.form-block .umbraco-forms-container {
	flex: 1 1 0;
	min-width: 0;
}

.form-block .umbraco-forms-field,
.form-block .umbraco-forms-form fieldset.umbraco-forms-field {
	margin-bottom: 1.5rem;
}

.form-block label.umbraco-forms-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 400;
}

.form-block .umbraco-forms-form input.text,
.form-block .umbraco-forms-form input[type="text"],
.form-block .umbraco-forms-form input[type="email"],
.form-block .umbraco-forms-form input[type="tel"],
.form-block .umbraco-forms-form textarea,
.form-block .umbraco-forms-form select {
	display: block;
	width: 100%;
	max-width: none !important;
	height: 48px;
	margin: 0;
	padding: 0.75rem;
	border: 1px solid var(--color-input-border);
	border-radius: 4px;
	background: transparent;
	font: inherit;
	color: var(--color-text);
}

/* Sektionsoverskrifter i formularer (fx "Om dig", "Certifikater") */
.form-block .umbraco-forms-form legend {
	margin: 0.5rem 0 1.5rem;
	padding: 0;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
}

/* Afkrydsningsliste (fx certifikater): mulighederne på én linje i en ramme som de andre felter */
.form-block .umbraco-forms-form .checkboxlist {
	float: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding: 0.75rem;
	border: 1px solid var(--color-input-border);
	border-radius: 4px;
}

/* Forms lægger hver mulighed i sin egen div: boks og tekst ved siden af hinanden, teksten grå indtil den er valgt */
.form-block .umbraco-forms-form .checkboxlist > div {
	display: flex;
	align-items: center;
}

.form-block .umbraco-forms-form .checkboxlist label {
	color: var(--color-placeholder);
	cursor: pointer;
}

.form-block .umbraco-forms-form .checkboxlist > div:has(input:checked) label {
	color: var(--color-text);
}

/* Forms' eget stylesheet fjerner kant og størrelse på bokse i lister med !important, så de skal sættes igen */
.form-block .umbraco-forms-form .checkboxlist input[type="checkbox"] {
	width: 20px !important;
	height: 20px !important;
	margin: 0 0.5rem 0 0;
	border: 1px solid var(--color-input-border) !important;
}

.form-block .umbraco-forms-form .checkboxlist input[type="checkbox"]:checked {
	border-color: var(--color-dark) !important;
}

.form-block .umbraco-forms-form .checkboxlist label {
	float: none;
}

/* Dropdown med egen pil i stedet for browserens */
.form-block .umbraco-forms-form select {
	padding-right: 2.5rem;
	appearance: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E") right 0.75rem center / 16px no-repeat;
	cursor: pointer;
}

/* Afkrydsningsbokse (fx samtykke): samme kant og gennemsigtige baggrund som felterne, mørk med hvidt flueben når de er sat */
.form-block .umbraco-forms-form input[type="checkbox"] {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0.15rem 0.75rem 0 0;
	border: 1px solid var(--color-input-border);
	border-radius: 4px;
	background: transparent;
	appearance: none;
	cursor: pointer;
}

.form-block .umbraco-forms-form input[type="checkbox"]:checked {
	border-color: var(--color-dark);
	background: var(--color-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.form-block .umbraco-forms-form input[type="checkbox"].input-validation-error {
	border-color: var(--color-primary);
}

/* Boksen og samtykketeksten ved siden af hinanden, fejlbeskeden under */
.form-block .umbraco-forms-form .dataconsent .umbraco-forms-field-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.form-block .umbraco-forms-form .dataconsent .umbraco-forms-field-wrapper label {
	flex: 1;
	cursor: pointer;
}

.form-block .umbraco-forms-form .dataconsent span.field-validation-error {
	flex-basis: 100%;
}

.form-block .umbraco-forms-form textarea {
	height: 120px;
	padding: 0.75rem;
	resize: none;
}

.form-block .umbraco-forms-form ::placeholder {
	color: var(--color-placeholder);
}

.form-block .umbraco-forms-form input:focus,
.form-block .umbraco-forms-form textarea:focus,
.form-block .umbraco-forms-form select:focus {
	border: 1px solid var(--color-dark);
	outline: 2px solid var(--color-dark);
	outline-offset: -1px;
}

.form-block .umbraco-forms-form input.input-validation-error,
.form-block .umbraco-forms-form textarea.input-validation-error {
	border-color: var(--color-primary);
	background: transparent;
}

.form-block .umbraco-forms-form span.field-validation-error {
	display: block;
	margin-top: 0.25rem;
	padding: 0;
	font-size: 0.8125rem;
	color: var(--color-primary) !important;
}

.form-block .umbraco-forms-form .umbraco-forms-navigation {
	justify-content: center;
	margin-top: 1.5rem;
	padding: 0;
}

.form-block .umbraco-forms-form .btn.primary {
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 4px;
	background: var(--color-primary);
	font: inherit;
	font-weight: 400;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s;
}

.form-block .umbraco-forms-form .btn.primary:hover {
	background: var(--color-primary-dark);
}

.form-block .umbraco-forms-submitmessage,
.form-block .umbraco-forms-submitmessage-html {
	display: block;
	max-width: 36rem;
	margin: 0 auto;
	padding: 2.5rem;
	border-radius: 8px;
	background: var(--color-dark);
	color: #ffffff;
	text-align: center;
}

.form-block .umbraco-forms-submitmessage-html h3 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.form-block .umbraco-forms-submitmessage-html p {
	margin: 0;
}

.form-block .umbraco-forms-submitmessage-html a {
	color: #ffffff;
	font-weight: 700;
}

/* Blocks: Nøgletal */
.stats__header {
	max-width: 56rem;
	margin: 0 auto;
	text-align: center;
}

.stats__text {
	margin: 0;
}

.stats__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem 1.5rem;
	margin: 5rem 0 0;
	padding: 0;
	list-style: none;
}

.stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 9.5rem;
	text-align: center;
}

.stats__number {
	display: inline-flex;
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--color-primary);
}

.stats__label {
	margin-top: 0.5rem;
	font-size: 0.75rem;
}

.odometer__digit {
	display: inline-block;
	height: 1em;
	overflow: hidden;
}

.odometer__strip {
	display: block;
	transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.odometer__strip > span {
	display: block;
	height: 1em;
}

/* Blocks: Billedgalleri */
.gallery {
	--gallery-gap: 24px;
	--gallery-width: min(56rem, 100vw - 12rem);
	overflow: hidden;
}

.gallery__viewport {
	position: relative;
	height: 400px;
	touch-action: pan-y;
}

.gallery__track {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__slide {
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--gallery-width);
	height: 100%;
	margin-left: calc(var(--gallery-width) / -2);
	transform: translateX(calc(var(--offset) * (var(--gallery-width) + var(--gallery-gap))));
	transition: transform 0.5s ease;
}

.gallery__slide.is-jumping {
	transition: none;
}

.gallery__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.gallery__slide[aria-hidden="true"] .gallery__open {
	cursor: pointer;
}

.gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

/* Lightbox */
.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 4rem;
	border: 0;
	background: transparent;
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox::backdrop {
	background: rgba(37, 56, 71, 0.9);
}

.lightbox__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.lightbox__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: var(--color-dark);
	cursor: pointer;
}

.lightbox__arrow {
	width: 40px;
	height: 40px;
}

.lightbox__arrow--prev {
	left: 1.5rem;
}

.lightbox__arrow--next {
	right: 1.5rem;
}

.gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: var(--color-dark);
	cursor: pointer;
	transform: translateY(-50%);
}

.gallery__arrow--prev {
	left: 2.5rem;
}

.gallery__arrow--next {
	right: 2.5rem;
}

.gallery__actions {
	margin-top: 2.5rem;
}

.gallery .buttons {
	justify-content: center;
}

/* Blocks: Tekst og billede */
.text-image {
	position: relative;
	padding: 5rem 0;
	background: var(--color-dark);
	color: #ffffff;
}

.text-image__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: calc(50% - var(--text-image-gap) / 2);
	min-height: 600px;
}

.text-image__text {
	margin-bottom: 2.5rem;
}

.text-image__text p {
	margin: 0 0 1.5rem;
}

.text-image__text p:last-child {
	margin-bottom: 0;
}

.text-image__text a {
	color: #ffffff;
}

/* Billedet går fra lidt til højre for midten og ud til skærmkanten, men på store skærme
   højst ud til kanten af indholdsbredden, så det ikke bliver et smalt panorama.
   Det er højst 600px højt og centreres lodret, hvis teksten fylder mere. */
.text-image__media {
	position: absolute;
	top: 50%;
	right: max(0px, (100% - var(--container-width)) / 2);
	left: calc(50% + var(--text-image-gap) / 2);
	height: calc(100% - 10rem);
	max-height: 600px;
	transform: translateY(-50%);
	overflow: hidden;
}

.text-image--reverse .text-image__content {
	margin-left: auto;
}

.text-image--reverse .text-image__media {
	right: calc(50% + var(--text-image-gap) / 2);
	left: max(0px, (100% - var(--container-width)) / 2);
}

.text-image__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.text-image__media--logos::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(37, 56, 71, 0.5);
}

.text-image__logos {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 5rem;
	padding: 2rem;
}

.text-image__logos img {
	width: auto;
	max-width: 120px;
	max-height: 80px;
}

/* Lys variant: mørk tekst på lys baggrund, afrundede hjørner ind mod teksten */
.text-image--light {
	padding: 0;
	background: var(--color-bg);
	color: var(--color-text);
}

.text-image--light .text-image__content {
	padding: 3rem 0;
}

.text-image--light .text-image__text a {
	color: var(--color-primary);
}

.text-image--light .text-image__media {
	border-radius: 8px 0 0 8px;
}

/* Billedet går fra top til bund uden luft, kun teksten har afstand.
   Kun på brede skærme, hvor billedet står ved siden af teksten. */
@media (min-width: 1024px) {
	.text-image--light .text-image__media {
		height: 100%;
	}
}

.text-image--light.text-image--reverse .text-image__media {
	border-radius: 0 8px 8px 0;
}

/* Når billedet ikke længere når ud til skærmkanten, rundes alle hjørner */
@media (min-width: 1353px) {
	.text-image--light .text-image__media,
	.text-image--light.text-image--reverse .text-image__media {
		border-radius: 8px;
	}
}

.text-image--light .button--outline {
	border-color: var(--color-dark);
	color: var(--color-text);
}

.text-image--light .button--outline:hover {
	background: var(--color-dark);
	color: #ffffff;
}

@media (max-width: 1023px) {
	.text-image {
		padding-bottom: 0;
	}

	.text-image__content {
		max-width: none;
		min-height: 0;
	}

	/* På smalle skærme ligger billedet i fuld bredde under teksten, uden afrundede hjørner */
	.text-image--light .text-image__media,
	.text-image--light.text-image--reverse .text-image__media {
		border-radius: 0;
	}

	.text-image__media,
	.text-image--reverse .text-image__media {
		position: relative;
		inset: auto;
		transform: none;
		height: 360px;
		margin-top: 3rem;
	}
}

/* Blocks: Video */
.video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	background: var(--color-dark);
	overflow: hidden;
}

.video__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

/* Mørkt overlay og afspil-knap, til videoen startes */
.video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s;
}

.video__play:hover {
	background: rgba(0, 0, 0, 0.2);
}

.video__play svg {
	transition: transform 0.15s;
}

.video__play:hover svg,
.video__play:focus-visible svg {
	transform: scale(1.15);
}

.video.is-playing .video__play {
	display: none;
}

/* Blocks: Seneste cases og nyheder (også brugt på oversigtssiden) */
.article-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.article-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: 276px;
	padding: 1rem;
	border-radius: 8px;
	background: var(--color-dark);
	color: #ffffff;
	text-decoration: none;
	transition: background-color 0.15s;
}

.article-card:focus-visible {
	background: var(--color-primary);
}

@media (hover: hover) {
	.article-card:hover {
		background: var(--color-primary);
	}
}

/* Med billede: billedet fylder kortet bag et mørkt overlay. Ved hover løfter kortet sig i stedet for at skifte farve */
.article-card--image {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.2s, box-shadow 0.2s;
}

.article-card--image:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

@media (hover: hover) {
	.article-card--image:hover {
		transform: translateY(-6px);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
	}
}

.article-card__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-card--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(37, 56, 71, 0.5);
}

.article-card__label {
	display: inline-block;
	padding: 0.375rem 1rem;
	border-radius: 4px;
	background: var(--color-primary);
	color: #ffffff;
	font-size: 0.875rem;
	transition: background-color 0.15s;
}

.article-card .article-card__label {
	align-self: flex-end;
	margin-bottom: auto;
}

.article-card:focus-visible .article-card__label {
	background: var(--color-dark);
}

@media (hover: hover) {
	.article-card:hover .article-card__label {
		background: var(--color-dark);
	}
}

.article-card--image:focus-visible .article-card__label {
	background: var(--color-primary);
}

@media (hover: hover) {
	.article-card--image:hover .article-card__label {
		background: var(--color-primary);
	}
}

.article-card__title {
	margin: 2rem 0 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.article-card__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.article-overview {
	padding: var(--block-spacing) 0;
}

/* Sidens blokke står under kortene; kun den normale afstand imellem, ikke dobbelt */
.article-overview + .umb-block-list {
	padding-top: 0;
}

.article-overview__filter {
	max-width: 664px;
	margin: 0 auto 5rem;
}

/* Dropdown i samme stil som formularfelterne, med egen pil */
.article-overview__select {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0.75rem 2.5rem 0.75rem 1.5rem;
	border: 1px solid var(--color-input-border);
	border-radius: 4px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E") right 1rem center / 16px no-repeat;
	font: inherit;
	font-size: 0.875rem;
	color: var(--color-text);
	appearance: none;
	cursor: pointer;
}

.article-overview__select:focus {
	border-color: var(--color-dark);
	outline: 2px solid var(--color-dark);
	outline-offset: -1px;
}

.article-overview__empty {
	margin: 0;
	text-align: center;
	color: var(--color-muted);
}

@media (max-width: 767px) {
	.article-overview__filter {
		margin-bottom: 3rem;
	}
}

/* Nyhed og case */
.article {
	padding: 4rem 0 var(--block-spacing);
}

/* Blokke under teksten: kun den normale afstand imellem, ikke dobbelt */
.article + .umb-block-list {
	padding-top: 0;
}

.article__container {
	max-width: calc(900px + 2 * var(--container-padding));
}

.article__meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
	color: var(--color-muted);
	font-size: 0.875rem;
}

.article__text a {
	color: var(--color-primary);
}

/* Billeder fra editoren fylder tekstens bredde, men er højst 600px høje. Høje billeder skrumper med bevarede
   proportioner og centreres. width: auto overskriver den faste bredde, editoren sætter på billedet. */
.article__text img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 600px;
	margin: 2rem auto;
}

.article__text figure {
	margin: 2rem 0;
}

.article__text figure img {
	margin: 0 auto;
}

.article__text img {
	border-radius: 8px;
}

/* Oversigtssiden: 6 kolonner, så de to første kort fylder halvdelen hver og resten en tredjedel */
.article-cards--featured {
	grid-template-columns: repeat(6, 1fr);
}

.article-cards--featured > li {
	grid-column: span 2;
}

.article-cards--featured > li.is-featured {
	grid-column: span 3;
}

@media (max-width: 1023px) {
	.article-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.article-cards--featured > li,
	.article-cards--featured > li.is-featured {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.article-cards {
		grid-template-columns: 1fr;
	}

	.article-card {
		min-height: 220px;
	}

	.article {
		padding-top: 2.5rem;
	}
}

@media (max-width: 767px) {
	h1 {
		font-size: 1.75rem;
	}

	.hero {
		min-height: 80vh;
		padding: 6.5rem 0 3rem;
	}

	.hero--small {
		min-height: 60vh;
	}

	.hero__logo {
		max-height: 80px;
	}

	.hero__text {
		margin-bottom: 1.5rem;
	}

	.hero .buttons {
		flex-direction: column;
		align-items: center;
	}

	.hero .button {
		justify-content: center;
		text-align: center;
	}

	h2 {
		font-size: 1.5rem;
	}

	:root {
		--block-spacing: 4rem;
	}

	.block__header {
		margin-bottom: 2rem;
	}

	.slider {
		--slider-gap: 1rem;
		--slider-per-view: 1.15;
	}

	.card {
		min-height: 240px;
		padding: 2rem;
	}

	.card__body {
		padding-top: 2rem;
	}

	.form-block .umbraco-forms-container {
		flex-basis: 100%;
	}

	.form-block__header {
		margin-bottom: 2rem;
	}

	.stats__list {
		flex-wrap: nowrap;
		gap: 1rem;
		margin-top: 3rem;
	}

	.stats__item {
		flex: 1 1 0;
		min-width: 0;
	}

	.gallery {
		--gallery-gap: 12px;
		--gallery-width: calc(100vw - 4rem);
	}

	.gallery__viewport {
		height: 240px;
	}

	.lightbox {
		padding: 4rem 1rem;
	}

	.gallery__arrow--prev {
		left: 1.5rem;
	}

	.gallery__arrow--next {
		right: 1.5rem;
	}

	.text-image {
		padding: 3rem 0 0;
	}

	.text-image__media {
		height: 260px;
		margin-top: 2rem;
	}

	.text-image__logos {
		gap: 1.5rem 2.5rem;
	}

	.text-image__logos img {
		max-width: 80px;
		max-height: 56px;
	}
}
