/* billigsteboliglån.dk - "byggeplanen": kalkpuds, tegl og mørkt træ */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --kalk: #fbf6ee;
  --sand: #f1e4cf;
  --sand-2: #e3c9a3;
  --tegl: #b5482e;
  --tegl-moerk: #8f3420;
  --trae: #2b211c;
  --trae-2: #5a4a40;
  --salvie: #5f7a5b;
  --streg: #e2d3bd;
  --display: "Young Serif", Georgia, serif;
  --tekst: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--kalk); color: var(--trae); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.65; }
svg { max-width: 100%; }
a { color: var(--tegl-moerk); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--tegl); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ramme { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.spring { position: absolute; left: -9999px; top: 0; background: var(--trae); color: var(--kalk); padding: .6rem 1rem; z-index: 10; }
.spring:focus { left: 1rem; }

.top { background: var(--kalk); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--trae); font-family: var(--display); font-size: 1.25rem; }
.ordmaerke svg { width: 30px; height: 30px; color: var(--tegl); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: .4rem; }
.menu a { text-decoration: none; color: var(--trae); font-weight: 600; font-size: .95rem; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--streg); background: #fff; }
.menu a:hover { border-color: var(--tegl); }
.menu a[aria-current="page"] { background: var(--trae); border-color: var(--trae); color: var(--kalk); }

