@font-face {
  font-family: "DM Sans";
  src: url(../fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bund: #e8ebe2;
  --flade: #f7f8f3;
  --blaek: #1b221f;
  --daempet: #4b5650;
  --linje: #c9cfc3;
  --rust: #a8391b;
  --rust-moerk: #85290f;
  --mos: #3f5c47;
  --ravgul: #f3dfae;
  --ravgul-blaek: #3b2a05;
  --ravgul-kant: #c99a2e;
  --maal: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bund);
  color: var(--blaek);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 14;
}
::selection { background: var(--rust); color: #fff; }
img, svg { display: block; max-width: 100%; }

a { color: var(--rust); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--rust-moerk); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 3px; }

.spring { position: absolute; left: 1rem; top: -4rem; background: var(--blaek); color: #fff; padding: .6rem 1rem; z-index: 5; }
.spring:focus { top: 1rem; }

.ramme { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

h1, h2, h3 { font-weight: 760; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; font-variation-settings: "opsz" 40; margin: 0; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
strong { font-weight: 680; }

/* Top */
.top { border-bottom: 1px solid var(--linje); background: var(--bund); }
.top-ramme { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.ordmaerke { display: inline-flex; align-items: flex-end; gap: .35rem; color: var(--blaek); text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.045em; line-height: 1; font-variation-settings: "opsz" 40; }
.ordmaerke:hover { color: var(--blaek); }
.maerke { width: 2.1rem; height: auto; flex-shrink: 0; color: var(--blaek); }
.maerke.lille { width: 1.5rem; display: inline-block; vertical-align: -0.15em; margin-right: .4rem; }
.menu { display: flex; gap: .25rem; }
.menu a { color: var(--blaek); text-decoration: none; font-weight: 560; font-size: .97rem; padding: .45rem .7rem; border-radius: 999px; }
.menu a:hover { background: var(--flade); }
.menu a[aria-current="page"] { background: var(--blaek); color: var(--flade); }
.menu .kort { display: none; }

/* Forside */
.helt { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.helt .indledning { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; color: var(--daempet); max-width: 34ch; margin-top: 1.25rem; }
.helt h1 span { color: var(--rust); }
.cyklus-ramme { justify-self: center; width: min(100%, 26rem); }

.cyklus { width: 100%; height: auto; overflow: visible; }
.cyklus .ring { stroke: var(--blaek); stroke-width: 2; stroke-dasharray: 1.5 9; stroke-linecap: round; }
.cyklus .pil { fill: none; stroke: var(--rust); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cyklus .seg { stroke: var(--flade); }
.prik { fill: var(--rust); }
.cyklus .node-flade { fill: var(--flade); stroke: var(--blaek); stroke-width: 2; }
.cyklus .node-ikon { color: var(--blaek); fill: var(--blaek); }
.cyklus .node-voksen .node-flade { fill: var(--blaek); }
.cyklus .node-voksen .node-ikon { color: var(--flade); fill: var(--flade); }
.cyklus .node-voksen .node-ikon path { stroke: var(--flade); }
.cyklus .node-voksen .node-navn { fill: var(--flade); }
.cyklus .node-navn { font: 650 14px "DM Sans", sans-serif; fill: var(--blaek); letter-spacing: -0.01em; }
.cyklus .midt-stor { font: 760 21px "DM Sans", sans-serif; fill: var(--blaek); letter-spacing: -0.02em; }
.cyklus .midt-lille { font: 500 14.5px "DM Sans", sans-serif; fill: var(--daempet); }

.tre { border-top: 2px solid var(--blaek); padding-block: 0 clamp(2.5rem, 6vw, 4.5rem); }
.tre ol { list-style: none; margin: 0; padding: 0; }
.tre li { display: grid; gap: .5rem 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--linje); }
.tre h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tre p { margin: 0; color: var(--daempet); max-width: 52ch; }
.tre .videre { font-weight: 620; white-space: nowrap; align-self: end; }

/* Advarsel */
.advarsel { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; background: var(--ravgul); color: var(--ravgul-blaek); border: 1px solid var(--ravgul-kant); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); margin-block: 0 clamp(2.5rem, 6vw, 4.5rem); box-shadow: 0 10px 30px -18px rgba(59, 42, 5, .45); }
.advarsel h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: .6rem; }
.advarsel p { max-width: 62ch; }
.advarsel p:last-child { margin-bottom: 0; }
.advarsel a { color: var(--ravgul-blaek); font-weight: 650; }
.advarsel-ikon { width: 2.4rem; color: var(--ravgul-blaek); margin-top: .15rem; }

/* Artikelsider */
.artikel { padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.artikel-hoved { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.artikel-hoved h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); }
.artikel-hoved .indledning { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.5; color: var(--daempet); margin-top: 1.1rem; margin-bottom: 0; }
.tekst { max-width: var(--maal); }
.tekst h2 { margin: 2.6rem 0 .8rem; }
.tekst h2:first-child { margin-top: 0; }
.tekst h3 { margin: 1.8rem 0 .5rem; }
.tekst ul, .tekst ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.tekst li { margin-bottom: .45em; padding-left: .2rem; }
.tekst li::marker { color: var(--rust); font-weight: 700; }
.tekst .advarsel { margin-block: 2.2rem; }

.to-spalter { display: grid; gap: 2.5rem; }
.side-cyklus { width: min(100%, 22rem); }

/* Stadier på livscyklus-siden */
.tekst .stadier { list-style: none; padding: 0; margin: 0; counter-reset: stadie; }
.stadier > li { position: relative; padding: 0 0 2rem 3.4rem; margin: 0; }
.stadier > li::before { counter-increment: stadie; content: counter(stadie); position: absolute; left: 0; top: .1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--blaek); color: var(--flade); font-weight: 760; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.stadier > li::after { content: ""; position: absolute; left: 1.15rem; top: 2.8rem; bottom: .5rem; border-left: 2px dotted var(--linje); }
.stadier > li:last-child::after { display: none; }
.stadier h2 { margin: .2rem 0 .6rem; font-size: clamp(1.45rem, 3vw, 1.85rem); }

/* Fremgangsmåde */
.fremgang { counter-reset: trin; list-style: none; padding: 0 !important; }
.fremgang > li { counter-increment: trin; position: relative; padding: 1rem 0 1rem 2.6rem; border-top: 1px solid var(--linje); margin: 0 !important; }
.fremgang > li::before { content: counter(trin); position: absolute; left: 0; top: 1rem; font-weight: 800; color: var(--rust); font-size: 1.25rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.fremgang > li:last-child { border-bottom: 1px solid var(--linje); }

.naeste { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--blaek); max-width: var(--maal); }
.naeste a { font-weight: 680; font-size: 1.2rem; }

/* Tekstsider */
.tekstside { padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.tekstside h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 1.2rem; }
.tekstside .tekst h2 { font-size: 1.4rem; }
.knap { display: inline-block; background: var(--blaek); color: var(--flade); text-decoration: none; font-weight: 650; padding: .75rem 1.2rem; border-radius: 999px; }
.knap:hover { background: var(--rust); color: #fff; }

/* Bund */
.bund { background: var(--blaek); color: #d9ded6; padding-block: 2.25rem; }
.bund-ramme { display: grid; gap: .6rem; }
.bund-navn { font-weight: 760; font-size: 1.15rem; color: var(--flade); margin: 0; letter-spacing: -0.02em; }
.bund .maerke { color: var(--flade); }
.bund-note { margin: 0; font-size: .95rem; max-width: 52ch; }
.bund a { color: var(--flade); }

@media (max-width: 30rem) {
  .menu .lang { display: none; }
  .menu .kort { display: inline; }
  .top-ramme { flex-wrap: wrap; row-gap: .6rem; padding-block: .85rem .7rem; }
  .menu { width: 100%; margin-left: -.6rem; }
  .menu a { padding: .4rem .6rem; font-size: .95rem; }
  .ordmaerke { font-size: 1.25rem; }
  .maerke { width: 1.8rem; }
  .advarsel { grid-template-columns: 1fr; }
}
@media (min-width: 48rem) {
  .tre li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 8.5rem; align-items: baseline; }
  .tre .videre { justify-self: end; }
  .tre .videre { align-self: baseline; }
}
@media (min-width: 60rem) {
  .helt { grid-template-columns: 1.1fr .9fr; }
  .to-spalter { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; align-items: start; }
  .to-spalter .side-cyklus { position: sticky; top: 2rem; }
}
