/* besoldung: Designsystem nach dem Entwurf "Besoldung 3a Unterseiten" (Runde 4) */

@font-face {
  font-family: 'Public Sans';
  src: url('/fonts/public-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0d2b26;
  --bg: #f2f3ec;
  --lime: #d4f55a;
  --white: #fff;
  --field: #f7f8f3;
  --muted: #3e5a52;
  --soft: #557069;
  --on-dark: #e9efe4;
  --on-dark-soft: #b9c7bd;
  --green: #4a7a2a;
  --rust: #a2523a;
  --bar-done: #9cc64a;
  --bar-open: #dfe5d6;
  --bar-neg: #dd9c84;
  --line: rgba(13, 43, 38, .12);
  --line-soft: rgba(13, 43, 38, .08);
  --line-card: rgba(13, 43, 38, .1);
  --line-field: rgba(13, 43, 38, .18);
  --seg-net: #d4f55a;
  --seg-lst: #7fae2a;
  --seg-soli: #b7d36a;
  --seg-kist: #d9a441;
  --seg-kv: #9fb7ad;
  --seg-rv: #6d9389;
  --seg-av: #c2d1c9;
  --seg-pv: #e0c98c;
  --seg-zv: #a7c7e0;
  --pad: 56px;
  --display: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --text: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
select, input, button { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .hero-dark :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 50; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.display { font-family: var(--display); font-weight: 700; }

/* Navigation */
.site-nav { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.nav-links a[aria-current="page"], .nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links { align-items: center; }
.nav-links a.nav-jobs { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; }
.nav-links a.nav-jobs:hover { text-decoration: none; filter: brightness(.96); }
.nav-links a.nav-jobs.active, .nav-links a.nav-jobs[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav-search { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; padding: 9px 14px; border-radius: 999px; background: var(--bg); color: var(--soft); width: 240px; border: none; text-align: left; }
.nav-search > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav-search kbd { flex: none; font: inherit; font-size: 12px; border: 1px solid rgba(13, 43, 38, .2); border-radius: 4px; padding: 0 5px; }

/* Suche */
.search-dialog { border: none; border-radius: 20px; padding: 0; width: min(680px, calc(100vw - 32px)); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); margin-top: 10vh; }
.search-dialog::backdrop { background: rgba(13, 43, 38, .45); }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-input-row input { flex: 1; border: none; outline: none; font-size: 18px; background: transparent; }
.search-close { border: none; background: none; font-size: 13px; color: var(--soft); }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.search-results a:hover, .search-results a.is-active { background: var(--bg); text-decoration: none; }
.search-results .hint { color: var(--soft); font-size: 13px; white-space: nowrap; }
.search-empty { padding: 20px; color: var(--soft); font-size: 15px; }

/* Kopfbereiche */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--soft); list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.hero-dark .crumbs { color: var(--on-dark-soft); }
.hero-dark { background: var(--ink); color: var(--on-dark); }
.hero-dark .wrap { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 24px; }
.hero-dark h1 { font-family: var(--display); font-weight: 700; font-size: 56px; letter-spacing: -.03em; line-height: 1; }
.hero-dark .lead { font-size: 16px; color: var(--on-dark-soft); max-width: 760px; }
.page-head .wrap { padding-block: 40px 8px; display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: 48px; letter-spacing: -.03em; line-height: 1; }
.page-head .lead { font-size: 15px; color: var(--muted); }
h2.h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
h3.h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }

/* Karten */
.card { background: var(--white); border: 1px solid var(--line-card); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.card-lime { background: var(--lime); color: var(--ink); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-dark { background: var(--ink); color: var(--on-dark); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card-dark .eyebrow { color: var(--lime); }
.card-dark .soft { color: var(--on-dark-soft); }
.card-title { display: flex; align-items: center; gap: 10px; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.card-title span:last-child { font-family: var(--display); font-weight: 700; font-size: 20px; }

/* Formulare (Rechner) */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field select, .field input[type="number"], .field input[type="text"] { background: var(--field); border: 1px solid var(--line-field); color: var(--ink); border-radius: 10px; padding: 11px 12px; font-size: 15px; width: 100%; }
.field-suffix { display: flex; align-items: center; gap: 8px; background: var(--field); border: 1px solid var(--line-field); border-radius: 10px; padding: 0 12px; }
.field-suffix input { flex: 1; min-width: 0; border: none !important; background: transparent !important; padding: 10px 0 !important; outline: none; }
.field-suffix span { color: var(--soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-all { grid-column: 1 / -1; }
.seg { display: grid; gap: 6px; }
.seg button { border: 1px solid var(--line-field); border-radius: 10px; padding: 10px 0; font-size: 15px; font-weight: 600; background: var(--white); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.tz-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; align-items: stretch; }
#r-tz-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line-field); border-radius: 10px; padding: 9px 12px; background: var(--field); color: var(--ink); font-size: 15px; width: 100%; text-align: left; }
.toggle-track { width: 40px; height: 24px; flex: none; border-radius: 999px; background: #cfd6c8; position: relative; display: inline-block; transition: background .15s; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: left .15s; }
.toggle[aria-pressed="true"] .toggle-track { background: var(--ink); }
.toggle[aria-pressed="true"] .toggle-track::after { left: 19px; }
.stepper { display: flex; align-items: center; justify-content: space-between; font-size: 15px; gap: 12px; }
.stepper > div { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-field); background: var(--white); font-size: 18px; }
.stepper output { width: 36px; text-align: center; font-weight: 700; font-size: 17px; }
.range-field { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.range-field > span:first-child { display: flex; justify-content: space-between; gap: 8px; }
.range-field strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.range-field input[type="range"] { accent-color: var(--ink); width: 100%; }
.mode-tabs { display: inline-flex; gap: 6px; }
.chip { border: 1px solid var(--line-field); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; background: var(--white); color: var(--ink); display: inline-block; }
.chip:hover { text-decoration: none; border-color: var(--ink); }
.chip.is-on, .chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.hero-dark .chip { background: transparent; color: var(--on-dark); border-color: rgba(233, 239, 228, .22); padding: 10px 18px; }
.hero-dark .chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Rechner */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; padding-block: 28px 48px; align-items: start; }
.calc-inputs { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.result { background: var(--ink); color: var(--on-dark); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 16px; }
.result-mini { display: none; }
.result-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.result-who { font-size: 15px; color: var(--on-dark-soft); }
.result-net { font-family: var(--display); font-weight: 700; font-size: 60px; line-height: 1; letter-spacing: -.03em; }
.result-year { font-size: 14px; color: var(--on-dark-soft); }
.seg-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--on-dark); }
.seg-bar span { display: block; outline: 1px solid var(--ink); }
.result-lines { display: flex; flex-direction: column; font-size: 14px; }
.result-lines .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(233, 239, 228, .12); }
.result-lines .row.sum { border-top-color: rgba(233, 239, 228, .5); font-weight: 700; }
.result-lines .dot { width: 9px; height: 9px; border-radius: 3px; background: transparent; flex: none; }
.result-lines .row > span:nth-child(2) { flex: 1; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-actions button, .result-actions a { display: flex; justify-content: center; padding: 11px 0; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid rgba(233, 239, 228, .25); background: transparent; color: var(--on-dark); }
.result-actions .primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.result-note { font-size: 12px; line-height: 1.45; color: var(--on-dark-soft); }
.result-error { background: #4a2b24; color: #f5d8cf; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.calc-lower { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; padding-bottom: 56px; }
.stufen-bars { display: flex; gap: 10px; }
.stufen-bars button, .stufen-bars a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; border: none; background: none; padding: 0; color: var(--ink); text-align: left; }
.stufen-bars a:hover { text-decoration: none; }
.stufen-bars .val { font-size: 13px; font-weight: 600; }
.stufen-bars .track { display: flex; align-items: flex-end; height: 120px; width: 100%; }
.stufen-bars .fill { width: 100%; border-radius: 5px 5px 0 0; background: var(--bar-open); display: block; }
.stufen-bars .is-done .fill { background: var(--bar-done); }
.stufen-bars .is-on .fill { background: var(--ink); }
.stufen-bars .foot { display: flex; justify-content: space-between; gap: 4px; font-size: 12px; border-top: 2px solid var(--ink); padding-top: 6px; }
.stufen-bars .foot b { font-weight: 600; }
.stufen-bars .foot i { font-style: normal; color: var(--soft); }
h1, .display { overflow-wrap: anywhere; hyphens: auto; }
.table-side { hyphens: auto; }
table.pay.wrap-first tbody th { white-space: normal; min-width: 150px; }
.list-card span { min-width: 0; overflow-wrap: anywhere; }
table.pay[data-calc] td:not(.is-empty), table.pay tr[data-calc] td:not(.is-empty) { cursor: pointer; }
table.pay[data-calc] tbody td:not(.is-empty):hover, table.pay tr[data-calc] td:not(.is-empty):hover { background: var(--lime); }
.calc-link { color: inherit; }
.result-note button { border: none; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.lv { display: flex; flex-direction: column; gap: 14px; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.lv-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 68px; grid-template-areas: "name bar val"; align-items: center; gap: 10px; padding: 3px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink); }
.lv-row:hover { background: var(--bar-open); text-decoration: none; }
.lv-row.is-current { background: #e3ebd3; font-weight: 700; }
.lv-name { grid-area: name; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lv-track { grid-area: bar; position: relative; display: block; height: 11px; }
.lv-track::before { content: ""; position: absolute; left: var(--z); top: -3px; bottom: -3px; border-left: 1px solid var(--ink); }
.lv-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--bar-done); }
.lv-fill.is-neg { background: var(--bar-neg); }
.lv-row.is-current .lv-fill { background: var(--ink); }
.lv-val { grid-area: val; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.lv-row.is-current .lv-val { color: var(--ink); }
/* Tarifrunden */
.rd-bars .lv-row { grid-template-columns: 150px minmax(0, 1fr) 72px; }
.rd-bars .lv-row.is-future .lv-fill { background: repeating-linear-gradient(135deg, var(--bar-done) 0 4px, transparent 4px 7px); }
table.pay.rd-table td.rd-text, table.pay.rd-table th.rd-text { text-align: left; white-space: normal; min-width: 240px; max-width: 420px; line-height: 1.45; }
table.pay.rd-table td.rd-text .small { color: var(--muted); font-size: 13px; }
table.pay.rd-table tr.is-future th, table.pay.rd-table tr.is-future td { color: var(--muted); }
table.pay.rd-table td.rd-lv { color: var(--muted); font-size: 13px; border-left: 1px solid var(--line-soft); }
.rd-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.rd-cmp { display: flex; flex-direction: column; gap: 12px; }
.rd-mini { display: inline-block; width: 90px; height: 8px; border-radius: 3px; background: var(--bar-open); margin-right: 10px; vertical-align: middle; overflow: hidden; }
.rd-mini span { display: block; height: 100%; background: var(--bar-done); border-radius: 3px; }
.rd-more { font-size: 14px; font-weight: 600; }
@media (max-width: 480px) { .rd-bars .lv-row { grid-template-columns: 128px minmax(0, 1fr) 64px; } .rd-mini { width: 48px; } }
@media (max-width: 480px) {
  .lv-row { grid-template-columns: 175px minmax(0, 1fr) 62px; gap: 8px; padding: 3px 6px; font-size: 14px; }
}
.stufen-bars.many { gap: 4px; }
.stufen-bars.many .val, .stufen-bars.many .foot i { display: none; }
.stufen-bars.many .foot { justify-content: center; }
.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 56px; }
.info-col { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.info-col h3 { font-family: var(--display); font-weight: 700; font-size: 19px; }
.info-col p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 6px; }
.cmp-row div { display: flex; flex-direction: column; gap: 2px; }
.cmp-row > div > span { font-size: 13px; }
.cmp-row b { font-size: 22px; font-weight: 700; }

/* Tabellenübersicht */
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filter-input { flex: 1; min-width: 240px; max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--on-dark); border-radius: 12px; padding: 0 16px; color: var(--ink); }
.filter-input > span { font-size: 18px; color: var(--soft); }
.filter-input input { flex: 1; min-width: 0; border: none; background: transparent; padding: 14px 0; font-size: 16px; outline: none; }
.filter-count { margin-left: auto; font-size: 14px; color: var(--on-dark-soft); }
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 40px 48px; align-items: start; }
.dir-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dir-col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.dir-col-head h2 { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.dir-col-head span { font-size: 13px; color: var(--soft); white-space: nowrap; }
.dir-list { display: flex; flex-direction: column; }
.dir-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 10px; border-bottom: 1px solid var(--line-card); border-radius: 6px; }
.dir-item:hover { background: var(--white); text-decoration: none; }
.dir-item .name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 600; }
.dir-item .stand { font-size: 13px; color: var(--soft); text-align: right; white-space: nowrap; }
.dir-item .sub { font-size: 13px; color: var(--muted); }
.dir-item .arrow { font-size: 13px; text-align: right; }
.badge-neu { font-size: 11px; font-weight: 700; background: var(--lime); padding: 2px 7px; border-radius: 999px; }
.badge { font-size: 11px; font-weight: 700; background: var(--bar-open); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.badge-warn { background: #f3dfa8; }
.archive-box { padding: 28px; background: var(--white); border: 1px solid var(--line-card); border-radius: 16px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 56px; }
.archive-box h2 { font-family: var(--display); font-weight: 700; font-size: 24px; }
.archive-box p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.pill { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-field); font-size: 15px; font-weight: 600; display: inline-block; }
.pill:hover { text-decoration: none; background: var(--bg); }
.pill.is-on, .pill[aria-current="page"] { background: var(--ink); color: var(--on-dark); }

/* Tabellenseiten */
.table-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-block: 32px 56px; align-items: start; }
.table-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.table-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.pay-wrap { background: var(--white); border: 1px solid var(--line-card); border-radius: 14px; overflow-x: auto; }
table.pay { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; }
table.pay caption { text-align: left; padding: 14px 16px; font-size: 14px; color: var(--muted); caption-side: top; border-bottom: 1px solid var(--line-soft); }
.pay-wrap { container-type: inline-size; }
table.pay caption > span { display: block; position: sticky; left: 16px; max-width: calc(100cqw - 32px); }
table.pay th, table.pay td { padding: 10px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
table.pay thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: #fafbf6; border-bottom: 2px solid var(--ink); }
table.pay tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--white); z-index: 1; }
table.pay thead th:first-child { text-align: left; position: sticky; left: 0; z-index: 2; }
table.pay tbody tr:last-child th, table.pay tbody tr:last-child td { border-bottom: none; }
table.pay tbody tr:hover td, table.pay tbody tr:hover th { background: #f7f9e9; }
table.pay td.is-empty { color: rgba(13, 43, 38, .28); }
table.pay td a { display: block; }
table.pay .is-col { background: #f7f9e9; }
table.pay.compact th, table.pay.compact td { padding: 8px 10px; font-size: 14px; }
table.pay.dense th, table.pay.dense td { padding: 8px 7px; font-size: 13px; }
table.pay.dense th:first-child { padding-left: 12px; }
.article section.tables { gap: 32px; }
.table-note { font-size: 14px; line-height: 1.55; color: var(--muted); }
.source-line { font-size: 12px !important; color: var(--muted); line-height: 1.5; }
.source-line a { text-decoration: underline; }
.version-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.version-chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-field); font-size: 13px; font-weight: 600; background: var(--white); }
.version-chips a:hover { text-decoration: none; border-color: var(--ink); }
.version-chips a[aria-current="page"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.hero-dark .version-chips a { background: transparent; color: var(--on-dark); border-color: rgba(233, 239, 228, .22); }
.hero-dark .version-chips a:hover { border-color: var(--on-dark); }
.hero-dark .version-chips a[aria-current="page"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.status-banner { background: #f7efd2; border: 1px solid #ead9a0; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.link-list { display: flex; flex-direction: column; }
.link-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.link-list a:first-child { border-top: none; }
.link-list a span:first-child { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.link-list a span:last-child { color: var(--soft); white-space: nowrap; }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { background: var(--white); border: 1px solid var(--line-card); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.link-cloud a:hover { text-decoration: none; border-color: var(--ink); }

/* Besoldungsgruppe */
.chip-bar { border-bottom: 1px solid var(--line); overflow-x: auto; }
.chip-bar .wrap { display: flex; align-items: center; gap: 8px; padding-block: 20px; }
.chip-bar .label { font-size: 13px; color: var(--soft); margin-right: 8px; white-space: nowrap; }
.chip-bar .chip { white-space: nowrap; }
.group-head .wrap { padding-block: 48px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: end; }
.group-head .left { display: flex; flex-direction: column; gap: 12px; }
.group-head h1 { font-family: var(--display); font-weight: 700; font-size: 84px; letter-spacing: -.04em; line-height: .9; }
.h1-place { display: block; font-size: .4em; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; margin-top: 10px; color: var(--muted); }
.group-head h1.long { font-size: 56px; letter-spacing: -.03em; line-height: 1; }
.group-head p { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 620px; text-wrap: pretty; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.kpi-grid > div { background: var(--white); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi-grid span { font-size: 12px; color: var(--soft); }
.kpi-grid b { font-size: 22px; font-weight: 700; }
.kpi-grid b.green { color: var(--green); }
.kpi-grid b.small { font-size: 15px; font-weight: 600; line-height: 1.3; }
.layout-3 { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 48px; padding-block: 16px 56px; align-items: start; }
.toc { display: flex; flex-direction: column; gap: 2px; font-size: 14px; border-left: 2px solid var(--ink); position: sticky; top: 16px; }
.toc .eyebrow { padding: 0 14px 10px; }
.toc a { padding: 6px 14px; }
.article { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.article section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 20px; }
.article p { font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.article .small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.head-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.head-link a { font-size: 14px; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.list-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-card); border-radius: 14px; }
.list-card > div, .list-card > a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.list-card > :last-child { border-bottom: none; }
.list-card b { font-weight: 600; }
.list-card.stack > div { flex-direction: column; gap: 4px; }
.list-card.stack span { text-align: left; color: var(--muted); font-size: 14px; line-height: 1.5; }
.list-card span { color: var(--soft); text-align: right; }
.compare-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-2 > div { background: var(--white); border: 1px solid var(--line-card); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.compare-2 .cap { font-size: 13px; font-weight: 600; padding-bottom: 6px; color: var(--green); }
.compare-2 .cap.low { color: var(--rust); }
.compare-2 .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.compare-2 .row b { font-weight: 600; white-space: nowrap; }
.faq { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid rgba(13, 43, 38, .14); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.quick-net { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.btn-lime { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 600; }
.btn-lime:hover { text-decoration: none; filter: brightness(.97); }
.neighbor { display: flex; justify-content: space-between; gap: 12px; background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.neighbor:hover { text-decoration: none; background: #e9ebdf; }
.neighbor span:last-child { font-weight: 400; color: var(--muted); }

/* News */
.news-head .wrap { padding-block: 44px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.news-head h1 { font-family: var(--display); font-weight: 700; font-size: 56px; letter-spacing: -.03em; line-height: 1; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 8px 56px; align-items: start; }
.news-feature { background: var(--ink); color: var(--on-dark); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }
.news-feature:hover { text-decoration: none; }
.news-feature .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--on-dark-soft); }
.news-feature .cat { background: var(--lime); color: var(--ink); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.news-feature .title { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1.05; letter-spacing: -.02em; max-width: 720px; text-wrap: pretty; }
.news-feature p { font-size: 17px; line-height: 1.55; color: var(--on-dark-soft); max-width: 640px; }
.news-feature .more { font-size: 15px; font-weight: 600; color: var(--lime); }
.news-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 24px; padding: 22px 8px; border-bottom: 1px solid var(--line); align-items: start; }
.news-row:hover { background: var(--white); text-decoration: none; }
.news-row .meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.news-row .cat { font-weight: 700; color: var(--green); }
.news-row .date { color: var(--soft); }
.news-row .text { display: flex; flex-direction: column; gap: 6px; }
.news-row .title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.news-row .teaser { font-size: 15px; line-height: 1.5; color: var(--muted); }
.news-row .arrow { font-size: 18px; text-align: right; }
.upd-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.upd-list a b { font-weight: 600; }
.upd-list a span { color: var(--soft); white-space: nowrap; }

/* Fließtext (Ratgeber, Rechtliches, News) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.65; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; margin-top: 24px; }
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { text-decoration: underline; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--white); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--ink); }
.prose .table-scroll { overflow-x: auto; }
.page-body { padding-block: 32px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }

/* Startseite */
.home-hero .wrap { padding-block: 64px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; }
.home-hero h1 { font-family: var(--display); font-weight: 700; font-size: 72px; letter-spacing: -.04em; line-height: .95; }
.home-hero .lead { font-size: 19px; color: var(--on-dark-soft); line-height: 1.5; max-width: 620px; }
.home-hero .left { display: flex; flex-direction: column; gap: 20px; }
.home-search { display: flex; align-items: center; gap: 10px; background: var(--on-dark); border: none; border-radius: 12px; padding: 16px; color: var(--soft); font-size: 16px; max-width: 520px; width: 100%; text-align: left; }
.stat-row { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; color: var(--on-dark-soft); }
.stat-row b { display: block; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--on-dark); line-height: 1.1; }
.section-block { padding-block: 48px 0; display: flex; flex-direction: column; gap: 20px; }
.section-block:last-child { padding-bottom: 56px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--white); border: 1px solid var(--line-card); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.tile:hover { text-decoration: none; border-color: var(--ink); }
.tile b { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.tile span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.state-grid a { background: var(--white); border: 1px solid var(--line-card); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.state-grid a:hover { text-decoration: none; border-color: var(--ink); }

/* Fußbereich */
.footer-links { background: var(--white); border-top: 1px solid var(--line); }
.footer-links .wrap { padding-block: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.footer-links h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; }

/* Responsiv */
@media (max-width: 1180px) {
  :root { --pad: 32px; }
  .calc-grid, .calc-lower { grid-template-columns: minmax(0, 1fr) 360px; }
  .layout-3 { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .toc { display: none; }
  .group-head .wrap { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero .wrap { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 56px; }
  .nav-search { width: 190px; }
  .nav-search kbd { display: none; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .calc-grid, .calc-lower, .table-layout, .layout-3, .news-layout, .page-body { grid-template-columns: minmax(0, 1fr); }
  .result, .table-side { position: static; }
  .calc-grid { position: relative; }
  .result-mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: 10px; z-index: 5; background: var(--lime); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(13, 43, 38, .25); }
  .result-mini b { font-family: var(--display); font-size: 20px; }
  .result-mini:hover { text-decoration: none; }
  .info-cols { grid-template-columns: 1fr; gap: 20px; }
  .archive-box { grid-template-columns: 1fr; gap: 16px; }
  .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 20px; }
  .nav-links a.nav-jobs { order: -1; } /* in der scrollbaren Zeile vorn, damit sichtbar */
  .site-nav .wrap { flex-wrap: wrap; gap: 14px; padding-block: 14px; }
  .nav-search { width: auto; flex: 1; max-width: 260px; }
  .hero-dark h1, .news-head h1 { font-size: 40px; }
  .page-head h1 { font-size: 36px; }
}
@media (max-width: 620px) {
  :root { --pad: 18px; }
  .grid-2, .compare-2 { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
  .footer-links .wrap { grid-template-columns: 1fr 1fr; }
  .tile-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .news-row .arrow { display: none; }
  .news-row .meta { flex-direction: row; gap: 10px; }
  .news-feature { padding: 24px; }
  .news-feature .title { font-size: 28px; }
  .group-head h1 { font-size: 60px; }
  .group-head h1.long { font-size: 38px; }
  .home-hero h1 { font-size: 42px; }
  .result { padding: 22px; }
  .result-net { font-size: 46px; }
  .stufen-bars { gap: 4px; }
  .stufen-bars .val { font-size: 10px; }
  .stufen-bars .foot i { display: none; }
  .filter-count { margin-left: 0; }
}

/* Icons (Font Awesome, inline) */
.fa { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; flex: none; }
/* Gruppenlinks in Tabellen */
table.pay th a.grp-link, .grp-link-demo { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); border-bottom: 2px solid var(--lime); padding-bottom: 1px; }
table.pay th a.grp-link .fa, .grp-link-demo .fa { width: .7em; height: .7em; color: var(--green); transition: transform .15s; }
table.pay th a.grp-link:hover { text-decoration: none; border-bottom-color: var(--ink); }
table.pay th a.grp-link:hover .fa { transform: translateX(2px); }
.grp-link-demo { font-weight: 600; white-space: nowrap; }
.table-tip { display: flex; gap: 10px; align-items: flex-start; background: #f7f9e9; border: 1px solid var(--line-card); border-left: 4px solid var(--lime); border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.table-tip > .fa { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
/* Gruppenkacheln */
.grp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.grp-tiles.is-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grp-tile { background: var(--white); border: 1px solid var(--line-card); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-size: 13px; line-height: 1.35; }
.grp-tile b { font-family: var(--display); font-size: 17px; }
.grp-tile .soft { color: var(--soft); font-size: 12px; }
.grp-tile:hover { text-decoration: none; border-color: var(--ink); background: #f7f9e9; }
/* Startseite: große Tarifverträge */
.big-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.big-card { background: var(--field); border: 1px solid var(--line-card); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.big-head { display: flex; flex-direction: column; gap: 4px; }
.big-head h3 { font-family: var(--display); font-size: 26px; margin: 0; }
.big-head h3 a { color: var(--ink); }
.big-head span { color: var(--muted); font-size: 14px; }
.big-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 0; }
.big-hint .fa { margin-top: 3px; color: var(--green); }
.big-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.big-actions a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-field); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; background: var(--white); color: var(--ink); }
.big-actions a:first-child { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.big-actions a:hover { text-decoration: none; border-color: var(--ink); }
.big-card.is-full { margin-top: 16px; }
.big-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.big-more b { color: var(--muted); font-weight: 600; margin-right: 2px; }
.big-more b:not(:first-child) { margin-left: 10px; }
@media (max-width: 900px) { .big-two { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grp-tiles.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } .big-card { padding: 16px; } }


/* Berufsseiten */
table.bf-table th.bf-text { text-align: left; white-space: normal; min-width: 240px; max-width: 420px; vertical-align: top; }
table.bf-table th.bf-text b { display: block; }
table.bf-table th.bf-text span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
table.bf-table td { vertical-align: top; line-height: 1.9; }
table.bf-table td a.grp-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); border-bottom: 2px solid var(--lime); line-height: 1.3; font-weight: 600; } table.bf-table td a.grp-link .fa { width: .7em; height: .7em; color: var(--green); } table.bf-table td a.grp-link:hover { text-decoration: none; border-bottom-color: var(--ink); }
table.bf-states td { line-height: 1.5; }
.bf-amt { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bf-note { color: var(--muted); cursor: help; }
.bf-notes { padding-left: 20px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }

/* Beträge führen zum Netto-Rechner: Hinweis, Spalte markieren, einmaliger Puls */
.calc-tip { margin-bottom: 12px; color: var(--ink); }
.calc-tip b { color: var(--ink); }
table.pay[data-calc] tbody td:not(.is-empty), table.pay tr[data-calc] td:not(.is-empty) { position: relative; }
table.pay .hl-col { background: #f7f9e9; }
table.pay thead th.hl-col { color: var(--ink); box-shadow: inset 0 -3px 0 var(--lime); }
table.pay td.calc-pulse::after {
  content: attr(data-hint); position: absolute; left: 50%; bottom: calc(100% - 4px); transform: translateX(-50%); z-index: 4; pointer-events: none;
  padding: 3px 9px 3px 24px; border-radius: 8px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M336 176l0 272c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-272 288 0zm0-48l-288 0 0-64c0-8.8 7.2-16 16-16l256 0c8.8 0 16 7.2 16 16l0 64zm48 0l0-64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320zM80 232a24 24 0 1 0 48 0 24 24 0 1 0 -48 0zm24 64a24 24 0 1 0 0 48 24 24 0 1 0 0-48zM80 408c0 13.3 10.7 24 24 24l88 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-88 0c-13.3 0-24 10.7-24 24zM192 208a24 24 0 1 0 0 48 24 24 0 1 0 0-48zM168 320a24 24 0 1 0 48 0 24 24 0 1 0 -48 0zM280 208a24 24 0 1 0 0 48 24 24 0 1 0 0-48zM256 320a24 24 0 1 0 48 0 24 24 0 1 0 -48 0zm24 64c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24z'/%3E%3C/svg%3E") no-repeat 9px 50% / 10px 13px; color: var(--white); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(13, 43, 38, .2);
}
table.pay td.calc-pulse { z-index: 3; background: var(--lime); animation: calc-pulse 1.2s ease-in-out 4; }
@keyframes calc-pulse { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(13, 43, 38, 0); } 50% { box-shadow: inset 0 0 0 3px var(--ink); } }
@media (prefers-reduced-motion: reduce) { table.pay td.calc-pulse { animation: none; } }
/* Gruppenseiten: abstrakte Deutschlandkarte aus Sechsecken und Spannen-Balken */
.hub-map-wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-end; margin: 6px 0 18px; }
.hub-map { width: 100%; max-width: 440px; height: auto; display: block; overflow: visible; }
.hm-st path, .hm-st rect { fill: #cfe075; transition: filter .15s; stroke: var(--bg); stroke-width: 5; stroke-linejoin: round; }
.hm-st.t1 path, .hm-st.t1 rect, .hm-scale .t1 { fill: #eef3d0; background: #eef3d0; }
.hm-st.t2 path, .hm-st.t2 rect, .hm-scale .t2 { fill: #dde9a3; background: #dde9a3; }
.hm-st.t3 path, .hm-st.t3 rect, .hm-scale .t3 { fill: #c8dc6c; background: #c8dc6c; }
.hm-st.t4 path, .hm-st.t4 rect, .hm-scale .t4 { fill: #aecb3a; background: #aecb3a; }
.hm-st.t5 path, .hm-st.t5 rect, .hm-scale .t5 { fill: #8cae1e; background: #8cae1e; }
.hm-st.is-none path { fill: #e6e6e1; }
.hm-st.hm-bund rect { stroke: var(--ink); stroke-width: 2; }
.hm-st:hover path, .hm-st:focus-visible path, .hm-st:hover rect, .hm-st:focus-visible rect { filter: brightness(.9) saturate(1.15); }
.hm-st:focus-visible path, .hm-st:focus-visible rect { stroke: var(--ink); stroke-width: 3; }
.hm-st:focus { outline: none; }
.hm-st text { text-anchor: middle; fill: var(--ink); pointer-events: none; font-variant-numeric: tabular-nums; paint-order: stroke; }
.hm-code { font-size: 25px; font-weight: 700; }
.hm-code.hm-small { font-size: 17px; }
.hm-amt { font-size: 20px; }
.hm-st.is-none text { fill: #8d8d87; }
.hm-hint { color: var(--muted); font-size: 12.5px; }
.hm-legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 200px; }
.hm-scale { display: flex; gap: 3px; }
.hm-scale i, .hm-none i { display: inline-block; width: 36px; height: 12px; border-radius: 3px; }
.hm-none { display: flex; gap: 8px; align-items: center; }
.hm-none i { width: 14px; background: #e6e6e1; }
.hm-ends { display: flex; justify-content: space-between; width: 192px; font-variant-numeric: tabular-nums; color: #666; }
.hm-bars .lv-row { grid-template-columns: 190px 1fr 150px; text-decoration: none; color: inherit; }
.hm-bars .lv-track::before { display: none; }
@media (max-width: 560px) {
  .hm-bars .lv-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar"; row-gap: 4px; padding: 5px 6px; }
}
@media print {
  .site-nav, .footer-links, .site-footer, .calc-inputs, .result-mini, .calc-lower, .info-cols, .result-actions, .table-side, .toc, .chip-bar { display: none !important; }
  body { background: #fff; }
  .calc-grid { grid-template-columns: 1fr; }
  .result { background: #fff; color: #000; border: 1px solid #999; }
  .result-who, .result-year, .result-note, .result-eyebrow { color: #333; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
