/* ============================================================
   MADSEN BASE — fundament-CSS (v1)
   KUN reset + kontrakter + a11y/perf-konsensus fra de 7 sider.
   NUL udseende: alt visuelt kommer fra tokens.css + sidens
   bespoke lag, som skrives UNDER denne blok i hver sides main.css.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html, body {
  /* clip — IKKE hidden: hidden gør body til scroll-container og
     brækker window-scroll-listeners; clip fanger også fixed udhæng.
     (Hårdt lært på madsen-studio.) */
  overflow-x: clip;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* [hidden] skal ALTID vinde — author-display (fx img{display:block})
   slår ellers UA'ens [hidden]{display:none} ihjel, så .hidden=true i JS
   "virker" uden at skjule noget. (Hårdt lært på iqwash 2026-06-11:
   fallback-billede dækkede wipe-canvas usynligt.) */
[hidden] { display: none !important; }

/* ---------- A11y-kontrakter ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Honeypot: off-screen — ALDRIG display:none (bots tjekker det) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fokus: synligt og på linje med hover-udtrykket — re-skin pr. side */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Layout-kontrakt ---------- */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Reveal-systemets kontrakt ----------
   JS sætter .in-view (IntersectionObserver). Personligheden bor i
   tokens (--reveal-y/--reveal-dur/--ease/--reveal-step) og kan
   overskrives pr. side: retning, skala, blur — frit spil. */
:root {
  --reveal-y: 28px;        /* afstand — rolig side: 12px · dramatisk: 48px */
  --reveal-dur: var(--dur);
  --reveal-step: 90ms;     /* stagger-trin for data-reveal-delay */
}
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: calc(1 * var(--reveal-step)); }
[data-reveal][data-reveal-delay="2"] { transition-delay: calc(2 * var(--reveal-step)); }
[data-reveal][data-reveal-delay="3"] { transition-delay: calc(3 * var(--reveal-step)); }
[data-reveal][data-reveal-delay="4"] { transition-delay: calc(4 * var(--reveal-step)); }

/* ---------- Magnetiske elementer ---------- */
[data-magnet] { transition: transform 250ms var(--ease); will-change: transform; }

/* ---------- Reduced motion: global kill-switch (alle siders standard) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   HERFRA: sidens bespoke lag — BS Stubfræsning "Skovbryn"
   ============================================================ */

body { position: relative; }

/* subtil kornstruktur (aldrig flad hex — dybde) */
body::before {
  content:""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.04'/></svg>");
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; color: var(--forest); line-height: 1.04; }
p { text-wrap: pretty; }
a { text-decoration: none; }

/* Lenis smooth-scroll (aktiv kun på desktop) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
::selection { background: var(--accent); color: var(--cta-ink); }

/* ============================ LOADING-SKÆRM ============================
   Logo centreret på cream. Fader ud af sig selv (CSS) — kan ikke hænge fast. */
