@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("/assets/fonts/spline-sans-mono.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f3f4ef;
  --bg-2: #e8eae2;
  --sort: #121417;
  --sort-2: #23272d;
  --graa: #565c64;
  --linje: #d3d6cc;
  --lime: #b8f02c;
  --blaa: #2443c9;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--sort); font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blaa); text-underline-offset: 3px; }
a:hover { color: var(--sort); }
:focus-visible { outline: 3px solid var(--blaa); outline-offset: 3px; }
.spring { position: absolute; left: -999px; top: 0; background: var(--sort); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.spring:focus { left: 1rem; }
.ramme { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .55em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 1.7em; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.etiket { font-family: var(--mono); font-size: .82rem; color: var(--graa); margin-bottom: .9rem; }
.indledning { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--sort-2); max-width: 38em; }
.fremhaev { background: var(--sort); color: var(--lime); padding: 0 .18em; font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; }

.top { border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; justify-content: space-between; align-items: center; gap: .8rem 2rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.logo { display: flex; align-items: baseline; gap: .15rem; text-decoration: none; color: var(--sort); font-family: var(--mono); font-weight: 600; font-size: 1.3rem; }
.logo-prikker { display: inline-flex; gap: 3px; }
.logo-prikker i { width: 6px; height: 6px; background: var(--sort); border-radius: 50%; animation: prik 1.4s infinite ease-in-out; }
.logo-prikker i:nth-child(2) { animation-delay: .2s; }
.logo-prikker i:nth-child(3) { animation-delay: .4s; }
@keyframes prik { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.menu { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .96rem; font-weight: 500; }
.menu a { color: var(--sort-2); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--sort); border-bottom-color: var(--sort); }

.helt { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.statuslinje { height: 14px; background: var(--bg-2); border-radius: 999px; overflow: hidden; max-width: 40rem; margin: 1.5rem 0 2rem; box-shadow: inset 0 0 0 1px var(--linje); }
.statuslinje span { display: block; height: 100%; width: 86%; background: var(--sort); border-radius: inherit; animation: fyld 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fyld { from { width: 4%; } to { width: 86%; } }
.statuslinje-lille { height: 8px; margin: 0 0 1rem; background: var(--sort-2); box-shadow: none; }
.statuslinje-lille span { background: var(--lime); animation: none; transition: width .4s ease; }

.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.knap { display: inline-block; background: var(--sort); color: var(--bg); font-weight: 700; text-decoration: none; padding: .75rem 1.3rem; border-radius: 8px; }
.knap:hover { background: var(--sort-2); color: var(--lime); }
.knap-hul { background: transparent; color: var(--sort); box-shadow: inset 0 0 0 1.5px var(--sort); }
.knap-hul:hover { background: var(--bg-2); color: var(--sort); }

.sektion { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--linje); }
.tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.flise { display: grid; align-content: start; gap: .45rem; padding: 1.5rem; background: #fff; border-radius: 10px; color: var(--sort); text-decoration: none; box-shadow: 0 0 0 1px var(--linje); transition: box-shadow .2s, transform .2s; }
.flise:hover { box-shadow: 0 0 0 2px var(--sort); transform: translateY(-2px); color: var(--sort); }
.flise-tal { font-family: var(--mono); font-size: .85rem; color: var(--graa); }
.flise-titel { font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.sektion-moerk { background: var(--sort); color: #dfe2da; border-top: 0; }
.sektion-moerk h2 { color: #fff; margin-top: 0; }
.to-spalter { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.regnestykke { font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.5rem); display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: 1.5rem; }
.regnestykke span:last-child { color: var(--lime); }
.punkter { padding-left: 1.3rem; }
.punkter li, .liste li { margin-bottom: .65rem; }
.punkter li::marker { font-family: var(--mono); font-weight: 600; }
.sektion-moerk .punkter li::marker { color: var(--lime); }
.liste { padding-left: 1.1rem; }

.tekstside { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.side-top { max-width: 46rem; margin-bottom: 2rem; }
.artikel { max-width: 42rem; }
.artikel h2:first-child { margin-top: 0; }

.vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.5rem 0 2.5rem; }
.vital { background: #fff; border-radius: 10px; padding: 1.4rem 1.4rem .6rem; box-shadow: 0 0 0 1px var(--linje); }
.vital-forkort { font-family: var(--mono); font-weight: 700; font-size: 2rem; line-height: 1; margin-bottom: .6rem; }
.vital h3 { margin-bottom: .3rem; }
.vital-graense { display: inline-block; font-family: var(--mono); font-size: .85rem; background: var(--sort); color: var(--lime); padding: .15rem .5rem; border-radius: 4px; }

.moenstre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1rem 0 2.5rem; }
.moenster { background: #fff; border-radius: 10px; padding: 1.4rem 1.4rem .6rem; box-shadow: 0 0 0 1px var(--linje); }
.moenster h2 { margin-top: 0; font-size: 1.35rem; }
.demo { height: 84px; background: var(--bg); border-radius: 8px; margin-bottom: 1.1rem; display: grid; place-items: center; }
.demo-spinner span { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--linje); border-top-color: var(--sort); animation: drej .9s linear infinite; }
@keyframes drej { to { transform: rotate(360deg); } }
.demo-linje span { width: 80%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--sort) 0 62%, var(--linje) 62% 100%); }
.demo-skelet { place-items: stretch; align-content: center; gap: 8px; padding: 0 1.1rem; }
.demo-skelet span { height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--linje) 0%, #eceee7 50%, var(--linje) 100%); background-size: 200% 100%; animation: glimt 1.6s ease-in-out infinite; }
.demo-skelet span:nth-child(1) { width: 55%; height: 14px; }
.demo-skelet span:nth-child(3) { width: 75%; }
@keyframes glimt { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.beregner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 3rem; max-width: 56rem; }
.felter { display: grid; gap: 1rem; align-content: start; }
.felt-par { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.felter label { display: grid; gap: .35rem; font-weight: 600; }
.beregner input, .beregner select { font: inherit; font-family: var(--mono); font-weight: 400; color: var(--sort); background: #fff; border: 1px solid #c3c7bb; border-radius: 8px; padding: .6rem .75rem; width: 100%; min-width: 0; }
.resultat { background: var(--sort); color: #dfe2da; border-radius: 12px; padding: 1.5rem 1.6rem 1rem; }
.resultat-etiket { font-family: var(--mono); font-size: .85rem; margin-bottom: .2rem; }
.resultat-tal { font-family: var(--mono); font-weight: 600; color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem; }
.resultat-note { font-size: .93rem; }

.tabel-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.tabel { border-collapse: collapse; width: 100%; font-size: .97rem; }
.tabel th, .tabel td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--linje); white-space: nowrap; }
.tabel thead th { font-family: var(--mono); font-weight: 400; font-size: .8rem; color: var(--graa); }
.tabel td, .tabel tbody th { font-family: var(--mono); font-weight: 400; }

.bund { background: var(--sort); color: #b7bcb3; font-size: .92rem; border-top: 1px solid #2b2f36; }
.bund-ind { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 2.2rem; padding-bottom: 2.2rem; }
.bund-navn { font-family: var(--mono); font-weight: 600; color: #fff; margin: 0; }
.bund-navn span { display: block; font-family: "Schibsted Grotesk", sans-serif; font-weight: 400; color: #b7bcb3; }
.bund nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.bund a { color: #b7bcb3; }
.bund-linje { height: 6px; background: var(--sort-2); }
.bund-linje span { display: block; height: 100%; width: 100%; background: var(--lime); }

@media (max-width: 860px) {
  .to-spalter, .beregner { grid-template-columns: 1fr; gap: 2rem; }
  .tre, .vitals, .moenstre { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flise:hover { transform: none; }
}
