/* 5d.dk - blåtryk og rudenet: navy, tegnecyan og én ravfarve til økonomien */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --papir: #f1f4f6;
  --hvid: #ffffff;
  --navy: #0e2236;
  --blaa: #1c4a7a;
  --blaa-dyb: #13314f;
  --cyan: #7cc0e8;
  --net: #d9e2e9;
  --tekst: #13202c;
  --daempet: #4b5b6a;
  --linje: #c7d3dc;
  --rav: #f2b134;
  --rav-tekst: #8a5a00;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); background-image: linear-gradient(var(--net) 1px, transparent 1px), linear-gradient(90deg, var(--net) 1px, transparent 1px); background-size: 32px 32px; color: var(--tekst); font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--blaa); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--rav); outline-offset: 2px; }

.ramme { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--rav); color: var(--navy); padding: 0.5rem 0.9rem; z-index: 10; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.6vw, 4.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); margin: 1.8em 0 0.45em; }
p { margin: 0 0 1em; }
.overline { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blaa); margin: 0 0 0.8rem; }
.overline::before { content: "// "; color: var(--daempet); }
.indledning { font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.5; max-width: 44ch; }

/* Top */
.top { background: var(--navy); color: var(--hvid); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.8rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--hvid); text-decoration: none; }
.logo:hover { color: var(--hvid); }
.logo-kube { width: 2.1rem; height: 2.1rem; }
.k-ramme { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; }
.k-top { fill: var(--rav); stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; }
.logo-navn { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.logo-dk { color: #8aa3ba; font-weight: 500; }
.menu { display: flex; flex-wrap: wrap; gap: 0.15rem 1.2rem; }
.menu a { color: #cfdbe6; text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--hvid); border-bottom-color: #4d6a85; }
.menu a[aria-current="page"] { color: var(--rav); border-bottom-color: var(--rav); }

.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.knap { display: inline-block; background: var(--rav); color: var(--navy); text-decoration: none; font-weight: 700; padding: 0.75rem 1.2rem; border: 2px solid var(--rav); }
.knap:hover { background: #ffc85a; border-color: #ffc85a; color: var(--navy); }
.knap-lys { background: transparent; color: var(--hvid); border-color: #6c8aa6; }
.knap-lys:hover { background: var(--hvid); color: var(--navy); border-color: var(--hvid); }
.tekstside .knap-lys { color: var(--navy); border-color: var(--navy); }
.pil { font-weight: 700; }
.pil::after { content: " \2192"; }

/* Helt */
.helt { background: var(--blaa-dyb); background-image: linear-gradient(rgba(124, 192, 232, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 192, 232, 0.12) 1px, transparent 1px); background-size: 32px 32px; color: var(--hvid); padding-block: clamp(2.5rem, 7vw, 5rem); }
.helt .overline { color: var(--cyan); }
.helt .overline::before { color: #6c8aa6; }
.helt-ind { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.25fr 1fr; gap: 3rem; } }
.helt-model { max-width: 28rem; width: 100%; justify-self: center; }
.iso { display: block; width: 100%; height: auto; }
.iso-gitter path { fill: none; stroke: rgba(124, 192, 232, 0.35); stroke-width: 1; }
.iso-flade-a { fill: rgba(124, 192, 232, 0.12); stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; }
.iso-flade-top { fill: rgba(124, 192, 232, 0.22); stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; }
.iso-kant { fill: none; stroke: var(--cyan); stroke-width: 2; }
.iso-vindue { fill: var(--blaa-dyb); stroke: var(--cyan); stroke-width: 1.5; }
.iso-etiketter text { font-family: var(--mono); font-size: 15px; fill: #9fb6cb; }
.iso-etiketter .iso-fremhaev { fill: var(--rav); }
.iso-moent circle { fill: var(--rav); }
.iso-moent text { font-family: var(--sans); font-weight: 700; font-size: 20px; text-anchor: middle; fill: var(--navy); }

.sektion { padding-block: clamp(2.5rem, 6vw, 4rem); }
.to-spalter { display: grid; gap: 1rem 4rem; }
@media (min-width: 860px) { .to-spalter { grid-template-columns: 1fr 1fr; } }
.to-spalter h2 { margin-top: 0.3em; }
.punkter { padding-left: 1.2rem; }
.punkter li { margin-bottom: 0.6rem; }
.punkter li::marker { color: var(--blaa); }
.sektion-blaa { background: var(--navy); }
.dim-raekke { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: #2c4660; border: 1px solid #2c4660; }
.dim { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.2rem; background: var(--navy); color: #cfdbe6; text-decoration: none; }
.dim:hover { background: var(--blaa-dyb); color: var(--hvid); }
.dim-nr { font-family: var(--mono); font-size: 2rem; color: var(--cyan); line-height: 1.1; }
.dim-aktiv .dim-nr { color: var(--rav); }

/* Tekstsider */
.tekstside { padding-bottom: 4rem; }
.side-top { padding-block: clamp(2.2rem, 6vw, 3.8rem) 1.2rem; max-width: 48rem; }
.artikel { max-width: 44rem; background: rgba(241, 244, 246, 0.92); }
.dim-liste { list-style: none; padding: 0; margin: 0 0 1rem; max-width: 52rem; border-top: 2px solid var(--navy); }
.dim-liste li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--linje); background: rgba(241, 244, 246, 0.92); }
@media (min-width: 700px) { .dim-liste li { grid-template-columns: 7rem 1fr; } }
.dim-stor { font-family: var(--mono); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--blaa); margin: 0; }
.dim-liste .dim-aktiv .dim-stor { color: var(--rav-tekst); }
.dim-liste .dim-aktiv { background: #fff7e3; }
.dim-liste h2 { margin: 0 0 0.3rem; font-size: 1.4rem; }
.dim-liste p:last-child { margin: 0; }
.fejl-liste { padding-left: 1.3rem; }
.fejl-liste li { margin-bottom: 0.5rem; }
.fejl-liste li::marker { font-family: var(--mono); color: var(--rav-tekst); }

/* Kalkule */
.kalkule { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 900px) { .kalkule { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.model-felter { background: var(--hvid); border: 2px solid var(--navy); padding: 1.2rem; display: grid; gap: 0.8rem; }
.lille-titel { margin: 0; font-size: 1.2rem; }
.model-felter label { display: grid; gap: 0.25rem; font-weight: 500; font-size: 0.95rem; }
.enhed-felt { display: flex; border: 1px solid #8ca0b2; }
.enhed-felt:focus-within { outline: 3px solid var(--rav); outline-offset: 1px; }
.enhed-felt input { flex: 1; min-width: 0; border: 0; font: inherit; font-family: var(--mono); padding: 0.5rem 0.7rem; color: var(--tekst); background: var(--hvid); }
.enhed-felt input:focus { outline: none; }
.enhed-felt span { display: flex; align-items: center; justify-content: center; min-width: 3rem; padding: 0 0.6rem; background: #e6edf2; font-family: var(--mono); font-size: 0.9rem; color: var(--daempet); }
.plan-fig { margin: 0.4rem 0 0; }
#plan { display: block; width: 100%; height: auto; background: var(--blaa-dyb); }
.plan-hus { fill: rgba(124, 192, 232, 0.15); stroke: var(--cyan); stroke-width: 3; }
.plan-vindue { stroke: var(--rav); stroke-width: 5; stroke-linecap: butt; }
.plan-fig figcaption { font-family: var(--mono); font-size: 0.82rem; color: var(--daempet); margin-top: 0.4rem; }
.tabel-ramme { overflow-x: auto; background: var(--hvid); border: 2px solid var(--navy); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; background: var(--navy); color: var(--hvid); font-weight: 700; padding: 0.6rem 0.9rem; }
th, td { padding: 0.55rem 0.8rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--linje); }
th:first-child, tfoot th { text-align: left; }
thead th { font-size: 0.85rem; color: var(--daempet); font-weight: 500; }
tbody th { font-weight: 500; }
td { font-family: var(--mono); font-size: 0.9rem; }
.pris-wrap { display: inline-flex; align-items: center; gap: 0.35rem; }
.pris-felt { width: 5.5rem; font: inherit; font-family: var(--mono); font-size: 0.9rem; padding: 0.3rem 0.4rem; border: 1px solid #8ca0b2; text-align: right; }
.pris-wrap span { color: var(--daempet); font-size: 0.8rem; }
tfoot th { font-weight: 500; }
tr.total th, tr.total td { font-weight: 700; font-size: 1.05rem; background: #fff3d6; border-bottom: 0; }
tr.total td { color: var(--rav-tekst); }
.note { font-size: 0.9rem; color: var(--daempet); margin: 0.7rem 0 0; background: rgba(241, 244, 246, 0.92); }

/* Bund */
.bund { background: var(--navy); color: #b9c8d6; padding-block: 2rem 2.5rem; font-size: 0.95rem; }
.bund-ind { display: grid; gap: 1rem; }
@media (min-width: 760px) { .bund-ind { grid-template-columns: 1.4fr 1fr; } }
.bund-tekst { max-width: 50ch; margin: 0; }
.bund-tekst strong { color: var(--hvid); }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.bund nav a { color: var(--hvid); }
.kalkule > *, .beregner > *, .vaerktoej > * { min-width: 0; }
.total-boks { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.3rem 1rem; background: var(--navy); color: #cfdbe6; padding: 0.9rem 1.1rem; margin: 0 0 1rem; }
.total-boks strong { font-family: var(--mono); font-weight: 400; font-size: 1.7rem; color: var(--rav); }
.dim-raekke { gap: 0; background: transparent; border: 0; padding: 1px 0 0 1px; }
.dim { border: 1px solid #2c4660; margin: -1px 0 0 -1px; }