.preload {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; gap: 26px; align-content: center;
  background: var(--bg);
  /* fallback: forsvinder ALTID af sig selv, også uden JS */
  animation: preloadOut 620ms var(--ease) 3200ms forwards;
}
.preload__logo {
  width: min(430px, 74vw); height: auto;
  animation: preloadIn 700ms var(--ease) both;
  will-change: transform, opacity;
}
/* når JS overtager flyvningen, skal fallback-fadet ikke skygge */
.preload.is-flying { animation: none; }
/* nav-brandet holdes usynligt indtil logoet "lander" */
.brand.is-waiting { opacity: 0; }
.brand { transition: opacity 420ms var(--ease); }
.preload__bar {
  width: min(150px, 34vw); height: 3px; border-radius: 3px;
  background: var(--hairline-2); overflow: hidden; position: relative;
}
.preload__bar::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  background: var(--accent); transform-origin: left;
  animation: preloadBar 1250ms var(--ease) both;
}
@keyframes preloadIn  { from { opacity: 0; transform: scale(.965) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes preloadBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes preloadOut { to { opacity: 0; visibility: hidden; } }
/* JS kan fremskynde når alt er klar */
.preload.is-done { animation: preloadOut 420ms var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) { .preload { display: none; } }

/* ============================ ARBEJDE / GALLERI ============================ */
.arb { background: var(--bg-2); }
.arb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.arb-item { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--bg-3); box-shadow: 0 22px 44px -30px rgba(30,27,21,.45); }
.arb-item--wide { grid-column: 1 / -1; }
.arb-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform var(--dur) var(--ease); }
.arb-item--wide img { aspect-ratio: 16/8; }
@media (hover: hover) { .arb-item:hover img { transform: scale(1.03); } }
@media (max-width: 700px) {
  .arb-grid { grid-template-columns: 1fr; }
  .arb-item img, .arb-item--wide img { aspect-ratio: 4/3; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--f-body); font-weight: 700; font-size: var(--t-mono-l);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .55em; margin: 0;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow--light { color: #E7C79B; }
.eyebrow--light::before { background: var(--accent); }

/* ---------- Knapper ---------- */
.btn {
  --_bg: var(--cta); --_fg: var(--cta-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1.6px solid transparent;
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--cta { box-shadow: 0 10px 26px -12px rgba(169,105,31,.7); }
.btn--cta:hover { background: var(--cta-deep); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(169,105,31,.8); }
.btn--ghost { background: transparent; color: var(--ink-onDark); border-color: rgba(255,255,255,.42); }
.btn--ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.btn--ghost-dark { background: transparent; color: var(--ink-onDark); border-color: rgba(255,255,255,.34); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--forest); border-color: var(--hairline-2); }
.btn--outline:hover { background: var(--forest); color: var(--ink-onDark); border-color: var(--forest); transform: translateY(-2px); }

/* ---------- Sektions-hoved ---------- */
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head__h { font-size: var(--t-display-m); margin: 14px 0 0; }
.sec-head__lead { margin-top: 18px; font-size: var(--t-lead); color: var(--ink-2); line-height: 1.5; }
.sec-head--onDark .sec-head__h { color: var(--ink-onDark); }

section { padding-block: var(--rhythm); }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
  padding-inline: clamp(14px, 3vw, 24px);
  transition: transform var(--dur) var(--ease);
}
.nav__inner {
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 12px 10px 18px; border-radius: var(--r-pill);
  background: rgba(244,241,233,.72); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 30px -18px rgba(30,27,21,.5);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav--solid .nav__inner { background: rgba(250,250,246,.92); box-shadow: 0 12px 34px -18px rgba(30,27,21,.55); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
/* hele logoet i nav'en — pillen vokser med, så teksten i logoet kan læses */
.brand__logo { height: 72px; width: auto; display: block; margin-block: -12px; }
@media (max-width: 860px) { .brand__logo { height: 52px; margin-block: -5px; } }
.brand__mark { display: grid; place-items: center; }
.brand__wordmark { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--forest); letter-spacing: -0.01em; white-space: nowrap; }
.brand__wordmark b { color: var(--accent-deep); font-weight: 800; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font-family: var(--f-body); font-weight: 600; font-size: 15px; color: var(--ink-2);
  text-decoration: none; padding: 9px 14px; border-radius: var(--r-pill);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__links a:hover { background: var(--accent-soft); color: var(--forest); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.tel-mini { font-family: var(--f-body); font-weight: 700; font-size: 15px; color: var(--forest); text-decoration: none; letter-spacing: .01em; }
.tel-mini:hover { color: var(--accent-deep); }
.nav__burger { display: none; width: 46px; height: 44px; background: transparent; border: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.nav__burger span { width: 22px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobilmenu */
.mm-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(21,42,29,.42); backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--dur) var(--ease); }
.mm-backdrop.is-open { opacity: 1; }
.mm {
  position: fixed; top: 0; right: 0; z-index: 58; height: 100dvh; width: min(84vw, 340px);
  background: var(--forest); color: var(--ink-onDark);
  display: flex; flex-direction: column; gap: 4px;
  padding: 92px 26px calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%); transition: transform var(--dur) var(--ease);
}
.mm.is-open { transform: none; }
.mm a { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--ink-onDark); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--hairline-onDark); }
.mm a:last-of-type { border: 0; }
.mm__cta { margin-top: 20px; justify-content: center; font-family: var(--f-body); font-size: 16px; }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--forest-deep); }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__video { z-index: 1; }
.hero__mobil { z-index: 1; display: none; }   /* vises kun på mobil (se @media) */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(11,20,14,.94) 0%, rgba(11,20,14,.84) 34%, rgba(11,20,14,.58) 56%, rgba(11,20,14,.24) 82%, rgba(11,20,14,.34) 100%),
    linear-gradient(0deg, rgba(11,20,14,.82) 0%, rgba(11,20,14,0) 54%);
}
/* MOBIL: portræt beskærer 16:9-videoen hårdt — flyt fokus til maskinen,
   og læg en kraftigere lodret scrim, så teksten står klart over støvskyen. */
