/* ==========================================================================
   Egnens Malerfirma – tema
   Udviklet af Skævt
   ========================================================================== */

/* Skrifter (selvhostet, OFL) ---------------------------------------------- */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }

/* Tokens ------------------------------------------------------------------ */
:root {
	--kalk: #F5F2EB;
	--sten: #ECE7DC;
	--pladsholder: #DCD5C6;
	--grafit: #1C1C1A;
	--graa: #5F5C54;
	--graa-mork: #3F3D38;
	--linje: #D6D0C3;
	--gul: #FBDC00;
	--gul-hover: #E8CB00;
	--lys-graa: #B9B4A8;
	--lys-tekst: #D9D4C8;
	--kant: #8C877B;
	--grafit-linje: #3A3935;
	--hvid: #FFFFFF;
	--fejl: #B42318;
	--ok: #1E6B3A;

	--sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
	--serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

	--gutter: clamp(20px, 8.34vw, 120px);
	--indhold: 1200px;
	--sp: clamp(64px, 9.7vw, 140px);
	--sp-s: clamp(48px, 8.3vw, 120px);
	--header-h: 96px;
	--radius: 2px;
	--ease-ud: cubic-bezier(0.2, 0.65, 0.3, 1);
}

/* Grundlag ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--grafit);
	background: var(--kalk);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--grafit); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--graa); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--grafit); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	padding: 12px 18px; background: var(--grafit); color: var(--kalk); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--kalk); }

.container { width: 100%; max-width: calc(var(--indhold) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--smal { max-width: calc(760px + 2 * var(--gutter)); }

.ikon { flex-shrink: 0; }

/* Typografi --------------------------------------------------------------- */
.overlinje { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graa); }
.h2 { font-family: var(--serif); font-size: clamp(38px, 4.45vw, 64px); line-height: 1; text-wrap: balance; }
.h3 { font-family: var(--serif); font-size: clamp(30px, 3.05vw, 44px); line-height: 1.08; text-wrap: balance; }
em { font-style: italic; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.tekstlink { font-size: 16px; font-weight: 600; transition: text-underline-offset 0.25s var(--ease-ud); }
.tekstlink:hover, .kort__kort:hover .tekstlink { text-underline-offset: 6px; }

.prose > * + * { margin-top: 1em; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose h2 { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; margin-top: 1.4em; text-wrap: balance; }
.prose h3 { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: 1.15; margin-top: 1.2em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 + p, .prose h3 + p { margin-top: 0.6em; }
.prose--graa p, .prose--graa li { color: var(--graa); }
.prose strong { color: var(--grafit); font-weight: 600; }

/* Knapper ----------------------------------------------------------------- */
.knap {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 0 28px;
	font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
	border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.knap--gul { background: var(--gul); color: var(--grafit); }
.knap--gul:hover { background: var(--gul-hover); color: var(--grafit); }
.knap--streg { border-color: var(--grafit); color: var(--grafit); background: transparent; }
.knap--streg:hover { background: var(--grafit); color: var(--kalk); }
.knap--lille { min-height: 48px; padding: 0 24px; font-size: 15px; }
.knap--fuld { width: 100%; }
.knapper { display: flex; flex-wrap: wrap; gap: 16px; }
.ikonknap {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--grafit); cursor: pointer;
}

/* Topbar ------------------------------------------------------------------ */
.topbar { background: var(--grafit); color: var(--lys-tekst); font-size: 13px; }
.topbar__inner {
	max-width: calc(var(--indhold) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
	min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar__kontakt { display: flex; gap: 28px; }
.topbar a { color: var(--lys-tekst); text-decoration: none; }
.topbar a:hover { color: var(--kalk); text-decoration: underline; }
.topbar .topbar__tel { color: var(--kalk); font-weight: 600; }
.topbar :focus-visible { outline-color: var(--kalk); }

/* Faste faner ------------------------------------------------------------- */
.faner { position: fixed; right: 0; top: 200px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.fane {
	width: 80px; height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	background: var(--gul); color: var(--grafit); text-decoration: none; font-size: 12px; font-weight: 600;
	border-radius: var(--radius) 0 0 var(--radius);
	transition: background-color 0.15s ease, width 0.15s ease;
}
.fane:hover { background: var(--gul-hover); color: var(--grafit); width: 88px; }

/* Header ------------------------------------------------------------------ */
.site-header { position: relative; z-index: 40; background: var(--kalk); border-bottom: 1px solid var(--linje); }
.site-header__inner {
	max-width: calc(var(--indhold) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
	height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.site-header__logo { display: flex; flex-shrink: 0; }
.site-header__logo img { width: 168px; height: auto; }
.logo--lys { display: none; }
.site-header__handling { display: flex; align-items: center; gap: 4px; }
.site-header__tel, .menuknap { display: none; }
.menuknap .ikon--close { display: none; }
.menuknap[aria-expanded="true"] .ikon--menu { display: none; }
.menuknap[aria-expanded="true"] .ikon--close { display: block; }

.hovednav .menu { display: flex; align-items: center; gap: 40px; }
.hovednav .menu > li { position: relative; }
.hovednav .menu > li > a {
	display: flex; align-items: center; gap: 6px; padding: 12px 0;
	font-size: 16px; font-weight: 500; text-decoration: none; color: var(--grafit);
}
.hovednav .menu > .current-menu-item > a,
.hovednav .menu > .current-menu-ancestor > a,
.hovednav .menu > .current-page-ancestor > a {
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px;
}
.hovednav .ikon--chevron { transition: transform 0.15s ease; }
.hovednav .menu > li:hover .ikon--chevron,
.hovednav .menu > li:focus-within .ikon--chevron { transform: rotate(180deg); }
.hovednav .sub-menu {
	position: absolute; left: -20px; top: 100%; min-width: 240px; padding: 10px 0;
	background: var(--kalk); border: 1px solid var(--linje); box-shadow: 0 12px 24px rgba(28, 28, 26, 0.08);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.hovednav .menu > li:hover > .sub-menu,
.hovednav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hovednav .sub-menu a { display: block; padding: 10px 20px; font-size: 15px; text-decoration: none; color: var(--grafit); }
.hovednav .sub-menu a:hover, .hovednav .sub-menu .current-menu-item > a { background: var(--sten); }
.hovednav__mobil { display: none; }

/* Header oven på en hero (kun bred desktop – under 1200 px stables heroen) */
@media (min-width: 1200px) {
	.har-hero .site-header { margin-bottom: calc(-1 * var(--header-h)); background: transparent; border-bottom-color: rgba(28, 28, 26, 0.12); }
	.hero-lys .site-header { border-bottom-color: rgba(245, 242, 235, 0.2); }
	.hero-lys .logo--mork { display: none; }
	.hero-lys .logo--lys { display: block; }
	.hero-lys .hovednav .menu > li > a { color: var(--kalk); }
	.hero-lys .hovednav .sub-menu a { color: var(--grafit); }
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: 700px; display: flex; flex-direction: column; overflow: hidden; background: var(--kalk); }
.hero__media { position: absolute; inset: 0; background: var(--kalk); isolation: isolate; }
.hero__billede, .hero__videofil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--tone .hero__billede, .hero--tone .hero__videofil { mix-blend-mode: multiply; }
.hero--lys .hero__media { background: var(--grafit); }
.hero--lys .hero__media::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(28, 28, 26, 0.82) 0%, rgba(28, 28, 26, 0.38) 55%, rgba(28, 28, 26, 0.2) 100%);
}
.hero__inner {
	position: relative; flex-grow: 1; display: flex; align-items: center;
	width: 100%; max-width: calc(var(--indhold) + 2 * var(--gutter)); margin-inline: auto;
	padding: var(--header-h) var(--gutter) 100px;
}
.hero__indhold { max-width: 580px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* 1200–1439 px: smallere tekstspalte, og billedet glider mod højre i takt med,
   at skærmen bliver smallere, så motivet ikke havner bag teksten. */
@media (min-width: 1200px) and (max-width: 1439px) {
	.hero__indhold { max-width: clamp(480px, 40vw, 580px); }
	.hero__billede, .hero__videofil { width: calc(100% + clamp(0px, (1440px - 100vw) * 0.5, 200px)); max-width: none; }
}
.hero .overlinje { color: var(--graa-mork); }
.hero__titel { font-family: var(--serif); font-size: clamp(46px, 5vw, 72px); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.hero__tekst { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; }
.hero__bund {
	position: absolute; left: 0; right: 0; bottom: 0; height: 100px;
	max-width: calc(var(--indhold) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.tillid { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; }
.tillid li { display: flex; align-items: center; gap: 10px; }
.hero__pause {
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero__pause .ikon--play { display: none; }
.hero__pause[aria-pressed="true"] .ikon--pause { display: none; }
.hero__pause[aria-pressed="true"] .ikon--play { display: block; }
.hero--lys { color: var(--kalk); }
.hero--lys .overlinje { color: var(--lys-tekst); }
.hero--lys .knap--streg { border-color: var(--kalk); color: var(--kalk); }
.hero--lys .knap--streg:hover { background: var(--kalk); color: var(--grafit); }
.hero--lys :focus-visible { outline-color: var(--kalk); }

/* Sektioner --------------------------------------------------------------- */
.sektion { padding-block: var(--sp); }
.sektion--kalk + .sektion--kalk { padding-top: 0; }
.sidehoved + .sektion--kalk { padding-top: 0; }
.bg--sten { background: var(--sten); }
.bg--sten + .sektion--kalk { padding-top: var(--sp); }
.sektionstop { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--grafit); }

/* Sidehoved */
.sidehoved { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4.4vw, 64px); }
.brodkrumme { margin-bottom: clamp(20px, 2.2vw, 32px); }
.brodkrumme ol { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--graa); }
.brodkrumme li + li::before { content: '/'; margin-right: 10px; color: var(--graa); }
.brodkrumme a { color: var(--graa); }
.brodkrumme [aria-current] { color: var(--grafit); }
.sidehoved__titel { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.01em; max-width: 1000px; text-wrap: balance; }

/* To kolonner */
.tokol__gitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6.7vw, 96px); align-items: start; }
.tokol__venstre, .tokol__hojre { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.tokol__venstre { gap: 32px; }
.tokol__grafik { mix-blend-mode: multiply; max-width: 100%; height: auto; }
.tokol__hojre .knap { margin-top: 8px; }
.bg--sten .prose--graa p { color: var(--graa-mork); }

/* Ydelseskort */
.kort__gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.kort__kort { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.kort__media { width: 100%; overflow: hidden; margin-bottom: 10px; background: var(--pladsholder); }
.kort__billede { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.8s var(--ease-ud); }
.kort__kort:hover .kort__billede { transform: scale(1.04); }
.kort__kort .tekstlink::after { content: ''; position: absolute; inset: 0; } /* Hele kortet er klikbart */
.kort__titel { font-family: var(--serif); font-size: clamp(30px, 2.5vw, 36px); line-height: 1.1; }
.kort__tekst { color: var(--graa); }

/* Mørkt bånd */
.baand { background: var(--grafit); color: var(--kalk); padding-block: clamp(56px, 6.7vw, 96px); }
.baand__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px 80px; }
.baand__tekst { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.baand__tekst p { font-size: 18px; color: var(--lys-graa); }
.baand .knap { flex-shrink: 0; }
.baand :focus-visible { outline-color: var(--kalk); }

/* Anmeldelser */
.anmeldelser .h2 { margin-bottom: clamp(32px, 3.9vw, 56px); }
.anmeldelser__gitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5.6vw, 80px); }
.anmeldelse { margin: 0; padding-top: 32px; border-top: 1px solid var(--grafit); display: flex; flex-direction: column; gap: 16px; }
.anmeldelse blockquote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.anmeldelse__citat { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; }
.anmeldelse__tekst { font-size: 18px; color: var(--graa); }
.anmeldelse figcaption { font-size: 16px; font-weight: 600; }

/* Medlemskab */
.medlemskab__gitter { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6.7vw, 96px); align-items: start; }
.sektion--kalk + .medlemskab .medlemskab__gitter { padding-top: clamp(48px, 6.7vw, 96px); border-top: 1px solid var(--linje); }
.medlemskab__logo img { width: 138px; height: auto; }
.medlemskab__tekst { display: flex; flex-direction: column; gap: 20px; }

/* Formularsektioner */
.formsektion { position: relative; overflow: hidden; }
.formsektion__gitter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(40px, 6.7vw, 96px); align-items: start; }
.formsektion__tekst { display: flex; flex-direction: column; gap: 20px; }
.formsektion__undertekst { font-size: clamp(19px, 1.55vw, 22px); font-weight: 600; line-height: 1.4; }
.formsektion__brod { font-size: 18px; max-width: 480px; }
.formsektion--billede { background: var(--grafit); color: var(--kalk); }
.formsektion__baggrund { position: absolute; inset: 0; overflow: hidden; }
.formsektion__baggrund img { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(6px); }
.formsektion__baggrund::after { content: ''; position: absolute; inset: 0; background: rgba(28, 28, 26, 0.72); }
.formsektion--billede .formsektion__brod { color: var(--lys-tekst); }
.formsektion--billede .formsektion__tekst :focus-visible { outline-color: var(--kalk); }
.formkort { background: var(--hvid); color: var(--grafit); padding: clamp(24px, 2.8vw, 40px); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.formkort__titel { font-family: var(--serif); font-size: clamp(28px, 2.4vw, 34px); line-height: 1.08; }
.formkort__tekst { font-size: 16px; line-height: 1.55; color: var(--graa); margin-bottom: 8px; }

/* Formular */
.eg-form { display: flex; flex-direction: column; gap: 16px; }
.eg-form__felt { display: flex; flex-direction: column; gap: 8px; }
.eg-form label { font-size: 14px; font-weight: 600; }
.eg-form input, .eg-form textarea {
	width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--grafit);
	background: var(--hvid); border: 1px solid var(--kant); border-radius: var(--radius);
}
.eg-form textarea { min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.eg-form input:focus-visible, .eg-form textarea:focus-visible { outline: 2px solid var(--grafit); outline-offset: 1px; border-color: var(--grafit); }
.eg-form [aria-invalid="true"] { border-color: var(--fejl); }
.eg-form__fejl { font-size: 13px; color: var(--fejl); }
.eg-form__fejl:empty { display: none; }
.eg-form button[type="submit"] { margin-top: 8px; }
.eg-form button[disabled] { opacity: 0.7; cursor: progress; }
.eg-form__status { font-size: 15px; font-weight: 600; }
.eg-form__status:empty { display: none; }
.eg-form__status.is-ok { color: var(--ok); }
.eg-form__status.is-fejl { color: var(--fejl); }
.eg-form__note { font-size: 13px; line-height: 1.6; color: var(--graa); }
.eg-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Artikel (ydelsesside) */
.artikel__gitter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6.7vw, 96px); align-items: start; }
.artikel__tekst.prose p, .artikel__tekst.prose li { font-size: 18px; line-height: 1.65; }
.artikel__tekst.prose h2 { margin-top: 1.5em; }
.artikel__tekst .knap { margin-top: 2em; }
.artikel__side { display: flex; flex-direction: column; gap: 40px; }
.artikel__billede { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pladsholder); }
.undermenu { display: flex; flex-direction: column; gap: 12px; }
.undermenu ul { border-top: 1px solid var(--grafit); }
.undermenu li { border-bottom: 1px solid var(--linje); }
.undermenu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 17px; font-weight: 500; text-decoration: none; }
.undermenu a[aria-current] { font-weight: 600; }

/* Liste over undersider */
.ydelsesliste__gitter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(40px, 6.7vw, 96px); align-items: center; }
.ydelsesliste__liste { border-top: 1px solid var(--grafit); }
.ydelsesliste__liste li { border-bottom: 1px solid var(--linje); }
.ydelsesliste__liste a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(20px, 1.95vw, 28px) 0; text-decoration: none; }
.ydelsesliste__liste span { font-family: var(--serif); font-size: clamp(32px, 3.05vw, 44px); line-height: 1.1; }
.ydelsesliste__liste a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ydelsesliste__billede { width: 100%; height: auto; mix-blend-mode: multiply; }

