/* ═══════════════════════════════════════════════════════════════════
   Team-Benchmark (team-benchmark.php) · Namespace .tb-*
   Aufbau: Einstieg, Team-Karte mit Kennzahlen (der eine auffaellige
   Teil der Seite), darunter ruhig der Editor und der Entgelt-Check.
   Farben nach Gehaltsklar-CI, Text auf Weiss mindestens AA
   (gemessen von tests/kontrast.spec.js).
   ═══════════════════════════════════════════════════════════════════ */

.tb-page {
  --tb-ink: #0F172A;
  --tb-text: #334155;
  --tb-muted: #5B6B80;
  --tb-line: #E2E8F0;
  --tb-line-soft: #F1F5F9;
  --tb-mist: #F6F8FA;
  --tb-field: #7C8BA1;      /* Feldrand 3,4:1 auf Weiss (WCAG 1.4.11) */
  --tb-green: #047857;
  --tb-green-hover: #065F46;
  --tb-green-soft: #ECFDF5;
  --tb-band: #D1FAE5;
  --tb-band-edge: #6EE7B7;
  --tb-under: #C2410C;      /* unter Band, 5,2:1 auf Weiss */
  --tb-under-soft: #FFF7ED;
  --tb-over: #475569;
  --tb-red: #B91C1C;
  --tb-red-soft: #FEF2F2;
  --tb-amber: #92400E;
  --tb-amber-soft: #FFFBEB;
  background: #fff;
}

.tb-page [hidden] { display: none !important; }

.tb-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tb-print-only { display: none; }

/* ── Einstieg ───────────────────────────────────────────────────── */
.tb-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 36px;
}
.tb-intro h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--tb-ink);
}
.tb-intro-lead {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--tb-text);
}
.tb-intro-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tb-green);
}

/* ── Arbeitsbereich ─────────────────────────────────────────────── */
.tb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  gap: 56px;
}
.tb-panel { min-width: 0; }

.tb-h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--tb-ink);
}
.tb-sub {
  max-width: 68ch;
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tb-muted);
}

/* ── Team-Karte ─────────────────────────────────────────────────── */
.tb-overview {
  padding: 32px 36px 28px;
  border: 1px solid var(--tb-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 40px rgba(15, 23, 42, .06);
}
.tb-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 20px;
}

.tb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-text);
}
.tb-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.tb-legend-item::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.tb-legend-item--under::before { background: var(--tb-under); }
.tb-legend-item--in::before    { background: var(--tb-green); }
.tb-legend-item--over::before  { background: var(--tb-over); }

.tb-map-empty {
  margin: 0;
  padding: 28px 20px;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
  text-align: center;
  font-size: 15px;
  color: var(--tb-muted);
}

.tb-map-list { margin: 0; padding: 0; list-style: none; }
.tb-map-row,
.tb-map-axis {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) 52px;
  align-items: center;
  gap: 20px;
}
.tb-map-row { padding: 6px 0; border-bottom: 1px solid var(--tb-line-soft); }
.tb-map-row:last-child { border-bottom: 0; }

.tb-map-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  min-width: 0;
  margin-left: -10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tb-map-label:hover { background: var(--tb-mist); }
.tb-map-name {
  flex: 1 1 100%;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tb-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-map-no,
.tb-map-meta { font-size: 13px; color: var(--tb-muted); }
.tb-map-meta::before { content: ", "; margin-left: -6px; }

.tb-map-track { position: relative; height: 32px; }
/* Grundlinie und Median-Linie: 1,00 liegt bei 50 % (Achse 0,6 bis 1,4) */
.tb-map-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--tb-line);
}
.tb-map-track::after {
  content: ""; position: absolute; left: 50%; top: -7px; bottom: -7px; width: 2px; margin-left: -1px;
  background: var(--tb-ink); opacity: .22;
}
.tb-map-band {
  position: absolute; top: 9px; height: 14px;
  border: 1px solid var(--tb-band-edge); border-radius: 8px; background: var(--tb-band);
}
.tb-map-dot {
  position: absolute; top: 50%; z-index: 1;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--tb-green); box-shadow: 0 0 0 3px #fff;
  transform: translate(-50%, -50%);
}
.tb-map-row--under .tb-map-dot { background: var(--tb-under); }
.tb-map-row--over .tb-map-dot  { background: var(--tb-over); }
/* Gehalt jenseits der Achse: Punkt bleibt am Rand, Ring zeigt die Kappung */
.tb-map-dot--clip { box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; color: #CBD5E1; }

.tb-map-cr {
  font-size: 16px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--tb-ink);
}
.tb-map-row--under .tb-map-cr { color: var(--tb-under); }