@media (max-width: 860px) {
  .hero__video { display: none; }            /* mobil bruger stillbilledet */
  .hero__mobil { display: block; object-position: 50% 42%; }
  .hero__scrim {
    background:
      /* venstre side mørknes (teksten står der) — højre forbliver lys, så maskinen ses */
      linear-gradient(101deg, rgba(11,20,14,.93) 0%, rgba(11,20,14,.86) 38%, rgba(11,20,14,.52) 68%, rgba(11,20,14,.20) 100%),
      /* bunden mørknes, så knapper + lead står rent */
      linear-gradient(0deg, rgba(11,20,14,.88) 0%, rgba(11,20,14,.66) 34%, rgba(11,20,14,.18) 62%, rgba(11,20,14,0) 78%),
      linear-gradient(180deg, rgba(11,20,14,.45) 0%, rgba(11,20,14,0) 22%);
  }
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(64px, 11vh, 128px); padding-top: 132px; width: 100%; }
.hero .eyebrow--light { margin-bottom: 20px; }
.hero__title {
  font-family: var(--f-display); font-weight: 800; color: var(--ink-onDark);
  font-size: var(--t-display-xl); line-height: 0.98; letter-spacing: -0.028em;
  max-width: 15ch; margin: 0 0 24px;
  text-shadow: 0 2px 30px rgba(11,20,14,.55), 0 1px 4px rgba(11,20,14,.4);
}
.hero .eyebrow--light, .hero__lead, .hero__note { text-shadow: 0 1px 14px rgba(11,20,14,.6); }
.hero__title em {
  font-style: normal; position: relative; white-space: nowrap;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 0.09em;
  padding-bottom: 0.02em;
}
.hero__lead { max-width: 52ch; font-size: var(--t-lead); color: rgba(239,234,216,.9); line-height: 1.55; margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__note { font-family: var(--f-body); font-weight: 600; font-size: 14px; color: rgba(239,234,216,.72); letter-spacing: .01em; margin: 0; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(239,234,216,.5); border-radius: 20px; display: grid; place-items: start center; padding-top: 7px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 3px; background: var(--accent); animation: scrolldot 1.7s var(--ease) infinite; }
@keyframes scrolldot { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(12px);opacity:0} 100%{opacity:0} }

/* ============================ TRUST-STRIBE ============================ */
.trust { padding-block: clamp(28px, 4vw, 44px); background: var(--bg-2); border-bottom: 1px solid var(--hairline); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust__item { display: flex; align-items: flex-start; gap: 13px; }
.trust__ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 15px; }
.trust__item b { display: block; font-family: var(--f-body); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.trust__item span { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }

/* ============================ YDELSER ============================ */
.ydelser { background: var(--bg); }
.yd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* 4 ydelser = 2×2 (større kort, bedre balance end 3+1) */
.yd-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.yd-grid--4 .yd-card { padding: 34px 32px 30px; }
.yd-grid--4 .yd-card h3 { font-size: 25px; }
.yd-grid--4 .yd-card p { font-size: 15.5px; }
.yd-card {
  background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 30px 28px 26px; display: flex; flex-direction: column; align-items: flex-start;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.yd-card--wide { grid-column: span 1; background: var(--forest); border-color: var(--forest); }
.yd-card--wide h3, .yd-card--wide p { color: var(--ink-onDark); }
.yd-card--wide p { color: var(--ink-onDark-2); }
.yd-card--wide .yd-card__go { color: var(--accent); }
.yd-card--wide .yd-card__ic { background: rgba(255,255,255,.10); color: var(--accent); }
.yd-card__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-size: 22px; margin-bottom: 18px; }
.yd-card h3 { font-size: 22px; margin: 0 0 9px; }
.yd-card p { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin: 0 0 18px; }
.yd-card__go { margin-top: auto; font-family: var(--f-body); font-weight: 700; font-size: 14px; color: var(--accent-deep); }
@media (hover:hover) {
  .yd-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(30,27,21,.4); border-color: rgba(201,134,60,.4); }
  .yd-card--wide:hover { box-shadow: 0 24px 46px -22px rgba(21,42,29,.7); }
}

