/* Gehaltsseiten – Bausteine gh-* (Design „Register“, Token aus register.css).
   Signatur: der Entgeltstreifen – sechs Entgeltklassen als Lohnstreifen, Breite = Anteil der Beschäftigten, Mitte = Median.
   Klassenfarben: Tinte in sechs Stufen (hell = wenig, dunkel = viel Gehalt). Keine Textbreiten-Begrenzung (Felix-Regel). */

:root {
  --gk1: #e4e6e0; --gk2: #c5ccd4; --gk3: #98a8bf; --gk4: #6380a8; --gk5: #355487; --gk6: #13254a;
}

.gh-kopf .fi-h1-zusatz { display: block; font-size: .42em; font-weight: 600; font-stretch: 100%; letter-spacing: -.01em; color: var(--text-2); margin-top: .5rem; }
.gh-kopf h1 { text-wrap: balance; }
.gh-stand { margin: .2rem 0 0; font-size: var(--t-xs); color: var(--text-3); }
.gh-text { font-family: var(--serif); font-size: var(--t-m); color: var(--text-2); margin: .8rem 0 1.2rem; text-wrap: pretty; }
.gh-text b { font-family: var(--sans); color: var(--text); font-weight: 650; }
.gh-raster .blatt-teil h2 { margin-bottom: .4rem; }
.gh-raster h3, .gh-h3 { font-size: var(--t-m); font-weight: 700; margin: 1.4rem 0 .6rem; }
.gh-leer { font-family: var(--serif); color: var(--text-2); background: var(--blatt); border: 1px dashed #b5b8b0; padding: 1rem 1.2rem; margin: 1rem 0; }

.gh-raster > *, .gh-breit > * { min-width: 0; }
.gh-breit { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) 1rem; }

