/*
Theme Name: Kajdis algerens
Theme URI: https://kajdisalgerens.dk
Author: Evoia
Author URI: https://evoia.dk
Description: Custom tema til Kajdis algerens – forside med Privat/Erhverv-switch, tilbudsformularer og plads til prisberegneren.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kajdis
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--creme: #FAF7EC;
	--sand: #F2EDD7;
	--guld: #C9C091;
	--oliven: #9C9258;
	--oliven-moerk: #6F6838;
	--groen: #17382E;
	--groen-mellem: #285C4C;
	--groen-dyb: #102820;
	--tekst: #14231D;
	--tekst-2: #45554D;
	--tekst-3: #2B3A33;
	--linje: #E2DDC6;
	--linje-2: #CFC9AE;
	--linje-input: #B9B7A4;
	--linje-3: #D8D5C3;

	/* Privat (standard) */
	--top-bg: #FAF7EC;
	--top-fg: #285C4C;
	--usp-bg: #285C4C;
	--usp-line: transparent;
	--pill-bg: #F2EDD7;
	--pill-line: #CFC9AE;
	--switch-on-bg: #285C4C;
	--switch-on-fg: #F2EDD7;
	--switch-off-fg: #285C4C;

	--side-pad: clamp(20px, 5vw, 64px);
	--sektion-pad: clamp(64px, 8vw, 120px);
	--page-w: 100vw;
	--font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

html[data-visning="erhverv"] {
	--top-bg: #17382E;
	--top-fg: #F2EDD7;
	--usp-bg: transparent;
	--usp-line: rgba(201, 192, 145, 0.18);
	--pill-bg: rgba(242, 237, 215, 0.08);
	--pill-line: rgba(201, 192, 145, 0.4);
	--switch-on-bg: #C9C091;
	--switch-on-fg: #17382E;
	--switch-off-fg: #F2EDD7;
}

/* Visningsspecifikt indhold */
.kj-vis-erhverv { display: none !important; }
html[data-visning="erhverv"] .kj-vis-erhverv { display: revert !important; }
html[data-visning="erhverv"] .kj-vis-privat { display: none !important; }
html[data-visning="erhverv"] div.kj-vis-erhverv,
html[data-visning="erhverv"] section.kj-vis-erhverv { display: block !important; }
html[data-visning="erhverv"] .kj-hero__raekke.kj-vis-erhverv { display: flex !important; }

/* ==========================================================================
   Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--creme);
	color: var(--tekst);
	font-family: var(--font);
	font-optical-sizing: auto;
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--guld); outline-offset: 2px; }
.kj-sr, .kj-hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.kj-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	padding: 10px 16px; border-radius: 999px; background: var(--groen); color: var(--sand); font-weight: 600;
}
.kj-skip:focus { top: 12px; }

.kj-indhold { max-width: 1200px; margin: 0 auto; }
.kj-sektion { padding: var(--sektion-pad) var(--side-pad); }
.kj-sektion--creme { background: var(--creme); }
.kj-sektion--sand { background: var(--sand); }
.kj-sektion--groen { background: var(--groen); color: var(--sand); }
.kj-sektion--guld { background: var(--guld); color: var(--groen); }
.kj-hvid { color: #fff !important; }
.kj-stor { font-size: 18px; max-width: 560px; }
.kj-understreg { text-decoration: underline; text-underline-offset: 3px; }

/* Typografi */
.kj-h1 {
	font-size: clamp(36px, 5.2vw, 76px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 600;
	max-width: 760px; text-wrap: balance; overflow-wrap: break-word;
}
.kj-h1--bred { max-width: 800px; }
.kj-h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; color: var(--groen); text-wrap: balance; }
.kj-h2--stor { font-size: clamp(34px, 5vw, 68px); line-height: 1.03; }
.kj-sektion--guld .kj-h2 { color: var(--groen); }
.kj-h3 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; color: var(--groen); }

.kj-eyebrow {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
	border-radius: 999px; border: 1.5px solid var(--groen); color: var(--groen);
	font-size: 13.5px; font-weight: 600; line-height: 1.2;
}
.kj-eyebrow--sand { border-color: var(--guld); color: var(--guld); }
.kj-badge {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px;
	background: var(--guld); color: var(--groen); font-size: 14px; font-weight: 600;
}