/* ============================ SÅDAN ============================ */
.saadan { background: var(--forest); color: var(--ink-onDark); }
.saadan .sec-head { margin-inline: auto; text-align: center; max-width: 720px; }
.saadan .eyebrow--light { justify-content: center; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; counter-reset: s; }
.step { position: relative; padding-top: 12px; border-top: 1px solid var(--hairline-onDark); }
.step__no { font-family: var(--f-display); font-weight: 800; font-size: 46px; color: var(--accent); line-height: 1; display: block; margin-bottom: 16px; }
.step h3 { color: var(--ink-onDark); font-size: 22px; margin: 0 0 10px; }
.step p { color: var(--ink-onDark-2); font-size: 15.5px; line-height: 1.55; margin: 0; }
.saadan__cta { text-align: center; margin-top: clamp(40px, 6vw, 64px); }

/* ============================ OMRÅDE ============================ */
.omraade { background: var(--bg-3); }
.omraade__grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.omraade__lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.55; margin: 18px 0 24px; max-width: 46ch; }
.omraade__towns { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0 0 22px; }
.omraade__towns li { font-family: var(--f-body); font-weight: 600; font-size: 14px; color: var(--forest); background: var(--bg-2); border: 1px solid var(--hairline); padding: 8px 15px; border-radius: var(--r-pill); }
.omraade__towns li.is-base { background: var(--forest); color: var(--ink-onDark); border-color: var(--forest); display: inline-flex; align-items: center; gap: 8px; }
.omraade__towns .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,134,60,.3); }
.omraade__foot { font-size: 14.5px; color: var(--ink-3); }
.omraade__foot a { color: var(--accent-deep); font-weight: 600; }
.omraade__mapwrap { display: grid; place-items: center; }
.omraade__map { width: 100%; max-width: 440px; }
.omraade__map svg { width: 100%; height: auto; display: block; }

/* ============================ OM ============================ */
.om { background: var(--bg); }
.om__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.om__media { border-radius: var(--r-card); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(30,27,21,.5); aspect-ratio: 4/5; }
.om__media img { width: 100%; height: 100%; object-fit: cover; }
.om__text .sec-head__h { margin: 14px 0 20px; }
.om__text p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0 0 16px; max-width: 52ch; }
.om__points { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; }
.om__points li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.om__points li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: var(--cta-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ============================ FAQ ============================ */
.faq { background: var(--bg-2); }
.faq__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 108px; }
.faq__head .sec-head__h { margin: 14px 0 14px; font-size: var(--t-display-m); }
.faq__head p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.faq__head a { color: var(--accent-deep); font-weight: 600; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-1); overflow: hidden; transition: border-color var(--dur-fast) var(--ease); }
.faq__item[open] { border-color: rgba(201,134,60,.45); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--f-display);
  font-weight: 700; font-size: 18px; color: var(--forest); display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--f-body); font-weight: 700; font-size: 22px; color: var(--accent-deep); transition: transform var(--dur-fast) var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; }
.faq__a p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 62ch; }

/* ============================ CTA-BÅND ============================ */
.cta-band { background: var(--bg); }
.cta-slab {
  background: var(--forest-deep); color: var(--ink-onDark); border-radius: var(--r-card);
  padding: clamp(38px, 5vw, 60px); display: grid; grid-template-columns: 1.3fr auto;
  gap: 32px; align-items: center; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21,42,29,.7);
}
.cta-slab::before { content:""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201,134,60,.22), transparent 68%); pointer-events: none; }
.cta-slab__text h2 { color: var(--ink-onDark); font-size: clamp(26px, 3.4vw, 42px); margin: 0 0 10px; }
.cta-slab__text p { color: var(--ink-onDark-2); font-size: 16.5px; margin: 0; max-width: 44ch; }
.cta-slab__actions { display: flex; flex-direction: column; gap: 12px; }