/* ───────── Entgeltstreifen (Signatur) ───────── */
.gh-streifen { margin: 3.6rem 0 1.6rem; }
.gh-streifen figcaption { font-size: var(--t-xs); color: var(--text-2); margin-bottom: 3.4rem; text-wrap: pretty; }
.gh-bahn { position: relative; display: flex; height: 52px; border: 1px solid var(--druck); background: var(--blatt); }
.gh-streifen figcaption + .gh-bahn { margin-top: 0; }
.gh-seg { flex: 0 0 var(--a); display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; border-right: 1px solid var(--papier); }
.gh-seg:last-of-type { border-right: 0; }
.gh-seg b { font-size: var(--t-xs); font-weight: 650; font-stretch: 90%; white-space: nowrap; }
.gh-seg[data-k="1"], .gh-legende [data-k="1"] i { background: var(--gk1); } .gh-seg[data-k="1"] b { color: var(--text); }
.gh-seg[data-k="2"], .gh-legende [data-k="2"] i { background: var(--gk2); } .gh-seg[data-k="2"] b { color: var(--text); }
.gh-seg[data-k="3"], .gh-legende [data-k="3"] i { background: var(--gk3); } .gh-seg[data-k="3"] b { color: var(--druck); }
.gh-seg[data-k="4"], .gh-legende [data-k="4"] i { background: var(--gk4); } .gh-seg[data-k="4"] b { color: #fff; }
.gh-seg[data-k="5"], .gh-legende [data-k="5"] i { background: var(--gk5); } .gh-seg[data-k="5"] b { color: #fff; }
.gh-seg[data-k="6"], .gh-legende [data-k="6"] i { background: var(--gk6); } .gh-seg[data-k="6"] b { color: #fff; }
/* Guilloche-Anklang: feine Schraffur auf der Klasse mit dem Median */
.gh-seg.gh-mitte { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 6px); }
.gh-median { position: absolute; left: 50%; top: -1.9rem; bottom: -6px; width: 0; border-left: 2px solid var(--druck); pointer-events: none; }
.gh-median em { position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); font-style: normal; font-size: var(--t-xs); font-weight: 700; white-space: nowrap; background: var(--papier); padding: 0 .35rem; line-height: 1.6; }
.gh-du { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 3px solid var(--signal); pointer-events: none; }
.gh-du em { position: absolute; top: 100%; left: 0; transform: translateX(-50%); font-style: normal; font-size: var(--t-xs); font-weight: 750; color: #fff; background: var(--signal); padding: .05rem .45rem; border-radius: 2px; margin-top: 2px; }
.gh-legende { list-style: none; margin: 1.7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; font-size: var(--t-xs); color: var(--text-2); }
.gh-legende li { display: grid; grid-template-columns: 12px 1fr; column-gap: .4rem; align-items: center; }
.gh-legende i { width: 12px; height: 12px; border: 1px solid rgba(16, 19, 24, .35); grid-row: span 2; }
.gh-legende span { color: var(--text); font-weight: 650; grid-column: 2; }
.gh-legende li.gh-mitte { color: var(--text); font-weight: 600; }
.gh-mini { display: inline-flex; width: 132px; height: 12px; border: 1px solid var(--druck); vertical-align: middle; }
.gh-mini .gh-seg { border-right: 0; }

/* ───────── Balkenliste ───────── */
.gh-balken { list-style: none; margin: 1rem 0 0; padding: 0; }
.gh-balken > li { display: grid; grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr) 7.5rem; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--linie); min-height: 3rem; }
.gh-balken.mit-rang > li { grid-template-columns: 2rem minmax(12rem, 22rem) minmax(0, 1fr) 7.5rem; }
.gh-rang { color: var(--text-3); font-stretch: 112%; font-size: var(--t-s); }
.gh-bname { display: flex; flex-direction: column; min-width: 0; }
.gh-bname a, .gh-bname > span { font-weight: 650; color: var(--text); text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: .18em; overflow-wrap: anywhere; }
.gh-bname > span { text-decoration: none; }
.gh-bname a:hover { color: var(--tinte); text-decoration-color: currentColor; }
.gh-bname small { color: var(--text-2); font-size: var(--t-xs); text-wrap: pretty; }
.gh-bbahn { position: relative; height: 14px; background: #eceee8; }
.gh-bbahn i { display: block; height: 100%; background: var(--tinte); }
.gh-bbahn i.gh-ueber { background: repeating-linear-gradient(135deg, var(--tinte) 0 4px, var(--gk4) 4px 7px); }
.gh-bbahn u { position: absolute; top: -4px; bottom: -4px; border-left: 2px solid var(--signal); text-decoration: none; }
.gh-bwert { font-weight: 700; text-align: right; white-space: nowrap; font-stretch: 105%; }
.gh-balken > li.gh-markiert { background: linear-gradient(90deg, rgba(29, 58, 110, .07), transparent); }
.gh-balken > li.gh-markiert .gh-bname a, .gh-balken > li.gh-markiert .gh-bname > span { color: var(--tinte); }
.gh-mehr { margin-top: 1rem; }
.gh-mehr summary { cursor: pointer; font-weight: 650; color: var(--tinte); padding: .5rem 0; }
.gh-mehr summary:hover { text-decoration: underline; }
.gh-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.gh-zwei .gh-balken > li { grid-template-columns: minmax(0, 1fr) auto; row-gap: .35rem; }
.gh-zwei .gh-bbahn { grid-column: 1 / -1; grid-row: 2; }

/* Vergleich im Werkzeug */
.gh-vergleich > li { grid-template-columns: minmax(0, 1fr) 8rem 11rem; }
.gh-vergleich .gh-kopfzeile { font-size: var(--t-xs); color: var(--text-2); min-height: 0; border-bottom: 2px solid var(--druck); }
.gh-vergleich .gh-kopfzeile span:not(:first-child), .gh-diff { text-align: right; }
.gh-diff { font-weight: 650; white-space: nowrap; }
.gh-auf { color: var(--auf); } .gh-ab { color: var(--ab); }

/* ───────── Diagramme ───────── */
.gh-linie, .gh-histo { width: 100%; height: auto; display: block; margin: .5rem 0; overflow: visible; }
.gh-gitter { stroke: var(--linie); stroke-width: 1; }
.gh-achse { font-size: 12px; fill: var(--text-3); font-family: var(--sans); }
.gh-reihe { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.gh-r1 { stroke: var(--tinte); fill: var(--tinte); } .gh-r2 { stroke: var(--text-3); fill: var(--text-3); } .gh-r3 { stroke: var(--gk4); fill: var(--gk4); }
.gh-reihe.gh-r1, .gh-reihe.gh-r2, .gh-reihe.gh-r3 { fill: none; }
.gh-reihe.gh-r2 { stroke-dasharray: 5 4; stroke-width: 2; }
.gh-etikett { font-size: 12.5px; font-weight: 650; font-family: var(--sans); stroke: none; }
.gh-histo rect { fill: var(--gk3); }
.gh-histo rect.gh-hm { fill: var(--druck); }
.gh-histo rect:hover { fill: var(--tinte); }
.gh-dezile { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); margin: 1rem 0 0; }
.gh-dezile div { background: var(--blatt); padding: .5rem .4rem; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.gh-dezile dt { font-size: var(--t-xs); color: var(--text-2); }
.gh-dezile dd { margin: .1rem 0 0; font-weight: 700; font-size: var(--t-s); white-space: nowrap; }

/* ───────── Tabellen ───────── */
.gh-tabelle { width: 100%; border-collapse: collapse; font-size: var(--t-s); background: var(--blatt); }
.gh-tabelle th, .gh-tabelle td { padding: .55rem .7rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: middle; }
.gh-tabelle thead th { font-size: var(--t-xs); color: var(--text-2); font-weight: 600; border-bottom: 2px solid var(--druck); white-space: nowrap; }
.gh-tabelle tbody th { font-weight: 650; }
.gh-tabelle tbody th small { display: block; font-weight: 400; color: var(--text-2); font-size: var(--t-xs); }
.gh-tabelle .gh-z { text-align: right; white-space: nowrap; font-stretch: 95%; }
.gh-tabelle .gh-r { color: var(--text-3); width: 3rem; }
.gh-tabelle .gh-q { font-size: var(--t-xs); color: var(--text-2); }
.gh-tabelle tr.gh-de { background: #f7f7f3; }
.gh-tabelle tr.gh-markiert { background: rgba(29, 58, 110, .07); }
.gh-rangliste tr.gh-unter th { padding-left: 1.8rem; }
.gh-rangliste tbody tr:hover { background: #f7f7f3; }
.gh-rangliste a { color: var(--text); text-decoration-color: var(--linie); }
.gh-rangliste a:hover { color: var(--tinte); text-decoration-color: currentColor; }
.gh-nettotab tbody th { font-weight: 700; }

/* ───────── Quelle und Methodik ───────── */
.gh-quelle { display: grid; gap: 0; margin: 1rem 0 0; }
.gh-quelle div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.gh-quelle dt { font-weight: 650; font-size: var(--t-s); }
.gh-quelle dd { margin: 0; font-size: var(--t-s); color: var(--text-2); text-wrap: pretty; }

/* ───────── Werkzeuge ───────── */
.gh-werkzeug { background: var(--blatt); border: 1px solid var(--druck); padding: 1.4rem 1.5rem; margin: 0 0 1.5rem; }
.gh-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 1.2rem; align-items: end; }
.gh-feld { display: flex; flex-direction: column; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.gh-feld > span:first-child, .gh-feld legend { font-size: var(--t-xs); font-weight: 650; color: var(--text-2); padding: 0; }
.gh-feld input[type="text"], .gh-feld select { font: inherit; font-size: var(--t-m); height: 46px; padding: 0 .75rem; border: 1px solid #9aa0a8; border-radius: 4px; background: #fff; color: var(--text); width: 100%; min-width: 0; }
.gh-feld input:hover, .gh-feld select:hover { border-color: var(--druck); }
.gh-feld input:focus-visible, .gh-feld select:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--druck); }
.gh-eingabe { position: relative; display: block; }
.gh-eingabe input { padding-right: 2rem !important; font-weight: 650; }
.gh-eingabe b { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-2); font-weight: 600; pointer-events: none; }
.gh-schalter { flex-direction: row; flex-wrap: wrap; gap: 0; }
.gh-schalter legend { width: 100%; margin-bottom: .35rem; float: left; }
.gh-schalter label { flex: 1; position: relative; }
.gh-schalter input { position: absolute; opacity: 0; pointer-events: none; }
.gh-schalter label span { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 .9rem; border: 1px solid #9aa0a8; background: #fff; cursor: pointer; font-weight: 600; transition: background var(--d1) var(--kurve); }
.gh-schalter label:first-of-type span { border-radius: 4px 0 0 4px; } .gh-schalter label:last-of-type span { border-radius: 0 4px 4px 0; border-left: 0; }
.gh-schalter label:hover span { background: #eef0ec; }
.gh-schalter input:checked + span { background: var(--druck); border-color: var(--druck); color: var(--papier); }
.gh-schalter input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 1px; }
.gh-haken { flex-direction: row; align-items: center; gap: .55rem; height: 46px; cursor: pointer; }
.gh-haken input { width: 20px; height: 20px; accent-color: var(--druck); margin: 0; }
.gh-haken span { font-size: var(--t-s) !important; color: var(--text) !important; font-weight: 500 !important; }
.gh-felder .knopf { height: 46px; }
.gh-fehler { margin: .9rem 0 0; color: var(--ab); font-weight: 600; font-size: var(--t-s); }
.gh-ergebnis { background: var(--blatt); border: 1px solid var(--linie); border-top: 3px solid var(--druck); padding: 1.4rem 1.5rem 1.2rem; margin: 0 0 2rem; }
.gh-ergebnis[aria-busy="true"] { opacity: .6; }
.gh-satz { font-size: var(--t-xl); font-weight: 650; font-stretch: 104%; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 1rem; text-wrap: balance; }
.gh-satz b { font-weight: 800; color: var(--tinte); }
.gh-weiter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 .4rem; }
.gh-schritte { padding-left: 1.3rem; margin: .8rem 0 0; display: grid; gap: .6rem; font-family: var(--serif); font-size: var(--t-m); }
.gh-schritte b { font-family: var(--sans); }
.gh-argumente { margin: .4rem 0 1rem; padding-left: 1.3rem; display: grid; gap: .55rem; font-family: var(--serif); font-size: var(--t-m); }
.gh-ziel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--druck); margin-bottom: 2.6rem; }
.gh-ziel > div { background: var(--blatt); padding: .9rem 1rem; display: flex; flex-direction: column; }
.gh-ziel span { font-size: var(--t-xs); color: var(--text-2); }
.gh-ziel b { font-size: var(--t-xl); font-weight: 780; font-stretch: 106%; letter-spacing: -.02em; margin-top: auto; padding-top: .3rem; white-space: nowrap; }
.gh-ziel small { color: var(--text-3); font-size: var(--t-xs); }
.gh-ziel .gh-ziel-haupt { background: var(--druck); color: var(--papier); }
.gh-ziel .gh-ziel-haupt span, .gh-ziel .gh-ziel-haupt small { color: #b9bec6; }
.gh-rechne { display: grid; gap: .6rem; }
.gh-rechne .knopf { width: 100%; }

/* Brutto-Netto: Formular links, Abrechnung rechts */
.gh-netto-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.gh-netto-form .gh-felder-netto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gh-netto-form .gh-gross, .gh-netto-form .knopf, .gh-haken-reihe { grid-column: 1 / -1; }
.gh-haken-reihe { display: flex; flex-wrap: wrap; gap: 0 1.6rem; border-top: 1px solid var(--linie); padding-top: .3rem; }
.gh-gross input { height: 58px !important; font-size: var(--t-xl) !important; font-weight: 750 !important; }
.gh-abrechnung { position: sticky; top: 84px; }
.gh-zettel { background: var(--blatt); border: 1px solid var(--druck); padding: 1.3rem 1.4rem 1rem; position: relative; }
.gh-zettel::before { content: ""; position: absolute; left: -1px; right: -1px; top: -7px; height: 7px; background: radial-gradient(circle at 5px 7px, var(--papier) 3.5px, var(--druck) 4px, transparent 4.5px) 0 0 / 12px 7px repeat-x; }
.gh-zettel-kopf { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); color: var(--text-2); border-bottom: 2px solid var(--druck); padding-bottom: .45rem; margin: 0 0 .9rem; }
.gh-netto-gross { display: flex; flex-direction: column; margin: 0 0 1rem; }
.gh-netto-gross span { font-size: var(--t-xs); color: var(--text-2); }
.gh-netto-gross b { font-size: var(--t-3xl); font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; margin: .2rem 0; }
.gh-netto-gross small { color: var(--text-2); font-size: var(--t-s); }
.gh-nb { display: flex; height: 16px; border: 1px solid var(--druck); }
.gh-nb span { flex: 0 0 var(--a); }
.gh-nb-netto, .gh-nb-leg .gh-nb-netto i { background: var(--tinte); }
.gh-nb-steuern, .gh-nb-leg .gh-nb-steuern i { background: var(--text-3); }
.gh-nb-sozial, .gh-nb-leg .gh-nb-sozial i { background: var(--gk2); }
.gh-nb-leg { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .5rem 0 1rem; padding: 0; font-size: var(--t-xs); color: var(--text-2); }
.gh-nb-leg li { display: flex; align-items: center; gap: .35rem; background: none; }
.gh-nb-leg i { width: 11px; height: 11px; display: inline-block; border: 1px solid rgba(16, 19, 24, .35); }
.gh-nb-leg b { color: var(--text); }
.gh-abzuege td { text-align: right; white-space: nowrap; }
.gh-abzuege thead th:not(:first-child) { text-align: right; }
.gh-abzuege tr.gh-summe th, .gh-abzuege tr.gh-summe td { font-weight: 750; border-bottom: 2px solid var(--druck); }
.gh-abzuege tr.gh-netto th, .gh-abzuege tr.gh-netto td { color: var(--tinte); font-size: var(--t-m); }
.gh-abzuege tr.gh-ag th, .gh-abzuege tr.gh-ag td { color: var(--text-2); font-weight: 400; font-size: var(--t-xs); }