/* Logogitter */
.logoer__gitter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.logoer__gitter img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--hvid); }

/* Sociale links */
.sociale__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.sociale__links { display: flex; flex-wrap: wrap; gap: 24px; }
.sociale__links a {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	width: 320px; min-height: 120px; padding: 0 32px;
	border: 1px solid var(--grafit); border-radius: var(--radius); text-decoration: none;
	transition: background-color 0.15s ease;
}
.sociale__links a:hover { background: var(--sten); color: var(--grafit); }
.sociale__links span { font-family: var(--serif); font-size: clamp(32px, 2.8vw, 40px); }
.sociale__grafik { mix-blend-mode: multiply; max-width: 100%; height: auto; }

/* Team */
.team__gitter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; gap: 4px; }
.person__foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 12px; background: var(--pladsholder); }
.person__navn { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin-bottom: 4px; }
.person__rolle { font-size: 14px; font-weight: 600; }
.person__omraade { font-size: 14px; color: var(--graa); }
.person__kontakt { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; font-size: 14px; overflow-wrap: anywhere; }
.person__tel { font-size: 15px; font-weight: 600; }

/* Infokolonner */
.info__gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.sektion--kalk + .info .info__gitter { padding-top: clamp(40px, 3.9vw, 56px); border-top: 1px solid var(--linje); }
.info__kolonne { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.info__kolonne .prose p { font-size: 18px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--grafit); color: var(--kalk); }
.site-footer__inner {
	max-width: calc(var(--indhold) + 2 * var(--gutter)); margin-inline: auto;
	padding: clamp(56px, 5.6vw, 80px) var(--gutter) 40px;
	display: flex; flex-direction: column; gap: 56px;
}
.site-footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--grafit-linje); }
.site-footer__overskrift { font-family: var(--serif); font-size: clamp(32px, 3.05vw, 44px); line-height: 1.05; }
.site-footer__tekst { margin-top: 8px; font-size: 17px; color: var(--lys-graa); }
.site-footer__logo { width: 168px; height: auto; flex-shrink: 0; }
.site-footer__kolonner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.site-footer__kolonne { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer__kolonne p { font-size: 15px; line-height: 1.7; color: var(--lys-graa); }
.site-footer .site-footer__titel { font-size: 14px; font-weight: 600; color: var(--kalk); }
.site-footer .site-footer__fremhaevet { font-weight: 600; color: var(--kalk); }
.site-footer a { color: var(--kalk); }
.site-footer a:hover { color: var(--gul); }
.site-footer__link { font-size: 15px; }
.site-footer__medlem { width: 100px; height: auto; }
.site-footer__bund { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--grafit-linje); font-size: 13px; color: var(--lys-graa); }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__menu a { color: var(--lys-graa); }
.site-footer :focus-visible { outline-color: var(--kalk); }