.tb-map-axis { margin-top: 6px; }
.tb-map-ticks { position: relative; height: 18px; font-size: 12px; color: var(--tb-muted); font-variant-numeric: tabular-nums; }
.tb-map-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tb-map-ticks span:nth-child(1) { left: 0; transform: none; }
.tb-map-ticks span:nth-child(2) { left: 25%; }
.tb-map-ticks span:nth-child(3) { left: 50%; }
.tb-map-ticks span:nth-child(4) { left: 75%; }
.tb-map-ticks span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.tb-map-tick-med { font-weight: 700; color: var(--tb-ink); }

/* ── Kennzahlen ─────────────────────────────────────────────────── */
.tb-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--tb-line);
}
.tb-kpi { padding: 0 24px; border-left: 1px solid var(--tb-line); }
.tb-kpi:first-child { padding-left: 0; border-left: 0; }
.tb-kpi dt { font-size: 13px; font-weight: 600; color: var(--tb-muted); }
.tb-kpi dd { margin: 4px 0 0; }
.tb-kpi-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--tb-ink);
  font-variant-numeric: tabular-nums;
}
.tb-kpi-sub { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--tb-muted); }
.tb-kpi-sub strong { color: var(--tb-ink); font-variant-numeric: tabular-nums; }
.tb-summary-note { max-width: 90ch; margin: 18px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--tb-muted); }