/* Milliardärs-Rechner */
.gh-dauer .fi-wert { font-weight: 750; color: var(--tinte); white-space: nowrap; }
.gh-pseiten { margin-top: .4rem; columns: 3; column-gap: 2rem; display: block; }
.gh-pseiten li { break-inside: avoid; }

/* ───────── Mobil ───────── */
@media (max-width: 1000px) {
  .gh-netto-raster { grid-template-columns: 1fr; }
  .gh-abrechnung { position: static; }
}
@media (max-width: 760px) {
  .gh-balken > li, .gh-balken.mit-rang > li { grid-template-columns: minmax(0, 1fr) auto; row-gap: .35rem; }
  .gh-balken.mit-rang > li { grid-template-columns: 1.8rem minmax(0, 1fr) auto; }
  .gh-bbahn { grid-column: 1 / -1; grid-row: 2; }
  .gh-balken.mit-rang .gh-bbahn { grid-column: 2 / -1; }
  .gh-vergleich > li { grid-template-columns: minmax(0, 1fr) auto; }
  .gh-vergleich .gh-diff { grid-column: 1 / -1; text-align: left; }
  .gh-vergleich .gh-kopfzeile span:last-child { display: none; }
  .gh-legende { grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); }
  .gh-zwei { grid-template-columns: 1fr; gap: 0; }
  .gh-dezile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gh-quelle div { grid-template-columns: 1fr; gap: .2rem; }
  .gh-ziel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-ziel > div { min-width: 0; padding: .8rem .75rem; }
  .gh-ziel b { white-space: normal; font-size: var(--t-l); }
  .gh-zettel { padding: 1.1rem .8rem .8rem; }
  .gh-abzuege { font-size: var(--t-xs); }
  .gh-abzuege th, .gh-abzuege td { padding: .5rem .35rem; }
  .gh-haken-reihe { display: grid; grid-template-columns: 1fr; }
  .gh-werkzeug, .gh-ergebnis { padding: 1.1rem 1rem; }
  .gh-netto-form .gh-felder-netto { grid-template-columns: 1fr; }
  .gh-pseiten { columns: 1; }
  .gh-bahn { height: 44px; }
  .gh-netto-gross b { font-size: var(--t-2xl); }
  .gh-satz { font-size: var(--t-l); }
}
.gh-balken + .tabelle-rahmen { margin-top: 2rem; }
.gh-personen .fi-wert { text-align: right; }
.gh-personen .fi-wert small { display: block; font-size: var(--t-xs); font-weight: 400; color: var(--text-3); }
.gh-abzuege { table-layout: fixed; }
.gh-abzuege th:first-child { width: 42%; }
@media (max-width: 760px) { .gh-abzuege tbody th { white-space: normal; hyphens: manual; -webkit-hyphens: manual; } .gh-abzuege th, .gh-abzuege td { padding: .45rem .2rem; } }
@media (max-width: 760px) { .gh-rangliste th:nth-child(4), .gh-rangliste td:nth-child(4), .gh-rangliste th:nth-child(6), .gh-rangliste td:nth-child(6), .gh-rangliste th:nth-child(7), .gh-rangliste td:nth-child(7) { display: none; } .gh-rangliste tbody th small { display: none; } .gh-rangliste tr.gh-unter th { padding-left: .9rem; } .gh-rangliste th, .gh-rangliste td { padding: .5rem .35rem; } }