/* ============================ KONTAKT ============================ */
.kontakt { background: var(--bg-3); }
.kontakt__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.kontakt__logo { width: min(300px, 62%); height: auto; margin-bottom: 22px; }
.kontakt__intro .sec-head__h { margin: 14px 0 16px; }
.kontakt__intro p { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 40ch; }
.kontakt__facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.kontakt__facts li { display: grid; grid-template-columns: 78px 1fr; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.kontakt__facts span { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kontakt__facts a, .kontakt__facts li { font-size: 17px; color: var(--forest); font-weight: 600; text-decoration: none; }
.kontakt__facts a:hover { color: var(--accent-deep); }
.kontakt__assure { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.kontakt__assure li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); font-weight: 500; }
.kontakt__assure li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: var(--cta-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.kontakt__form, .qform { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); box-shadow: 0 24px 50px -34px rgba(30,27,21,.4); }

/* ---------- Guidet tilbuds-formular ---------- */
.qgroup { border: 0; padding: 0; margin: 0 0 22px; }
.qgroup legend { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--forest); margin-bottom: 12px; padding: 0; }
.qnum { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--forest); color: var(--ink-onDark); font-family: var(--f-body); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 17px; min-height: 44px; border-radius: var(--r-pill);
  border: 1.5px solid var(--hairline-2); background: var(--bg);
  font-family: var(--f-body); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip span::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--hairline-2); flex: none; transition: inherit; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--forest); }
.chip input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:hover span { border-color: var(--accent); }
.q-input {
  width: 100%; background: var(--bg); border: 1.5px solid var(--hairline-2); border-radius: 12px;
  padding: 13px 15px; font-size: 15.5px; color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.q-input:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qcontact { border-top: 1px solid var(--hairline); margin-top: 26px; padding-top: 24px; }

/* ---------- Wizard (ét trin ad gangen) ---------- */
.qprogress { margin-bottom: 24px; }
.qprogress__track { height: 6px; border-radius: var(--r-pill); background: var(--bg-3); overflow: hidden; }
.qprogress__fill { display: block; height: 100%; width: 20%; border-radius: var(--r-pill); background: var(--accent); transition: width .45s var(--ease); }
.qprogress__label { margin-top: 9px; font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--ink-3); }
.qprogress__label b { color: var(--forest); }

.qsteps { position: relative; }
.qform.js .qsteps { min-height: 196px; }
.qform.js .qstep { display: none; }
.qform.js .qstep.is-active { display: block; animation: qstepin .4s var(--ease) both; }
@keyframes qstepin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.qstep .qgroup { margin: 0; }
.qhint { font-size: 13.5px; color: var(--ink-3); margin: -2px 0 14px; }

.qnav { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.qback { background: transparent; border: 0; color: var(--ink-2); font-family: var(--f-body); font-weight: 600; font-size: 15px; cursor: pointer; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill); }
.qback:hover { color: var(--forest); }
.qnext { flex: 1; max-width: 210px; margin-left: auto; }
.qsubmit { flex: 1; }
.qform.js .qnext[hidden], .qform.js .qsubmit[hidden], .qback[hidden] { display: none; }

.qstep.shake { animation: qshake .4s var(--ease); }
@keyframes qshake { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(4px)} 50%{transform:translateX(-7px)} }
@media (prefers-reduced-motion: reduce) { .qform.js .qstep.is-active, .qstep.shake { animation: none; } }
.field { margin-bottom: 16px; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-family: var(--f-body); font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.field label span { font-weight: 500; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--hairline-2); border-radius: 12px;
  padding: 13px 15px; font-size: 15.5px; color: var(--ink); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; }
