/* smålån.dk - "køkkenbordsøkonomi": varm creme, kakaobrun tekst, terrakotta mønter og okker til gebyrerne */
@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 {
  --creme: #f6efe2;
  --creme-2: #efe4d0;
  --hvid: #fffaf1;
  --kakao: #2b1d14;
  --brun: #6a5546;
  --terra: #b5532c;
  --terra-mork: #8f3e1f;
  --okker: #8a6a1f;
  --okker-lys: #f3e3b8;
  --salvie: #4f6b55;
  --streg: #dfd1ba;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--kakao); font: 400 1.0625rem/1.65 "Figtree", system-ui, sans-serif; }
svg { max-width: 100%; }
a { color: var(--terra-mork); text-underline-offset: .18em; }
a:hover { color: var(--kakao); }
h1, h2, h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin-top: 1.6em; }
h3 { font-size: 1.22rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
.ramme { width: min(1080px, 100% - 32px); margin-inline: auto; }
.spring { position: absolute; left: -999px; top: 8px; background: var(--kakao); color: var(--creme); padding: .5em 1em; z-index: 9; }
.spring:focus { left: 16px; }
:focus-visible { outline: 2.5px solid var(--terra); outline-offset: 3px; }
.tal { font-variant-numeric: tabular-nums; }

.top-ind { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 20px 0; flex-wrap: wrap; }
.ordmaerke { display: inline-flex; align-items: center; gap: 10px; color: var(--kakao); text-decoration: none; font-family: "Young Serif", serif; font-size: 1.4rem; }
.ordmaerke .dk { color: var(--terra); }
.maerke { width: 30px; height: 30px; color: var(--kakao); }
.menu { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .97rem; font-weight: 600; }
.menu a { color: var(--kakao); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.menu a:hover { background: var(--creme-2); }
.menu a[aria-current="page"] { background: var(--kakao); color: var(--creme); }

.helt { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.helt-ind { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.etiket { font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); margin-bottom: 12px; }
.indledning { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--brun); max-width: 56ch; }
.stakke { width: 100%; max-width: 420px; height: auto; display: block; margin-inline: auto; }
.stak-tekst { font: 700 15px "Figtree", sans-serif; fill: var(--brun); }
.knapper { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.knap { display: inline-block; padding: .75em 1.35em; background: var(--terra); color: #fff; font-weight: 800; text-decoration: none; border-radius: 999px; }
.knap:hover { background: var(--terra-mork); color: #fff; }
.knap-lys { background: transparent; color: var(--kakao); box-shadow: inset 0 0 0 2px var(--kakao); }
.knap-lys:hover { background: var(--kakao); color: var(--creme); }

.sektion { padding: clamp(36px, 6vw, 72px) 0; }
.sektion-moerk { background: var(--kakao); color: #efe4d0; }
.sektion-moerk h2 { color: #fff; }
.sektion > .ramme > h2:first-child { margin-top: 0; }
.fakta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fakta h3 { margin-top: 0; color: #fff; }
.fakta p { margin: 0; color: #d9cbb3; }
.fakta-tal { display: block; font-family: "Young Serif", serif; font-size: 2.4rem; color: #e9a27c; line-height: 1; margin-bottom: 12px; }
.genveje { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.genvej { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--hvid); border-radius: 14px; text-decoration: none; color: var(--brun); box-shadow: 0 1px 0 var(--streg); }
.genvej-titel { font-family: "Young Serif", serif; font-size: 1.3rem; color: var(--kakao); }
.genvej:hover { box-shadow: 0 0 0 2px var(--terra); }

.tekstside { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.side-top { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.artikel { max-width: 68ch; }
.artikel li { margin-bottom: .45em; }
.boks { background: var(--hvid); padding: 20px 24px; border-radius: 14px; margin: 1.6em 0; }
.boks > :last-child { margin-bottom: 0; }
.boks-okker { background: var(--okker-lys); }
.lille { font-size: .92rem; color: var(--brun); }
.tabel-wrap { overflow-x: auto; background: var(--hvid); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--streg); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 800; }
.tal-h { text-align: right; }
.trin { list-style: none; padding: 0; counter-reset: trin; }
.trin li { counter-increment: trin; position: relative; padding-left: 52px; margin-bottom: 18px; }
.trin li::before { content: counter(trin); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--kakao); color: var(--creme); display: grid; place-items: center; font-family: "Young Serif", serif; }

/* Beregner */
.beregner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.felter { background: var(--hvid); border-radius: 14px; padding: 22px; display: grid; gap: 16px; }
.felt label { display: block; font-weight: 700; margin-bottom: 6px; }
.felt .hjaelp { display: block; font-weight: 400; font-size: .88rem; color: var(--brun); }
.felt-ind { display: flex; align-items: center; gap: 8px; }
.felt input { width: 100%; font: inherit; font-size: 1.05rem; font-variant-numeric: tabular-nums; padding: 10px 12px; border: 2px solid var(--streg); border-radius: 10px; background: #fff; color: var(--kakao); }
.felt input:focus { border-color: var(--terra); outline: none; }
.enhed { color: var(--brun); min-width: 3em; }
.resultat { background: var(--kakao); color: #efe4d0; border-radius: 14px; padding: 24px; }
.resultat h2 { color: #fff; margin-top: 0; font-size: 1.25rem; }
.stort { font-family: "Young Serif", serif; font-size: clamp(2rem, 5vw, 2.7rem); color: #fff; line-height: 1.1; margin: 0 0 4px; }
.stort-label { color: #c9b89c; margin: 0 0 18px; }
.linjer { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 18px; }
.linjer dt { color: #d9cbb3; }
.linjer dd { margin: 0; color: #fff; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.split { height: 14px; border-radius: 7px; background: #4a3628; overflow: hidden; display: flex; margin-bottom: 8px; }
.split span { display: block; height: 100%; }
.split .s-rente { background: #e9a27c; }
.split .s-gebyr { background: #d2a63c; }
.forklaring { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: #d9cbb3; margin-bottom: 14px; }
.prik { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.prik-rente { background: #e9a27c; }
.prik-gebyr { background: #d2a63c; }
.besked { padding: 12px 14px; border-radius: 10px; background: #3b2a1e; font-size: .95rem; margin: 0 0 10px; }
.besked[data-type="advarsel"] { background: #6b2a14; color: #ffe2d4; }
.spar { padding: 12px 14px; border-radius: 10px; background: #33442f; color: #e1ecd9; font-size: .95rem; margin: 0; }

.bund { border-top: 1px solid var(--streg); padding: 32px 0 40px; font-size: .95rem; }
.bund-ind { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.bund-navn { font-family: "Young Serif", serif; font-size: 1.2rem; margin: 0 0 4px; }
.bund-note { color: var(--brun); max-width: 48ch; margin: 0; }
.bund nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; }
.bund nav a { color: var(--kakao); }

@media (max-width: 880px) {
  .helt-ind, .beregner { grid-template-columns: 1fr; }
  .fakta { grid-template-columns: 1fr; gap: 24px; }
  .stakke { max-width: 300px; }
}
@media (max-width: 560px) { .genveje { grid-template-columns: 1fr; } .menu a { padding: 5px 10px; } }