/* ───────── Darstellungsprüfung 19.10.2026 (Bereich Gehalt) ───────── */
/* H1: am Handy so weit verkleinern, dass das längste Wort (--lw aus vi_g_h1_lw) in eine Zeile passt – kein Bruch mitten im Wort */
.gh-kopf h1[style] .fi-h1-zusatz { font-size: max(.42em, .8rem); }
.gh-kopf h1[style] { font-size: min(clamp(2.2rem, 5vw, 4.4rem), calc((100vw - 2 * var(--rand)) / (var(--lw) * .6))); }
/* Knöpfe mit langem Berufs-/Regionsnamen: Umbruch nur zwischen Sinneinheiten (<span>), nie über den Rand */
.knopf.gh-umbruch { flex-wrap: wrap; column-gap: .3em; row-gap: 0; white-space: normal; text-align: center; max-width: 100%; }
.knopf.gh-umbruch > span { min-width: 0; }
.gh-rechne .knopf.gh-umbruch { padding-top: .7rem; padding-bottom: .7rem; line-height: 1.3; }
/* Diagramme: breite Fassung ab 600 px, schmale darunter; Legende statt Endetiketten */
.gh-l-schmal { display: none !important; }
@media (max-width: 600px) { .gh-l-breit { display: none !important; } .gh-l-schmal { display: block !important; } }
.gh-l-leg { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: .2rem 0 0; padding: 0; font-size: var(--t-xs); color: var(--text-2); }
.gh-l-leg li { display: inline-flex; align-items: center; gap: .45rem; background: none; padding: 0; }
.gh-l-leg i { display: inline-block; width: 20px; height: 0; border-top: 2.5px solid var(--tinte); }
.gh-l-leg .gh-r2 i { border-top: 2px dashed var(--text-3); }
.gh-l-leg .gh-r3 i { border-top-color: var(--gk4); }
.gh-l-leg .gh-r1 { color: var(--text); font-weight: 600; }
/* Entgeltstreifen: Prozentzahl nur zeigen, wenn sie in ihren Abschnitt passt */
.gh-bahn .gh-seg { container-type: inline-size; }
@container (max-width: 34px) { .gh-seg b { display: none; } }
@media (max-width: 760px) {
  /* Ausland-Tabelle: je Land eine Zeile Werte, Quelle darunter über die volle Breite */
  .gh-ausland, .gh-ausland tbody { display: block; }
  .gh-ausland thead { display: block; }
  .gh-ausland tr { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: .5rem; border-bottom: 1px solid var(--linie); padding: .5rem .6rem; }
  .gh-ausland thead tr { border-bottom: 2px solid var(--druck); padding-top: .4rem; padding-bottom: .4rem; }
  .gh-ausland thead th:nth-child(4) { display: none; }
  .gh-ausland thead th, .gh-ausland tbody th, .gh-ausland td { padding: 0; border: 0; white-space: normal; }
  .gh-ausland thead th { white-space: normal; }
  .gh-ausland td.gh-q { grid-column: 1 / -1; margin-top: .3rem; }
  /* Rechengrößen: Wert neben dem Namen, Erläuterung darunter */
  .gh-werte, .gh-werte tbody { display: block; }
  .gh-werte tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; border-bottom: 1px solid var(--linie); padding: .55rem .6rem; }
  .gh-werte th, .gh-werte td { padding: 0; border: 0; }
  .gh-werte td:last-child { grid-column: 1 / -1; color: var(--text-2); font-size: var(--t-xs); margin-top: .2rem; }
  /* Netto-Tabelle typische Gehälter: alle sieben Spalten passen auf den Schirm */
  .gh-nettotab { font-size: var(--t-xs); font-stretch: 82%; }
  .gh-nettotab th, .gh-nettotab td { padding: .45rem .1rem; }
  .gh-nettotab th:first-child { padding-left: .35rem; }
  .gh-nettotab th:last-child, .gh-nettotab td:last-child { padding-right: .35rem; }
  .gh-nettotab thead th, .gh-nettotab thead th.gh-z { white-space: normal; }
  /* Rangliste: Spaltenköpfe dürfen umbrechen, damit „Zum Vorjahr“ nicht über den Rand ragt */
  .gh-rangliste thead th, .gh-rangliste thead th.gh-z { white-space: normal; }
  .gh-rangliste .gh-r { width: 1.6rem; }
  /* Abrechnung: Netto-Zeile bleibt innerhalb des Zettels */
  .gh-abzuege tr.gh-netto th, .gh-abzuege tr.gh-netto td { font-size: var(--t-s); }
  .gh-abzuege th:first-child { width: 36%; }
}
/* Zielgehalt-Kacheln: Beschriftung, Wert und Zusatz stehen je Reihe auf gleicher Höhe (subgrid); lange Spanne bricht vor „über …“ um */
.gh-ziel > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.gh-ziel b { white-space: normal; margin-top: 0; padding-top: .3rem; align-self: start; text-wrap: balance; }
.gh-ziel small { align-self: start; }
/* Rangliste zwischen Handy und Desktop: Verteilungsstreifen ausblenden, damit die Tabelle nicht seitlich scrollt */
@media (max-width: 820px) { .gh-rangliste th:nth-child(6), .gh-rangliste td:nth-child(6) { display: none; } }
/* Sehr schmale Handys: Rangliste etwas kleiner, damit lange Berufsnamen („Verwaltungsangestellte“) ohne Seitwärtsscrollen passen */
@media (max-width: 400px) { .gh-rangliste { font-size: var(--t-xs); } .gh-rangliste th, .gh-rangliste td { padding-left: .25rem; padding-right: .25rem; } }
