


.tb-seite { padding-bottom: clamp(48px, 8vw, 96px); }
.tb-vorschau {
  margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--lp-warn); border-radius: var(--lp-radius);
  background: var(--lp-warn-dim); color: var(--lp-text); font-size: 14px;
}

.tb-kopf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  padding-bottom: clamp(28px, 5vw, 44px); border-bottom: 1px solid var(--lp-line-soft);
}
.tb-kopf-vorher { border-bottom: 0; padding-bottom: 0; }
.tb-kopf .lp-h1 { max-width: 18ch; }
.tb-lead { margin-top: 14px; }
.tb-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font: 13px/1.5 var(--lp-mono); color: var(--lp-muted); }
.tb-meta b { color: var(--lp-text); font-weight: 600; }
.tb-aktionen { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.tb-jahre { display: flex; gap: 6px; }
.tb-jahre a, .tb-jahr-an {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--lp-line); color: var(--lp-text); font: 500 14px/1 var(--lp-mono); text-decoration: none;
}
.tb-jahr-an { background: var(--lp-violet-dim); border-color: var(--lp-violet-lit); box-shadow: inset 0 0 0 1px var(--lp-violet-lit); }
.tb-jahre a:hover { border-color: var(--lp-violet); }

.tb-eckwerte {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 5vw, 44px);
  border: 1px solid var(--lp-line-soft); border-radius: var(--lp-radius); background: var(--lp-surface);
}
.tb-eckwerte.tb-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-eckwert { padding: 20px 22px; border-left: 1px solid var(--lp-line-soft); }
.tb-eckwert:first-child { border-left: 0; }
.tb-zahl { font: 700 clamp(28px, 4vw, 40px)/1 var(--lp-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-zahl-null { color: var(--lp-muted); }
.tb-eckwert p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--lp-muted); }

.tb-sektion { margin-top: clamp(40px, 7vw, 72px); padding-top: clamp(40px, 7vw, 72px); border-top: 1px solid var(--lp-line-soft); }
.tb-sektion-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 48px; align-items: start; }
.tb-sektion-kopf .lp-lead-text { margin-top: 6px; }
.tb-sektion-kopf .lp-lead-text b { color: var(--lp-text); }
.tb-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tb-karte { min-width: 0; padding: 22px; background: var(--lp-surface); border: 1px solid var(--lp-line-soft); border-radius: var(--lp-radius); }
.tb-karte-titel { margin: 0 0 4px; font: 650 1rem/1.3 var(--lp-display); }
.tb-karte-titel.tb-abstand { margin-top: 26px; }
.tb-karte-unter { margin: 0 0 18px; font-size: 13.5px; color: var(--lp-muted); }

.tb-balken { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.tb-balken li { display: grid; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr) 4.5em; gap: 12px; align-items: center; font-size: 14px; }
.tb-spur { height: 12px; border-radius: 3px; background: var(--lp-surface-2); overflow: hidden; }
.tb-spur i { display: block; height: 100%; border-radius: 3px; background: var(--lp-violet); }
.tb-stufe2 .tb-spur i { background: color-mix(in srgb, var(--lp-violet) 65%, var(--lp-surface-2)); }
.tb-stufe3 .tb-spur i { background: color-mix(in srgb, var(--lp-violet) 35%, var(--lp-surface-2)); }
.tb-wert { font: 600 14px/1 var(--lp-mono); text-align: right; font-variant-numeric: tabular-nums; }

.tb-monate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; }
.tb-monat { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.tb-monat i { display: block; width: 100%; max-width: 28px; border-radius: 3px 3px 0 0; background: var(--lp-violet); }
.tb-monat.leer i {
  height: 100%; border: 1px dashed var(--lp-line); border-bottom: 0;
  background: repeating-linear-gradient(135deg, var(--lp-surface-2) 0 4px, transparent 4px 8px);
}
.tb-monat span { font: 11px/1 var(--lp-mono); color: var(--lp-muted); }
.tb-monat b { font: 600 11px/1 var(--lp-mono); }
.tb-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 13px; color: var(--lp-muted); }
.tb-legende span::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px;
  border-radius: 2px; background: var(--lp-violet);
}
.tb-legende .ungezaehlt::before { background: repeating-linear-gradient(135deg, var(--lp-line) 0 2px, transparent 2px 4px); border: 1px dashed var(--lp-line); }

