/* lånhurtigt.dk - "tag en pause": sand, kul og terrakotta */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-grotesque-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --sand: #f2ebdf;
  --sand-2: #e8dcc8;
  --lys: #fbf8f2;
  --kul: #23201c;
  --kul-2: #3a352f;
  --daempet: #5c544a;
  --terra: #b2452b;
  --terra-dyb: #8d3320;
  --okker: #d9a75a;
  --salvie: #5f7353;
  --salvie-lys: #e3e8da;
  --linje: #d8ccb7;
  --display: "Bricolage", "Atkinson Hyperlegible Next", sans-serif;
  --tekst: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --rund: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--kul); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.62; }
::selection { background: var(--okker); color: var(--kul); }
img, svg { max-width: 100%; }
a { color: var(--terra-dyb); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--kul); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 3px; }
.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--kul); color: var(--lys); padding: .5rem .9rem; z-index: 10; }
.spring:focus { top: .75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.4vw, 4.8rem); margin: 0 0 1.1rem; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin: 2.2em 0 .55em; }
p { margin: 0 0 1em; }
.overlinje { font-weight: 700; font-size: .9rem; color: var(--terra); margin-bottom: .7rem; }
.indledning { font-size: clamp(1.12rem, 2.1vw, 1.3rem); line-height: 1.55; max-width: 42ch; }

