/* HF Udførte opgaver 1.2.1 – kun de låste farver (reference_hf_brand_tokens: Primær, Accent, Ink, Linje, Flade, hvid).
   Kontrast målt 14-10-2026: Primær på hvid 5,76:1 · på Flade 5,35:1 · hvid på Primær 5,76:1 · hvid på Ink 15,00:1 ·
   lime på Ink 7,51:1 · Linje på Ink 11,98:1 · Ink på Flade 13,94:1. Lime bruges kun som prik og på Ink. */
.hfp {
	--hfp-ink: #1b2834;
	--hfp-blaa: #4d6a78;
	--hfp-lime: #a8c256;
	--hfp-linje: #dfe7eb;
	--hfp-flade: #f4f7f9;
	--hfp-skrift: var(--wd-text-font, "Lato", Arial, Helvetica, sans-serif);
	/* Fokusrammen: Woodmart tegner :focus-visible med !important ud fra --wd-otl-* (prikket sort som standard,
	   næsten usynlig på Ink). Her: fast Primær-ramme uden for elementet – 5,76:1 mod hvid. */
	--wd-otl-width: 2px;
	--wd-otl-style: solid;
	--wd-otl-color: #4d6a78;
	--wd-otl-offset: 3px;
	margin: 8px 0 64px;
	color: var(--hfp-ink);
	font-family: var(--hfp-skrift);
	-webkit-font-smoothing: antialiased;
}
.hfp *,
.hfp *::before,
.hfp *::after {
	box-sizing: border-box;
}
.hfp p {
	margin: 0;
}
.hfp img {
	display: block;
	max-width: 100%;
	height: auto;
}
.hfp a {
	text-decoration: none;
}
.hfp a:focus-visible,
.hfp button:focus-visible {
	outline: 2px solid var(--hfp-blaa);
	outline-offset: 3px;
}
.hfp .hfp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.hfp .hfp-h2 {
	margin: 0;
	padding: 0;
	color: var(--hfp-ink);
	font-family: var(--hfp-skrift);
	font-size: 28px;
	font-weight: 700;
	line-height: 32px;
	letter-spacing: .007em;
	text-transform: none;
}
.hfp .hfp-h2 span {
	color: var(--hfp-blaa);
}

/* Knapper (links) */
.hfp .hfp-knapper {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.hfp a.hfp-knap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid var(--hfp-blaa);
	border-radius: 980px;
	background: var(--hfp-blaa);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	transition: background-color .2s ease, border-color .2s ease;
}
.hfp a.hfp-knap:hover {
	border-color: var(--hfp-ink);
	background: var(--hfp-ink);
	color: #fff;
}
.hfp a.hfp-knap-kant {
	border-color: var(--hfp-ink);
	background: #fff;
	color: var(--hfp-ink);
}
.hfp a.hfp-knap-kant:hover {
	border-color: var(--hfp-ink);
	background: var(--hfp-flade);
	color: var(--hfp-ink);
}
.hfp a.hfp-pil {
	color: var(--hfp-blaa);
	font-size: 17px;
	font-weight: 700;
	line-height: 24px;
}
.hfp a.hfp-pil:hover {
	color: var(--hfp-ink);
	text-decoration: underline;
}

/* Lille signal: prik + tekst (lime kun som prik på lyse flader) */
.hfp .hfp-signal,
.hfp .hfp-overtitel {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.hfp .hfp-signal::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hfp-lime);
}
.hfp .hfp-overtitel {
	color: var(--hfp-blaa);
}

/* Intro */
.hfp-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 56px;
}
.hfp-intro-tekst {
	flex: 1 1 520px;
	max-width: 760px;
}
.hfp .hfp-lead {
	font-size: 24px;
	font-weight: 700;
	line-height: 31px;
}
.hfp-intro-tekst p + p {
	margin-top: 12px;
	font-size: 17px;
	line-height: 25px;
}
.hfp-intro .hfp-knapper {
	padding-bottom: 4px;
}

