/* moneto.nu - "Skärgård": kølig tågegrå baggrund, granskovsgrøn accent og tyttebærrød som anden farve, centreret og luftigt */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f4f1;
  --ink: #1b2420;
  --ink-2: #3d4943;
  --daempet: #56625b;
  --linje: #d3dad4;
  --flade: #e4eae5;
  --accent: #2f5d4a;
  --paa-accent: #ffffff;
  --illu-b: #9fb8aa;
  --illu-c: #b8323f;
  --vt-res: #ffffff;
  --h-vaegt: 800;
  --radius: 4px;
  --radius-knap: 4px;
  --bar-2: #9fb8aa;
  --fod-bg: #1b2420;
  --accent-moerk: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-tekst: var(--accent);
  --link: var(--accent-tekst);
  --fokus: var(--accent);
  --fokus-blod: color-mix(in srgb, var(--accent) 28%, transparent);
  --vt-bg: var(--flade);
  --vt-ink: var(--ink);
  --vt-linje: var(--linje);
  --vt-input: var(--bg);
  --vt-daempet: var(--daempet);
  --minus: #b3261e;
  --bar-1: var(--accent);
  --fod-ink: var(--bg);
  --illu-flade: var(--bg);
  --illu-skygge: rgba(0, 0, 0, .08);
  --illu-glas: rgba(255, 255, 255, .45);
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --tekst: Literata, Georgia, serif;
  --tal: "Schibsted Grotesk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--tekst);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-kerning: normal;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); font-weight: var(--h-vaegt, 700); letter-spacing: -.015em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); font-weight: var(--h-vaegt, 700); letter-spacing: -.01em; margin-top: 1.6em; }
h3 { font-size: 1.22rem; font-weight: 650; margin-top: 1.2em; font-family: var(--tekst); }
p, ul, ol, dl, table { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
li::marker { color: var(--accent); }
strong { font-weight: 650; }

.ramme { width: min(1120px, 100% - 32px); margin-inline: auto; }
.spring { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 10; }
.spring:focus { left: 16px; }

/* Sidehoved */
.top-ind { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding: 16px 0; }
.ordmaerke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .005em; }
.maerke { width: 32px; height: 32px; flex: none; }
.m-flade { fill: var(--accent); }
.m-streg { fill: none; stroke: var(--paa-accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .98rem; }
.menu a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: currentColor; }
.menu a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Forside */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 72px); }
.hero-ind { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 32px 56px; align-items: center; }
.hero-illu .illu { width: 100%; max-width: 380px; margin-inline: auto; }
.overline { font-family: var(--tal); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--daempet); margin-bottom: 14px; }
.lead { font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); line-height: 1.55; max-width: 36em; color: var(--ink-2); }
.knapper { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.knap { display: inline-block; background: var(--accent); color: var(--paa-accent); text-decoration: none; padding: 13px 22px; border-radius: var(--radius-knap, 6px); font-weight: 600; line-height: 1.2; }
.knap:hover { background: var(--accent-moerk); }
.knap-lys { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.knap-lys:hover { background: var(--flade); }

.sektion { padding: clamp(40px, 5vw, 72px) 0; }
.sektion > .ramme > h2:first-child { margin-top: 0; }
.sektion-tone { background: var(--flade); }
.sektion-intro { max-width: 40em; color: var(--ink-2); }
.kort-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.kort { display: flex; flex-direction: column; color: inherit; text-decoration: none; padding: 26px 24px 22px; border-radius: var(--radius, 10px); }
.kort h3 { margin-top: 0; font-family: var(--display); font-size: 1.4rem; font-weight: var(--h-vaegt, 700); }
.kort p { color: var(--ink-2); margin-bottom: 18px; }
.kort-nr { font-family: var(--tal); font-size: .85rem; color: var(--daempet); margin-bottom: 18px; letter-spacing: .08em; }
.kort-mere { margin-top: auto; font-weight: 600; color: var(--link); }
.kort:hover .kort-mere { text-decoration: underline; }
.to-spalter { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 64px; align-items: start; }
.trin { list-style: none; padding: 0; counter-reset: trin; margin: 0; }
.trin li { counter-increment: trin; display: grid; grid-template-columns: 2.6rem 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--linje); margin: 0; }
.trin li:last-child { border-bottom: 1px solid var(--linje); }
.trin li::before { content: counter(trin, decimal-leading-zero); font-family: var(--tal); color: var(--accent-tekst); font-weight: 600; padding-top: 2px; }

/* Undersider */
.side-top { padding: clamp(36px, 5vw, 72px) 0 12px; max-width: 46em; }
.indledning { font-size: clamp(1.1rem, 1rem + .45vw, 1.28rem); color: var(--ink-2); line-height: 1.55; }
.artikel { max-width: 44em; padding-bottom: 24px; }
.artikel h2:first-child { margin-top: .6em; }
.boks { background: var(--flade); border-radius: var(--radius, 10px); padding: 20px 24px; margin: 1.6em 0; }
.boks > :last-child { margin-bottom: 0; }
.boks h3 { margin-top: 0; }
.ordliste dt { font-weight: 650; margin-top: .9em; }
.ordliste dd { margin: .2em 0 0; color: var(--ink-2); }
.tekstside { padding-bottom: 56px; }

/* Værktøj */
.vaerktoej { margin: 24px 0 56px; padding: clamp(22px, 3.5vw, 40px); background: var(--vt-bg); color: var(--vt-ink); border-radius: var(--radius, 10px); }
.vaerktoej h2 { margin-top: 0; }
.vaerktoej > p { max-width: 40em; }
.vt-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 44px; margin-top: 22px; }
.vt-felter fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.vt-felter legend { font-weight: 650; padding: 0; margin-bottom: 8px; }
.felt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9.5rem); align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--vt-linje); }
.felt span { font-size: .98rem; }
.felt input, .felt select { width: 100%; font: inherit; font-family: var(--tal); font-variant-numeric: tabular-nums; text-align: right; padding: 8px 10px; border: 1.5px solid var(--vt-linje); border-radius: 6px; background: var(--vt-input); color: var(--vt-ink); min-height: 44px; }
.felt input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--fokus-blod); }
.valg { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 10px; }
.valg label { position: relative; }
.valg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.valg span { display: inline-block; min-width: 3rem; min-height: 44px; padding: 10px 14px; text-align: center; border: 1.5px solid var(--vt-linje); border-radius: 6px; font-family: var(--tal); line-height: 1.3; }
.valg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--paa-accent); font-weight: 600; }
.valg input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 2px; }
.vt-resultat { align-self: start; background: var(--vt-res); border-radius: calc(var(--radius, 10px) - 2px); padding: 22px 22px 14px; }
.vt-stort { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.vt-stort span { font-size: .95rem; color: var(--vt-daempet); }
.vt-stort output { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; font-weight: var(--h-vaegt, 700); }
.minus .vt-stort output { color: var(--minus); }
.bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--vt-linje); margin: 4px 0 16px; }
.bar span { display: block; height: 100%; transition: width .25s ease; }
.bar span:first-child { background: var(--bar-1); }
.bar span:nth-child(2) { background: var(--bar-2); }
.bar-forklaring { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; color: var(--vt-daempet); margin-top: -8px; }
.bar-forklaring i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.bar-forklaring .f1 { background: var(--bar-1); }
.bar-forklaring .f2 { background: var(--bar-2); }
.vt-tal { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 10px 16px; margin: 0 0 14px; }
.vt-tal div { min-width: 0; }
.vt-tal dt { font-size: .88rem; color: var(--vt-daempet); }
.vt-tal dd { margin: 0; font-family: var(--tal); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.08rem; }
.vt-resultat h3 { font-size: 1rem; margin: 14px 0 8px; }
.vt-note { font-size: .92rem; color: var(--vt-daempet); }
.vt-advarsel { color: var(--minus); font-weight: 600; font-size: .95rem; }
.tabel-wrap { overflow-x: auto; margin: 0 0 10px; }
.vt-tabel { width: 100%; border-collapse: collapse; font-family: var(--tal); font-variant-numeric: tabular-nums; font-size: .92rem; }
.vt-tabel th { text-align: right; font-family: var(--tekst); font-weight: 600; font-size: .85rem; color: var(--vt-daempet); padding: 6px 8px; border-bottom: 1px solid var(--vt-linje); white-space: nowrap; }
.vt-tabel td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--vt-linje); white-space: nowrap; }
.vt-tabel th:first-child, .vt-tabel td:first-child { text-align: left; }

