.bc-seite { overflow-x: clip; }

.bc-rechner {
  margin: 8px 0 40px;
  padding: clamp(16px, 3vw, 28px);
  background: var(--bc-gehaeuse);
  color: var(--bc-text);
  border: 2px solid;
  border-color: var(--bc-gehaeuse-licht) var(--bc-gehaeuse-schatten) var(--bc-gehaeuse-schatten) var(--bc-gehaeuse-licht);
  border-radius: 16px;
  box-shadow: 0 8px 0 var(--bc-gehaeuse-schatten);
}

.bc-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.bc-kopftext { flex: 1 1 220px; min-width: 0; }

.bc-marke {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bc-text);
}

.bc-unterzeile { margin: 2px 0 0; color: var(--bc-leise); font-size: 15px; }

.bc-typenschild {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--bc-leise);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--bc-leise);
}

.bc-anzeige {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--bc-lcd);
  color: var(--bc-lcd-text);
  border-radius: 6px;
  box-shadow: inset 0 3px 0 var(--bc-gehaeuse-schatten), inset 0 0 0 2px var(--bc-gehaeuse-schatten);
  font-family: var(--font-mono);
}

.bc-anzeige-titel { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.bc-anzeige-wert {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
}

.bc-form { display: grid; gap: 20px; }

.bc-meldung:empty { display: none; }
.bc-meldung p { margin: 0; }
.bc-fehler {
  padding: 10px 14px;
  border-left: 4px solid var(--bc-fehler);
  background: var(--bc-feld);
  color: var(--bc-text);
  font-weight: 700;
}

.bc-schritt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  color: var(--bc-text);
}

.bc-nummer {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 6px;
  background: var(--bc-taste);
  color: var(--bc-taste-text);
  font-family: var(--font-mono);
  font-size: 16px;
  box-shadow: 0 3px 0 var(--bc-gehaeuse-schatten);
}

.bc-kalkulation {
  padding: 14px 16px;
  border: 1px solid var(--bc-feld-rand);
  border-radius: 8px;
  background: var(--bc-feld);
}

.bc-verstanden { margin: 4px 0 10px; max-width: 75ch; }

.bc-eckdaten { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 8px; }
.bc-eckdaten dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bc-leise); }
.bc-eckdaten dd { margin: 0; font-weight: 800; font-size: 18px; }

.bc-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; }

.bc-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bc-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--bc-akzent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.bc-nutzen { margin: 0; padding: 0; border: 0; min-width: 0; }

.bc-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px 20px;
  margin-top: 10px;
}

.bc-feld { display: flex; flex-direction: column; min-width: 0; }

.bc-label { font-weight: 800; color: var(--bc-text); }

.bc-hilfe { margin: 2px 0 6px; color: var(--bc-leise); font-size: 14px; line-height: 1.45; }

.bc-leise { margin: 6px 0 0; color: var(--bc-leise); font-size: 14px; line-height: 1.45; max-width: 80ch; }

.bc-eingabe {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--bc-feld-rand);
  border-radius: 6px;
  background: var(--bc-feld);
  color: var(--bc-text);
  font: inherit;
  font-size: 16px;
}

.bc-eingabe:focus-visible { outline: 3px solid var(--bc-akzent); outline-offset: 2px; }
.bc-eingabe[aria-invalid="true"] { border: 2px solid var(--bc-fehler); }

.bc-text { resize: vertical; min-height: 120px; line-height: 1.5; }

.bc-zahlfeld { display: flex; align-items: stretch; margin-top: auto; }
.bc-zahlfeld .bc-eingabe { border-top-right-radius: 0; border-bottom-right-radius: 0; font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }

.bc-einheit {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-width: 76px;
  padding: 0 10px;
  border: 1px solid var(--bc-feld-rand);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: var(--bc-taste);
  color: var(--bc-taste-text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.bc-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

.bc-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bc-akzent);
  color: var(--bc-akzent-text);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--bc-gehaeuse-schatten);
}

.bc-start:hover { filter: brightness(1.06); }
.bc-start:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bc-gehaeuse-schatten); }
.bc-start:focus-visible { outline: 3px solid var(--bc-text); outline-offset: 3px; }
.bc-start:disabled { cursor: progress; opacity: .8; }

.bc-streifen { margin: 0 0 48px; scroll-margin-top: 96px; }
.bc-streifen:focus,
.bc-streifen:focus-visible { outline: none; }

.bc-papier {
  position: relative;
  padding: 28px clamp(36px, 6vw, 64px);
  color: var(--bc-papier-text);
  background:
    repeating-linear-gradient(to bottom, var(--bc-papier-streifen) 0 48px, transparent 48px 96px),
    var(--bc-papier);
  border-left: 1px dashed var(--bc-papier-linie);
  border-right: 1px dashed var(--bc-papier-linie);
}

