/* billigste-lån.dk - "pristrappen": dyb petrol, kalkgrå og murstensrød */
@font-face { font-family: "Rokkitt"; src: url("/assets/fonts/rokkitt.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --kalk: #eef0ec;
  --kalk-2: #e1e5df;
  --hvid: #fbfcfa;
  --blaek: #132022;
  --daempet: #4d5a5b;
  --linje: #c9d0ca;
  --petrol: #0f4c4a;
  --petrol-2: #1a6a66;
  --petrol-lys: #d7e6e2;
  --sten: #b4432a;
  --sten-lys: #f4e2db;
  --display: "Rokkitt", Georgia, serif;
  --tekst: "Archivo", system-ui, sans-serif;
  --maal: 66ch;
  --rund: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--kalk); color: var(--blaek); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.62; }
::selection { background: var(--petrol); color: #fff; }
img, svg { max-width: 100%; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--sten); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sten); outline-offset: 3px; }
.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--petrol); color: #fff; padding: 0.5rem 0.9rem; font-weight: 700; z-index: 10; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.01em; text-wrap: balance; color: var(--petrol); }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.4rem; margin: 1.6em 0 0.3em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--sten); font-weight: 700; }
strong { font-weight: 650; }
.indledning { font-size: clamp(1.12rem, 2vw, 1.28rem); line-height: 1.55; max-width: 46ch; color: #263234; }

/* Top */
.top { background: var(--petrol); color: #fff; }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding-block: 0.85rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.ordmaerke:hover { color: #fff; }
.maerke { width: 1.6rem; height: 1.6rem; flex: none; color: #f0b7a5; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.menu a { color: #cfe2de; text-decoration: none; font-weight: 600; font-size: 0.97rem; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; border-bottom-color: #6fa6a0; }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: #f0b7a5; }
.top :focus-visible { outline-color: #f0b7a5; }

/* Forside */
.helt { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem); }
.helt-ind { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 54rem) { .helt-ind { grid-template-columns: 1fr 1.05fr; gap: 3rem; } }
.trappe-fig { margin: 0; }
.trappe { display: block; width: 100%; height: auto; }
.trappe .trin { stroke: var(--kalk); stroke-width: 3; }
.trappe .trin-0 { fill: #0f4c4a; }
.trappe .trin-1 { fill: #1a6a66; }
.trappe .trin-2 { fill: #5f8f84; }
.trappe .trin-3 { fill: #c27a5c; }
.trappe .trin-4 { fill: #b4432a; }
.trappe .trin-nr { font-family: var(--display); font-weight: 800; font-size: 24px; fill: #fff; }
.trappe .pil { fill: none; stroke: var(--daempet); stroke-width: 2; stroke-dasharray: 5 6; }
.trappe .pil-spids { fill: none; stroke: var(--daempet); stroke-width: 2; stroke-linejoin: round; }
.trappe .pil-tekst { font-family: var(--tekst); font-size: 19px; fill: var(--daempet); }
.trin-liste { margin: 0.8rem 0 0.4rem; padding-left: 1.4rem; font-size: 0.97rem; columns: 2 12rem; column-gap: 1.5rem; }
.trin-liste li { margin-bottom: 0.2rem; break-inside: avoid; }
.trappe-fig figcaption p { font-size: 0.9rem; color: var(--daempet); margin: 0.4rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .trappe .trin { transform-box: fill-box; transform-origin: bottom; animation: trin 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .trappe .trin-1 { animation-delay: 0.08s; } .trappe .trin-2 { animation-delay: 0.16s; } .trappe .trin-3 { animation-delay: 0.24s; } .trappe .trin-4 { animation-delay: 0.32s; }
  @keyframes trin { from { transform: scaleY(0.15); opacity: 0; } }
}

.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.knap { display: inline-block; background: var(--petrol); color: #fff; text-decoration: none; font-weight: 650; padding: 0.75rem 1.25rem; border-radius: var(--rund); border: 2px solid var(--petrol); }
.knap:hover { background: var(--blaek); border-color: var(--blaek); color: #fff; }
.knap-lys { background: transparent; color: var(--petrol); }
.knap-lys:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.sektion { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.sektion-moerk { background: var(--petrol); color: #dcebe8; }
.sektion-moerk h2, .sektion-moerk h3 { color: #fff; }
.sektion > .ramme > h2:first-child { margin-top: 0; }
.tre { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 48rem) { .tre { grid-template-columns: repeat(3, 1fr); } }
.tre li { margin: 0; }
.tre h3 { margin: 0 0 0.35rem; }
.tre p { margin: 0; }
.to-spalter { display: grid; gap: 1rem 3.5rem; }
@media (min-width: 52rem) { .to-spalter { grid-template-columns: 1fr 1fr; } }
.to-spalter h2 { margin-top: 0; }

.genveje { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .genveje { grid-template-columns: repeat(3, 1fr); } }
.genvej { display: block; text-decoration: none; color: var(--blaek); padding: 1.3rem 1.35rem 1.4rem; background: var(--hvid); border: 1px solid var(--linje); border-radius: var(--rund); transition: border-color 0.2s, box-shadow 0.2s; }
.genvej:hover { color: var(--blaek); border-color: var(--petrol-2); box-shadow: 0 8px 20px rgba(15, 76, 74, 0.1); }
.genvej-titel { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; color: var(--petrol); margin-bottom: 0.35rem; }
.genvej span:last-child { color: var(--daempet); }

/* Tekstsider */
.tekstside { padding-block: clamp(2.2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.side-top { max-width: 50rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 3px solid var(--petrol); }
.artikel { max-width: var(--maal); }
.artikel h2:first-child { margin-top: 1rem; }
.note { background: var(--hvid); border: 1px solid var(--linje); padding: 1rem 1.2rem; border-radius: var(--rund); margin: 1.5rem 0; }
.typer { margin-top: 1rem; }
.typer section { padding: 1.3rem 0; border-top: 1px solid var(--linje); max-width: var(--maal); }
.typer h2 { margin: 0 0 0.4rem; font-size: 1.85rem; }
.typer .fakta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.8rem; padding: 0; list-style: none; }
.typer .fakta li { margin: 0; font-size: 0.85rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--petrol-lys); color: var(--petrol); }
.typer .fakta li.dyr { background: var(--sten-lys); color: #8c3220; }
.sporg { counter-reset: s; list-style: none; padding: 0; }
.sporg li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; margin-bottom: 0.9rem; }
.sporg li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--sten); }

/* Løbetidsberegner */
.beregner { display: grid; gap: 1rem 1.5rem; margin: 1.5rem 0 1.2rem; padding: 1.3rem; background: var(--hvid); border: 1px solid var(--linje); border-radius: var(--rund); }
@media (min-width: 46rem) { .beregner { grid-template-columns: repeat(3, 1fr); } }
.beregner label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.beregner .input { display: flex; align-items: center; border: 1px solid #a9b4ad; border-radius: var(--rund); background: var(--kalk); }
.beregner .input:focus-within { outline: 3px solid var(--sten); outline-offset: 1px; }
.beregner input { width: 100%; min-width: 0; font: inherit; border: 0; background: transparent; padding: 0.6rem 0.2rem 0.6rem 0.7rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--blaek); }
.beregner input:focus { outline: none; }
.beregner .input span { padding-right: 0.7rem; color: var(--daempet); font-size: 0.92rem; }
.beregner p { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: var(--daempet); }
.tabel-wrap { position: relative; overflow-x: auto; border: 1px solid var(--linje); border-radius: var(--rund); background: var(--hvid); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--linje); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--kalk-2); font-weight: 650; font-size: 0.95rem; }
tr:last-child td { border-bottom: 0; }
td.bjaelke-celle { width: 30%; min-width: 7rem; }
.bjaelke { display: block; height: 0.65rem; background: var(--sten); border-radius: 1px; }
tr.kortest td { background: var(--petrol-lys); }
@media (max-width: 40rem) { th:first-child, td:first-child { position: sticky; left: 0; background: var(--hvid); } thead th:first-child { background: var(--kalk-2); } tr.kortest td:first-child { background: var(--petrol-lys); } }
.lille { font-size: 0.92rem; color: var(--daempet); }

/* Bund */
.bund { background: var(--blaek); color: #b9c6c4; padding-block: 2rem 2.5rem; font-size: 0.95rem; }
.bund-ind { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.bund-navn { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin: 0; color: #fff; }
.bund-navn span { font-family: var(--tekst); font-weight: 400; font-size: 0.95rem; color: #9fb0ae; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.bund a { color: #dbe5e3; }
.bund a:hover { color: #fff; }
.bund :focus-visible { outline-color: #f0b7a5; }
.visuelt-skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#opsummering + .artikel { margin-top: 2.5rem; }
