@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --sand: #efe8dc;
  --sand-2: #e4d9c6;
  --papir: #faf6ef;
  --skifer: #1f2f4a;
  --skifer-2: #3d4f6e;
  --dempet: #66718a;
  --okker: #c98a2c;
  --okker-mork: #8f5d12;
  --linje: #d6cab4;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --maks: 68rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--skifer); font: 400 1.09rem/1.7 var(--serif); }
svg { max-width: 100%; }
a { color: var(--skifer); text-decoration-color: var(--okker); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--okker-mork); }
:focus-visible { outline: 3px solid var(--okker); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
.ramme { width: min(100% - 2rem, var(--maks)); margin-inline: auto; }
.spring { position: absolute; left: -9999px; }
.spring:focus { left: 1rem; top: 1rem; background: var(--skifer); color: var(--sand); padding: .5rem 1rem; z-index: 10; }

.top { border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: 1rem 0; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--skifer); font: 800 1.3rem/1 var(--sans); letter-spacing: -0.02em; }
.logo svg { width: 2rem; height: 2rem; color: var(--skifer); }
.menu { display: flex; gap: .3rem 1.4rem; flex-wrap: wrap; font-family: var(--sans); }
.menu a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: .3rem 0; }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--okker); }

.helt { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.helt h1 { max-width: 15ch; }
.maerke { font: 700 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--okker-mork); display: block; margin-bottom: 1rem; }
.indledning { font-size: 1.24rem; max-width: 40rem; color: var(--skifer-2); }
.knapper { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.knap { display: inline-block; font: 700 1rem/1 var(--sans); padding: 1rem 1.35rem; background: var(--skifer); color: var(--sand); text-decoration: none; border: 2px solid var(--skifer); border-radius: 6px; }
.knap:hover { background: var(--okker); border-color: var(--okker); color: var(--skifer); }
.knap-lys { background: transparent; color: var(--skifer); }
.tidslinje { display: block; width: 100%; height: auto; margin-top: clamp(1.5rem, 4vw, 3rem); }
.tidslinje text { font: 600 15px var(--sans); fill: var(--skifer-2); }

.sektion { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.sektion-lys { background: var(--papir); border-block: 1px solid var(--linje); }
.lag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--linje); border-radius: 10px; overflow: hidden; background: var(--papir); }
.lag > div { padding: 1.5rem; border-right: 1px solid var(--linje); }
.lag > div:last-child { border-right: 0; }
.lag-nr { font: 800 2.6rem/1 var(--sans); color: var(--okker); display: block; margin-bottom: .5rem; }
.lag h3 { margin-top: 0; }
.lag p:last-child { margin-bottom: 0; }
.to { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.to h2 { margin-top: 0; }

.tekstside { padding: clamp(2.2rem, 5vw, 3.8rem) 0 clamp(3rem, 6vw, 5rem); }
.side-top { max-width: 46rem; margin-bottom: 1.8rem; }
.artikel { max-width: 44rem; }
.artikel ul, .artikel ol { padding-left: 1.25rem; }
.artikel li { margin-bottom: .5rem; }
.bemaerk { background: var(--papir); border: 1px solid var(--linje); border-left: 5px solid var(--okker); padding: 1.1rem 1.3rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
.bemaerk p:last-child { margin-bottom: 0; }
.tabel-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--linje); border-radius: 10px; background: var(--papir); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: .75rem .95rem; border-bottom: 1px solid var(--linje); vertical-align: top; }
th { font: 700 .92rem/1.3 var(--sans); background: var(--sand-2); white-space: nowrap; }
td:first-child { font-family: var(--sans); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.tjekpunkter { list-style: none; padding: 0; margin: 1.2rem 0; counter-reset: c; }
.tjekpunkter li { counter-increment: c; display: grid; grid-template-columns: 2.8rem 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--linje); }
.tjekpunkter li::before { content: counter(c); font: 800 1.6rem/1.1 var(--sans); color: var(--okker); }
.tjekpunkter b { font-family: var(--sans); display: block; margin-bottom: .2rem; }

/* Omkostningsberegner */
.regner { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); margin: 1.6rem 0 2.4rem; align-items: start; }
.inputs { background: var(--papir); border: 1px solid var(--linje); border-radius: 10px; padding: 1.3rem; display: grid; gap: .9rem; font-family: var(--sans); }
.inputs label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.inputs .rk { display: flex; border: 1px solid var(--linje); border-radius: 6px; background: #fff; overflow: hidden; }
.inputs input { flex: 1; min-width: 0; font: 600 1rem/1 var(--sans); padding: .65rem .7rem; border: 0; color: var(--skifer); background: transparent; }
.inputs input:focus { outline: none; }
.inputs .rk:focus-within { outline: 3px solid var(--okker); outline-offset: 1px; }
.inputs .enh { padding: 0 .75rem; display: flex; align-items: center; background: var(--sand); color: var(--dempet); font-size: .9rem; border-left: 1px solid var(--linje); }
.inputs .par { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.graf-boks { background: var(--skifer); color: var(--sand); border-radius: 10px; padding: 1.4rem; }
.graf-boks h2 { color: var(--sand); margin: 0 0 .8rem; font-size: 1.3rem; }
.tal-raekke { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; font-family: var(--sans); }
.tal-raekke span { display: block; font-size: .82rem; color: #b7c1d4; text-transform: uppercase; letter-spacing: .06em; }
.tal-raekke b { display: block; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-variant-numeric: tabular-nums; }
.tal-raekke .a b { color: #f0c27a; }
.tal-raekke .b b { color: #9fb6dc; }
.tal-raekke .d b { color: #fff; }
.graf { display: block; width: 100%; height: auto; }
.graf text { font: 500 12px var(--sans); fill: #b7c1d4; }
.forklar { font: 400 .95rem/1.5 var(--sans); color: #d6dceb; margin: .8rem 0 0; }

.bund { background: var(--skifer); color: var(--sand); padding: 2.6rem 0; font-family: var(--sans); }
.bund-ind { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.bund-navn { font-weight: 800; font-size: 1.25rem; margin-bottom: .6rem; }
.bund-tekst { max-width: 32rem; color: #b7c1d4; font-size: .95rem; }
.bund nav { display: flex; flex-direction: column; gap: .35rem; }
.bund a { color: var(--sand); }
.bund a:hover { color: #f0c27a; }

@media (max-width: 860px) {
  .lag, .to, .regner { grid-template-columns: minmax(0, 1fr); }
  .lag > div { border-right: 0; border-bottom: 1px solid var(--linje); }
  .lag > div:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .tal-raekke { grid-template-columns: 1fr 1fr; }
  .tal-raekke .d { grid-column: 1 / -1; }
  td:first-child { white-space: normal; }
}
.uden-top { margin-top: 0; }
.indledning.lille { font-size: 1.1rem; }
.tidslinje-tekst { position: relative; display: flex; justify-content: space-between; font: 600 .9rem/1.2 var(--sans); color: var(--skifer-2); margin-top: .5rem; padding: 0 2% 0 6%; }
.tidslinje-tekst .midt { position: absolute; left: 61.1%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 480px) { .tidslinje-tekst { font-size: .8rem; padding: 0; } .tidslinje-tekst span:last-child { visibility: hidden; } }
.regner > *, .graf-boks { min-width: 0; }
.inputs { grid-template-columns: minmax(0, 1fr); }
.inputs .par { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inputs input { width: 100%; }