/* Fast bundbjælke (mobil) */
.bundbar { display: none; }

/* ==========================================================================
   Animationer
   Diskrete: små bevægelser, korte forløb, kører kun én gang pr. element.
   Slås kun til, når JavaScript kører (klassen eg-anim sættes i <head>), og
   aldrig for besøgende, der har bedt om reduceret bevægelse.
   ========================================================================== */

@keyframes eg-op { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes eg-hero-billede { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes eg-rul { from { clip-path: inset(0 0 100% 0); transform: scale(1.05); } to { clip-path: inset(0); transform: none; } }
@keyframes eg-strog { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes eg-streg { from { background-size: 0 1px; } to { background-size: 100% 1px; } }
@keyframes eg-fane { from { transform: translateX(100%); } to { transform: none; } }

/* Ved indlæsning: hero, sidehoved og faner */
.eg-anim .hero .overlinje, .eg-anim .hero__titel, .eg-anim .hero__tekst, .eg-anim .hero .knapper, .eg-anim .hero__bund,
.eg-anim .brodkrumme, .eg-anim .sidehoved__titel { animation: eg-op 0.9s var(--ease-ud) backwards; }
.eg-anim .hero__titel, .eg-anim .sidehoved__titel { animation-delay: 0.08s; }
.eg-anim .hero__tekst { animation-delay: 0.2s; }
.eg-anim .hero .knapper { animation-delay: 0.3s; }
.eg-anim .hero__bund { animation-delay: 0.5s; }
.eg-anim .hero__billede, .eg-anim .hero__videofil { animation: eg-hero-billede 1.8s var(--ease-ud) backwards; }
.eg-anim .faner { animation: eg-fane 0.6s var(--ease-ud) 1s backwards; }

/* Grupper: elementerne glider ind efter hinanden (--i sættes af main.js) */
.eg-anim :is(.tokol__venstre, .tokol__hojre, .kort__gitter, .baand__inner, .anmeldelser__gitter, .medlemskab__gitter,
	.formsektion__tekst, .artikel__tekst, .artikel__side, .ydelsesliste__liste, .logoer__gitter, .sociale__links,
	.team__gitter, .info__gitter, .site-footer__kolonner):not(.er-synlig) > * { opacity: 0; }
.eg-anim :is(.tokol__venstre, .tokol__hojre, .kort__gitter, .baand__inner, .anmeldelser__gitter, .medlemskab__gitter,
	.formsektion__tekst, .artikel__tekst, .artikel__side, .ydelsesliste__liste, .logoer__gitter, .sociale__links,
	.team__gitter, .info__gitter, .site-footer__kolonner).er-synlig > * { animation: eg-op 0.8s var(--ease-ud) calc(var(--i, 0) * 90ms) backwards; }

/* Enkeltelementer */
.eg-anim :is(.anmeldelser .h2, .sektionstop, .formkort, .ydelsesliste__billede, .sektion--brod .prose, .site-footer__top, .sociale__grafik):not(.er-synlig) { opacity: 0; }
.eg-anim :is(.anmeldelser .h2, .sektionstop, .formkort, .ydelsesliste__billede, .sektion--brod .prose, .site-footer__top).er-synlig { animation: eg-op 0.8s var(--ease-ud) backwards; }
.eg-anim .formkort.er-synlig { animation-delay: 0.15s; }

/* Billeder "rulles på" oppefra – som maling */
.eg-anim :is(.kort__billede, .person__foto, .artikel__billede) { clip-path: inset(0 0 100% 0); }
.eg-anim .er-synlig :is(.kort__billede, .person__foto),
.eg-anim .er-synlig > .artikel__billede { clip-path: inset(0); animation: eg-rul 1.3s var(--ease-ud) calc(var(--i, 0) * 90ms + 0.1s) backwards; }

/* Penslen males frem fra venstre som et strøg */
.eg-anim .tokol__grafik { clip-path: inset(0 100% 0 0); }
.eg-anim .er-synlig > .tokol__grafik { opacity: 1; clip-path: inset(0); animation: eg-strog 1.2s var(--ease-ud) 0.35s backwards; }
.eg-anim .sociale__grafik.er-synlig { opacity: 1; animation: eg-strog 1.2s var(--ease-ud) 0.2s backwards; }

/* Streger tegnes fra venstre mod højre */
.eg-anim .sektionstop { border-bottom-color: transparent; background: linear-gradient(var(--grafit), var(--grafit)) no-repeat left bottom / 100% 1px; }
.eg-anim .sektionstop.er-synlig { animation: eg-op 0.8s var(--ease-ud) backwards, eg-streg 1.4s var(--ease-ud) 0.1s backwards; }
.eg-anim .anmeldelse { border-top-color: transparent; background: linear-gradient(var(--grafit), var(--grafit)) no-repeat left top / 100% 1px; }
.eg-anim .er-synlig > .anmeldelse { animation: eg-op 0.8s var(--ease-ud) calc(var(--i, 0) * 120ms) backwards, eg-streg 1.4s var(--ease-ud) calc(var(--i, 0) * 120ms) backwards; }
.eg-anim .ydelsesliste__liste { border-top-color: transparent; background: linear-gradient(var(--grafit), var(--grafit)) no-repeat left top / 100% 1px; }
.eg-anim .ydelsesliste__liste:not(.er-synlig) { background-size: 0 1px; }
.eg-anim .ydelsesliste__liste.er-synlig { animation: eg-streg 1.4s var(--ease-ud) backwards; }

/* Små hover-effekter */
.ydelsesliste__liste .ikon, .undermenu .ikon, .sociale__links .ikon { transition: transform 0.3s var(--ease-ud); }
.ydelsesliste__liste a:hover .ikon, .undermenu a:hover .ikon { transform: translateX(6px); }
.sociale__links a:hover .ikon { transform: translate(3px, -3px); }

/* ==========================================================================
   Responsivt
   ========================================================================== */

@media (max-width: 1279px) {
	/* Formular og tekst deler pladsen ligeligt, så tekstspalten ikke klemmes */
	.formsektion__gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px); }
	/* Fanerne bliver til ikoner, så de ikke trænger sig ind over indholdet */
	.fane { width: 56px; height: 56px; }
	.fane:hover { width: 62px; }
	.fane span { display: none; }
}

@media (max-width: 1199px) {
	.team__gitter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.logoer__gitter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hovednav .menu { gap: 28px; }

	/* Hero stables: tekst øverst, billede som bånd, tillidspunkter nederst */
	.hero { min-height: 0; }
	.hero__media { position: relative; order: 2; height: clamp(300px, 40vw, 460px); }
	.hero__inner { order: 1; padding: 56px var(--gutter) 40px; }
	.hero__indhold { max-width: 720px; }
	.hero__bund { position: static; order: 3; width: 100%; height: auto; padding-block: 20px 40px; }
	.hero--lys { color: var(--grafit); }
	.hero--lys .overlinje { color: var(--graa); }
	.hero--lys .knap--streg { border-color: var(--grafit); color: var(--grafit); }
	.hero--lys .knap--streg:hover { background: var(--grafit); color: var(--kalk); }
	.hero--lys :focus-visible { outline-color: var(--grafit); }
	.hero--lys .hero__media::after { display: none; }
}

@media (max-width: 1023px) {
	:root { --header-h: 72px; }
	.faner { display: none; }
	.site-header { position: sticky; top: 0; }
	.site-header__logo img { width: 128px; }
	.site-header__handling .knap { display: none; }
	.site-header__tel, .menuknap { display: inline-flex; }
	.site-header__handling { margin-right: -10px; }

	.hovednav { display: none; }
	.hovednav.is-open {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h);
		overflow-y: auto; padding: 16px var(--gutter) 120px; background: var(--kalk); z-index: 50;
	}
	.hovednav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.hovednav .menu > li { border-bottom: 1px solid var(--linje); }
	.hovednav .menu > li > a { padding: 16px 0; font-family: var(--serif); font-size: 30px; font-weight: 400; }
	.hovednav .ikon--chevron { display: none; }
	.hovednav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 16px 4px; min-width: 0; }
	.hovednav .sub-menu a { padding: 8px 0; font-size: 17px; }
	.hovednav .sub-menu a:hover, .hovednav .sub-menu .current-menu-item > a { background: transparent; text-decoration: underline; }
	.hovednav__mobil { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
	body.menu-aaben { overflow: hidden; }

	.tokol__gitter, .artikel__gitter, .ydelsesliste__gitter, .formsektion__gitter { grid-template-columns: minmax(0, 1fr); }
	.kort__gitter { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.kort__titel { font-size: 26px; }
	.ydelsesliste__billede { max-width: 480px; }
	.artikel__billede { max-width: 520px; }
	.sociale__inner { flex-direction: column; align-items: flex-start; }
	.site-footer__kolonner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	body { font-size: 16px; padding-bottom: 76px; }
	.topbar { display: none; }

	.hero__inner { padding: 36px var(--gutter) 24px; }
	.hero__bund { padding-block: 8px 32px; }
	.tillid { flex-direction: column; gap: 10px; }
	.hero .knapper { width: 100%; }
	.hero .knapper .knap--gul { width: 100%; }
	.hero .knapper .knap--streg { display: none; }

	.sektionstop { margin-bottom: 24px; }
	.kort__gitter, .anmeldelser__gitter, .info__gitter, .site-footer__kolonner { grid-template-columns: minmax(0, 1fr); }
	.kort__gitter { gap: 40px; }
	.kort__titel { font-size: 30px; }
	.medlemskab__gitter { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.logoer__gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.team__gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.person__navn { font-size: 24px; }
	.baand__inner { flex-direction: column; align-items: flex-start; }
	.sociale__links { width: 100%; }
	.sociale__links li { width: 100%; }
	.sociale__links a { width: 100%; min-height: 96px; padding: 0 24px; }
	.site-footer__top { flex-direction: column; align-items: flex-start; }

	.bundbar {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		padding: 12px 20px; background: var(--hvid); border-top: 1px solid var(--linje);
	}
	.bundbar .knap { min-height: 52px; padding: 0 12px; font-size: 15px; }
	body.menu-aaben .bundbar { display: none; } /* Menuen har sine egne knapper */
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .faner, .site-header__handling, .hovednav, .bundbar, .formsektion { display: none !important; }
	.eg-anim * { opacity: 1 !important; clip-path: none !important; animation: none !important; }
	body { background: #fff; padding: 0; }
}