.bc-papier::before,
.bc-papier::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  background: radial-gradient(circle, var(--paper) 0 5px, transparent 5.5px) center top / 16px 24px repeat-y;
}

.bc-papier::before { left: 6px; }
.bc-papier::after { right: 6px; }

.bc-streifen-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bc-papier-text);
}

.bc-ergebnis-titel { margin: 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--bc-papier-text); }

.bc-stand { margin: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bc-papier-leise); }

.bc-kennzahlen {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.bc-kennzahlen li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--bc-papier-linie);
  border-top: 4px solid var(--bc-s0);
  background: var(--bc-papier);
}

.bc-k-titel { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bc-papier-leise); }
.bc-k-wert { font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bc-k-unter { font-size: 14px; color: var(--bc-papier-leise); }

.bc-abschnitt { margin: 18px 0 8px; font-size: 18px; font-weight: 800; color: var(--bc-papier-text); }

.bc-grafik { margin: 0 0 8px; }
.bc-grafik figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }

.bc-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 700; }
.bc-legende li { display: inline-flex; align-items: center; gap: 8px; }

.swatch { display: inline-block; width: 18px; height: 4px; border-radius: 2px; flex: none; }
.swatch.bc-s0 { background: var(--bc-s0); }
.swatch.bc-s1 { background: var(--bc-s1); }
.swatch.bc-s2 { background: var(--bc-s2); }

.bc-kurvenrahmen,
.bc-tabellenrahmen { overflow-x: auto; max-width: 100%; }

.bc-kurvenrahmen:focus-visible,
.bc-tabellenrahmen:focus-visible { outline: 3px solid var(--bc-akzent); outline-offset: 2px; }

.bc-kurve { display: block; width: 100%; max-width: 820px; min-width: 560px; height: auto; }
.bc-gitter { stroke: var(--bc-papier-linie); stroke-width: 1; }
.bc-null { stroke: var(--bc-papier-text); stroke-width: 1.5; }
.bc-golive { stroke: var(--bc-papier-leise); stroke-width: 1; stroke-dasharray: 3 3; }
.bc-achse { font-family: var(--font-mono); font-size: 12px; fill: var(--bc-papier-leise); }
.bc-ende { font-family: var(--font-sans); font-size: 13px; font-weight: 700; fill: var(--bc-papier-text); }
.bc-linie { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bc-linie.bc-s0 { stroke: var(--bc-s0); stroke-dasharray: 7 4; }
.bc-linie.bc-s1 { stroke: var(--bc-s1); }
.bc-linie.bc-s2 { stroke: var(--bc-s2); stroke-dasharray: 2 4; }
.bc-punkt { stroke: var(--bc-papier); stroke-width: 2; }
.bc-punkt.bc-s0 { fill: var(--bc-s0); }
.bc-punkt.bc-s1 { fill: var(--bc-s1); }
.bc-punkt.bc-s2 { fill: var(--bc-s2); }

.bc-tabelle { width: 100%; min-width: 480px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.bc-tabelle th,
.bc-tabelle td { padding: 8px 10px; border-bottom: 1px solid var(--bc-papier-linie); text-align: right; }
.bc-tabelle th:first-child,
.bc-tabelle td:first-child { text-align: left; }
.bc-tabelle thead th { font-weight: 800; border-bottom: 2px solid var(--bc-papier-text); white-space: nowrap; }
.bc-tabelle tbody th { font-weight: 600; }
.bc-tabelle tfoot td { font-weight: 800; border-top: 2px solid var(--bc-papier-text); }
.bc-tabelle .swatch { margin-right: 8px; vertical-align: middle; }

.bc-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 32px; }
.bc-zwei p { margin: 0; max-width: 70ch; }

.bc-punkte { margin: 0; padding-left: 20px; }
.bc-punkte li { margin-bottom: 6px; }

.bc-papier .bc-leise { color: var(--bc-papier-leise); }

.bc-hinweis {
  margin: 24px 0 18px;
  padding: 10px 14px;
  border-left: 4px solid var(--bc-s1);
  background: var(--bc-papier);
  font-weight: 600;
}

.bc-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.bc-pdf .bc-leise { margin: 0; flex: 1 1 260px; }

.bc-hilfeliste { margin: 0; padding-left: 20px; max-width: 80ch; }
.bc-hilfeliste li { margin-bottom: 8px; }

@media (max-width: 520px) {
  .bc-papier { padding: 20px 30px; }
  .bc-papier::before { left: 4px; }
  .bc-papier::after { right: 4px; }
  .bc-typenschild { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-start:active { transform: none; }
}

@media print {
  .bc-rechner, .bc-hilfeblock, .bc-pdf { display: none; }
}
