/* reel.dk - malet væg med installationsmoduler. Én skrift (Schibsted Grotesk), plader på væggen, glimlampe-orange kun til handling. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --vaeg: #2c5246;          /* den malede væg i hero (samme tone som fotoet) */
  --vaeg-dyb: #1e3d33;      /* mørk væg: afslutning og logo */
  --vaeg-lys: #e8ede9;      /* lys væg til læsesektioner */
  --plade: #f5f6f4;         /* hvide plader */
  --plade-2: #ecede7;       /* nedtrykt del af en plade */
  --plade-kant: #d6d9d1;
  --blaek: #13201a;
  --blaek-2: #3b4a42;
  --lys: #f5f6f4;          /* tekst på den mørke væg */
  --lys-2: #c8d8d1;
  --glim: #ff6a1a;          /* glimlampe: handling, aktiv afbryder, fokus */
  --glim-moerk: #e2560c;
  --fejl: #a3260f;
  /* taste-skill-ignore: pladerne sidder på væggen (retningens materiale, impeccable har forrang) */
  --skygge: 0 1px 1px rgb(19 32 26 / 0.10), 0 6px 18px -6px rgb(19 32 26 / 0.28);
  --r: 14px;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --kant: clamp(16px, 4vw, 40px);
  --maks: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--plade); color: var(--blaek); font: 400 1.0625rem/1.55 var(--font); }
[hidden] { display: none !important; }
input, .estimat-tal, .kontakter-5 { font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--glim); }
::selection { background: var(--glim); color: var(--blaek); }
:focus-visible { outline: 3px solid var(--glim); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p, ul, ol, dl { margin: 0; }
p + p { margin-top: 1em; }

.wrap { width: 100%; max-width: var(--maks); margin: 0 auto; padding: 0 var(--kant); }
.wrap.smal { max-width: calc(760px + 2 * var(--kant)); }
.spring { position: absolute; left: -9999px; top: 8px; background: var(--plade); padding: 8px 14px; z-index: 10; border-radius: 8px; }
.spring:focus { left: 8px; }

/* ---------- Top ---------- */
.top { background: var(--vaeg); position: relative; z-index: 2; }
.side .top, .side-tilbagekald .top { background: var(--vaeg-lys); }
@media (min-width: 960px) {
  .side-forside .top { position: absolute; left: 0; right: 0; top: 0; background: transparent; }
  .side-forside .hero-indhold { padding-top: calc(76px + clamp(24px, 5vh, 64px)) !important; }
  .side-forside .hero { min-height: min(900px, 100svh); }
}
.top-indre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-tegn { width: 40px; height: 40px; }
.logo-ord { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.top nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.top nav a { text-decoration: none; font-weight: 600; }
@media (max-width: 479px) { .nav-skjul { display: none; } .logo-ord { font-size: 1.5rem; } }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--glim); text-decoration-thickness: 3px; }