.field--file input { padding: 11px 14px; background: var(--bg); cursor: pointer; }
.kontakt__form .btn, .qform > .btn { width: 100%; margin-top: 4px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.form-note a { color: var(--accent-deep); font-weight: 600; }

/* ============================ FOOTER ============================ */
.footer { background: var(--forest-deep); color: var(--ink-onDark-2); padding-block: clamp(48px, 6vw, 72px) 24px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--hairline-onDark); }
.footer__mini { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.footer__mini a { font-size: 15px; font-weight: 600; color: var(--ink-onDark-2); text-decoration: none; }
.footer__mini a:hover { color: var(--accent); }
.footer__brand .brand__wordmark { color: var(--ink-onDark); font-size: 21px; }
.footer__brand .brand__wordmark b { color: var(--accent); }
.footer__brand p { margin-top: 12px; font-size: 15px; color: var(--ink-onDark-2); max-width: 34ch; line-height: 1.55; }
.footer__col h3 { color: var(--ink-onDark); font-family: var(--f-body); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer__col a, .footer__col span { display: block; font-size: 15px; color: var(--ink-onDark-2); text-decoration: none; margin-bottom: 10px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: 13.5px; color: rgba(198,194,178,.75); }
.footer-credit { margin: 0; }
.footer-credit a { color: var(--ink-onDark-2); font-weight: 600; }
.footer-credit a:hover { color: var(--accent); }

/* ============================ MOBIL CALL-BAR (injiceres) ============================ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250,250,246,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--hairline);
}
.callbar .btn { width: 100%; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1000px) {
  .yd-grid { grid-template-columns: repeat(2, 1fr); }
  .omraade__grid, .om__grid, .faq__grid, .kontakt__grid { grid-template-columns: 1fr; }
  .om__grid { gap: 32px; }
  .om__media { max-width: 460px; aspect-ratio: 16/11; }
  .faq__head { position: static; }
  .cta-slab { grid-template-columns: 1fr; }
  .cta-slab__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .trust__row { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .callbar { display: grid; }
  body { padding-bottom: var(--callbar-h, 84px); }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .yd-grid, .yd-grid--4 { grid-template-columns: 1fr; }
  .trust__row { grid-template-columns: 1fr; }
  .field--split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: clamp(42px, 13vw, 68px); }
}

/* ---------- Vejledende pris-beregner (tilbuds-wizard) ---------- */
.qprice{margin:16px 0 6px;padding:14px 18px;background:var(--bg-2);border:1px solid rgba(32,64,43,.16);border-left:4px solid var(--accent);border-radius:12px}
.qprice__head{display:flex;align-items:center;gap:10px}
.qprice__label{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.qprice__badge{font-size:.72rem;font-weight:600;color:var(--accent-deep);background:var(--accent-soft);padding:2px 9px;border-radius:999px}
.qprice__val{font-size:clamp(1.3rem,3vw,1.65rem);font-weight:700;color:var(--forest);margin:4px 0 0}
.qprice__rest{font-size:.92rem;color:var(--ink-2);margin:4px 0 0}
.qprice--kontakt .qprice__val{font-size:clamp(21px,2.4vw,28px);letter-spacing:-.01em}
.qprice--kontakt .qprice__label::after{content:"";}
.qprice__flytter{font-size:.85rem;color:var(--ink-2);margin:10px 0 0;padding-top:10px;border-top:1px solid var(--hairline);line-height:1.5}
.qprice__disc{font-size:.8rem;color:var(--ink-3);margin:7px 0 0}
.qform:not(.js) .qprice{display:none} /* uden JS: ingen beregner (fallback viser alle trin) */

/* ============================================================
   UNDERSIDER — page-hero, ydelses-indhold, krydslinks
   ============================================================ */
.page-hero {
  position: relative; background: var(--forest); color: var(--ink-onDark);
  padding-top: clamp(128px, 16vh, 190px); padding-bottom: clamp(56px, 8vh, 96px);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,134,60,.20), transparent 68%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 {
  font-family: var(--f-display); font-weight: 800; color: var(--ink-onDark);
  font-size: var(--t-display-m); line-height: 1.04; letter-spacing: -.02em; margin: 14px 0 18px;
}
.page-hero__lead { font-size: var(--t-lead); color: var(--ink-onDark-2); line-height: 1.55; margin-bottom: 28px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.crumb { font-family: var(--f-body); font-size: 13.5px; color: rgba(239,234,216,.66); margin-bottom: 4px; }
.crumb a { color: rgba(239,234,216,.86); display: inline-block; padding-block: 4px; }  /* 4/8: 24px klikflade (WCAG 2.5.8) */
.crumb a:hover { color: var(--accent); }
.crumb span { opacity: .55; margin-inline: 6px; }

.svc { background: var(--bg); }
.svc__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.svc__prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin-bottom: 16px; max-width: 58ch; }
.svc__prose h2 { font-size: clamp(24px, 2.8vw, 34px); margin: 34px 0 14px; }
.svc__prose h2:first-child { margin-top: 0; }
.ylist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.ylist li { position: relative; padding-left: 30px; font-size: 16px; color: var(--ink); }
.ylist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent); color: var(--cta-ink); font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
.svc__side { position: sticky; top: 108px; display: grid; gap: 18px; }
.svc__card { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px 24px; }
.svc__card h3 { font-size: 20px; margin-bottom: 10px; }
.svc__card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-bottom: 16px; }
.svc__card .btn { width: 100%; }
.svc__card .btn + .btn { margin-top: 10px; }
.svc__media { border-radius: var(--r-card); overflow: hidden; box-shadow: 0 24px 46px -30px rgba(30,27,21,.45); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.svc__prose .ylist + p { margin-top: 28px; }
.tekstlink { font-weight: 700; color: var(--accent-deep); text-decoration: none; border-bottom: 2px solid rgba(201,134,60,.35); padding-bottom: 1px; }
.tekstlink:hover { color: var(--forest); border-bottom-color: var(--forest); }

/* ============================ CASE / GALLERI ============================ */
.cases { background: var(--bg); }
.case + .case { margin-top: clamp(56px, 7vw, 88px); }
.case__liste { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(28px, 4vw, 44px); counter-reset: trin; }
.case__trin {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(20px, 3vw, 36px); align-items: center;
}
/* Lige trin spejlvendes: billedet til højre. Kolonnebredderne SKAL byttes med —
   ellers havner billedet i den smalle kolonne og bliver mindre end de øvrige. */
.case__trin:nth-child(even) { grid-template-columns: .75fr 1.25fr; }
.case__trin:nth-child(even) .case__media { order: 2; }
.case__media { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--bg-3); box-shadow: 0 22px 44px -30px rgba(30,27,21,.45); }
.case__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.case__tekst { display: flex; gap: 16px; align-items: flex-start; }
.case__nr {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--ink-onDark); font-family: var(--f-display);
  font-weight: 700; font-size: 17px; line-height: 1;
}
.case__tekst p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }

