/* billigsteakasse.dk - "sikkerhedsnettet": petrol, mynte og en gul bold */
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bund: #f3f6f4;
  --hvid: #ffffff;
  --petrol: #0f3b46;
  --petrol-2: #2d5560;
  --mynte: #9fd8cc;
  --mynte-lys: #dcefe9;
  --teal: #157a6c;
  --sol: #f2c14e;
  --graa: #52666b;
  --streg: #d3dfdb;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bund); color: var(--petrol); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); letter-spacing: -.035em; }
h1 em, h2 em { font-family: var(--serif); font-style: normal; font-weight: 400; letter-spacing: -.01em; color: var(--teal); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
p { margin: 0 0 1em; }
.ramme { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.spring { position: absolute; left: -9999px; top: 0; background: var(--petrol); color: #fff; padding: .6rem 1rem; z-index: 10; }
.spring:focus { left: 1rem; }

.top { background: var(--petrol); color: #fff; }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.ordmaerke b { font-weight: 800; }
.ordmaerke svg { width: 32px; height: 32px; color: var(--mynte); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.menu a { color: #d6e7e3; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--sol); }

.helt { background: var(--petrol); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.helt h1 em { color: var(--mynte); }
.helt-ind { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .helt-ind { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; } }
.helt .indledning { color: #cfe0dc; }
.indledning { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 40rem; color: var(--graa); }
.net { width: 100%; max-width: 28rem; height: auto; justify-self: center; }
.net-traad path { fill: none; stroke: var(--mynte); stroke-width: 1.6; opacity: .55; }
.net-kant { stroke: var(--mynte); stroke-width: 4; stroke-linecap: round; }
.net-bold { fill: var(--sol); }
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.knap { display: inline-block; background: var(--sol); color: var(--petrol); text-decoration: none; font-weight: 800; padding: .85rem 1.35rem; border-radius: 8px; border: 2px solid var(--sol); }
.knap:hover { background: #ffd56e; border-color: #ffd56e; }
.knap-lys { background: transparent; color: inherit; border-color: currentColor; }
.knap-lys:hover { background: rgba(159, 216, 204, .15); border-color: var(--mynte); }
.tekstside .knap-lys { color: var(--petrol); }

.sektion { padding: clamp(3rem, 6vw, 5rem) 0; }
.tre { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 52rem) { .tre { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.tre > div { background: var(--hvid); border-radius: 12px; padding: 1.6rem 1.6rem .6rem; }
.tre > div::before { content: ""; display: block; width: .9rem; height: .9rem; border-radius: 50%; margin-bottom: 1rem; background: var(--mynte); }
.tre > div:nth-child(2)::before { background: var(--teal); }
.tre > div:nth-child(3)::before { background: var(--sol); }
.tre p { color: var(--graa); }
.sektion-petrol { background: var(--mynte-lys); }
.to-spalter { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 56rem) { .to-spalter { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.punkter { padding-left: 1.2rem; margin: 0; }
.punkter li { margin-bottom: .6rem; }
.punkter li::marker { color: var(--teal); }

.tekstside { padding-bottom: 4.5rem; }
.side-top { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem; max-width: 48rem; }
.side-top h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
.etiket { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); }
.etiket::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--sol); }
.artikel { max-width: 44rem; }
.artikel h2 { margin-top: 2.25rem; }
.trin { list-style: none; counter-reset: t; padding: 0; margin: 0 0 1.5rem; }
.trin li { counter-increment: t; position: relative; padding: 0 0 1rem 3.2rem; margin-bottom: .6rem; }
.trin li::before { content: counter(t); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); font-weight: 800; display: grid; place-items: center; }
.boks { background: var(--mynte-lys); border-radius: 12px; padding: 1.5rem 1.6rem .6rem; margin: 2.25rem 0; }
.boks h2 { margin-top: 0; font-size: 1.35rem; }
.boks.advarsel { background: #fff4d6; }

/* beregning */
.regner { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 3rem; }
@media (min-width: 48rem) { .regner { grid-template-columns: 1fr 1fr; } }
.regner-kol, .regner-faelles { background: var(--hvid); border-radius: 12px; padding: 1.4rem; display: grid; gap: 1rem; align-content: start; }
.regner-kol h2 { font-size: 1.25rem; margin: 0; }
.regner-faelles { background: var(--mynte-lys); }
@media (min-width: 48rem) { .regner-faelles, .regner-ud { grid-column: 1 / -1; } .regner-faelles { grid-template-columns: 16rem 1fr; align-items: end; } }
.hjaelp { margin: 0; font-size: .92rem; color: var(--graa); }
.regner label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .95rem; }
.regner input { font: 700 1.1rem var(--sans); color: var(--petrol); background: var(--bund); border: 2px solid var(--streg); border-radius: 8px; padding: .65rem .8rem; width: 100%; }
.regner input:focus { outline: none; border-color: var(--teal); background: #fff; }
.regner-ud { background: var(--petrol); color: #fff; border-radius: 12px; padding: 1.4rem; overflow-x: auto; }
.regner-ud table { width: 100%; border-collapse: collapse; }
.nw { white-space: nowrap; }
.regner-ud th, .regner-ud td { padding: .6rem .4rem; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .15); white-space: nowrap; }
.regner-ud th[scope="row"] { text-align: left; font-weight: 500; color: #cfe0dc; white-space: normal; }
.regner-ud thead th { color: var(--mynte); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.regner-ud .sum th, .regner-ud .sum td { border-bottom: 0; font-weight: 800; color: #fff; font-size: 1.15rem; }
.konklusion { margin: 1rem 0 0; font-weight: 700; color: var(--sol); }

.bund { background: var(--petrol); color: #c4d6d2; padding: 2.75rem 0 3rem; font-size: .93rem; }
.bund-ind { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .bund-ind { grid-template-columns: 2fr 1fr; gap: 4rem; } }
.bund-tekst { margin: 0; max-width: 38rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; align-content: start; }
.bund a { color: #fff; text-decoration: none; font-weight: 600; }
.bund a:hover { text-decoration: underline; }
@media (max-width: 30rem) {
  .regner-ud { padding: 1rem .8rem; }
  .regner-ud th, .regner-ud td { font-size: .9rem; }
  .regner-ud .sum th, .regner-ud .sum td { font-size: 1rem; }
  .regner-ud thead th { font-size: .72rem; letter-spacing: .02em; }
}
.to-spalter > *, .helt-ind > * { min-width: 0; }
