/* stenbordplade.dk · prisberegneren: linealen, ét spørgsmål ad gangen, tegnebrættet og overslaget */

.calc { padding-top: calc(var(--head-h) + clamp(28px, 3.4vw, 56px)); padding-bottom: clamp(64px, 7vw, 120px); }
.calc__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 40px); row-gap: 16px; align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.calc__head > div { grid-column: 1 / span 7; }
.calc__head h1 { font-size: clamp(2rem, 1.25rem + 2.3vw, 3.5rem); font-weight: 260; letter-spacing: -0.05em; line-height: 0.98; }
.calc__head h1 b { font-weight: 620; }
.calc__intro { grid-column: 9 / span 4; color: var(--skifer); margin: 0; font-size: var(--fs-small); }

/* ---------- Linealen ---------- */
.lineal { position: relative; margin-bottom: clamp(24px, 2.6vw, 40px); }
.lineal ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.lineal button {
  appearance: none; background: none; border: 0; padding: 0 10px 14px 0; width: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 3px; min-height: 44px; color: var(--basalt); position: relative;
}
.lineal button:hover .lineal__navn { text-decoration: underline; text-underline-offset: 0.25em; }
.lineal__nr { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--skifer); font-variant-numeric: tabular-nums; }
.lineal__navn { font-size: 0.9rem; font-weight: 440; letter-spacing: -0.01em; }
.lineal__valg { font-size: 0.74rem; color: var(--skifer); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.25em; }
.lineal button[aria-current="step"] .lineal__navn { font-weight: 620; }
.lineal button[aria-current="step"] .lineal__nr { color: var(--tegl-mork); }
.lineal button::after { /* stregen ned til målebåndet */ content: ""; position: absolute; left: 0; bottom: -1px; width: 1px; height: 12px; background: var(--basalt); }
.lineal button[aria-current="step"]::after { width: 2px; height: 22px; background: var(--tegl); }
.lineal__tape { position: relative; height: 14px; border-top: 1.5px solid var(--basalt); }
.lineal__tape::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: repeating-linear-gradient(90deg, var(--sten) 0 1px, transparent 1px 10px); }
.lineal__fyld { position: absolute; left: 0; top: -2.5px; height: 3.5px; width: var(--p, 0%); background: var(--basalt); transition: width .7s var(--ease); }

/* ---------- Opbygning ---------- */
.calc__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 40px); align-items: start; }
.calc__main { grid-column: 1 / span 8; min-width: 0; }
.overslag { grid-column: 9 / span 4; }

.trin-hoved { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(16px, 2vw, 28px); align-items: start; margin-bottom: clamp(14px, 1.4vw, 20px); }
.trin-hoved .nr { font-size: clamp(2rem, 1.5rem + 1.4vw, 3rem); font-weight: 190; line-height: 0.85; letter-spacing: -0.05em; font-variation-settings: "SHRP" 100; font-variant-numeric: tabular-nums; }
.trin-hoved h2 { font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.7rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 4px; }
.trin-hoved p { color: var(--skifer); margin: 0; max-width: 62ch; font-size: 0.875rem; }
.js .trin-hoved.is-skift > * { animation: trinind .6s var(--ease) both; }
.js .trin-hoved.is-skift > :nth-child(2) { animation-delay: .06s; }
@keyframes trinind { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Tegnebrættet ---------- */
.scene {
  position: relative; margin: 0 0 clamp(16px, 1.6vw, 24px); background-color: var(--kalk-0);
  background-image:
    linear-gradient(oklch(0.86 0.012 232 / 0.55) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.86 0.012 232 / 0.55) 1px, transparent 1px),
    linear-gradient(oklch(0.92 0.008 232 / 0.6) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.92 0.008 232 / 0.6) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  box-shadow: inset 0 0 0 1px var(--kalk-3);
  min-height: clamp(240px, 24vw, 340px); display: grid; overflow: hidden;
}
.scene:has(> .scene__svg) { height: clamp(240px, 23vw, 330px); }
.scene__svg { width: 100%; height: 100%; align-self: stretch; }
.scene__svg text { font-family: "Geologica", sans-serif; }
.scene__html { padding: clamp(24px, 3.4vw, 48px); align-self: center; }
.scene__stempel { /* tegningens stempel */
  position: absolute; right: 0; bottom: 0; display: flex; font-size: 0.66rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--skifer); border-top: 1px solid var(--kalk-3); border-left: 1px solid var(--kalk-3); background: var(--kalk-0);
}
.scene__stempel span { padding: 7px 12px; border-right: 1px solid var(--kalk-3); white-space: nowrap; }
.scene__stempel span:last-child { border-right: 0; color: var(--basalt); font-weight: 520; }
.legende { list-style: none; margin: -6px 0 clamp(16px, 1.6vw, 24px); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 24px; font-size: 0.8rem; color: var(--basalt-2); }
.legende li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.legende i { width: 22px; height: 10px; margin-top: 6px; display: block; }
.legende i.l-samling { background: linear-gradient(90deg, var(--tegl) 0 55%, transparent 55%) 0 50% / 8px 1.5px repeat-x; }
.legende i.l-staenk { background: var(--tegl); height: 4px; margin-top: 9px; }
.legende i.l-vf { background: oklch(0.42 0.02 245); height: 8px; width: 8px; margin: 7px 7px 0; }
.legende b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.3px solid var(--basalt); font-size: 0.72rem; font-weight: 560; color: var(--basalt); }
.legende:empty { display: none; }