.tb-tabelle { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 14px; }
.tb-tabelle.tb-eng { margin-top: 22px; }
.tb-tabelle th, .tb-tabelle td { padding: 12px 10px; border-top: 1px solid var(--lp-line-soft); text-align: right; font-variant-numeric: tabular-nums; }
.tb-tabelle th:first-child, .tb-tabelle td:first-child { text-align: left; }
.tb-tabelle thead th { border-top: 0; font: 600 11px/1.3 var(--lp-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--lp-muted); }
.tb-tabelle td { font-family: var(--lp-mono); }
.tb-tabelle td:first-child { font-family: var(--lp-sans); }
.tb-tabelle tr.summe td { font-weight: 700; border-top: 1px solid var(--lp-line); }
.tb-null { color: var(--lp-muted); }

.tb-ring { display: flex; align-items: center; gap: 18px; }
.tb-ring svg { flex: none; }
.tb-ring-grund { stroke: var(--lp-surface-2); }
.tb-ring-wert { stroke: var(--lp-violet); }
.tb-ring-zahl { font: 700 28px/1 var(--lp-display); }
.tb-ring .lp-note { margin: 6px 0 0; }

.tb-seit {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--lp-line-soft); border-radius: 999px;
  font: 500 11px/1.5 var(--lp-mono); color: var(--lp-muted); white-space: nowrap; vertical-align: 1px;
}
.tb-zusage {
  margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--lp-brass); border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  background: var(--lp-brass-dim); font-size: 14.5px; line-height: 1.6;
}
.tb-leer {
  margin-top: clamp(28px, 5vw, 44px); padding: clamp(28px, 5vw, 48px);
  border: 1px dashed var(--lp-line); border-radius: var(--lp-radius); text-align: center;
}
.tb-leer .tb-zahl { font-size: clamp(36px, 6vw, 56px); }
.tb-leer p { max-width: 52ch; margin: 12px auto 0; line-height: 1.6; color: var(--lp-muted); }
.tb-leer p b { color: var(--lp-text); }

@media (max-width: 860px) {
  .tb-kopf, .tb-sektion-kopf, .tb-raster { grid-template-columns: minmax(0, 1fr); }
  .tb-aktionen { align-items: flex-start; }
  .tb-eckwerte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-eckwert:nth-child(3) { border-left: 0; }
  .tb-eckwert:nth-child(n+3) { border-top: 1px solid var(--lp-line-soft); }
}
@media (max-width: 520px) {
  .tb-eckwerte.tb-zwei { grid-template-columns: minmax(0, 1fr); }
  .tb-eckwerte.tb-zwei .tb-eckwert { border-left: 0; }
  .tb-eckwerte.tb-zwei .tb-eckwert + .tb-eckwert { border-top: 1px solid var(--lp-line-soft); }
  .tb-balken li { grid-template-columns: minmax(0, 1fr) 4em; }
  .tb-balken .tb-spur { grid-column: 1 / -1; grid-row: 2; }
  .tb-monate { gap: 3px; }
  .tb-monat span, .tb-monat b { font-size: 9px; }
  .tb-tabelle { font-size: 13px; }
  .tb-tabelle th, .tb-tabelle td { padding: 10px 4px; }
  .tb-tabelle .breit { display: none; }
  .tb-tabelle thead th { font-size: 10px; letter-spacing: 0; overflow-wrap: anywhere; hyphens: auto; }
  .tb-tabelle td:first-child { overflow-wrap: anywhere; hyphens: auto; }
  .tb-seit { white-space: normal; }
}