/* Knapper */
.kj-knap {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
	font-size: 17px; font-weight: 700; line-height: 1.1; text-decoration: none !important;
	transition: background-color .2s, color .2s, transform .2s;
}
.kj-knap svg { flex: none; transition: transform .2s; }
.kj-knap:hover svg { transform: translateX(3px); }
.kj-knap--primaer { background: var(--guld); color: var(--groen); }
.kj-knap--primaer:hover { background: #D5CDA2; }
.kj-knap--sekundaer { background: var(--groen); color: var(--sand); font-size: 16.5px; }
.kj-knap--sekundaer:hover { background: var(--groen-mellem); }
.kj-knap--fuld { display: flex; width: 100%; }
.kj-knap[disabled] { opacity: .7; cursor: progress; }

.kj-pillink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16.5px; font-weight: 700; color: var(--groen); }
.kj-pillink svg { transition: transform .2s; }
.kj-pillink:hover svg { transform: translateX(3px); }

.kj-rundknap {
	display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
	border-radius: 999px; border: 1.5px solid var(--groen); background: transparent; color: var(--groen);
	transition: background-color .2s, color .2s, opacity .2s;
}
.kj-rundknap:hover { background: rgba(23, 56, 46, .06); }
.kj-rundknap--fyldt { border: 0; background: var(--groen); color: var(--sand); }
.kj-rundknap--fyldt:hover { background: var(--groen-mellem); }
.kj-rundknap[disabled] { opacity: .35; cursor: default; }

/* ==========================================================================
   Top: USP-bar + header
   ========================================================================== */
.kj-top, .kj-topflade, .kj-mobilmenu { background: var(--top-bg); transition: background-color .3s; }
.kj-usp {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 44px; padding: 10px 24px;
	font-size: 13.5px; font-weight: 500; color: #F2EDD7;
	background: var(--usp-bg); border-bottom: 1px solid var(--usp-line);
	transition: background-color .3s, border-color .3s;
}
.kj-header {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px clamp(16px, 3vw, 40px);
}
.kj-header__logo { display: flex; align-items: center; flex: none; }
.kj-header__logo img { height: clamp(38px, 4vw, 58px); width: auto; }
.kj-nav__liste { display: flex; align-items: center; gap: 34px; font-size: 15.5px; font-weight: 500; color: var(--top-fg); transition: color .3s; }
.kj-nav__liste a { display: inline-flex; align-items: center; min-height: 44px; }
.kj-header__hoejre { display: flex; align-items: center; gap: 14px; }
.kj-header__tlf {
	display: flex; align-items: center; gap: 8px; padding: 10px 6px;
	font-size: 15.5px; font-weight: 600; color: var(--top-fg); transition: color .3s; white-space: nowrap;
}
.kj-switch {
	display: flex; gap: 2px; padding: 4px; border-radius: 999px;
	background: var(--pill-bg); border: 1px solid var(--pill-line);
	transition: background-color .3s, border-color .3s;
}
.kj-switch__knap {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 clamp(14px, 1.6vw, 22px);
	border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1;
	color: var(--switch-off-fg); background: transparent; text-decoration: none !important;
	transition: background-color .3s, color .3s;
}
.kj-switch__knap[aria-pressed="true"] { background: var(--switch-on-bg); color: var(--switch-on-fg); }
.kj-burger {
	display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
	border-radius: 999px; border: 1px solid var(--pill-line); background: var(--pill-bg); color: var(--top-fg);
	transition: background-color .3s, color .3s, border-color .3s;
}