/* SVG-flader */
.s-top { fill: oklch(0.945 0.006 232); }
.s-side { fill: oklch(0.83 0.011 234); }
.s-in { fill: oklch(0.74 0.013 236); }
.s-in2 { fill: oklch(0.79 0.012 235); }
.s-reb { fill: oklch(0.88 0.009 233); }
.s-cut { fill: oklch(0.9 0.008 232); }
.s-hatch { fill: url(#sb-hatch); }
.ln { fill: none; stroke: oklch(0.3 0.022 248); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln-fin { fill: none; stroke: oklch(0.55 0.02 240); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.st-top { fill: oklch(0.86 0.006 245); }
.st-side { fill: oklch(0.7 0.008 245); }
.st-back { fill: oklch(0.74 0.008 245); }
.st-wall { fill: oklch(0.66 0.009 245); }
.st-bund { fill: oklch(0.6 0.009 245); }
.st-ud { fill: oklch(0.55 0.01 245); }
.st-cut { fill: oklch(0.26 0.02 248); }
.gl-top { fill: url(#sb-glas); }
.gl-side { fill: oklch(0.2 0.012 250); }
.gl-zone { fill: none; stroke: oklch(0.62 0.01 250); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bd-side { fill: oklch(0.5 0.01 250); }
.bd-cut { fill: oklch(0.36 0.012 250); }
.lim { fill: var(--tegl); }
.niveau { stroke: var(--tegl); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; fill: none; }
.mal-linje { stroke: oklch(0.4 0.02 245); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.mal-tekst { fill: oklch(0.32 0.02 248); letter-spacing: 0.04em; }
.kald circle { fill: var(--kalk-0); stroke: oklch(0.25 0.022 248); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.kald text { fill: oklch(0.25 0.022 248); font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.kald path { fill: none; stroke: oklch(0.25 0.022 248); stroke-width: 1; vector-effect: non-scaling-stroke; }
.kald .prik { fill: oklch(0.25 0.022 248); stroke: none; }
.plan-plade { fill: oklch(0.93 0.007 232); stroke: oklch(0.3 0.022 248); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.plan-oe { fill: oklch(0.9 0.009 232); }
.plan-vaeg { fill: url(#sb-hatch); stroke: oklch(0.3 0.022 248); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-staenk { stroke: var(--tegl); stroke-width: 4; fill: none; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.plan-vf { fill: oklch(0.42 0.02 245); }
.plan-sym { fill: none; stroke: oklch(0.38 0.02 245); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-bogstav { font-weight: 560; fill: oklch(0.25 0.022 248); text-anchor: middle; dominant-baseline: central; }
.plan-samling { stroke: var(--tegl); stroke-width: 1.4; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }

/* Egenskaber og "altid med" (HTML-scener) */
.ark { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.ark h3 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 3rem); font-weight: 270; letter-spacing: -0.045em; line-height: 1; margin-bottom: 14px; }
.ark .pris { font-size: 1.15rem; font-weight: 540; }
.ark .pris small { display: block; font-size: 0.82rem; color: var(--skifer); font-weight: 400; margin-top: 4px; }
.ark .egenskab { margin: 0; }
.ark .maerkeliste { margin-top: 18px; font-size: 0.875rem; color: var(--skifer); }
.ark--inkl ul { list-style: none; margin: 0; padding: 0; }
.ark--inkl li { padding: 9px 0; border-bottom: 1px solid var(--linje); font-size: 0.95rem; display: flex; gap: 10px; }
.ark--inkl li::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: 4px; background: var(--basalt); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.ark--inkl .ikke li::before { background: var(--sten); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
.ark--inkl h3 { font-size: 1.05rem; font-weight: 560; letter-spacing: -0.01em; margin-bottom: 8px; }

/* ---------- Valg ---------- */
.valg-liste { border-top: 1px solid var(--linje); margin: 0 0 8px; padding: 0; }
.valg { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: start; padding: 11px 14px 11px 6px; border-bottom: 1px solid var(--linje); cursor: pointer; position: relative; transition: background-color .25s var(--ease); }
.valg:hover { background: oklch(0.977 0.004 230 / 0.65); }
.valg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.valg__mark { grid-row: 1 / span 2; width: 16px; height: 16px; margin: 2px 0 0 4px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--basalt); display: grid; place-items: center; }
.valg__mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tegl); transform: scale(0); transition: transform .35s var(--ease); }
.valg input:checked ~ .valg__mark::after { transform: scale(1); }
.valg input:focus-visible ~ .valg__mark { outline: 2px solid var(--basalt); outline-offset: 3px; }
.valg__navn { font-weight: 520; font-size: 0.94rem; letter-spacing: -0.01em; }
.valg__note { grid-column: 2 / -1; color: var(--skifer); font-size: 0.8rem; line-height: 1.4; }
.valg__pris { grid-column: 3; grid-row: 1; font-size: 0.84rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--basalt-2); padding-top: 2px; }
.valg:has(input:checked) { background: var(--kalk-0); }
.valg:has(input:disabled) { cursor: not-allowed; opacity: 0.45; }
@media (min-width: 1081px) {
  .valg-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

.former { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.form-valg { position: relative; cursor: pointer; display: grid; gap: 10px; justify-items: start; padding: 16px 14px 14px; background: oklch(0.977 0.004 230 / 0.5); box-shadow: inset 0 0 0 1px var(--linje); transition: box-shadow .25s var(--ease), background-color .25s; }
.form-valg:hover { box-shadow: inset 0 0 0 1px var(--basalt); }
.form-valg input { position: absolute; opacity: 0; pointer-events: none; }
.form-valg svg { width: 100%; max-width: 92px; height: 54px; }
.form-valg svg .f { fill: oklch(0.86 0.01 233); stroke: var(--basalt); stroke-width: 1.2; }
.form-valg svg .w { fill: none; stroke: var(--basalt); stroke-width: 3; }
.form-valg__navn { font-weight: 500; font-size: 0.95rem; }
.form-valg:has(input:checked) { background: var(--kalk-0); box-shadow: inset 0 0 0 1.5px var(--basalt); }
.form-valg:has(input:checked) svg .f { fill: var(--basalt); }
.form-valg:has(input:focus-visible) { outline: 2px solid var(--basalt); outline-offset: 3px; }

.under { margin-top: clamp(18px, 2vw, 26px); display: grid; gap: 20px; }
.under fieldset, fieldset.under { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.under legend, fieldset.under > legend, .felt > span:first-child { display: block; font-size: var(--fs-micro); letter-spacing: 0.13em; text-transform: uppercase; color: var(--skifer); font-weight: 520; margin-bottom: 10px; }
.piller { display: flex; flex-wrap: wrap; gap: 8px; }
.pille { position: relative; }
.pille input { position: absolute; opacity: 0; pointer-events: none; }
.pille span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 38px; box-shadow: inset 0 0 0 1px var(--linje); font-size: 0.86rem; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.pille span small { color: var(--skifer); font-size: 0.8rem; }
.pille:hover span { box-shadow: inset 0 0 0 1px var(--basalt); }
.pille input:checked + span { background: var(--basalt); color: var(--kalk-0); box-shadow: none; }
.pille input:checked + span small { color: oklch(0.85 0.01 230); }
.pille input:focus-visible + span { outline: 2px solid var(--basalt); outline-offset: 3px; }
.pille input:disabled + span { opacity: 0.4; cursor: not-allowed; }

.felt { display: grid; }
.felt__in { display: flex; align-items: center; background: var(--kalk-0); box-shadow: inset 0 0 0 1px var(--linje); transition: box-shadow .2s; }
.felt__in:focus-within { box-shadow: inset 0 0 0 1.5px var(--basalt); }
.felt__in input, .felt__in select, .felt textarea { border: 0; background: transparent; min-height: 46px; padding: 0 14px; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; outline: none; }
.felt__in select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d2430' stroke-width='1.4'/%3E%3C/svg%3E") right 16px center / 11px auto no-repeat; }
.felt__in em { font-style: normal; color: var(--skifer); padding-right: 14px; font-size: 0.92rem; }
.felt.is-fejl .felt__in { box-shadow: inset 0 0 0 1.5px var(--tegl); }
.felt textarea { min-height: 120px; padding: 14px; resize: vertical; background: var(--kalk-0); box-shadow: inset 0 0 0 1px var(--linje); line-height: 1.5; }
.felt textarea:focus { box-shadow: inset 0 0 0 1.5px var(--basalt); }
.felt__fejl { display: block; color: var(--tegl-mork); font-size: 0.85rem; margin: 6px 0 0; min-height: 0; }
.felt__fejl:empty { display: none; }

.maal-raekke { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; align-items: end; padding: 18px 0; border-bottom: 1px solid var(--linje); }
.maal-raekke:first-child { border-top: 1px solid var(--linje); }
.maal__navn { font-weight: 520; padding-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.maal__navn b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.3px solid var(--basalt); font-size: 0.78rem; font-weight: 600; flex: none; }
.maal__navn small { display: block; font-weight: 400; color: var(--skifer); font-size: 0.8rem; }
.maal-raekke .felt__fejl { grid-column: 1 / -1; margin: 0; }
.maal-sum { margin-top: 16px; font-size: 0.92rem; color: var(--skifer); }
.maal-sum strong { color: var(--basalt); }

.taeller { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--linje); background: var(--kalk-0); }
.taeller button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.3rem; font-weight: 300; display: grid; place-items: center; }
.taeller button:hover { background: var(--kalk-2); }
.taeller button:disabled { opacity: 0.3; cursor: not-allowed; }
.taeller output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 540; }
.raekke { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: flex-end; }
.raekke > div > p { margin: 8px 0 0; font-size: 0.82rem; color: var(--skifer); max-width: 30ch; }
.tjek { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 46px; }
.tjek input { width: 20px; height: 20px; accent-color: var(--tegl); }
.tjek small { color: var(--skifer); }

.calc__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(20px, 2vw, 28px); padding-top: 16px; border-top: 1.5px solid var(--basalt); }
.calc__pos { font-size: 0.82rem; color: var(--skifer); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.calc__nav [hidden] { display: none; }

/* ---------- Overslaget ---------- */
.overslag {
  position: sticky; top: calc(var(--head-h) + 18px); background: var(--kalk-0);
  box-shadow: 0 0 0 1px var(--kalk-3), 0 40px 80px -48px oklch(0.25 0.03 240 / 0.45);
  padding: clamp(18px, 1.6vw, 24px) clamp(18px, 1.6vw, 24px) clamp(18px, 1.6vw, 22px);
}
.overslag__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--basalt); padding-bottom: 12px; margin-bottom: 16px; }
.overslag__top .eyebrow { margin: 0; color: var(--basalt); }
.overslag__top .eyebrow::before { display: none; }
.overslag__dato { font-size: 0.78rem; color: var(--skifer); }
.overslag__titel { font-size: 1rem; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 14px; line-height: 1.3; }
.overslag__linjer { list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; }
.overslag__linjer li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dotted var(--linje); align-items: baseline; }
.overslag__linjer li > span:first-child { min-width: 0; }
.overslag__linjer li small { display: block; color: var(--skifer); font-size: 0.74rem; line-height: 1.35; }
.overslag__linjer .pr { flex: none; margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.overslag__linjer .pr--inkl { color: var(--skifer); }
.js .overslag__linjer li.is-ny { animation: linjeind .7s var(--ease) both; }
@keyframes linjeind { from { opacity: 0; transform: translateX(-8px); background: oklch(0.545 0.14 36 / 0.08); } to { opacity: 1; transform: none; background: transparent; } }
.overslag__total { margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--basalt); }
.overslag__total span { display: block; font-size: var(--fs-micro); letter-spacing: 0.13em; text-transform: uppercase; color: var(--skifer); font-weight: 520; margin-bottom: 6px; }
.overslag__total strong { display: block; font-size: clamp(1.5rem, 1.15rem + 0.8vw, 2rem); font-weight: 560; letter-spacing: -0.04em; line-height: 1.05; font-variation-settings: "SHRP" 100; white-space: nowrap; }
.overslag__total strong small, .overslag-bar strong small { font-size: 0.5em; font-weight: 440; letter-spacing: 0; color: var(--skifer); }
.overslag-bar strong small { color: var(--nat-tekst-2); }
.overslag__total strong.is-fejl { font-size: 1.1rem; font-weight: 450; letter-spacing: -0.01em; color: var(--tegl-mork); }
.overslag__spand { position: relative; height: 26px; margin: 14px 0 6px; }
.overslag__spand::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--linje); }
.overslag__spand b { position: absolute; top: 7px; height: 11px; left: var(--a); width: calc(var(--b) - var(--a)); background: var(--basalt); transition: left .6s var(--ease), width .6s var(--ease); }
.overslag__spand i { position: absolute; top: 9px; width: 1px; height: 7px; background: var(--sten); }
.overslag__skala { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--skifer); font-variant-numeric: tabular-nums; }
.overslag__fin { font-size: 0.75rem; color: var(--skifer); line-height: 1.45; margin: 10px 0 14px; }
.overslag__knapper { display: grid; gap: 12px; }
.overslag__knapper .knap { justify-content: space-between; }
.overslag__knapper .link { justify-self: start; background-image: none; border: 0; padding: 4px 0; font-size: 0.875rem; color: var(--basalt-2); text-decoration: underline; text-underline-offset: 0.22em; }
.kopieret { font-size: 0.8rem; color: var(--tegl-mork); }

.overslag-bar { display: none; }

/* ---------- Send ---------- */
.send { padding-block: clamp(80px, 8vw, 150px); scroll-margin-top: var(--head-h); }
html:not(.js) .send__form { display: none; }
.send__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 40px); row-gap: 40px; }
.send__intro { grid-column: 1 / span 5; }
.send__intro h2 { font-size: var(--fs-h2); font-weight: 270; letter-spacing: -0.05em; }
.send__intro h2 b { font-weight: 620; }
.send__intro .lede { margin-top: 22px; }
.send__resume { margin-top: 32px; padding: 20px 0 0; border-top: 1px solid var(--nat-linje); font-size: 0.9rem; color: var(--nat-tekst-2); }
.send__resume strong { display: block; color: var(--nat-tekst); font-size: 1.5rem; font-weight: 520; letter-spacing: -0.03em; margin-top: 4px; }
.send__form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.send__form .felt--hel { grid-column: 1 / -1; }
.nat .felt > span:first-child { color: var(--nat-tekst-2); }
.nat .felt__in, .nat .felt textarea { background: var(--nat-2); box-shadow: inset 0 0 0 1px var(--nat-linje); color: var(--nat-tekst); }
.nat .felt__in:focus-within, .nat .felt textarea:focus { box-shadow: inset 0 0 0 1.5px var(--nat-tekst); }
.nat .felt.is-fejl .felt__in { box-shadow: inset 0 0 0 1.5px var(--tegl-lys); }
.nat .felt__fejl { color: var(--tegl-lys); }
.nat .felt input[type="file"] { min-height: 50px; padding: 12px 14px; font-size: 0.9rem; color: var(--nat-tekst-2); }
.fil { display: flex; align-items: center; gap: 16px; cursor: pointer; flex-wrap: wrap; }
.fil .knap { pointer-events: none; }
.fil input:focus-visible + .knap { outline: 2px solid var(--tegl-lys); outline-offset: 3px; }
.fil__navn { font-size: 0.85rem; color: var(--nat-tekst-2); overflow-wrap: anywhere; }
.send__fod { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.send__fod p { margin: 0; font-size: 0.82rem; color: var(--nat-tekst-2); max-width: 46ch; }
.send__fod a { color: var(--nat-tekst); }
.send__tak { grid-column: 7 / span 6; padding: 32px 0; border-top: 1.5px solid var(--nat-tekst); }
.send__tak h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 300; letter-spacing: -0.035em; margin-bottom: 14px; }
.send__tak p { color: var(--nat-tekst-2); }
.send__tak a { color: var(--nat-tekst); }

/* ---------- Responsivt ---------- */
@media (max-width: 1080px) {
  .calc__head > div, .calc__intro { grid-column: 1 / -1; }
  .calc__main { grid-column: 1 / -1; }
  .overslag { display: none; }
  .overslag.is-aaben { display: block; position: fixed; inset: auto 0 0 0; z-index: var(--z-sheet); max-height: 82vh; overflow: auto; box-shadow: 0 -30px 60px -20px oklch(0.2 0.03 240 / 0.4); padding-bottom: calc(96px + env(safe-area-inset-bottom)); animation: ark .45s var(--ease); }
  @keyframes ark { from { transform: translateY(100%); } to { transform: none; } }
  .overslag-bar {
    display: flex; position: fixed; z-index: calc(var(--z-sheet) + 1); left: 0; right: 0; bottom: 0; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--nat); color: var(--nat-tekst);
  }
  .overslag-bar span { display: block; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--nat-tekst-2); }
  .overslag-bar strong { font-size: 1.1rem; font-weight: 560; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .overslag-bar button { min-height: 44px; padding: 0 16px; border-radius: 3px; border: 0; background: var(--tegl); color: var(--kalk-0); font-weight: 520; font-size: 0.9rem; }
  .beregner .fod { padding-bottom: 80px; }
  .send__intro, .send__form, .send__tak { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .lineal { margin-inline: calc(var(--gutter) * -1); }
  .lineal ol { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: none; }
  .lineal ol::-webkit-scrollbar { display: none; }
  .lineal li { flex: 0 0 auto; scroll-snap-align: start; }
  .lineal button { padding-right: 22px; }
  .lineal__tape { margin-inline: var(--gutter); }
  .lineal__valg { max-width: 14ch; }
  .former { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maal-raekke { grid-template-columns: 1fr 1fr; }
  .maal__navn { grid-column: 1 / -1; padding-bottom: 0; }
  .scene { min-height: 260px; }
  .scene__stempel span:not(:last-child) { display: none; }
  .ark { grid-template-columns: 1fr; }
  .valg { padding-right: 6px; }
  .valg__pris { grid-column: 2; grid-row: auto; padding-top: 4px; }
  .send__form { grid-template-columns: 1fr; }
  .calc__nav .knap { padding: 0 14px; font-size: 0.92rem; gap: 8px; }
  .calc__pos { display: none; }
}

/* Omrids på tegningernes flader */
.o { stroke: oklch(0.3 0.022 248); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.del { will-change: transform, opacity; }

/* Advarsler, demonote og svarvalg */
.overslag__advarsel { margin: 14px 0 0; padding: 10px 12px; font-size: 0.82rem; line-height: 1.4; color: var(--tegl-mork); background: oklch(0.545 0.14 36 / 0.07); }
.overslag__demo { font-size: 0.74rem; color: var(--skifer); margin: -10px 0 18px; font-style: oblique 6deg; }
.legende i.l-plads { width: 10px; height: 10px; border-radius: 50%; background: var(--tegl); margin: 6px 6px 0; }
.under .felt__fejl[role="status"] { margin: 0; }
.svar-valg { border: 0; padding: 0; margin: 0; min-width: 0; }
.svar-valg legend { display: block; font-size: var(--fs-micro); letter-spacing: 0.13em; text-transform: uppercase; color: var(--nat-tekst-2); font-weight: 520; margin-bottom: 10px; }
.nat .pille span { box-shadow: inset 0 0 0 1px var(--nat-linje); color: var(--nat-tekst); }
.nat .pille:hover span { box-shadow: inset 0 0 0 1px var(--nat-tekst); }
.nat .pille input:checked + span { background: var(--nat-tekst); color: var(--nat); }
.nat .pille input:focus-visible + span { outline-color: var(--tegl-lys); }
.send__tak .link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; }
