:is(#b4.stortkost, #b4 .stortkost) {
  color-scheme: light;
  --ink: #123b30;
  --muted: #65766d;
  --line: #dce1d7;
  --accent: #9ab43b;
}
:is(#b4.stortkost, #b4 .stortkost) * { box-sizing: border-box; }
:is(#b4.stortkost, #b4 .stortkost) { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: #f3f3eb; color: var(--ink); }
:is(#b4.stortkost, #b4 .stortkost) { max-width: 1240px; margin: auto; padding: 32px; }
:is(#b4.stortkost, #b4 .stortkost) header, :is(#b4.stortkost, #b4 .stortkost) footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
:is(#b4.stortkost, #b4 .stortkost) header { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
:is(#b4.stortkost, #b4 .stortkost) header :is(a, .stortkost-wordmark) { font-weight: 800; letter-spacing: .14em; text-decoration: none; color: inherit; }
:is(#b4.stortkost, #b4 .stortkost) header :is(a, .stortkost-wordmark) span, :is(#b4.stortkost, #b4 .stortkost) h2 span { color: #829c29; }
:is(#b4.stortkost, #b4 .stortkost) header > span { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
:is(#b4.stortkost, #b4 .stortkost) .intro { margin: 36px 0 30px; }
:is(#b4.stortkost, #b4 .stortkost) h1 { font-size: clamp(3.2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -2px; margin: 0 0 14px; }
:is(#b4.stortkost, #b4 .stortkost) p { margin: 0; color: var(--muted); }
:is(#b4.stortkost, #b4 .stortkost) h2 { margin: 0 0 22px; font-size: 21px; letter-spacing: -.035em; }
:is(#b4.stortkost, #b4 .stortkost) h2 span { margin-right: 8px; }
:is(#b4.stortkost, #b4 .stortkost) .container-calculator { display: grid; grid-template-columns: minmax(0, 390fr) minmax(0, 762fr); gap: 24px; }
:is(#b4.stortkost, #b4 .stortkost) .container-inputs, :is(#b4.stortkost, #b4 .stortkost) .card, :is(#b4.stortkost, #b4 .stortkost) .container-comparison { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 26px; min-width: 0; }
:is(#b4.stortkost, #b4 .stortkost) .container-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:is(#b4.stortkost, #b4 .stortkost) label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
:is(#b4.stortkost, #b4 .stortkost) input, :is(#b4.stortkost, #b4 .stortkost) select, :is(#b4.stortkost, #b4 .stortkost) button { font: inherit; color: inherit; }
:is(#b4.stortkost, #b4 .stortkost) input[type=number], :is(#b4.stortkost, #b4 .stortkost) select {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 16px;
  font-weight: 400;
  background: #fcfcf9;
  border: 1px solid #d0d8cd;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  min-height: 49px;
}
:is(#b4.stortkost, #b4 .stortkost) input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
:is(#b4.stortkost, #b4 .stortkost) input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
:is(#b4.stortkost, #b4 .stortkost) .container-unit { display: block; position: relative; }
:is(#b4.stortkost, #b4 .stortkost) .container-unit input { padding-right: 52px; }
:is(#b4.stortkost, #b4 .stortkost) .container-unit small { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; font-weight: 400; }
:is(#b4.stortkost, #b4 .stortkost) .hint, :is(#b4.stortkost, #b4 .stortkost) .container-help, :is(#b4.stortkost, #b4 .stortkost) footer { font-size: 14px; color: var(--muted); }
:is(#b4.stortkost, #b4 .stortkost) .hint { display: block; margin-top: 6px; font-weight: 400; }
:is(#b4.stortkost, #b4 .stortkost) .container-error { color: #9a3526; font-size: 14px; margin: 10px 0 0; }
:is(#b4.stortkost, #b4 .stortkost) input[aria-invalid=true] { outline: 2px solid #b25742; }
:is(#b4.stortkost, #b4 .stortkost) .results { display: grid; grid-template-rows: auto 1fr; gap: 20px; min-width: 0; }
:is(#b4.stortkost, #b4 .stortkost) .container-total { border-radius: 16px; padding: 30px; color: #fff; background: var(--ink); }
:is(#b4.stortkost, #b4 .stortkost) .container-total > span, :is(#b4.stortkost, #b4 .stortkost) .container-total small { font-size: 14px; color: #e3ece4; }
:is(#b4.stortkost, #b4 .stortkost) .container-total > strong { display: block; font-size: clamp(36px, 5vw, 58px); letter-spacing: -2px; margin: 6px 0; line-height: 1.5; overflow-wrap: anywhere; }
:is(#b4.stortkost, #b4 .stortkost) .container-total [data-container-formula] { display: block; font-size: 14px; }
:is(#b4.stortkost, #b4 .stortkost) .metrics { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid #ffffff2d; margin-top: 24px; padding-top: 18px; }
:is(#b4.stortkost, #b4 .stortkost) .metrics b { display: block; font-size: 24px; }
:is(#b4.stortkost, #b4 .stortkost) .container-table { width: 100%; border-collapse: collapse; font-size: 14px; }
:is(#b4.stortkost, #b4 .stortkost) .container-table th, :is(#b4.stortkost, #b4 .stortkost) .container-table td { text-align: right; padding: 14px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
:is(#b4.stortkost, #b4 .stortkost) .container-table th[scope=row] { text-align: left; font-weight: 400; }
:is(#b4.stortkost, #b4 .stortkost) .container-table thead th { color: var(--muted); font-size: 14px; }
:is(#b4.stortkost, #b4 .stortkost) [data-period-note] { margin-top: 6px; }
:is(#b4.stortkost, #b4 .stortkost) .container-comparison { margin-top: 24px; }
:is(#b4.stortkost, #b4 .stortkost) .container-reduction { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
:is(#b4.stortkost, #b4 .stortkost) .container-reduction label { margin: 0; }
:is(#b4.stortkost, #b4 .stortkost) .container-reduction .container-unit { display: flex; align-items: center; gap: 6px; }
:is(#b4.stortkost, #b4 .stortkost) .container-reduction input { width: 80px; padding: 10px 12px; margin: 0; }
:is(#b4.stortkost, #b4 .stortkost) .container-reduction small { position: static; transform: none; color: var(--ink); font-size: 16px; }
:is(#b4.stortkost, #b4 .stortkost) input[type=range] { display: block; width: 100%; margin: 8px 0 12px; accent-color: var(--accent); }
:is(#b4.stortkost, #b4 .stortkost) [data-row=saving] { background: #f2f6e2; color: #566d19; font-weight: 750; }
:is(#b4.stortkost, #b4 .stortkost) [data-row=saving] th[scope=row] { font-weight: inherit; }
:is(#b4.stortkost, #b4 .stortkost) .container-comparison .container-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: #eef4da; color: var(--ink); border-radius: 10px; margin: 16px 0 18px; padding: 18px 20px; }
:is(#b4.stortkost, #b4 .stortkost) .container-comparison .container-total span { color: inherit; font-size: 16px; }
:is(#b4.stortkost, #b4 .stortkost) .container-comparison .container-total strong { font-size: 26px; margin: 0; }
:is(#b4.stortkost, #b4 .stortkost) footer { padding: 24px 0; }
:is(#b4.stortkost, #b4 .stortkost) button { background: transparent; border: 1px solid #d0d8cd; border-radius: 8px; padding: 9px 13px; cursor: pointer; }
:is(#b4.stortkost, #b4 .stortkost) button:hover { background: #e9eedf; }
@media (max-width: 760px) {
  :is(#b4.stortkost, #b4 .stortkost) { padding: 20px; }
  :is(#b4.stortkost, #b4 .stortkost) .container-calculator { grid-template-columns: minmax(0, 1fr); }
  :is(#b4.stortkost, #b4 .stortkost) .container-inputs, :is(#b4.stortkost, #b4 .stortkost) .card, :is(#b4.stortkost, #b4 .stortkost) .container-comparison, :is(#b4.stortkost, #b4 .stortkost) .container-total { padding: 18px; }
  :is(#b4.stortkost, #b4 .stortkost) footer { flex-wrap: wrap; }
}
@media (max-width: 450px) {
  :is(#b4.stortkost, #b4 .stortkost) { padding: 14px; }
  :is(#b4.stortkost, #b4 .stortkost) .container-table th, :is(#b4.stortkost, #b4 .stortkost) .container-table td { padding: 8px 3px; }
  :is(#b4.stortkost, #b4 .stortkost) .container-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media print {
  :is(#b4.stortkost, #b4 .stortkost) { padding: 0; }
  :is(#b4.stortkost, #b4 .stortkost) header, :is(#b4.stortkost, #b4 .stortkost) footer, :is(#b4.stortkost, #b4 .stortkost) input[type=range] { display: none; }
  :is(#b4.stortkost, #b4 .stortkost) .container-total { color: var(--ink); background: #eef4da; }
  :is(#b4.stortkost, #b4 .stortkost) .container-total > span, :is(#b4.stortkost, #b4 .stortkost) .container-total small { color: var(--ink); }
  :is(#b4.stortkost, #b4 .stortkost) .container-calculator { grid-template-columns: 1fr 1.5fr; }
  :is(#b4.stortkost, #b4 .stortkost) .container-comparison, :is(#b4.stortkost, #b4 .stortkost) .card, :is(#b4.stortkost, #b4 .stortkost) .container-inputs { break-inside: avoid; }
}


body:has(> .stortkost) { margin: 0; background: #f3f3eb; }
body > #b4.site-block {
  position: relative;
  z-index: var(--stack-order, 9);
  background: #f3f3eb;
  scroll-margin-top: 0;
}
@media screen and (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  body > #b4.site-block {
    position: sticky;
    top: 0;
  }
}
/* Allow for the masthead's 3svh top offset, 46px height and breathing room. */
#b4.site-block { --stortkost-clearance: max(104px, calc(3svh + 74px)); }
body > #b4.site-block > .stortkost { padding-top: var(--stortkost-clearance); }
#b4 #stortkost-titel { scroll-margin-top: var(--stortkost-clearance); }
#b4.site-block .stortkost .intro { margin-top: 0; }
@media print {
  body.printing-stortkost > :not(#b4) { display: none !important; }
  body.printing-stortkost > #b4.site-block { box-shadow: none; }
  body.printing-stortkost > #b4.site-block > .stortkost { padding: 0; }
}

/* Keep the three main cards in one row at desktop widths. */
#b4 .stortkost .container-calculator--three {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media screen and (min-width: 1024px) {
  #b4 .stortkost .container-calculator--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #b4 .stortkost .container-calculator--three > .container-total {
    display: flex;
    flex-direction: column;
    padding: 26px;
    min-width: 0;
  }
  #b4 .stortkost .container-calculator--three > .card th,
  #b4 .stortkost .container-calculator--three > .card td {
    padding-inline: 4px;
  }
  #b4 .stortkost .container-calculator--three .metrics { gap: 12px 24px; }

}

#b4 .stortkost .container-calculator--three > :is(.container-inputs, .container-total, .card) {
  padding: 20px;
}
#b4 .stortkost .container-calculator--three h2 { margin-bottom: 14px; }
#b4 .stortkost .container-calculator--three label { margin-bottom: 10px; }
#b4 .stortkost .container-calculator--three .container-fields label:nth-last-child(-n+2) {
  margin-bottom: 0;
}
@media (max-width: 450px) {
  #b4 .stortkost .container-calculator--three .container-fields label:nth-last-child(2) {
    margin-bottom: 10px;
  }
}

/* Fit input and screening comparison in the same desktop section. */
@media screen and (min-width: 1024px) {
  body > #b4.site-block > .stortkost {
    padding-block: var(--stortkost-clearance) 8px;
  }
  #b4.site-block .stortkost .intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
  }
  #b4.site-block .stortkost .intro h1 { margin-bottom: 0; }
  #b4.site-block .stortkost .intro p { max-width: 38ch; }
  #b4 .stortkost .container-calculator--three > :is(.container-inputs, .container-total, .card) {
    padding: 9px 16px;
  }
  #b4 .stortkost .container-calculator--three h2 { margin-bottom: 6px; }
  #b4 .stortkost .container-calculator--three label { margin-bottom: 5px; }
  #b4 .stortkost .container-calculator--three :is(input[type=number], select) {
    min-height: 34px;
    padding-block: 4px;
    margin-top: 3px;
  }
  #b4 .stortkost .container-calculator--three .hint { margin-top: 3px; }
  #b4 .stortkost .container-total > strong { line-height: 1.13; }
  #b4 .stortkost .container-calculator--three .metrics { margin-top: 12px; padding-top: 10px; }
  #b4 .stortkost .container-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 5px 20px;
    margin-top: 8px;
    padding: 8px 16px;
  }
  #b4 .stortkost .container-comparison h2 { margin-bottom: 3px; }
  #b4 .stortkost .container-reduction { margin-top: 7px; }
  #b4 .stortkost .container-reduction input { min-height: 34px; padding-block: 4px; }
  #b4 .stortkost .container-comparison input[type=range] { margin-bottom: 3px; }
  #b4 .stortkost .comparison-results { min-width: 0; }
  #b4 .stortkost .container-table :is(th, td) { padding-block: 3px; }
  #b4 .stortkost .container-comparison .container-total { margin: 5px 0 0; padding: 3px 10px; }
  #b4 .stortkost .comparison-note { grid-column: 1 / -1; }
  #b4 .stortkost footer { padding-block: 5px 0; }
  #b4 .stortkost footer button { padding-block: 4px; }
}

@media screen and (min-width: 1024px) {
  body > #b4.site-block > .stortkost {
    flex: 0 0 auto;
    width: 100%;
    margin-block: auto;
  }
}
@media screen and (min-width: 1800px) {
  body > #b4.site-block > .stortkost { max-width: 1560px; }
}