@media (max-width: 860px) {
  /* :nth-child(even) ovenfor har HØJERE specificitet end .case__trin alene —
     media query ændrer ikke specificitet, så begge selektorer skal nævnes her. */
  .case__trin, .case__trin:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .case__trin:nth-child(even) .case__media { order: 0; }
  .case__media img { aspect-ratio: 4/3; }
}

.xlinks { background: var(--bg-3); }
.xlinks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xlinks a {
  display: block; background: var(--bg-2); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 24px 22px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.xlinks a b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--forest); margin-bottom: 6px; }
.xlinks a span { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.xlinks a em { display: block; font-style: normal; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--accent-deep); }
@media (hover: hover) { .xlinks a:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -26px rgba(30,27,21,.4); border-color: rgba(201,134,60,.42); } }

/* nav-dropdown til ydelser */
.nav__group { position: relative; }
.nav__group > a::after { content: "⌄"; margin-left: 5px; font-size: 12px; opacity: .6; }
.nav__drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 232px; z-index: 5;
  background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 16px; padding: 8px;
  box-shadow: 0 22px 44px -22px rgba(30,27,21,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.nav__group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav__group:hover .nav__drop, .nav__group:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav__drop a:hover { background: var(--accent-soft); color: var(--forest); }
.mm__sub { padding-left: 18px !important; font-size: 17px !important; opacity: .82; }

@media (max-width: 980px) {
  .svc__grid { grid-template-columns: 1fr; }
  .svc__side { position: static; }
  .xlinks__grid { grid-template-columns: 1fr; }
}

.arb-mere { margin: 26px 0 0; }