/* ---------- Knapper ---------- */
.knap { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font: 700 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform 0.12s ease-out, background-color 0.15s ease-out; }
.knap:active { transform: translateY(1px) scale(0.985); }
.knap-primaer { background: var(--glim); color: var(--blaek); }
.knap-primaer:hover { background: var(--glim-moerk); text-decoration: none; }
.knap-tilbage { background: var(--plade-2); color: var(--blaek); }
.knap-tilbage:hover { background: var(--plade-kant); }
.knap-lille { min-height: 42px; padding: 0 18px; font-size: 1rem; }
.knap[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Hero: væggen med stikkontakten, formularen som et modul ved siden af ---------- */
.hero { position: relative; background: var(--vaeg); overflow: hidden; }
.hero-vaeg { display: none; }
.hero-indhold { position: relative; display: grid; gap: 28px; padding-top: 12px; padding-bottom: 56px; }
.hero h1 .linje { white-space: nowrap; }
.hero h1 { font-size: clamp(3rem, 13vw, 6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.92; }
.ingress { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.45; max-width: 34ch; margin-top: 20px; }
.hero, .side-forside .top { color: var(--lys); }
.hero .ingress { color: var(--lys); }
.hero .fakta { color: var(--lys-2); }
.hero .fakta strong { color: var(--lys); }
.side-forside .top .knap-primaer { color: var(--blaek); }
.fakta { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 6px; font-size: 1rem; }
.fakta strong { font-weight: 700; }

@media (min-width: 960px) {
  .hero { min-height: min(900px, calc(100svh - 76px)); }
  .hero-vaeg { display: block; position: absolute; inset: 0; }
  .hero-foto { height: 100%; }
  .hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
  .hero-indhold { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(24px, 5vh, 64px); padding-bottom: 72px; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.75rem); }
}

/* ---------- Plader og formular ---------- */
.plade { color: var(--blaek); background: var(--plade); border-radius: var(--r); box-shadow: var(--skygge); }
.formular { position: relative; padding: clamp(20px, 3vw, 36px); padding-top: 22px; }
.ledning { position: relative; height: 22px; margin: 0 4px 16px; display: flex; justify-content: space-between; align-items: center; }
.ledning::before, .ledning-fyld { content: ""; position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--plade-2); right: 0; }
.ledning-fyld { right: auto; width: 0; background: var(--glim); transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.stik { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--plade-2); border: 4px solid var(--plade); box-shadow: 0 0 0 2px var(--plade-kant); transition: background-color 0.2s; }
.stik.taendt { background: var(--glim); box-shadow: 0 0 0 2px var(--glim); }
.trin-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: skjult status til skærmlæsere */

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.trin { display: grid; gap: 20px; }
.trin:not(.aktiv) { display: none; }
legend { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; padding: 0; margin-bottom: 20px; float: left; width: 100%; }
legend + * { clear: both; }
.felt { display: grid; gap: 6px; }
.felt-kort { max-width: 220px; }
.felt-par { display: grid; gap: 20px; }
@media (min-width: 560px) { .felt-par { grid-template-columns: 1fr 1fr; } }
.felt label, .felt-l { font-weight: 650; font-size: 1rem; }
input[type="text"], input:not([type]), input[type="tel"], input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 500 1.125rem/1.2 var(--font); color: var(--blaek);
  background: #fff; border: 2px solid var(--plade-kant); border-radius: 10px; transition: border-color 0.15s;
}
input:hover { border-color: #b9beb4; }
input:focus { outline: none; border-color: var(--blaek); box-shadow: 0 0 0 3px rgb(255 106 26 / 0.45); }
input[aria-invalid="true"] { border-color: var(--fejl); }
.med-enhed { position: relative; max-width: 240px; }
.med-enhed input { padding-right: 58px; }
.enhed { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--blaek-2); pointer-events: none; }
.hjaelp { font-size: 0.9375rem; color: var(--blaek-2); }
.fejl { font-size: 0.9375rem; color: var(--fejl); font-weight: 600; min-height: 0; }
.fejl:empty { display: none; }