/* Top */
.top { background: var(--kul); color: var(--lys); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.6rem; padding-block: .95rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .5rem; color: var(--lys); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.ordmaerke:hover { color: var(--lys); }
.maerke-ikon { width: 1.6rem; height: 1.6rem; color: var(--okker); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.menu a { color: #e4dccd; text-decoration: none; font-weight: 600; font-size: .97rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; border-bottom-color: #7c7366; }
.menu a[aria-current="page"] { color: var(--okker); border-bottom-color: var(--okker); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.knap { display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--terra); background: var(--terra); color: #fff; font: 700 1rem/1 var(--tekst); text-decoration: none; transition: background-color .15s ease-out, transform .15s ease-out; }
.knap:hover { background: var(--terra-dyb); border-color: var(--terra-dyb); color: #fff; }
.knap:active { transform: translateY(1px); }
.knap-lys { background: transparent; color: var(--kul); border-color: var(--kul); }
.knap-lys:hover { background: var(--kul); color: var(--lys); border-color: var(--kul); }

/* Helt */
.helt { background: var(--sand); }
.helt-ind { display: grid; gap: 2rem; padding-block: clamp(2.6rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); align-items: center; }
.helt-ur { justify-self: center; width: min(62vw, 15rem); }
.helt-ur svg { display: block; width: 100%; height: auto; }
.ur-ramme { fill: var(--kul); }
.ur-glas { fill: var(--lys); stroke: var(--kul); stroke-width: 5; }
.ur-sand { fill: var(--okker); }
.ur-straale { stroke: var(--okker); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 8; animation: rinde 1.6s linear infinite; }
@keyframes rinde { to { stroke-dashoffset: -28; } }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.5fr 1fr; } .helt-ur { width: 17rem; } }

/* Sektioner */
.sektion { padding-block: clamp(2rem, 5vw, 4rem); }
.tre-spor { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .tre-spor { grid-template-columns: repeat(3, 1fr); } }
.tre-spor article { background: var(--lys); border-radius: var(--rund); padding: 1.5rem 1.4rem 1.2rem; }
.tre-spor h2 { margin: .2rem 0 .6rem; font-size: 1.5rem; }
.spor-nr { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--terra); margin: 0; }
.sektion-moerk { background: var(--kul); color: #ece4d6; }
.sektion-moerk h2 { color: #fff; margin-top: .4em; }
.sektion-moerk a { color: var(--okker); }
.to-spalter { display: grid; gap: 1rem 4rem; }
@media (min-width: 860px) { .to-spalter { grid-template-columns: 1fr 1fr; } }
.tal-raekke { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.tal-raekke li { counter-increment: t; display: grid; grid-template-columns: 2.4rem 1fr; padding: .85rem 0; border-bottom: 1px solid #4a443c; color: #cfc6b6; }
.tal-raekke li::before { content: counter(t); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--okker); line-height: 1.1; }
.tal-raekke span { font-weight: 700; color: #fff; font-size: 1.1rem; }

/* Tekstsider */
.tekstside { padding-bottom: 4.5rem; }
.side-top { padding-block: clamp(2.3rem, 6vw, 4.2rem) 1.4rem; }
.artikel { max-width: 66ch; }
.artikel h2:first-child { margin-top: .8em; }
.punkter { padding-left: 1.3rem; } .punkter li { margin-bottom: .5rem; } .punkter li::marker { color: var(--terra); font-weight: 700; }
.faktaboks { display: grid; gap: .9rem; background: var(--kul); color: #ece4d6; border-radius: var(--rund); padding: 1.3rem 1.4rem; margin: 1rem 0 1.5rem; }
.faktaboks p { margin: 0; }
.faktaboks strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--okker); line-height: 1.1; }
.faktaboks-lys { background: var(--salvie-lys); color: var(--kul); }
.faktaboks-lys strong { font-size: 1.2rem; color: var(--salvie); }
.kilde-note { font-size: .95rem; color: var(--daempet); padding-top: 1rem; border-top: 1px solid var(--linje); margin-top: 2rem; }

/* Pausetest */
.test { display: grid; gap: .8rem; max-width: 46rem; }
.sp { margin: 0; border: 0; background: var(--lys); border-radius: var(--rund); padding: 1.1rem 1.2rem; transition: background-color .2s ease-out; }
.sp.besvaret { background: #f7f1e6; }
.sp legend { display: flex; gap: .7rem; padding: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4; float: left; width: 100%; margin-bottom: .8rem; }
.sp-nr { flex: none; display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sand-2); font-family: var(--display); font-size: .95rem; }
.sp.besvaret .sp-nr { background: var(--terra); color: #fff; }
.valg { clear: both; display: flex; gap: .6rem; padding-left: 2.5rem; }
.valg label { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .4rem 1.1rem; border: 1.5px solid var(--linje); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--lys); }
.valg label:has(input:checked) { border-color: var(--kul); background: var(--kul); color: var(--lys); }
.valg input { accent-color: var(--terra); margin: 0; }
.dom { max-width: 46rem; margin: 1.6rem 0 1rem; padding: 1.4rem 1.5rem; border-radius: var(--rund); background: var(--sand-2); }
.dom h2 { margin: .2rem 0 .5rem; font-size: 1.6rem; }
.dom p:last-child { margin-bottom: 0; }
.dom-status { font-weight: 700; font-size: .92rem; color: var(--daempet); margin-bottom: .2rem; }
.dom[data-niveau="stop"] { background: #f2d5c9; } .dom[data-niveau="stop"] h2 { color: var(--terra-dyb); }
.dom[data-niveau="vent"], .dom[data-niveau="undersoeg"] { background: #f1e1bd; }
.dom[data-niveau="ok"] { background: var(--salvie-lys); } .dom[data-niveau="ok"] h2 { color: var(--salvie); }

/* Alternativer */
.alt-liste { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: 1rem; counter-reset: a; max-width: 52rem; }
.alt-liste li { counter-increment: a; display: grid; grid-template-columns: 3rem 1fr; gap: 0 .8rem; background: var(--lys); border-radius: var(--rund); padding: 1.2rem 1.3rem 1rem; }
.alt-liste li::before { content: counter(a); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--terra); }
.alt-liste h2 { margin: 0 0 .35rem; font-size: 1.3rem; }
.alt-liste p { margin: 0; }

/* Bund */
.bund { background: var(--kul); color: #cfc6b6; padding-block: 2.4rem; font-size: .95rem; border-top: 1px solid #4a443c; }
.bund-ind { display: grid; gap: 1.2rem 3rem; }
@media (min-width: 800px) { .bund-ind { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.bund-navn { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .4rem; }
.bund-note { max-width: 46ch; margin: 0; }
.bund nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.bund a { color: #ece4d6; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