.tb-result-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--tb-green-soft);
}
.tb-result-cta p { flex: 1 1 320px; margin: 0; font-size: 15px; line-height: 1.55; color: #064E3B; }

/* ── Editor ─────────────────────────────────────────────────────── */
.tb-tool-head { margin-bottom: 18px; }

.tb-example-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--tb-amber-soft);
}
.tb-example-note p { flex: 1 1 260px; margin: 0; font-size: 14px; line-height: 1.5; color: #78350F; }

.tb-badge {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.tb-badge--example { background: #FEF3C7; color: var(--tb-amber); }

.tb-noscript { padding: 12px 16px; border-radius: 12px; background: var(--tb-amber-soft); color: #78350F; font-size: 14px; }

.tb-table-wrap { width: 100%; }
.tb-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.tb-table th {
  padding: 0 6px 8px;
  border-bottom: 1px solid var(--tb-line);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  vertical-align: bottom;
  color: var(--tb-muted);
}
.tb-opt { font-weight: 500; }
.tb-col-funktion { width: 24%; }
.tb-col-exp      { width: 18%; }
.tb-col-edu      { width: 17%; }
.tb-col-ort      { width: 12%; }
.tb-col-gender   { width: 11%; }
.tb-col-brutto   { width: 11%; }
.tb-col-actions  { width: 88px; }

.tb-inputs td { padding: 14px 6px 4px; vertical-align: bottom; }
.tb-result td { padding: 4px 6px 14px; border-bottom: 1px solid var(--tb-line); }
.tb-entry--example td { background: var(--tb-amber-soft); }
.tb-entry--example .tb-inputs td:first-child,
.tb-entry--example .tb-result td:first-child { box-shadow: inset 3px 0 0 #F59E0B; }

.tb-empty td { padding: 28px 12px; border-bottom: 1px solid var(--tb-line); text-align: center; font-size: 15px; color: var(--tb-muted); }

.tb-cell-head { display: flex; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 4px; }
.tb-cell-label { display: block; }
/* style.css setzt "label > span:first-child" auf block/13px, hier nicht gewollt */
.tb-page .tb-cell-label > span:first-child { display: inline; margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.tb-table .tb-cell-label:not(.tb-cell-label--keep),
.tb-cell-label-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.tb-cell-label--keep { font-size: 13px; font-weight: 700; color: var(--tb-text); }

.tb-page .tb-input,
.tb-page .tb-select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1.5px solid var(--tb-field);
  border-radius: 10px;
  background-color: #fff;
  color: var(--tb-ink);
  font-family: inherit;
  font-size: 14px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
}
.tb-page .tb-select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.tb-page .tb-input--num { text-align: right; font-variant-numeric: tabular-nums; }
.tb-page .tb-input:focus,
.tb-page .tb-select:focus {
  border-color: var(--tb-green);
  outline: 2px solid var(--tb-green);
  outline-offset: 1px;
}
.tb-page .tb-input[aria-invalid="true"] { border-color: #DC2626; background-color: var(--tb-red-soft); }

.tb-row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.tb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50px;
  background: none;
  color: var(--tb-muted);
  cursor: pointer;
}
.tb-icon-btn:hover { background: var(--tb-line-soft); color: var(--tb-ink); }
.tb-icon-btn--del:hover { background: var(--tb-red-soft); color: var(--tb-red); }

/* Ergebnis je Zeile: eine ruhige Textzeile, das Bild steht oben in der Karte */
.tb-res { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.tb-res-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; }
.tb-res-cat { font-size: 13px; font-weight: 700; color: var(--tb-text); }
.tb-scale { margin: 0; font-size: 13px; color: var(--tb-muted); font-variant-numeric: tabular-nums; }
.tb-res-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.tb-cr { display: inline-flex; align-items: baseline; gap: 6px; }
.tb-cr-label { font-size: 13px; color: var(--tb-muted); }
.tb-cr-value { font-size: 17px; font-weight: 800; color: var(--tb-ink); font-variant-numeric: tabular-nums; }

.tb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.tb-status-icon { font-size: 13px; line-height: 1; }
.tb-status--under { background: var(--tb-under-soft); color: var(--tb-under); }
.tb-status--low,
.tb-status--high  { background: var(--tb-green-soft); color: var(--tb-green); }
.tb-status--over  { background: var(--tb-line-soft); color: var(--tb-over); }

.tb-res-raise { font-size: 13px; font-weight: 700; color: var(--tb-under); font-variant-numeric: tabular-nums; }
.tb-res-link { font-size: 13px; font-weight: 600; color: var(--tb-green); text-decoration: underline; text-underline-offset: 3px; }
.tb-res-link:hover { color: var(--tb-green-hover); }

.tb-res-msg { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--tb-muted); }
.tb-res-msg--warn { padding: 6px 10px; border-radius: 8px; background: #FEF3C7; color: var(--tb-amber); }

/* ── Knoepfe ────────────────────────────────────────────────────── */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.tb-btn--primary { background: var(--tb-green); color: #fff; }
.tb-btn--primary:hover { background: var(--tb-green-hover); color: #fff; }
.tb-btn--primary:disabled { background: #94A3B8; cursor: not-allowed; }
.tb-btn--ghost { background: #fff; color: var(--tb-green); border-color: #A7B4C4; }
.tb-btn--ghost:hover { border-color: var(--tb-green); color: var(--tb-green-hover); }
.tb-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }

.tb-page .tb-btn:focus-visible,
.tb-page .tb-icon-btn:focus-visible,
.tb-page .tb-res-link:focus-visible,
.tb-page .tb-map-label:focus-visible,
.tb-page .tb-faq-q:focus-visible,
.tb-page .tb-check input:focus-visible {
  outline: 3px solid var(--tb-green);
  outline-offset: 2px;
}

.tb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.tb-toolbar-group { display: flex; flex-wrap: wrap; gap: 8px; }

.tb-store { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 18px; }
.tb-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--tb-ink); cursor: pointer; }
.tb-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--tb-green); }
.tb-store-hint { flex: 1 1 320px; margin: 0; font-size: 13px; color: var(--tb-muted); }
.tb-live { min-height: 1.4em; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--tb-green); }

/* ── Entgelttransparenz-Check ───────────────────────────────────── */
.tb-gap { padding-top: 40px; border-top: 1px solid var(--tb-line); }
.tb-gap-empty { max-width: 68ch; margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--tb-muted); }
.tb-gap-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.tb-gap-item { padding: 16px 20px; border: 1px solid var(--tb-line); border-radius: 14px; }
.tb-gap-item--flag { border-color: #FCA5A5; background: var(--tb-red-soft); }
.tb-gap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tb-gap-label { font-size: 15px; font-weight: 700; color: var(--tb-ink); }
.tb-gap-value { font-size: 22px; font-weight: 800; white-space: nowrap; color: var(--tb-ink); font-variant-numeric: tabular-nums; }
.tb-gap-item--flag .tb-gap-value { color: var(--tb-red); }
.tb-gap-text { margin: 4px 0 0; font-size: 14px; color: var(--tb-ink); }
.tb-gap-meta { margin: 2px 0 0; font-size: 13px; color: var(--tb-muted); font-variant-numeric: tabular-nums; }
.tb-gap-item--flag .tb-gap-meta { color: #7F1D1D; }
.tb-gap-flag { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: #991B1B; }
.tb-gap-flag-icon {
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: #DC2626;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.tb-gap-legal { max-width: 90ch; margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--tb-text); }
.tb-gap-note { max-width: 90ch; margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--tb-muted); }

/* ── FAQ (details/summary, ohne JS) ─────────────────────────────── */
.tb-faq { max-width: 720px; margin: 0 auto; }
.tb-faq-item { border-bottom: 1px solid var(--tb-line); }
.tb-faq-item:first-child { border-top: 1px solid var(--tb-line); }
.tb-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--tb-ink);
  list-style: none;
  cursor: pointer;
}
.tb-faq-q::-webkit-details-marker { display: none; }
.tb-faq-q::after { content: '+'; flex-shrink: 0; font-size: 22px; font-weight: 400; color: var(--tb-green); }
.tb-faq-item[open] .tb-faq-q::after { content: '−'; }
.tb-faq-a { margin: 0; padding: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--tb-muted); }

/* ── Lead-Block ─────────────────────────────────────────────────── */
.tb-lead-text { max-width: 560px; margin: 0 0 24px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.tb-lead-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-lead-note { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ── Tablet ─────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .tb-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .tb-kpi--raise { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* ── Schmal: Zeilen werden Karten (nur Bildschirm, Druck bleibt Tabelle) ── */
@media screen and (max-width: 860px) {
  .tb-intro { padding: 36px 16px 28px; }
  .tb-intro-lead { font-size: 17px; }
  .tb-wrap { padding: 0 16px 48px; gap: 40px; }
  .tb-overview { padding: 22px 16px 20px; border-radius: 20px; }

  .tb-map-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 2px 12px; padding: 8px 0; }
  .tb-map-label { grid-column: 1 / 2; }
  .tb-map-cr { grid-column: 2; grid-row: 1; }
  .tb-map-track { grid-column: 1 / -1; }
  .tb-map-axis { grid-template-columns: minmax(0, 1fr); }
  .tb-map-axis > span { display: none; }

  .tb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .tb-kpi { padding: 0 16px; }
  .tb-kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tb-kpi--raise { grid-column: 1 / -1; }
  .tb-kpi-value { font-size: 28px; }

  .tb-table, .tb-table tbody, .tb-table tr, .tb-table td { display: block; width: 100%; }
  .tb-table thead { display: none; }
  .tb-table .tb-entry {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--tb-line);
    border-radius: 16px;
    background: #fff;
  }
  .tb-table .tb-entry--example { border-color: #FDE68A; background: var(--tb-amber-soft); }
  .tb-entry--example td { background: transparent; }
  .tb-entry--example .tb-inputs td:first-child,
  .tb-entry--example .tb-result td:first-child { box-shadow: none; }
  .tb-table .tb-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .tb-inputs td, .tb-result td { padding: 0; border: 0; }
  .tb-inputs .tb-col-funktion { grid-column: 1 / -1; }
  .tb-inputs .tb-col-actions { align-self: end; }
  .tb-table .tb-cell-label:not(.tb-cell-label--keep) {
    position: static; width: auto; height: auto; margin: 0 0 4px; overflow: visible;
    clip: auto; clip-path: none; white-space: normal;
    font-size: 13px; font-weight: 700; color: var(--tb-text);
  }
  .tb-cell-label--keep { white-space: nowrap; }
  .tb-cell-label-text { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; font-weight: 600; }
  .tb-result { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tb-line); }

  .tb-toolbar { flex-direction: column; align-items: stretch; }
  .tb-toolbar > .tb-btn { width: 100%; }
  .tb-toolbar-group { display: grid; grid-template-columns: 1fr 1fr; }
  .tb-toolbar-group .tb-btn { padding: 8px 12px; white-space: normal; text-align: center; }
  .tb-result-cta .tb-btn { width: 100%; white-space: normal; text-align: center; }
  .tb-lead-actions .lp-lead-btn { justify-content: center; white-space: normal; text-align: center; }
}

@media screen and (max-width: 480px) {
  .tb-inputs .tb-col-exp,
  .tb-inputs .tb-col-edu { grid-column: 1 / -1; }
}

/* ── Bewegung nur ohne Reduktionswunsch ─────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes tb-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .tb-entry--new > tr > td { animation: tb-in .35s cubic-bezier(.22, 1, .36, 1) both; }
  .tb-result-cta, .tb-res-msg--warn { animation: tb-in .3s ease-out both; }
}

/* ── Druck / PDF ────────────────────────────────────────────────── */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  /* style.css blendet beim Druck alles ausser #pdf-report aus */
  body.tb-page > main#main-content { display: block !important; }
  .tb-page .tb-intro,
  .tb-page main > .lp-section,
  .tb-page .lp-also,
  .tb-page .tb-toolbar,
  .tb-page .tb-store,
  .tb-page .tb-live,
  .tb-page .tb-example-note .tb-btn,
  .tb-page .tb-col-actions,
  .tb-page .tb-result-cta,
  .tb-page .tb-res-link,
  .tb-page noscript { display: none !important; }
  .tb-print-only { display: block; }
  .tb-print-head { margin: 0 0 8pt; padding-bottom: 4pt; border-bottom: 1.5pt solid #0F172A; font-size: 9pt; color: #0F172A; }
  .tb-wrap { display: block; max-width: none; margin: 0; padding: 0; }
  .tb-overview { margin: 0 0 14pt; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .tb-map-row { break-inside: avoid; }
  .tb-map-dot, .tb-map-band, .tb-legend-item::before { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .tb-table { font-size: 8.5pt; }
  .tb-col-funktion { width: 28%; }
  .tb-table tbody { break-inside: avoid; }
  .tb-page .tb-input, .tb-page .tb-select {
    height: auto; padding: 0; border: 0; background: none; font-size: 8.5pt;
    text-overflow: clip; white-space: normal;
  }
  .tb-page .tb-input--num { text-align: left; }
  .tb-kpis { grid-template-columns: repeat(4, 1fr); }
  .tb-kpi--raise { grid-column: auto; }
  .tb-gap { padding-top: 0; border-top: 0; break-inside: avoid; }
}