/* Sidefod */
.bund { background: var(--fod-bg); color: var(--fod-ink); margin-top: 0; }
.bund-ind { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px 40px; flex-wrap: wrap; padding: 36px 0 44px; }
.bund-navn { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.bund-tekst { margin: 0; opacity: .8; font-size: .95rem; max-width: 30em; }
.bund nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .95rem; }
.bund a { color: inherit; }

/* Illustrationer */
.i-a { fill: var(--accent); }
.i-b { fill: var(--illu-b); }
.i-c { fill: var(--illu-c); }
.i-flade { fill: var(--illu-flade); }
.i-skygge { fill: var(--illu-skygge); }
.i-glas { fill: var(--illu-glas); stroke: var(--ink); stroke-width: 4; }
.i-glans { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .7; }
.i-streg { fill: none; stroke: var(--paa-accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.i-linjer path { stroke: rgba(0, 0, 0, .14); stroke-width: 2; }
.i-akse { stroke: var(--ink); stroke-width: 3; }
.i-kurve { fill: none; stroke: var(--ink); stroke-width: 4; stroke-dasharray: 2 11; stroke-linecap: round; }
.i-prik circle { fill: var(--illu-b); }

@media (max-width: 860px) {
  .hero-ind, .to-spalter, .vt-form { grid-template-columns: minmax(0, 1fr); }
  .hero-illu .illu { max-width: 260px; }
  .kort-gitter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .felt { grid-template-columns: minmax(0, 1fr) minmax(0, 8rem); }
  .menu { gap: 2px 16px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bar span { transition: none; }
}

/* Variant c: centreret - ordmærke over menuen, centreret forside, kort med tynd ramme */
.v-c .top-ind { flex-direction: column; justify-content: center; padding: 22px 0 10px; gap: 8px; }
.v-c .menu { justify-content: center; }
.v-c .top { border-bottom: 1px solid var(--linje); }
.v-c .hero-ind { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.v-c .hero-illu { order: -1; }
.v-c .hero-illu .illu { max-width: 220px; }
.v-c .hero h1 { max-width: 15em; margin-inline: auto; }
.v-c .lead { margin-inline: auto; }
.v-c .knapper { justify-content: center; }
.v-c .kort { box-shadow: inset 0 0 0 1px var(--linje); background: var(--bg); }
.v-c .kort:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.v-c .sektion > .ramme > h2:first-child, .v-c .sektion-intro { text-align: center; margin-inline: auto; }
.v-c .kort-nr { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--paa-accent); font-weight: 600; letter-spacing: 0; }

h1 { letter-spacing: -.03em; }
h3 { font-family: var(--display); }
.overline { font-family: var(--display); font-weight: 600; }
.indledning, .lead { font-style: italic; }
