@font-face { font-family: "Rokkitt"; src: url("/assets/fonts/rokkitt-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --nat: #14172b; --nat-2: #22264a; --papir: #f5f2ec; --flade: #fffdf8; --blaek: #181a2c; --blaek-2: #4b4e66; --linje: #dcd6ca;
  --koral: #ff5a3c; --koral-moerk: #c93a1f; --gul: #f4c34d; --mint: #7fc8b8; --lilla: #a99cf0;
  --display: "Rokkitt", Rockwell, "Roboto Slab", Georgia, serif;
  --tekst: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--blaek); font: 400 1.0625rem/1.65 var(--tekst); }
svg { max-width: 100%; }
a { color: var(--koral-moerk); text-underline-offset: .18em; }
a:hover { color: var(--blaek); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 .45em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); max-width: 15ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.ramme { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.spring { position: absolute; left: -999px; top: 0; background: var(--koral); color: #fff; padding: .6rem 1rem; z-index: 5; }
.spring:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gul); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: var(--nat); color: #e6e7f2; }
.top-ind { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: .95rem 0; flex-wrap: wrap; }
.ordmaerke { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font: 800 1.65rem/1 var(--display); }
.ordmaerke b { color: var(--koral); }
.ordmaerke svg { width: 34px; height: 28px; }
.ordmaerke .skaerm { fill: none; stroke: #fff; stroke-width: 2.4; }
.ordmaerke .fod { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ordmaerke .lys { fill: var(--koral); }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.menu a { color: #c5c7dc; text-decoration: none; font-weight: 500; font-size: .98rem; padding: .25rem 0; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--koral); }

.overline { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--koral-moerk); margin-bottom: .8rem; }
.indledning { font-size: 1.2rem; color: var(--blaek-2); max-width: 58ch; }
.lille { font-size: .9rem; color: var(--blaek-2); }
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.knap { display: inline-block; background: var(--koral); color: #fff; text-decoration: none; font-weight: 700; padding: .8rem 1.3rem; border-radius: 999px; border: 0; font-size: 1rem; font-family: var(--tekst); cursor: pointer; }
.knap:hover { background: var(--koral-moerk); color: #fff; }
.knap-lys { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.knap-lys:hover { background: var(--blaek); color: #fff; box-shadow: none; }
.pil { font-weight: 700; text-decoration: none; }
.pil::after { content: " \2192"; }

/* Forsiden */
.helt { background: var(--nat); color: #e6e7f2; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem); }
.helt h1 { color: #fff; }
.helt .overline { color: var(--gul); }
.helt .indledning { color: #c5c7dc; }
.helt .knap-lys { color: #fff; }
.helt .knap-lys:hover { background: #fff; color: var(--nat); }
.helt-ind { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.skema-fig { margin: 0; }
.skema { display: block; width: 100%; height: auto; }
.skema .tid { font: 600 18px var(--tekst); fill: #9ea1bd; }
.skema .gitter { stroke: #2f3357; stroke-width: 1; }
.skema .kanal { font: 600 18px var(--tekst); fill: #c5c7dc; }
.skema .genre { font: 800 21px var(--display); fill: var(--nat); }
.skema .blok-a { fill: var(--flade); } .skema .blok-b { fill: var(--koral); } .skema .blok-c { fill: var(--mint); } .skema .blok-d { fill: var(--gul); } .skema .blok-e { fill: var(--lilla); }
.skema .nu { stroke: #fff; stroke-width: 2; stroke-dasharray: 4 4; }
.skema .nu-t { font: 700 15px var(--tekst); fill: #fff; text-transform: uppercase; }

.sektion { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sektion + .sektion { border-top: 1px solid var(--linje); }
.sektion-moerk { background: var(--nat-2); color: #dfe0ee; border-top: 0 !important; }
.sektion-moerk h2 { color: #fff; }
.sektion-moerk strong { color: #fff; }
.to-spalter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
.spoergsmaal { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.spoergsmaal .nr { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--nat); color: var(--gul); font: 800 1.3rem/1 var(--display); margin-bottom: .9rem; }
.spoergsmaal p { color: var(--blaek-2); }
.genveje { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.genvej { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.5rem 1.6rem; background: var(--flade); border-radius: 10px; color: var(--blaek-2); text-decoration: none; box-shadow: 0 1px 0 var(--linje); }
.genvej-titel { font: 800 1.6rem/1.1 var(--display); color: var(--blaek); }
.genvej:hover { background: #fff; }
.genvej:hover .genvej-titel { color: var(--koral-moerk); }

/* Undersider */
.tekstside { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.side-top { max-width: 760px; margin-bottom: 2.5rem; }
.artikel { max-width: 720px; }
.artikel h2 { margin-top: 2.2rem; }
.artikel ul { padding-left: 1.2rem; }
.artikel li { margin-bottom: .55rem; }

.maader { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3rem; }
.maade { background: var(--flade); border-radius: 10px; padding: 1.5rem 1.6rem 1.2rem; box-shadow: 0 1px 0 var(--linje); }
.maade:last-child { grid-column: 1 / -1; background: var(--nat); color: #dfe0ee; }
.maade:last-child h2 { color: #fff; }
.maade:last-child .maade-nr { color: var(--gul); }
.maade-nr { font: 800 1rem/1 var(--display); color: var(--koral-moerk); margin-bottom: .6rem; }
.maade ul { padding-left: 1.1rem; margin: 0; }
.maade li { margin-bottom: .35rem; }

.tre-kort { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.tre-kort section { padding: 1.4rem 1.5rem; background: var(--flade); border-radius: 10px; box-shadow: 0 1px 0 var(--linje); }
.tre-kort section:nth-child(1) h2 { color: var(--koral-moerk); }
.tre-kort h2 { font-size: 1.55rem; }
.tre-kort p { margin: 0; color: var(--blaek-2); }

.budget { background: var(--flade); border-radius: 12px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 1px 0 var(--linje); margin-bottom: 2.5rem; max-width: 860px; }
.budget-hoved, .raekke { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .6rem; align-items: center; }
.budget-hoved { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blaek-2); margin-bottom: .4rem; }
.raekke { padding: .45rem 0; border-top: 1px solid var(--linje); }
.raekke input { width: 100%; font: 500 1rem/1.3 var(--tekst); padding: .6rem .7rem; border: 1px solid #c9c2b4; border-radius: 6px; background: #fff; color: var(--blaek); }
.raekke input:focus { border-color: var(--nat); outline: 2px solid var(--gul); outline-offset: 0; }
.fjern { background: none; border: 0; color: var(--blaek-2); font: 600 .9rem var(--tekst); cursor: pointer; text-decoration: underline; padding: .4rem; }
.fjern:hover { color: var(--koral-moerk); }
#tilfoej { margin: 1rem 0 1.5rem; color: var(--blaek); }
.resultat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linje); border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; }
.resultat div { background: var(--nat); color: #c5c7dc; padding: 1rem 1.2rem; }
.resultat span { display: block; font-size: .85rem; }
.resultat strong { font: 800 clamp(1.5rem, 3.5vw, 2.1rem)/1.1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.tabel { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tabel th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blaek-2); padding: .5rem .4rem; border-bottom: 1.5px solid var(--blaek); }
.tabel td { padding: .55rem .4rem; border-bottom: 1px solid var(--linje); font-variant-numeric: tabular-nums; }
.tabel th:not(:first-child), .tabel td:not(:first-child) { text-align: right; white-space: nowrap; }
.res-tekst { margin: 1rem 0 0; font-weight: 600; }

.ord-gruppe { margin-bottom: 2.5rem; }
.ord-gruppe h2 { padding-bottom: .4rem; border-bottom: 2px solid var(--blaek); }
.ordbog { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.ordbog div { padding: 1rem 0; border-bottom: 1px solid var(--linje); }
.ordbog dt { font: 800 1.3rem/1.15 var(--display); margin-bottom: .25rem; }
.ordbog dd { margin: 0; color: var(--blaek-2); }

.bund { background: var(--nat); color: #c5c7dc; padding: 2.5rem 0 3rem; }
.bund-ind { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.bund-navn { font: 800 1.4rem/1.2 var(--display); color: #fff; margin: 0; max-width: 48ch; }
.bund-navn span { display: block; font: 400 .9rem/1.55 var(--tekst); color: #9ea1bd; margin-top: .4rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-content: flex-start; }
.bund nav a { color: #e6e7f2; font-size: .95rem; }

@media (max-width: 880px) {
  .helt-ind, .to-spalter, .maader, .ordbog { grid-template-columns: 1fr; }
  .spoergsmaal, .genveje, .tre-kort { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .budget-hoved { display: none; }
  .raekke { grid-template-columns: 1fr 1fr; padding: .8rem 0; }
  .raekke label:first-child { grid-column: 1 / -1; }
  .raekke .fjern { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
  .raekke .sr { position: static; width: auto; height: auto; clip: auto; font-size: .8rem; color: var(--blaek-2); display: block; }
  .resultat { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .helt-ind > * { min-width: 0; }
  .skema-fig { overflow-x: auto; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: thin; }
  .skema { width: 640px; max-width: none; }
}