/* Mobilmenu */
.kj-mobilmenu {
	position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; gap: 24px;
	padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); color: var(--top-fg); overflow-y: auto;
}
.kj-mobilmenu[hidden] { display: none; }
.kj-mobilmenu__top { display: flex; align-items: center; justify-content: space-between; }
.kj-mobilmenu__top .kj-burger { display: flex; }
.kj-mobilmenu__liste { display: flex; flex-direction: column; }
.kj-mobilmenu__liste a {
	display: flex; align-items: center; min-height: 60px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
	border-bottom: 1px solid var(--pill-line);
}
.kj-mobilmenu__bund { margin-top: auto; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.kj-mobilmenu__bund .kj-switch { align-self: flex-start; }
.kj-mobilmenu__tlf { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; font-weight: 700; font-size: 17px; }
body.kj-menu-aaben { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.kj-topflade { padding-bottom: 16px; }
.kj-hero {
	position: relative; margin: 0 clamp(8px, 1.2vw, 16px); border-radius: clamp(20px, 2.2vw, 32px);
	overflow: hidden; min-height: 780px; display: flex; flex-direction: column; justify-content: flex-end;
	background: var(--groen-dyb); isolation: isolate;
}
.kj-hero__medie { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.kj-hero__video { opacity: 0; transition: opacity .8s; }
.kj-hero__video.is-klar { opacity: 1; }
.kj-hero__overlay {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(16, 40, 32, .42) 0%, rgba(16, 40, 32, .2) 28%, rgba(16, 40, 32, .9) 100%);
}
.kj-hero__indhold { position: relative; padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 56px) clamp(28px, 3.4vw, 48px); }
.kj-hero__raekke { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px clamp(32px, 5vw, 80px); }
.kj-hero__tekst { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; color: #fff; }
.kj-hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 600px; color: var(--sand); }
.kj-hero__trust { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; }
.kj-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.kj-hero__ring {
	display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500;
	color: #fff; text-decoration: underline; text-underline-offset: 4px;
}

/* Genvejsbar */
.kj-genveje {
	position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 1px; background: rgba(242, 237, 215, .2); border-top: 1px solid rgba(242, 237, 215, .2);
	font-size: 16px; font-weight: 600; color: #fff;
}
.kj-genveje a {
	display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 12px;
	text-align: center; background: rgba(16, 40, 32, .82); transition: background-color .2s;
}
.kj-genveje a:hover { background: rgba(23, 56, 46, .95); text-decoration: none; }

/* ==========================================================================
   Formularkort
   ========================================================================== */
.kj-formkort {
	flex: 0 1 460px; min-width: 0; padding: clamp(20px, 2.4vw, 28px); border-radius: 24px;
	background: var(--creme); color: var(--tekst); box-shadow: 0 24px 60px rgba(8, 22, 17, .35);
	scroll-margin-top: 16px;
}
.kj-form { display: flex; flex-direction: column; gap: 12px; }
.kj-form[hidden] { display: none; }
.kj-form__head { display: flex; flex-direction: column; gap: 6px; }
.kj-form__titel { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.kj-form__intro { font-size: 15px; color: var(--tekst-2); }
.kj-form__intro a { text-decoration: underline; font-weight: 600; color: var(--groen); }
.kj-form__note { font-size: 13.5px; color: var(--tekst-2); }
.kj-form__raekke { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.kj-felt { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13.5px; font-weight: 600; }
.kj-felt__label { font-size: 13.5px; font-weight: 600; padding: 0; }
.kj-input {
	min-height: 46px; width: 100%; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--linje-input);
	background: #fff; font-size: 16px; font-weight: 400; color: var(--tekst); transition: border-color .15s, box-shadow .15s;
}
input.kj-input:focus, .kj-input:focus-within { outline: none; border-color: var(--groen-mellem); box-shadow: 0 0 0 3px rgba(40, 92, 76, .18); }
.kj-input input { flex: 1; min-width: 0; min-height: 43px; border: 0; background: transparent; font-size: 16px; color: var(--tekst); padding: 0; }
.kj-input input:focus { outline: none; }
.kj-input--tlf { display: flex; align-items: center; padding: 0; overflow: hidden; }
.kj-input__prefix { display: flex; align-items: center; align-self: stretch; padding: 0 12px; border-right: 1.5px solid var(--linje-3); font-size: 15px; font-weight: 600; }
.kj-input--tlf input { padding: 0 12px; }
.kj-input--ikon { display: flex; align-items: center; gap: 8px; color: var(--tekst-2); }
.kj-input::placeholder, .kj-input input::placeholder { color: #7B847F; }
.kj-felt.har-fejl .kj-input { border-color: #B3261E; }
.kj-felt__fejl { font-size: 13px; font-weight: 500; color: #B3261E; }
.kj-felt__fejl:empty { display: none; }

.kj-tiles { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kj-tiles legend { margin-bottom: 6px; }
.kj-tiles__gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: 8px; }
.kj-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: 60px; padding: 6px; border-radius: 12px; font-size: 13.5px; font-weight: 600; text-align: center;
	border: 1.5px solid var(--linje-input); background: #fff; color: var(--groen); cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s; user-select: none; -webkit-user-select: none;
}
.kj-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.kj-tile:hover { border-color: var(--groen-mellem); }
.kj-tile:has(input:checked), .kj-tile.is-valgt { background: var(--groen-mellem); border-color: var(--groen-mellem); color: var(--sand); }
.kj-tile:has(input:focus-visible) { outline: 2px solid var(--guld); outline-offset: 2px; }

.kj-upload {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--oliven);
	background: var(--sand); font-size: 14.5px; font-weight: 600; color: var(--groen); cursor: pointer;
}
.kj-upload:focus-within { outline: 2px solid var(--guld); outline-offset: 2px; }
.kj-upload__tekst { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kj-upload__tekst span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kj-upload__valgfrit { font-size: 13px; font-weight: 400; color: var(--tekst-2); flex: none; }
.kj-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kj-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--tekst); }
.kj-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--groen-mellem); }
.kj-check a { text-decoration: underline; }
.kj-felt__fejl--check { margin-top: -8px; }