/* Galleri */
.hfp-galleri-sektion {
	margin-top: 56px;
	scroll-margin-top: 120px;
}
.hfp-galleri-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}
.hfp .hfp-filtre {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.hfp .hfp-filtre[hidden] {
	display: none;
}
.hfp .hfp-filter {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--hfp-linje);
	border-radius: 980px;
	background: var(--hfp-flade);
	box-shadow: none;
	color: var(--hfp-ink);
	font-family: var(--hfp-skrift);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hfp .hfp-filter:hover {
	border-color: var(--hfp-blaa);
	background: var(--hfp-flade);
	color: var(--hfp-ink);
}
.hfp .hfp-filter[aria-pressed="true"],
.hfp .hfp-filter[aria-pressed="true"]:hover {
	border-color: var(--hfp-blaa);
	background: var(--hfp-blaa);
	color: #fff;
}
.hfp .hfp-antal {
	font-weight: 400;
}
/* Opgaverne: ét kort pr. opgave i et fast gitter (forsidebillede 4:3) */
.hfp .hfp-galleri {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.hfp .hfp-kort {
	display: block;
	margin: 0;
	padding: 0;
}
.hfp .hfp-kort::before,
.hfp .hfp-kort::marker {
	content: none;
	display: none;
}
.hfp .hfp-kort[hidden] {
	display: none;
}
.hfp .hfp-kort-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	box-shadow: 2px 4px 12px rgba(0, 0, 0, .08);
	color: var(--hfp-ink);
	transition: transform .3s cubic-bezier(0, 0, .5, 1), box-shadow .3s cubic-bezier(0, 0, .5, 1);
}
.hfp a.hfp-kort-link:hover {
	transform: scale(1.01);
	box-shadow: 2px 4px 16px rgba(0, 0, 0, .16);
	color: var(--hfp-ink);
}
.hfp .hfp-kort-billede {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--hfp-flade);
}
.hfp .hfp-kort-billede img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Antal billeder i opgaven: lille mærke på forsidebilledet (hvid på Ink 15:1) */
.hfp .hfp-kort-antal {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 980px;
	background: rgba(27, 40, 52, .86);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
}
.hfp .hfp-kort-tekst {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px 20px;
}
.hfp .hfp-type {
	color: var(--hfp-blaa);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.hfp .hfp-titel {
	font-size: 19px;
	font-weight: 700;
	line-height: 24px;
	transition: color .2s ease;
}
.hfp a.hfp-kort-link:hover .hfp-titel {
	color: var(--hfp-blaa);
}
.hfp .hfp-mere {
	color: var(--hfp-blaa);
	font-size: 14px;
	line-height: 18px;
}
@media (max-width: 1023px) {
	.hfp .hfp-galleri {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Opgavens billeder: kilden til galleriet. Uden JS vises de, når adressen er #projekt-<id> (:target). */
.hfp .hfp-projekt {
	display: none;
	margin-top: 40px;
	scroll-margin-top: 120px;
}
.hfp .hfp-projekt:target {
	display: block;
}
.hfp.hfp-js .hfp-projekt:target {
	display: none;
}
.hfp .hfp-projekt-titel {
	margin: 4px 0 16px;
	color: var(--hfp-ink);
	font-family: var(--hfp-skrift);
	font-size: 24px;
	font-weight: 700;
	line-height: 28px;
}
.hfp .hfp-projekt-tekst {
	max-width: 760px;
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 24px;
}
.hfp .hfp-projekt-fotos {
	display: grid;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.hfp .hfp-projekt-fotos li {
	margin: 0;
	padding: 0;
}
.hfp .hfp-projekt-fotos li::before {
	content: none;
}
.hfp .hfp-projekt-fotos img {
	width: 100%;
	max-width: 960px;
	border-radius: 14px;
}

/* Besked til redaktører (kun logget ind): fotos, der mangler i mediebiblioteket */
.hfp-mangler {
	margin: 0 0 24px;
	padding: 12px 16px;
	border-left: 4px solid #4d6a78;
	border-radius: 8px;
	background: #f4f7f9;
	color: #1b2834;
	font-size: 15px;
	line-height: 22px;
}

/* Udsnit på andre sider */
.hfp-udsnit {
	margin: 0 0 40px;
}
.hfp .hfp-alle {
	margin-top: 20px;
}

/* Gratis tegning og tilbud */
.hfp .hfp-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 72px;
	margin-top: 56px;
	padding: 64px 56px;
	border-radius: 28px;
	background: var(--hfp-ink);
	color: #fff;
}
.hfp .hfp-cta {
	--wd-otl-color: #fff;
}
.hfp .hfp-cta a:focus-visible {
	outline-color: #fff;
}
.hfp-cta-tekst {
	flex: 1 1 420px;
}
.hfp .hfp-cta .hfp-signal {
	color: var(--hfp-lime);
}
.hfp .hfp-cta .hfp-h2 {
	color: #fff;
	font-size: 40px;
	line-height: 44px;
	letter-spacing: -.005em;
}
.hfp .hfp-cta-tekst > p:not(.hfp-signal) {
	margin-top: 14px;
	color: var(--hfp-linje);
	font-size: 17px;
	line-height: 25px;
}
.hfp .hfp-cta .hfp-knapper {
	margin-top: 24px;
}
.hfp .hfp-cta a.hfp-knap-lys {
	border-color: #fff;
	background: #fff;
	color: var(--hfp-ink);
}
.hfp .hfp-cta a.hfp-knap-lys:hover {
	border-color: var(--hfp-linje);
	background: var(--hfp-linje);
	color: var(--hfp-ink);
}
.hfp .hfp-cta a.hfp-knap-lys-kant {
	border-color: #fff;
	background: transparent;
	color: #fff;
}
.hfp .hfp-cta a.hfp-knap-lys-kant:hover {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}
.hfp .hfp-trin {
	flex: 1 1 340px;
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hfp .hfp-trin li {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 17px;
	line-height: 24px;
}
.hfp .hfp-trin li::before,
.hfp .hfp-trin li::marker {
	content: none;
	display: none;
}
.hfp .hfp-trin strong {
	color: #fff;
	font-weight: 700;
}
.hfp .hfp-trin-nr {
	flex: 0 0 auto;
	color: var(--hfp-lime);
	font-weight: 700;
}

/* Send et billede + følg med */
.hfp .hfp-felter {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 56px;
}
.hfp .hfp-felt {
	display: flex;
	flex-direction: column;
	padding: 36px;
	border-radius: 18px;
	background: var(--hfp-flade);
}
.hfp .hfp-felt .hfp-h2 + p {
	margin-top: 12px;
	font-size: 17px;
	line-height: 25px;
}
.hfp .hfp-felt-bund {
	margin-top: auto;
	padding-top: 22px;
}

@media (max-width: 767px) {
	.hfp {
		margin-bottom: 48px;
	}
	.hfp .hfp-lead {
		font-size: 20px;
		line-height: 26px;
	}
	.hfp-intro .hfp-knapper,
	.hfp-intro .hfp-knapper a.hfp-knap {
		width: 100%;
	}
	.hfp-galleri-sektion {
		margin-top: 48px;
	}
	.hfp .hfp-h2 {
		font-size: 24px;
		line-height: 28px;
	}
	.hfp .hfp-filtre {
		gap: 8px;
	}
	.hfp .hfp-filter {
		padding: 0 14px;
	}
	.hfp .hfp-cta {
		gap: 32px;
		margin-top: 40px;
		padding: 40px 24px;
		border-radius: 20px;
	}
	.hfp .hfp-cta .hfp-h2 {
		font-size: 30px;
		line-height: 34px;
	}
	.hfp .hfp-felter {
		margin-top: 40px;
	}
	.hfp .hfp-felt {
		padding: 28px 24px;
	}
}

/* Mobil: to kolonner med kompakte kort */
@media (max-width: 659px) {
	.hfp .hfp-galleri {
		gap: 12px;
		margin-top: 20px;
	}
	.hfp .hfp-kort-link {
		border-radius: 14px;
	}
	.hfp .hfp-kort-antal {
		right: 8px;
		bottom: 8px;
		padding: 3px 8px;
		font-size: 12px;
	}
	.hfp .hfp-kort-tekst {
		gap: 2px;
		padding: 10px 12px 12px;
	}
	.hfp .hfp-type {
		font-size: 11px;
		line-height: 14px;
		letter-spacing: .03em;
	}
	.hfp .hfp-titel {
		font-size: 15px;
		line-height: 19px;
	}
	.hfp .hfp-mere {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hfp .hfp-kort-link,
	.hfp a.hfp-knap,
	.hfp .hfp-filter,
	.hfp .hfp-titel {
		transition: none;
	}
	.hfp a.hfp-kort-link:hover {
		transform: none;
	}
}

/* Galleri-dialogen (bygges af hf-projekter.js ved første klik og ligger direkte i <body>) */
.hfp-dialog {
	--wd-otl-width: 2px;
	--wd-otl-style: solid;
	--wd-otl-color: #fff;
	--wd-otl-offset: 3px;
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: #1b2834;
	color: #fff;
	font-family: var(--wd-text-font, "Lato", Arial, Helvetica, sans-serif);
	-webkit-font-smoothing: antialiased;
}
.hfp-dialog::backdrop {
	background: rgba(27, 40, 52, .6);
}
.hfp-dialog *,
.hfp-dialog *::before,
.hfp-dialog *::after {
	box-sizing: border-box;
}
.hfp-dialog a:focus-visible,
.hfp-dialog button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
.hfp-dialog-indre {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: 100%;
	height: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px 22px;
}
.hfp-dialog-top {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 14px;
}
.hfp-dialog-overskrift {
	flex: 1 1 auto;
	min-width: 0;
}
.hfp-dialog .hfp-dialog-type {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.hfp-dialog .hfp-dialog-type::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #a8c256;
}
.hfp-dialog .hfp-dialog-titel {
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: #fff;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	line-height: 30px;
	letter-spacing: normal;
	text-overflow: ellipsis;
	text-transform: none;
	white-space: nowrap;
}
.hfp-dialog .hfp-dialog-taeller {
	flex: 0 0 auto;
	margin: 0;
	color: #dfe7eb;
	font-size: 15px;
	line-height: 20px;
}
.hfp-dialog button.hfp-dialog-knap {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	min-width: 0;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	box-shadow: none;
	color: #fff;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}
.hfp-dialog button.hfp-dialog-knap:hover {
	background: rgba(255, 255, 255, .26);
	color: #fff;
}
.hfp-dialog button.hfp-dialog-knap[hidden] {
	display: none;
}
.hfp-dialog-scene {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	touch-action: pan-y;
}
.hfp-dialog-figur {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 64px;
}
.hfp-dialog-figur img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	border-radius: 10px;
	object-fit: contain;
	background: rgba(255, 255, 255, .04);
}
.hfp-dialog .hfp-forrige,
.hfp-dialog .hfp-naeste {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.hfp-dialog .hfp-forrige {
	left: 0;
}
.hfp-dialog .hfp-naeste {
	right: 0;
}
.hfp-dialog-bund {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding-top: 16px;
}
.hfp-dialog .hfp-dialog-tekst {
	flex: 1 1 100%;
	max-width: 820px;
	margin: 0;
	color: #dfe7eb;
	font-size: 15px;
	line-height: 22px;
}
.hfp-dialog .hfp-dialog-tekst[hidden] {
	display: none;
}
.hfp-dialog-miniaturer {
	display: flex;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 2px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}
.hfp-dialog-miniaturer::-webkit-scrollbar {
	display: none;
}
.hfp-dialog-miniaturer li {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}
.hfp-dialog-miniaturer li::before {
	content: none;
}
.hfp-dialog button.hfp-miniature {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 72px;
	min-width: 0;
	height: 54px;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	box-shadow: none;
	cursor: pointer;
	opacity: .6;
	transition: opacity .2s ease, border-color .2s ease;
}
.hfp-dialog button.hfp-miniature:hover,
.hfp-dialog button.hfp-miniature[aria-current="true"] {
	opacity: 1;
}
.hfp-dialog button.hfp-miniature[aria-current="true"] {
	border-color: #fff;
}
.hfp-dialog button.hfp-miniature img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hfp-dialog a.hfp-dialog-produkt {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 980px;
	background: #fff;
	color: #1b2834;
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none;
	transition: background-color .2s ease;
}
.hfp-dialog a.hfp-dialog-produkt:hover {
	background: #dfe7eb;
	color: #1b2834;
}
@media (max-width: 767px) {
	.hfp-dialog-indre {
		padding: 12px 12px 16px;
	}
	.hfp-dialog-top {
		gap: 10px;
		padding-bottom: 10px;
	}
	.hfp-dialog .hfp-dialog-titel {
		display: -webkit-box;
		font-size: 18px;
		line-height: 24px;
		white-space: normal;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.hfp-dialog .hfp-dialog-taeller {
		font-size: 14px;
	}
	.hfp-dialog-figur {
		padding: 0;
	}
	.hfp-dialog .hfp-forrige,
	.hfp-dialog .hfp-naeste {
		top: auto;
		bottom: 8px;
		transform: none;
		background: rgba(27, 40, 52, .72);
	}
	.hfp-dialog .hfp-forrige {
		left: 8px;
	}
	.hfp-dialog .hfp-naeste {
		right: 8px;
	}
	.hfp-dialog-bund {
		gap: 10px 24px;
		padding-top: 12px;
	}
	.hfp-dialog .hfp-dialog-tekst {
		display: -webkit-box;
		overflow: hidden;
		font-size: 14px;
		line-height: 20px;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}
	.hfp-dialog-miniaturer {
		width: 100%;
	}
	.hfp-dialog a.hfp-dialog-produkt {
		justify-content: center;
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.hfp-dialog button.hfp-dialog-knap,
	.hfp-dialog button.hfp-miniature,
	.hfp-dialog a.hfp-dialog-produkt {
		transition: none;
	}
}