/* Vippeafbrydere: valg tegnet som afbryder-moduler i en ramme */
.kontakter { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kontakter-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 560px) { .kontakter-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kontakter-2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .kontakter-2 { grid-template-columns: 1fr 1fr; } }
.kontakt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 92px; padding: 12px 6px; background: var(--plade-2); border: 2px solid transparent; border-radius: 12px; cursor: pointer; text-align: center; transition: border-color 0.15s, background-color 0.15s; }
.kontakter-2 .kontakt { flex-direction: row; justify-content: flex-start; min-height: 64px; padding: 12px 16px; text-align: left; gap: 14px; }
.kontakter-5 .kontakt { min-height: 76px; }
.kontakt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vippe { position: relative; width: 34px; height: 34px; border-radius: 7px; background: var(--plade); box-shadow: inset 0 0 0 2px var(--plade-kant); flex: none; display: grid; place-items: center; }
.vippe::before { content: ""; width: 20px; height: 22px; border-radius: 4px; background: var(--plade-2); box-shadow: inset 0 -9px 0 #dcded7; transition: box-shadow 0.15s, transform 0.15s; }
.lampe { position: absolute; left: 50%; bottom: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #c2c6bd; transition: background-color 0.15s, box-shadow 0.15s; }
.kontakt-tekst { font-weight: 650; font-size: 1rem; line-height: 1.2; }
.kontakter-5 .kontakt-tekst { font-size: 1.25rem; font-weight: 750; }
.kontakt:hover { border-color: var(--plade-kant); }
.kontakt:has(input:checked) { border-color: var(--blaek); background: var(--plade); }
.kontakt:has(input:checked) .vippe { box-shadow: inset 0 0 0 2px var(--blaek); }
.kontakt:has(input:checked) .vippe::before { box-shadow: inset 0 9px 0 #dcded7; }
.kontakt:has(input:checked) .lampe { background: var(--glim); box-shadow: 0 0 0 3px rgb(255 106 26 / 0.3), 0 0 8px 2px rgb(255 106 26 / 0.45); }
.kontakt:has(input:focus-visible) { outline: 3px solid var(--glim); outline-offset: 2px; }
.kontakt.ugyldig { border-color: var(--fejl); }

.flueben { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 1rem; }
.flueben input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--glim); cursor: pointer; }
.samtykke { font-size: 0.9375rem; line-height: 1.5; background: var(--plade-2); padding: 14px 16px; border-radius: 10px; }
.samtykke.ugyldig { box-shadow: inset 0 0 0 2px var(--fejl); }
.estimat { display: grid; gap: 14px; padding: 16px; background: var(--plade-2); border-radius: 10px; }
.estimat[hidden] { display: none; }
.estimat-tal { font-size: 1rem; }
.estimat-tal strong { font-size: 1.375rem; font-weight: 800; }
.estimat-tal:empty { display: none; }
.skjult-felt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot, ikke en linje */

.turnstile { max-width: 100%; min-height: 65px; }
@media (max-width: 339px) { .turnstile { min-height: 140px; } }
#estimat-endeligt:empty { display: none; }
@media (max-width: 359px) { .formular { padding-left: 14px; padding-right: 14px; } .samtykke { padding: 12px; } }
.knapper { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }
.knapper .knap-primaer { flex: 1 1 auto; max-width: 320px; }
@media (max-width: 559px) { .knapper .knap-primaer { max-width: none; } }
.formular-fod { margin-top: 18px; font-size: 0.9375rem; color: var(--blaek-2); }
.fejl.synlig { display: block; margin-top: 16px; }
.kvittering { margin-top: 8px; }
.kvittering h2 { font-size: 1.5rem; margin-bottom: 8px; }
.lille-formular { display: grid; gap: 18px; margin-bottom: 28px; }
.lille-formular .knapper { margin-top: 0; justify-content: flex-start; }

/* ---------- Sektioner ---------- */
.sektion { padding: clamp(72px, 11vw, 160px) 0; }
.sektion.lys { background: var(--vaeg-lys); }
.sektion.vaeg { background: var(--vaeg); color: var(--lys); }
.sektion.vaeg .tjek dd { color: var(--lys-2) !important; }
.sektion h2 { font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 24px; }
.maal { max-width: 60ch; font-size: 1.125rem; margin-bottom: 40px; }
.tekst p { max-width: 58ch; }
.to-spalter { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .to-spalter { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); }
  .to-spalter.omvendt { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.pil { font-weight: 700; }
.afslut { margin-top: 48px; }

/* Elregningen */
.regning { padding: clamp(20px, 3vw, 36px); display: grid; gap: 28px; }
.regning h3 { font-size: 1.25rem; font-weight: 750; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.regning h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--glim); flex: none; }
.regning-fast h3::before { background: var(--plade-kant); }
.regning dl { display: grid; gap: 4px; }
.regning dl > div { display: grid; grid-template-columns: minmax(120px, 0.8fr) 1.6fr; gap: 16px; padding: 12px 14px; background: var(--plade-2); border-radius: 8px; }
.regning-fast dl > div { background: transparent; color: var(--blaek-2); }
.regning dt { font-weight: 700; color: var(--blaek); }
.regning dd { margin: 0; }
@media (max-width: 479px) { .regning dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* Tabel: én linje pr. celle på mobil, scroll i rammen, fast første kolonne; lange tekster må ombryde */
.tabel-wrap { overflow-x: auto; border-radius: var(--r); background: var(--plade); box-shadow: var(--skygge); -webkit-overflow-scrolling: touch; }
.tabel { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; font-size: 1rem; }
.tabel th, .tabel td { text-align: left; vertical-align: top; padding: 18px 20px; }
.tabel thead th { font-size: 0.9375rem; color: var(--blaek-2); font-weight: 650; background: var(--plade-2); }
.tabel tbody th { font-size: 1.125rem; font-weight: 800; white-space: nowrap; position: sticky; left: 0; background: var(--plade); }
.tabel thead th:first-child { position: sticky; left: 0; z-index: 1; }
.tabel tbody tr:nth-child(even) td, .tabel tbody tr:nth-child(even) th { background: #f0f1ec; }
.tabel td { min-width: 220px; }
.tabel-blok { margin: 32px 0 8px; }

@media (max-width: 899px) {
  .tabel { min-width: 760px; }
  .tabel th, .tabel td { padding: 14px 16px; }
  .tabel tbody th { white-space: normal; max-width: 45vw; min-width: 120px; font-size: 1rem; }
  .tabel td { min-width: 0; white-space: nowrap; }
}
.artikel .tabel-blok { width: min(var(--maks), 100vw - 2 * var(--kant)); margin-left: 50%; transform: translateX(-50%); }

/* Tjekliste */
.tjek { display: grid; gap: 22px; }
.tjek dt { font-size: 1.25rem; font-weight: 750; margin-bottom: 4px; }
.tjek dd { margin: 0; max-width: 58ch; }
.sektion.vaeg .tjek dd { color: var(--blaek); }
.foto img { width: 100%; border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; }

/* Forløb: tre moduler forbundet af ledningen */
.forloeb { list-style: none; padding: 0; display: grid; gap: 28px; position: relative; }
.forloeb::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 6px; border-radius: 3px; background: var(--plade-kant); }
.forloeb li { position: relative; padding-left: 64px; max-width: 46ch; }
.forloeb li::before { content: ""; position: absolute; left: 6px; top: 2px; width: 36px; height: 36px; border-radius: 9px; background: var(--plade); box-shadow: var(--skygge), inset 0 0 0 2px var(--plade-kant); }
.forloeb li::after { content: ""; position: absolute; left: 21px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--glim); }
@media (min-width: 900px) {
  .forloeb { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .forloeb::before { left: 24px; right: 24px; top: 21px; bottom: auto; width: auto; height: 6px; }
  .forloeb li { padding: 64px 0 0; }
  .forloeb li::before { left: 0; top: 0; width: 48px; height: 48px; }
  .forloeb li::after { left: 21px; top: 21px; }
}
.forloeb h3 { font-size: 1.5rem; font-weight: 750; margin-bottom: 10px; }

/* Undersider */
.side-top { background: var(--vaeg-lys); padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.side-top h1 { overflow-wrap: break-word; hyphens: auto; font-size: clamp(2.25rem, 8vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.side-top .ingress { max-width: 46ch; }
.bred-foto img { width: 100%; max-height: 640px; object-fit: cover; }
.artikel h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: 56px 0 16px; }
.artikel h2:first-child { margin-top: 0; }
.artikel p { max-width: 68ch; }
.artikel .regning { margin-top: 28px; }
.tom-liste { padding: 28px; margin-bottom: 8px; background: var(--vaeg-dyb); color: var(--plade); }
.tom-liste h2 { margin: 0 0 10px; color: var(--plade); }
.tak .ingress { max-width: 44ch; }

/* ---------- Bund ---------- */
.bund { background: var(--vaeg-dyb); color: var(--plade); padding: 64px 0 40px; overflow: hidden; }
.bund a { color: var(--plade); }
.bund-ord { font-size: clamp(7rem, 30vw, 22rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.8; margin: 0 0 40px -0.04em; color: #5f8c79; }
.bund-spalter { display: grid; gap: 28px; font-size: 1rem; }
@media (min-width: 800px) { .bund-spalter { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.bund ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.bund ul a { display: inline-flex; align-items: center; min-height: 32px; }
.kilde { margin-top: 32px; font-size: 0.875rem; color: #c9d4cd; max-width: 80ch; }

/* Indgangsbevægelse: kun ved valg af trin, aldrig skjult indhold ved load */
@media (prefers-reduced-motion: no-preference) {
  .trin.aktiv.flyttet { animation: ind 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
  @keyframes ind { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 959px) { .hero .formular-fod { display: none; } }