.kj-form__besked { font-size: 14.5px; font-weight: 500; padding: 10px 14px; border-radius: 12px; }
.kj-form__besked--fejl { background: #FBE9E7; color: #8C1D18; }
.kj-form__besked[hidden] { display: none; }

.kj-tak { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
.kj-tak[hidden] { display: none; }
.kj-tak:focus { outline: none; }
.kj-tak__ikon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: var(--groen-mellem); color: var(--sand); }
.kj-tak__tekst { font-size: 16.5px; }

/* ==========================================================================
   Logo-slider (erhverv)
   ========================================================================== */
.kj-logoer { padding: clamp(28px, 3.4vw, 44px) 0 clamp(20px, 2.4vw, 32px); }
.kj-logoer__titel { text-align: center; font-size: 14.5px; font-weight: 600; color: var(--guld); margin: 0 var(--side-pad) 18px; letter-spacing: .01em; }
.kj-logoer__vindue {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.kj-logoer__spor { display: flex; width: max-content; }
.kj-logoer__liste { display: flex; gap: 14px; padding-right: 14px; }
.kj-logoer__kort {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 184px; height: 92px; padding: 14px 22px; border-radius: 18px; background: #fff;
}
.kj-logoer__kort img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; }

/* Uendelig rul (logoer + anmeldelser). Varigheden sættes af JS ud fra bredden. */
[data-kj-rul] { animation: kj-rul var(--rul-tid, 60s) linear infinite; will-change: transform; }
.kj-rul__spor--hoejre { animation-direction: reverse; }
[data-kj-rul]:hover, [data-kj-rul].is-pause { animation-play-state: paused; }
@keyframes kj-rul { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Sektionshoveder
   ========================================================================== */
.kj-sektion__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.kj-sektion__titel { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex: 1 1 420px; min-width: 0; }
.kj-sektion__intro { flex: 1 1 320px; max-width: 440px; color: var(--tekst-2); }
#ydelser .kj-vis-erhverv .kj-sektion__head { margin-bottom: clamp(32px, 4vw, 56px); }

/* Karrusel */
.kj-karrusel__pile { display: flex; gap: 10px; }
.kj-karrusel { position: relative; }
.kj-karrusel__spor {
	display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	cursor: grab; user-select: none; -webkit-user-select: none; overscroll-behavior-x: contain;
	margin-right: calc((100% - var(--page-w)) / 2); padding-right: calc((var(--page-w) - 100%) / 2);
	-webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(200% - var(--page-w)), transparent 100%);
	mask-image: linear-gradient(90deg, #000 0, #000 calc(200% - var(--page-w)), transparent 100%);
}
.kj-karrusel__spor::-webkit-scrollbar { display: none; }
.kj-karrusel__spor.is-traek { cursor: grabbing; scroll-snap-type: none; }
.kj-ydelseskort {
	position: relative; display: block; flex: 0 0 clamp(290px, calc((100% - 40px) / 3), 640px);
	aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; scroll-snap-align: start;
	background: var(--groen); color: #fff; text-decoration: none !important;
}
.kj-ydelseskort img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.kj-ydelseskort:hover img { transform: scale(1.04); }
.kj-ydelseskort::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20, 46, 38, 0) 46%, rgba(20, 46, 38, .62) 74%, rgba(20, 46, 38, .92) 100%);
}
.kj-ydelseskort__titel {
	position: absolute; z-index: 1; left: 28px; right: 84px; bottom: 24px; min-height: 48px; display: flex; align-items: center;
	white-space: nowrap; font-size: clamp(17px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600;
}
.kj-ydelseskort__pil {
	position: absolute; z-index: 1; right: 24px; bottom: 24px; display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 999px; background: var(--guld); color: var(--groen); transition: transform .2s;
}
.kj-ydelseskort:hover .kj-ydelseskort__pil { transform: translateX(3px); }

/* Erhverv-liste */
.kj-erhverv { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; }
.kj-erhverv__liste { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; border-top: 1.5px solid var(--groen); }
.kj-erhverv__liste a {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding: 24px 0;
	border-bottom: 1px solid var(--linje-2); color: var(--groen); text-decoration: none; transition: padding .25s;
}
.kj-erhverv__liste a:hover { padding-left: 8px; }
.kj-erhverv__liste a:hover .kj-erhverv__titel { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.kj-erhverv__nr { flex: none; width: 36px; font-size: 15px; font-weight: 600; color: var(--oliven-moerk); }
.kj-erhverv__titel { flex: 1 1 200px; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.kj-erhverv__tekst { flex: 2 1 300px; font-size: 16px; color: var(--tekst-3); }
.kj-serviceaftale {
	flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px;
	border-radius: 24px; background: var(--groen); color: var(--sand);
}
.kj-serviceaftale h3 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; color: #fff; }
.kj-serviceaftale p { font-size: 16.5px; }
.kj-serviceaftale .kj-knap { font-size: 16.5px; padding: 0 20px; white-space: nowrap; }
.kj-serviceaftale__ring { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 16px; font-weight: 600; }

/* ==========================================================================
   Før/efter
   ========================================================================== */
.kj-fe { display: flex; flex-direction: column; gap: 16px; }
.kj-fe__ramme {
	position: relative; aspect-ratio: 16 / 9; min-height: 280px; border-radius: 24px; overflow: hidden;
	background: var(--groen); user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.kj-fe__billede { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.kj-fe__foer { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.kj-fe__badge {
	position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
	border-radius: 999px; background: var(--groen); color: var(--sand); font-size: 15px; font-weight: 700; pointer-events: none;
}
.kj-fe__badge--efter { left: auto; right: 16px; background: var(--guld); color: var(--groen); }
.kj-fe__linje { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.kj-fe__haandtag {
	position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 999px; background: #fff; color: var(--groen); box-shadow: 0 6px 20px rgba(8, 22, 17, .35); pointer-events: none;
	transition: transform .15s;
}
.kj-fe__range {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
	-webkit-appearance: none; appearance: none; background: transparent;
}
.kj-fe__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.kj-fe__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.kj-fe__ramme:has(.kj-fe__range:focus-visible) .kj-fe__haandtag { outline: 2px solid var(--guld); outline-offset: 3px; }
.kj-fe__ramme:has(.kj-fe__range:active) .kj-fe__haandtag { transform: translate(-50%, -50%) scale(1.08); }
.kj-fe__note { font-size: 16px; color: var(--tekst-2); }

/* ==========================================================================
   Split-sektioner (Om os, Miljø, Kontakt)
   ========================================================================== */
.kj-split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(40px, 6vw, 88px); }
.kj-split__billede { flex: 1 1 380px; min-width: 0; }
.kj-split__tekst { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.kj-sektion--guld .kj-split__tekst { gap: 22px; }
.kj-billede { width: 100%; object-fit: cover; border-radius: 28px; }
.kj-billede--45 { aspect-ratio: 4 / 5; }
.kj-billede--54 { aspect-ratio: 5 / 4; }

.kj-punkter { align-self: stretch; display: flex; flex-direction: column; }
.kj-punkter li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(201, 192, 145, .35); }
.kj-punkter li:last-child { border-bottom: 1px solid rgba(201, 192, 145, .35); }
.kj-punkter__nr { flex: none; width: 32px; font-size: 15px; font-weight: 600; color: var(--guld); }
.kj-punkter div { display: flex; flex-direction: column; gap: 4px; }
.kj-punkter h3 { font-size: 20px; font-weight: 600; color: #fff; line-height: 1.25; }
.kj-punkter p { font-size: 16px; }

.kj-ringpille {
	display: flex; align-items: center; gap: 16px; padding: 12px 24px 12px 12px; border-radius: 999px;
	background: var(--sand); color: var(--groen); text-decoration: none !important; transition: background-color .2s;
}
.kj-ringpille:hover { background: #fff; }
.kj-ringpille img { width: 60px; height: 60px; border-radius: 999px; object-fit: cover; flex: none; }
.kj-ringpille > span { display: flex; flex-direction: column; line-height: 1.25; }
.kj-ringpille__lille { font-size: 14px; font-weight: 500; }
.kj-ringpille__nr { font-size: 22px; letter-spacing: -0.01em; font-weight: 700; }

.kj-piller { display: flex; flex-wrap: wrap; gap: 10px; }
.kj-piller li {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
	background: var(--groen); color: var(--sand); font-size: 14.5px; font-weight: 600;
}
.kj-piller--kant li { background: transparent; border: 1.5px solid rgba(201, 192, 145, .55); font-size: 15px; }

/* Tre trin */
.kj-stak { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.kj-stak > .kj-sektion__titel { flex: none; }
.kj-trin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.kj-trin li { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--sand); }
.kj-trin__nr { font-size: 64px; line-height: 1; letter-spacing: -0.04em; font-weight: 700; color: var(--groen); }
.kj-trin h3 { font-size: 22px; letter-spacing: -0.01em; font-weight: 600; color: var(--groen); line-height: 1.2; }
.kj-trin p { font-size: 16px; color: var(--tekst-3); }

/* ==========================================================================
   Anmeldelser
   ========================================================================== */
.kj-anm { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.kj-anm__citat {
	flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--groen); color: var(--sand);
}
.kj-anm__citat blockquote { margin: 0; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; color: #fff; text-wrap: balance; }
.kj-anm__citat figcaption { display: flex; flex-direction: column; font-size: 16px; }
.kj-anm__citat figcaption span:first-child { font-weight: 700; color: #fff; }
.kj-anm__score {
	flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	padding: clamp(28px, 3vw, 40px); border-radius: 28px; background: var(--sand); color: var(--groen);
}
.kj-anm__score > div { display: flex; flex-direction: column; gap: 12px; }
.kj-anm__tal { font-size: clamp(72px, 9vw, 120px); line-height: .9; letter-spacing: -0.05em; font-weight: 700; }
.kj-anm__score img { width: 170px; }
.kj-anm__score p { font-size: 18px; font-weight: 600; }

.kj-rul-sektion { position: relative; background: var(--creme); padding: 0 0 var(--sektion-pad); overflow: hidden; }
.kj-anm-top { padding-bottom: clamp(48px, 6vw, 88px); }
.kj-rul-sektion__head {
	box-sizing: content-box; padding: 0 var(--side-pad) clamp(24px, 3vw, 40px);
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px;
}
.kj-rul-sektion__head p { font-size: 16px; color: var(--tekst-2); }
.kj-rul {
	display: flex; flex-direction: column; gap: 20px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.kj-rul__spor { display: flex; width: max-content; }
.kj-rul__gruppe { display: flex; }
.kj-anmkort {
	flex: none; width: 320px; margin: 0 20px 0 0; display: flex; flex-direction: column; gap: 14px; padding: 24px;
	border-radius: 20px; background: #fff; border: 1px solid var(--linje);
}
.kj-anmkort img { width: 112px; }
.kj-anmkort blockquote { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; color: var(--groen); }
.kj-anmkort figcaption { margin-top: auto; font-size: 14.5px; color: var(--tekst-2); }
.kj-anmkort figcaption span { font-weight: 700; color: var(--tekst); }

/* ==========================================================================
   Kontakt / landsdækkende
   ========================================================================== */
.kj-kontakt-ramme { background: var(--creme); padding: 0 clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px); }
.kj-kontakt { border-radius: clamp(20px, 2.2vw, 32px); background: var(--groen); color: var(--sand); padding: clamp(48px, 7vw, 104px) var(--side-pad); }
.kj-split--kontakt .kj-kontakt__tekst { flex: 999 1 460px; gap: 22px; }
.kj-stor { max-width: 540px; }
.kj-kort { position: relative; flex: 1 1 340px; max-width: 460px; min-width: 0; margin: 0 auto; }
.kj-kort > img { width: 100%; }
.kj-kort__pin { position: absolute; transform: translate(-50%, -100%); display: flex; }
.kj-kort__pin svg { width: clamp(18px, 5.6%, 26px); height: auto; }
.kj-kort__pin--base { z-index: 2; }
.kj-kort__pin--base svg { width: clamp(28px, 7.8%, 36px); }
.kj-kort__label {
	position: absolute; z-index: 3; transform: translate(22px, -135%); display: inline-flex; align-items: center; min-height: 28px;
	padding: 0 12px; border-radius: 999px; background: var(--guld); color: var(--groen); font-size: 13.5px; font-weight: 700; white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.kj-footer { background: var(--groen-dyb); color: #D9D3B4; padding: clamp(48px, 6vw, 80px) var(--side-pad) 32px; }
.kj-footer > .kj-indhold { display: flex; flex-direction: column; gap: 48px; }
.kj-footer__kolonner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px 32px; font-size: 15.5px; }
.kj-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.kj-footer__brand img { height: 64px; width: auto; }
.kj-footer h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #fff; }
.kj-footer__liste { display: flex; flex-direction: column; gap: 6px; }
.kj-footer__liste a, .kj-footer__liste span { display: inline-flex; align-items: center; min-height: 32px; }
.kj-footer__bund {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px;
	border-top: 1px solid rgba(201, 192, 145, .25); font-size: 14px;
}
.kj-footer__bundmenu { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ==========================================================================
   Undersider
   ========================================================================== */
.kj-side { min-height: 50vh; }
.kj-tekstindhold { max-width: 800px; display: flex; flex-direction: column; gap: 24px; }
.kj-prosa > * + * { margin-top: 1em; }
.kj-prosa a { text-decoration: underline; color: var(--groen-mellem); }

/* Prisberegner-siden: header + beregner i fuld skærm */
.kj-beregnerside { background: var(--creme); }
.kj-top--kompakt .kj-header { padding-top: 12px; padding-bottom: 12px; }
.kj-top--kompakt .kj-header__logo img { height: clamp(34px, 3.4vw, 48px); }

/* ==========================================================================
   Responsiv
   ========================================================================== */
@media (max-width: 900px) {
	.kj-usp, .kj-nav, .kj-header__tlf, .kj-header > .kj-header__hoejre > .kj-switch { display: none; }
	.kj-burger { display: flex; }
	.kj-header { padding: 14px 16px; }
	.kj-hero { min-height: 0; }
	.kj-hero__indhold { padding-top: 120px; }
	.kj-formkort { flex-basis: 100%; }
	.kj-erhverv__titel { font-size: 24px; }
	.kj-erhverv__liste a { padding: 20px 0; }
	.kj-anm__citat { gap: 28px; }
}
@media (max-width: 560px) {
	.kj-hero__indhold { padding-top: 96px; }
	.kj-genveje { grid-template-columns: 1fr 1fr; }
	.kj-genveje a { min-height: 56px; font-size: 15px; }
	.kj-ydelseskort__titel { left: 20px; right: 76px; bottom: 20px; }
	.kj-ydelseskort__pil { right: 20px; bottom: 20px; }
	.kj-fe__ramme { aspect-ratio: 4 / 3; }
	.kj-logoer__kort { width: 150px; height: 78px; padding: 12px 18px; border-radius: 14px; }
	.kj-logoer__kort img { max-height: 44px; }
	.kj-anmkort { width: 280px; }
	.kj-ringpille { padding-right: 18px; }
	.kj-ringpille__nr { font-size: 20px; }
	.kj-mobilmenu__liste a { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
	[data-kj-rul] { animation: none; }
	.kj-logoer__vindue, .kj-rul { overflow-x: auto; }
	.kj-hero__video { display: none; }
}