.helt { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.helt-ind { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 58rem) { .helt-ind { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; } }
.maerkat { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tegl-moerk); background: var(--sand); padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1.1rem; }
.indledning { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--trae-2); max-width: 38rem; }
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.knap { display: inline-block; background: var(--tegl); color: #fff; text-decoration: none; font-weight: 700; padding: .85rem 1.4rem; border-radius: var(--r); border: 2px solid var(--tegl); }
.knap:hover { background: var(--tegl-moerk); border-color: var(--tegl-moerk); }
.knap-lys { background: transparent; color: var(--trae); border-color: var(--trae); }
.knap-lys:hover { background: var(--trae); border-color: var(--trae); color: var(--kalk); }

.helt-figur { background: var(--sand); border-radius: 28px; padding: 2rem 1.5rem 1rem; }
.soejle-fig { margin: 0 auto; max-width: 22rem; }
.soejle-fig svg { display: block; width: 100%; height: auto; }
.s-tag { fill: var(--trae); }
.s-ud { fill: var(--tegl); }
.s-bank { fill: var(--sand-2); }
.s-rk { fill: var(--trae-2); }
.s-tekst text { font-family: var(--tekst); font-size: 15px; font-weight: 600; fill: var(--trae); }
.s-tekst .lille { font-size: 12.5px; fill: #fff; }
.s-tekst text:nth-child(3), .s-tekst text:nth-child(4) { fill: var(--kalk); }
.s-tekst .stor { font-family: var(--display); font-weight: 400; font-size: 24px; }

.sektion { padding: clamp(3rem, 6vw, 5rem) 0; }
.sektion-titel { margin-bottom: 1.5rem; }
.kort-raekke { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.kort { background: #fff; border: 1.5px solid var(--streg); border-radius: var(--r); padding: 1.5rem 1.5rem .75rem; }
.kort::before { content: ""; display: block; width: 2.25rem; height: .55rem; border-radius: 999px; margin-bottom: 1rem; background: var(--tegl); }
.kort:nth-child(2)::before { background: var(--trae-2); }
.kort:nth-child(3)::before { background: var(--sand-2); }
.kort-tal { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; margin-bottom: .4rem; color: var(--tegl-moerk); }
.kort p:last-child { color: var(--trae-2); }
.sektion-sand { background: var(--sand); }
.to-spalter { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 56rem) { .to-spalter { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.greb { padding: 0; margin: 0; list-style: none; counter-reset: g; }
.greb li { counter-increment: g; position: relative; padding-left: 3rem; margin-bottom: 1.1rem; }
.greb li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--tegl); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.genveje { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.genvej { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--trae-2); background: #fff; border: 1.5px solid var(--streg); border-radius: var(--r); padding: 1.4rem 1.5rem; transition: border-color .15s, transform .15s; }
.genvej:hover { border-color: var(--tegl); transform: translateY(-2px); }
.genvej-titel { font-family: var(--display); font-size: 1.3rem; color: var(--trae); }
.genvej-titel::after { content: " \2192"; color: var(--tegl); }

.tekstside { padding-bottom: 4.5rem; }
.side-top { padding: clamp(2rem, 5vw, 4rem) 0 2rem; max-width: 46rem; }
.artikel { max-width: 44rem; }
.artikel h2 { margin-top: 2.25rem; }
.punkter { padding-left: 1.2rem; }
.punkter li { margin-bottom: .6rem; }
.punkter li::marker { color: var(--tegl); }
.tabel-ramme { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; background: #fff; border: 1.5px solid var(--streg); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--streg); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--sand); font-weight: 700; }
tbody th { font-weight: 700; white-space: nowrap; }

/* finansieringsplan */
.plan { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 58rem) { .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: start; } }
.plan-felter { display: grid; gap: 1rem; background: var(--sand); border-radius: var(--r); padding: 1.5rem; }
.plan label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .95rem; }
.plan input { font: 600 1.1rem var(--tekst); color: var(--trae); background: #fff; border: 1.5px solid var(--sand-2); border-radius: 10px; padding: .65rem .8rem; width: 100%; font-variant-numeric: tabular-nums; }
.plan input:focus { outline: 3px solid var(--tegl); outline-offset: 0; border-color: var(--tegl); }
.plan-ud { background: #fff; border: 1.5px solid var(--streg); border-radius: var(--r); padding: 1.5rem; }
.bjaelke { display: flex; height: 3rem; border-radius: 10px; overflow: hidden; background: var(--streg); margin-bottom: 1.25rem; }
.bjaelke span { flex: 0 0 0; transition: flex-basis .25s ease; }
.b-ud, .p-ud { background: var(--tegl); }
.b-bank, .p-bank { background: var(--sand-2); }
.b-rk, .p-rk { background: var(--trae-2); }
.plan-tal { margin: 0; }
.plan-tal div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--streg); }
.plan-tal dt { display: flex; align-items: center; gap: .55rem; color: var(--trae-2); }
.plan-tal dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.p { display: inline-block; width: .85rem; height: .85rem; border-radius: 3px; flex: none; }
.plan-tal .fremhaev dd { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--tegl-moerk); }
.plan-tal .fremhaev dt { color: var(--trae); font-weight: 700; }
.besked { margin: 1rem 0 0; font-weight: 600; color: var(--tegl-moerk); }
.besked:empty { display: none; }

/* tjekliste */
.tjek-ramme { max-width: 44rem; }
.tjek-status { position: relative; font-weight: 700; background: #fff; border: 1.5px solid var(--streg); border-radius: var(--r); padding: .9rem 1.2rem; overflow: hidden; }
.tjek-status::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: var(--fyld, 0%); background: var(--salvie); transition: width .2s; }
.tjek-gruppe { border: 0; padding: 0; margin: 2rem 0 0; }
.tjek-gruppe legend { font-family: var(--display); font-size: 1.4rem; padding: 0; margin-bottom: .6rem; }
.tjek-punkt { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; align-items: start; padding: .8rem 1rem; border-radius: 10px; cursor: pointer; }
.tjek-punkt:hover { background: var(--sand); }
.tjek-punkt input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--salvie); }
.tjek-punkt input:checked + span { color: var(--trae-2); text-decoration: line-through; text-decoration-color: var(--salvie); }

.bund { background: var(--trae); color: #d8ccbf; padding: 3rem 0; font-size: .95rem; }
.bund-ind { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .bund-ind { grid-template-columns: 2fr 1fr; gap: 4rem; } }
.bund-navn { font-family: var(--display); font-size: 1.3rem; color: var(--kalk); margin-bottom: .5rem; }
.bund-tekst { max-width: 36rem; margin: 0; }
.bund nav { display: flex; flex-direction: column; gap: .35rem; }
.bund a { color: var(--kalk); text-decoration: none; }
.bund a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .bjaelke span, .genvej, .tjek-status::after { transition: none; } .genvej:hover { transform: none; } }
.to-spalter > *, .helt-ind > * { min-width: 0; }
