/* Dienstnetto – Grundlook. Systemschrift auf dem Handy, Inter ab 960 px; ein Akzent (Petrol), hell oder dunkel wie das Gerät. */
/* Inter liegt selbst gehostet bei (OFL, vendor/fonts). Der Browser lädt sie nur, wenn eine Regel sie nutzt – also nur am Desktop. */
@font-face { font-family: Inter; src: url(fonts/inter-var-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f5f7fb;
  --flaeche: #ffffff;
  --flaeche-2: #eef2f7;
  --text: #0b1324;
  --leise: #4a5466;   /* 7:1 auf --bg; Nebentext soll gut lesbar bleiben */
  --platzhalter: #6b7587;
  --linie: #e3e8f0;
  --akzent: #0f766e;
  --akzent-hell: #14b8a6;
  --akzent-text: #ffffff;
  --akzent-zart: rgba(15, 118, 110, 0.09);
  --gold: #c27c0e;
  --warn: #b45309;
  --gut: #15803d;
  --radius: 18px;
  --radius-klein: 12px;
  --schatten: 0 1px 2px rgba(11, 19, 36, 0.05), 0 8px 24px rgba(11, 19, 36, 0.06);
  --schatten-hoch: 0 2px 6px rgba(11, 19, 36, 0.06), 0 24px 48px rgba(11, 19, 36, 0.12);
  --rand: 16px;
  --rand-l: max(var(--rand), env(safe-area-inset-left));   /* iPhone quer: nicht in die Notch */
  --rand-r: max(var(--rand), env(safe-area-inset-right));
  --feldrand: #8a94a6;   /* Ränder von Eingabefeldern: mind. 3:1 gegen die Fläche (WCAG 1.4.11) */
  --warn-text: #92400e;
  color-scheme: light;
}
/* Darstellung: Standard folgt dem Gerät (System). Wer im Kopf „Hell“ oder „Dunkel“ wählt, bekommt data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a101c;
    --flaeche: #111a2b;
    --flaeche-2: #18233a;
    --text: #e8edf5;
    --leise: #c0c8d6;   /* 11:1 – helle, dünne Schrift auf dunklem Grund wirkt schwächer, als der Kontrast sagt */
    --platzhalter: #8f9bb1;
    --linie: #223049;
    --akzent: #2dd4bf;
    --akzent-hell: #5eead4;
    --akzent-text: #042420;
    --akzent-zart: rgba(45, 212, 191, 0.12);
    --gold: #f6c453;
    --warn: #f59e0b;
    --gut: #4ade80;
    --feldrand: #5b6b8a;
    --warn-text: #f59e0b;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.3);
    --schatten-hoch: 0 24px 48px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a101c;
  --flaeche: #111a2b;
  --flaeche-2: #18233a;
  --text: #e8edf5;
  --leise: #c0c8d6;
  --platzhalter: #8f9bb1;
  --linie: #223049;
  --akzent: #2dd4bf;
  --akzent-hell: #5eead4;
  --akzent-text: #042420;
  --akzent-zart: rgba(45, 212, 191, 0.12);
  --gold: #f6c453;
  --warn: #f59e0b;
  --gut: #4ade80;
  --feldrand: #5b6b8a;
  --warn-text: #f59e0b;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.3);
  --schatten-hoch: 0 24px 48px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }  /* sonst setzt der Browser in Knöpfen Arial */
::placeholder { color: var(--platzhalter); opacity: 1; }  /* Browser-Grau ist im Dunkelmodus kaum lesbar (3,8:1) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--akzent); }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); line-height: 1.12; margin: 0.25rem 0 0.4rem; letter-spacing: -0.025em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.35rem; letter-spacing: -0.015em; }
.klein { font-size: 0.85rem; color: var(--leise); }
.unter { color: var(--leise); margin: 0 0 1rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700;
  color: var(--akzent); margin: 0; }

/* Nur für Screenreader und Suchmaschinen sichtbar */
.nur-lesbar { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: 1120px; margin: 0 auto; padding: 0.6rem var(--rand-r) 0.6rem var(--rand-l);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.marke { display: flex; align-items: center; gap: 0.45rem; font-size: 1.2rem; text-decoration: none;
  color: var(--text); letter-spacing: -0.02em; flex: none; }
.marke b { color: var(--akzent); }
.marke-zeichen { width: 28px; height: 28px; }
.marke-zeichen rect { fill: var(--akzent); }
.nav { display: flex; align-items: center; gap: 0.9rem; }
.nav a { color: var(--leise); text-decoration: none; font-weight: 650; font-size: 0.93rem; white-space: nowrap;
  padding: 0.65rem 0.1rem; }  /* Tippfläche ≥ 40 px hoch */
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav .nav-rechner { background: var(--akzent); color: var(--akzent-text); padding: 0.55rem 0.85rem; border-radius: 999px; }
.nav .nav-rechner:hover, .nav .nav-rechner[aria-current] { color: var(--akzent-text); filter: brightness(1.08); }
@media (max-width: 420px) {
  .nav { gap: 0.6rem; }
  .nav a { font-size: 0.86rem; }
  .marke span { display: none; }
}
@media (max-width: 370px) {
  .nav a[href$="quellen/"] { display: none; }  /* steht auch im Fuß */
  .nav { gap: 0.4rem; }
  .nav a { padding-left: 0; padding-right: 0; }
  .nav .nav-rechner { padding: 0.55rem 0.6rem; }
  .darstellung-knopf { width: 34px; height: 34px; }
}

/* Darstellung: System / Hell / Dunkel */
.darstellung { position: relative; flex: none; }
.darstellung-knopf { appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.darstellung-knopf:hover { border-color: var(--akzent); }
.darstellung-knopf svg { width: 18px; height: 18px; }
.darstellung-menue { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; padding: 6px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten-hoch); }
.darstellung-menue button { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 0.93rem;
  padding: 0.55rem 0.7rem; border-radius: 10px; cursor: pointer; text-align: left; }
.darstellung-menue button:hover { background: var(--flaeche-2); }
.darstellung-menue button[aria-checked="true"]::after { content: "✓"; color: var(--akzent); font-weight: 800; }
.darstellung-menue small { display: block; color: var(--leise); font-weight: 500; font-size: 0.78rem; }

.inhalt { max-width: 760px; margin: 0 auto; padding: 1.25rem var(--rand-r) 2.5rem var(--rand-l); }
.inhalt.breit { max-width: 1120px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--akzent); color: var(--akzent-text);
  text-decoration: none; font-weight: 750; padding: 0.6rem 1.1rem; border-radius: 999px; border: 0;
  font-size: 1rem; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease;
}
.knopf:hover { filter: brightness(1.07); transform: translateY(-1px); }
.knopf.gross { padding: 0.85rem 1.4rem; font-size: 1.08rem; box-shadow: 0 8px 22px rgba(15, 118, 110, 0.28); }
.knopf.hell { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); box-shadow: none; }

/* Held (Startseite) */
.held { display: grid; gap: 1.5rem; align-items: center; padding: 0.75rem 0 1.25rem; }
/* Schein hinter dem Titel: am Seitenhintergrund, damit er keine Kanten am Raster hat */
body[data-seite="start"] { background: radial-gradient(560px 320px at 78% 110px, var(--akzent-zart), transparent 70%) no-repeat, var(--bg); }
.held h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.hervor { color: var(--akzent); }
.held-unter { font-size: 1.08rem; color: var(--leise); margin: 0 0 1.2rem; max-width: 34rem; }
/* Der Einstieg: Berufsbereiche als große Kacheln – ein Tipp öffnet den Rechner. */
.start-bereiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.start-bereiche a { display: flex; align-items: center; gap: 0.6rem; min-height: 58px; padding: 0.6rem 0.75rem; border-radius: 16px;
  background: var(--flaeche); border: 1.5px solid var(--linie); box-shadow: var(--schatten); color: var(--text); text-decoration: none;
  min-width: 0; transition: border-color 0.15s ease, transform 0.1s ease; }
.start-bereiche a:hover { border-color: var(--akzent); }
.start-bereiche a:active { transform: scale(0.98); }
.start-bereiche .sym { font-size: 1.45rem; flex: none; }
.start-bereiche .txt { display: flex; flex-direction: column; min-width: 0; }
.start-bereiche b { font-size: 0.95rem; line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; }
.start-bereiche a.breit { grid-column: 1 / -1; }
.start-bereiche small { color: var(--leise); font-size: 0.78rem; line-height: 1.3; display: none; }
/* Kostenlos, ohne Werbung, ohne Anmeldung: eine leise Zeile, kein Banner (am Desktop in der Vertrauenszeile) */
.ohne { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; color: var(--leise);
  font-size: 0.84rem; font-weight: 600; }
.ohne li { white-space: nowrap; }
.ohne li::before { content: "✓"; color: var(--akzent); font-weight: 800; margin-right: 0.3rem; }
/* Nur am Desktop (siehe unten): Suche und Beispielrechnung im Held, Titel über den Kacheln, Balken in der Rangliste */
.held-desk, .held-karte, .bereiche-titel, .rang .balken, .start-themen .ikon { display: none; }
/* Gehälter nach Beruf: schlanke Links zu den Berufsseiten */
.beruf-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.beruf-links a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem; min-height: 40px; border-radius: 999px;
  background: var(--flaeche-2); color: var(--text); text-decoration: none; font-weight: 650; font-size: 0.92rem; }
.beruf-links a:hover { background: var(--akzent-zart); color: var(--akzent); }
@media (max-width: 639px) {
  .held { gap: 1rem; }
  .held-unter { margin-bottom: 0; }
}
@media (max-width: 389px) {
  /* Schmale Handys (360–389 px): kleineres Symbol, damit „Verwaltung“ und „Bundeswehr“ in eine Zeile passen */
  .start-bereiche a { gap: 0.45rem; padding: 0.6rem 0.65rem; }
  .start-bereiche .sym { font-size: 1.25rem; }
}
@media (max-width: 359px) {
  /* Sehr schmale Handys: Symbol über dem Namen, sonst brechen „Feuerwehr“ oder „Bundeswehr“ mitten im Wort */
  .start-bereiche a { flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 0.6rem 0.7rem; }
  .start-bereiche .sym { font-size: 1.3rem; }
  .start-bereiche a.breit { flex-direction: row; align-items: center; gap: 0.6rem; }
}
@media (min-width: 640px) {
  .start-bereiche { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .start-bereiche small { display: block; }
}

.fakten { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.fakten li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 0.7rem 0.9rem; display: flex; flex-direction: column; }
.fakten b { font-size: 1.35rem; letter-spacing: -0.02em; }
.fakten span { font-size: 0.85rem; color: var(--leise); }

.block { margin: 0 0 2.25rem; scroll-margin-top: 80px; }
.vergleich { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.vergleich-kopf, .vergleich-liste { min-width: 0; }
.gruppen-text { margin: 0.5rem 0 0.75rem; font-size: 0.9rem; color: var(--leise); min-height: 1.35em; }
.vergleich-fuss { margin-top: 0.9rem; }

/* Schalter (Segmente) */
.schalter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--flaeche-2); max-width: 100%; }
.schalter button {
  appearance: none; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 650;
  font-size: 0.95rem; padding: 0.45rem 0.85rem; border-radius: 999px; cursor: pointer; min-height: 40px; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.schalter button[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25); }
.schalter button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.schalter.voll { display: flex; }
.schalter.voll button { flex: 1 1 auto; padding-left: 0.45rem; padding-right: 0.45rem; white-space: normal; line-height: 1.15; }
.schalter-rolle { overflow-x: auto; margin: 0 calc(-1 * var(--rand)); padding: 0 var(--rand) 4px; scrollbar-width: none; }
.schalter-rolle::-webkit-scrollbar { display: none; }
.schalter-rolle .schalter { max-width: none; }

/* Rangliste */
.rang { list-style: none; margin: 0 0 0.75rem; padding: 0; background: var(--flaeche); border-radius: var(--radius);
  box-shadow: var(--schatten); border: 1px solid var(--linie); overflow: hidden; }
.rang li + li { border-top: 1px solid var(--linie); }
.rang a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.95rem; color: var(--text); text-decoration: none; }
.rang a:hover { background: var(--akzent-zart); }
.platz { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; background: var(--flaeche-2); font-variant-numeric: tabular-nums; }
.rang li:first-child .platz { background: var(--gold); color: #1a1300; }
.rang li:first-child a { background: var(--akzent-zart); }
.land { flex: 1; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.land small, .betrag small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--leise); }
.betrag { flex: none; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.rang .leer { padding: 1rem; color: var(--leise); }
.fehlt { font-size: 0.9rem; color: var(--warn); margin: 0 0 0.5rem; }
.aus { color: var(--warn); font-style: normal; font-weight: 600; }
.aus-kasten { background: var(--flaeche-2); border: 1px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, var(--flaeche)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: var(--radius-klein); padding: 0.65rem 0.85rem; font-size: 0.92rem; margin: 0 0 1rem; }

/* Tarif-Karten */
.tarif-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; }
.tarif-karte { display: flex; flex-direction: column; gap: 0.1rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); text-decoration: none; color: var(--text); }
.tarif-karte b { font-size: 1.25rem; color: var(--akzent); -webkit-hyphens: auto; hyphens: auto; }
.tarif-karte span { color: var(--leise); font-size: 0.9rem; }
.tarif-karte:hover { border-color: var(--akzent); }
@media (max-width: 639px) {
  .tarif-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .tarif-karte { padding: 0.75rem 0.9rem; border-radius: var(--radius-klein); }
  .tarif-karte:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tarif-karte b { font-size: 1.02rem; }
  .tarif-karte span { font-size: 0.84rem; line-height: 1.35; }
}

/* Kästen */
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 1rem 1.1rem; margin: 1rem 0; overflow-wrap: anywhere; }
.kasten p { margin: 0 0 0.5rem; }
.kasten p:last-child { margin-bottom: 0; }

/* Detailseiten */
.brot { font-size: 0.85rem; color: var(--leise); }
.brot a { color: var(--leise); padding: 0.35rem 0; }  /* Tippfläche ≥ 24 px */
.marke-status { background: var(--akzent-zart); color: var(--akzent); padding: 0.05rem 0.5rem; border-radius: 999px;
  font-weight: 650; font-size: 0.85rem; white-space: nowrap; }
.rang-text { margin: 0.7rem 0 0.4rem; font-weight: 650; min-height: 1.5em; }
.stufen { list-style: none; padding: 0; margin: 0.5rem 0 0; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten); }
.stufen li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.65rem 0.95rem; }
.stufen li + li { border-top: 1px solid var(--linie); }
.stufen span { color: var(--leise); }
.stufen b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.detail-cta { margin: 1.1rem 0 0.5rem; }
.detail-cta .knopf { max-width: 100%; white-space: normal; }

details > summary { cursor: pointer; font-weight: 700; }
.tabelle-rahmen { overflow-x: auto; margin-top: 0.75rem; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.86rem; min-width: 100%; }
th, td { padding: 0.4rem 0.6rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--linie); }
thead th { position: sticky; top: 0; background: var(--flaeche); }
tbody th, thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--flaeche); }

.quelle { font-size: 0.9rem; }
.pruef { color: var(--gut); font-weight: 650; }
.hinweise { margin: 0 0 0.6rem; }
.hinweise summary { font-weight: 600; color: var(--leise); }
.hinweise ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--leise); }
.hinweise li { margin-bottom: 0.25rem; }
.naechste { border-left: 3px solid var(--akzent); padding-left: 0.6rem; }

.quellen { list-style: none; padding: 0; margin: 0; }
.quellen li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 0.75rem 0.9rem; margin-bottom: 0.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.quellen .titel { font-weight: 700; color: var(--text); text-decoration: none; }
.quellen span { font-size: 0.88rem; color: var(--leise); overflow-wrap: anywhere; }

/* Verwaltung */
.zahlen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.zahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 0.5rem 0.8rem; min-width: 6.5rem; }
.zahl b { display: block; font-size: 1.4rem; }
.zahl span { font-size: 0.8rem; color: var(--leise); }
.zahl.geprueft b, .zahl.geklaert b { color: var(--gut); }
.zahl.abweichung b, .zahl.unplausibel b { color: var(--warn); }
.bericht { list-style: none; padding: 0; margin: 0; }
.bericht > li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  margin-bottom: 0.5rem; padding: 0.6rem 0.8rem; }
.bericht summary { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; list-style: none; }
.bericht summary::-webkit-details-marker { display: none; }
.bericht .sym { width: 1.2rem; }
.bericht .name { font-weight: 700; }
.bericht .neben { color: var(--leise); font-size: 0.85rem; }
.bericht li.abweichung .sym, .bericht li.unplausibel .sym { color: var(--warn); }
.bericht li.geprueft .sym, .bericht li.geklaert .sym { color: var(--gut); }
.bericht ul { margin: 0.5rem 0 0; padding-left: 1.4rem; font-size: 0.88rem; overflow-wrap: anywhere; }
.fahrplan { padding-left: 1.2rem; margin: 0; }
.fahrplan li { margin-bottom: 0.4rem; }
.fahrplan .fertig { color: var(--gut); }

.fuss { border-top: 1px solid var(--linie); color: var(--leise); font-size: 0.85rem; }
.fuss-innen { max-width: 1120px; margin: 0 auto; padding: 1.25rem var(--rand-r) 2.5rem var(--rand-l); }
.fuss p { margin: 0 0 0.4rem; }
.fuss a { color: var(--leise); }
.fuss-innen { display: grid; gap: 1.1rem; }
.fuss-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.fuss .fuss-titel { margin: 0 0 0.3rem; font-weight: 700; font-size: 0.75rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.07em; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { display: inline-block; padding: 0.3rem 0; text-decoration: none; }
.fuss li a:hover { color: var(--text); text-decoration: underline; }
/* Desktop-Extras im Kopf: Suche und weitere Links – am Handy aus */
.kopf-suche, .nav .nur-desk { display: none; }

/* ---------- Berufe: Kacheln (Start), Berufsseiten ---------- */
.bereich-kachel { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 0.9rem 0.85rem; border-radius: var(--radius);
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); text-decoration: none; box-shadow: var(--schatten);
  min-width: 0; transition: border-color 0.15s ease, transform 0.1s ease; }
.bereich-kachel:hover { border-color: var(--akzent); }
.bereich-kachel:active { transform: scale(0.985); }
.bereich-kachel .sym { font-size: 1.6rem; line-height: 1; margin-bottom: 0.3rem; }
.bereich-kachel b { font-size: 1.02rem; overflow-wrap: anywhere; }
.bereich-kachel small { color: var(--leise); font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; }
.rollen { margin-top: 1rem; }
.rolle h2 { font-size: 1.35rem; margin: 0 0 0.7rem; }
.rolle h2 small, .rolle-teil h3 small { font-weight: 500; color: var(--leise); font-size: 0.85rem; }
.rolle-teil { margin-bottom: 1rem; }
.rolle-teil h3 { font-size: 1rem; margin: 0 0 0.55rem; }
.rolle-teil .schalter { margin-bottom: 0.4rem; }
.rolle-teil .vergleich-fuss { margin: 0.2rem 0 0.6rem; }
.rolle .warum { background: var(--flaeche-2); border-radius: 12px; padding: 0.55rem 0.75rem; font-size: 0.9rem; }
.laufzeit { list-style: none; padding: 0; margin: 0.3rem 0 0.4rem; }
.laufzeit li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--linie);
  font-variant-numeric: tabular-nums; }
.laufzeit li:last-child { border-bottom: 0; }
.laufzeit li span:nth-child(2) { color: var(--leise); }

/* ---------- Desktop ---------- */
@media (min-width: 640px) {
  .fakten { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  :root { --rand: 28px; }
  .held { grid-template-columns: 0.8fr 1.2fr; padding: 2.5rem 0 2rem; gap: 2.5rem; }
  .vergleich { grid-template-columns: 340px 1fr; gap: 2.25rem; align-items: start; }
  .vergleich-kopf { position: sticky; top: 88px; }
  .vergleich-kopf h2 { font-size: 1.7rem; }
  .rang a { padding: 0.85rem 1.2rem; }
  .detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
  .detail-neben .kasten:first-child { margin-top: 0.4rem; }
  .schalter-rolle { margin: 0; padding: 0 0 4px; }
  .bereich-kachel { padding: 1.1rem 1.1rem 1rem; }
  .rollen .rolle:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0 2rem; align-items: start; }
  .rollen .rolle > h2, .rollen .rolle > .detail-cta { grid-column: 1 / -1; }
}

/* ---------- Suchseiten: Kennzahlen, Stufen mit Netto, Rollenkarten, Fragen, Links ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.55rem; margin: 0.4rem 0 1rem; }
.kennzahlen div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 0.75rem 0.9rem; }
.kennzahlen span { display: block; font-size: 0.8rem; color: var(--leise); }
.kennzahlen b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kennzahlen small { color: var(--leise); font-size: 0.78rem; }
@media (max-width: 499px) { .kennzahlen > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.netto-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.netto-tabelle th, .netto-tabelle td { padding: 0.55rem 0.6rem; text-align: right; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.netto-tabelle thead th { font-size: 0.78rem; color: var(--leise); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.netto-tabelle th:first-child { text-align: left; }
.netto-tabelle td.leise { color: var(--leise); }
.netto-tabelle td b { color: var(--akzent); }
.tabelle-rahmen:has(> .netto-tabelle) { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  box-shadow: var(--schatten); padding: 0.15rem 0.35rem; }
.netto-tabelle tbody tr:last-child > * { border-bottom: 0; }
.rollen-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.7rem; margin: 0.5rem 0 1.25rem; }
.rollen-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.05rem; box-shadow: var(--schatten);
  display: flex; flex-direction: column; gap: 0.35rem; }
.rollen-karte h3 { margin: 0; font-size: 1.02rem; }
.rollen-karte h3 small { font-weight: 500; color: var(--leise); font-size: 0.82rem; }
.rollen-karte .gross { margin: 0.2rem 0 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--akzent); font-variant-numeric: tabular-nums; }
.rollen-karte .gross small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--leise); letter-spacing: 0; }
.rollen-karte dl { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.75rem; margin: 0.3rem 0 0.2rem; font-size: 0.9rem; }
.rollen-karte dt { color: var(--leise); }
.rollen-karte dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.rollen-karte .mehr { margin-top: auto; font-weight: 700; font-size: 0.9rem; text-decoration: none; padding-top: 0.3rem; }
.faq details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 0.1rem 0.9rem; margin-bottom: 0.45rem; }
/* ＋/− rechts, absolut gesetzt: so dürfen lange Wörter („Verwaltungsfachangestellter“) im Text umbrechen */
.faq summary { cursor: pointer; font-weight: 700; padding: 0.75rem 2rem 0.75rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.45rem; font-weight: 400; line-height: 1; color: var(--akzent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 0.8rem; color: var(--text); }
.such-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0 0.6rem; align-items: center; }
.such-chips p { flex-basis: 100%; margin: 0 0 0.1rem; }
.such-chips a { padding: 0.45rem 0.75rem; min-height: 38px; display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--flaeche-2); color: var(--text); text-decoration: none; font-weight: 650; font-size: 0.88rem; }
.such-chips a:hover { background: var(--akzent-zart); color: var(--akzent); }
.such-chips a[aria-current] { background: var(--akzent); color: var(--akzent-text); }

/* ---------- Erhöhungen ---------- */
.erh-liste { list-style: none; margin: 0.5rem 0 0; padding: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.erh-liste li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding: 0.75rem 0.95rem; }
.erh-liste li + li { border-top: 1px solid var(--linie); }
.erh-liste a { font-weight: 750; color: var(--text); text-decoration: none; }
.erh-was { font-size: 0.93rem; }
.erh-bsp { font-size: 0.85rem; color: var(--leise); }
.erh-bsp b { color: var(--akzent); }
.erh-status { display: inline-block; font-size: 0.72rem; font-weight: 750; padding: 0.1rem 0.45rem; border-radius: 999px; margin-left: 0.25rem;
  background: var(--flaeche-2); color: var(--leise); vertical-align: 1px; }
.erh-status.ok { background: var(--akzent-zart); color: var(--akzent); }
.erh-status.plan { background: var(--flaeche-2); background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn-text); }
.erh-status.leer { margin-left: 0; }
@media (min-width: 760px) {
  .erh-liste li { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
}

/* ---------- Neu & demnächst ---------- */
/* Startseite: eine leise Zeile statt Banner – kleine Marke, ein Satz, Pfeil */
.neu-zeile { display: flex; align-items: center; gap: 0.6rem; margin: 0.85rem 0 0; padding: 0.55rem 0.75rem; border-radius: var(--radius-klein);
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-size: 0.88rem; line-height: 1.35; max-width: 34rem; }
.neu-zeile:hover { border-color: var(--akzent); }
.neu-marke { flex: none; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--akzent);
  background: var(--akzent-zart); padding: 0.18rem 0.45rem; border-radius: 6px; }
.neu-text { flex: 1; min-width: 0; }
.neu-mehr { flex: none; color: var(--akzent); font-weight: 700; }
@media (min-width: 960px) { .held .neu-zeile { margin: 1.1rem 0 1.1rem; } }

.termin-monat { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--leise); margin: 1.4rem 0 0.45rem; }
.termin-monat:first-of-type { margin-top: 0.4rem; }
.termine { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.termine li + li { border-top: 1px solid var(--linie); }
.termin { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; }
.termin a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--akzent) 45%, transparent); text-underline-offset: 2px; }
.termin a:hover { color: var(--akzent); }
.termin-name { font-weight: 750; }
.termin-namen { display: block; margin-top: 0.15rem; line-height: 1.5; }
.termin-tag { flex: none; width: 2.9rem; text-align: center; line-height: 1.05; border-radius: 10px; background: var(--flaeche-2); padding: 0.3rem 0; }
.termin-tag b { display: block; font-size: 1.05rem; }
.termin-tag span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--leise); }
.termin-text { flex: 1; min-width: 0; font-size: 0.93rem; }
.termin-text small { display: block; color: var(--leise); font-size: 0.82rem; margin-top: 0.1rem; }
.termin-was { font-weight: 700; color: var(--akzent); }
.termin-was.kurz { white-space: nowrap; }
.spaeter { margin-top: 1.2rem; }
.spaeter > summary { cursor: pointer; font-weight: 700; color: var(--akzent); padding: 0.4rem 0; }
.termin-wann { flex: none; font-size: 0.78rem; color: var(--leise); white-space: nowrap; }
@media (max-width: 420px) {
  .termin { flex-wrap: wrap; row-gap: 0.15rem; }
  .termin-wann { order: 3; width: 100%; padding-left: 3.7rem; }
}
.neu-liste { list-style: none; margin: 0; padding: 0; }
.neu-liste li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--linie); font-size: 0.93rem; }
.neu-liste li:first-child { border-top: 0; }
.neu-liste time { color: var(--leise); font-variant-numeric: tabular-nums; font-size: 0.85rem; padding-top: 0.05rem; }
.neu-liste a { color: var(--text); }

/* ---------- Gehaltsseiten: Antwort oben, Übersicht ---------- */
.h1-zusatz { display: block; font-size: 0.55em; color: var(--leise); font-weight: 650; letter-spacing: -0.01em; margin-top: 0.15rem; }
.antwort { font-size: 1.08rem; line-height: 1.55; background: var(--akzent-zart); border-left: 4px solid var(--akzent); border-radius: 0 14px 14px 0;
  padding: 0.85rem 1rem; margin: 0.6rem 0 1.1rem; max-width: 46rem; }
.start-themen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.7rem; margin: 1.6rem 0; }
.start-themen .thema { display: grid; gap: 0.3rem; padding: 1rem 1.1rem; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); color: var(--text); text-decoration: none; }
.start-themen .thema:hover { border-color: var(--akzent); }
.start-themen .thema b { font-size: 1.08rem; }
.start-themen .thema b::after { content: " →"; color: var(--akzent); }
.start-themen .thema span { color: var(--leise); font-size: 0.92rem; }
.status-block { border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); margin: 0.6rem 0; }
.status-block > summary { cursor: pointer; padding: 0.8rem 0.95rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; align-items: baseline; }
.status-block > summary span { color: var(--leise); font-size: 0.88rem; font-weight: 500; }
.status-block > .tabelle-rahmen, .status-block > p { margin: 0 0.95rem 0.8rem; }
.status-block th a { color: inherit; }
.gehalt-bereich h2 { font-size: 1rem; margin: 1.1rem 0 0; }
.gehalt-liste { list-style: none; margin: 0.45rem 0 0.6rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.55rem; }
.gehalt-liste a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n z" "f f"; gap: 0.1rem 0.6rem; padding: 0.65rem 0.9rem;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); color: var(--text); text-decoration: none; }
.gehalt-liste a:hover { border-color: var(--akzent); }
.gehalt-liste b { grid-area: n; font-size: 1.02rem; overflow-wrap: break-word; hyphens: auto; }
.gehalt-liste span { grid-area: f; color: var(--leise); font-size: 0.85rem; }
.gehalt-liste em { grid-area: z; font-style: normal; font-weight: 750; color: var(--akzent); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Suche */
.suche { position: relative; margin: 0.9rem 0 1rem; max-width: 640px; }
.suche input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1.5px solid var(--linie); border-radius: 999px; background: var(--flaeche); color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0.95rem center; background-size: 1.1rem; }
.suche input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-zart); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 22%, transparent); }
.suche-treffer { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.35rem); margin: 0; padding: 0.3rem; list-style: none;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16); }
.suche-treffer a { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0.75rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.suche-treffer a span { min-width: 0; overflow-wrap: anywhere; }
.suche-treffer a small { color: var(--leise); flex: none; }
.suche-treffer a:hover, .suche-treffer a.an { background: var(--akzent-zart); background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.suche-treffer .leer { padding: 0.6rem 0.75rem; color: var(--leise); }

/* Gemerkte Berechnungen (Startseite) */
.gemerkt-liste { list-style: none; margin: 0.6rem 0 0.4rem; padding: 0; display: grid; gap: 0.45rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gemerkt-liste li { display: flex; align-items: stretch; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); }
.gemerkt-liste a { flex: 1; min-width: 0; display: grid; gap: 0.1rem; padding: 0.65rem 0.9rem; color: var(--text); text-decoration: none; }
.gemerkt-liste a b { color: var(--akzent); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.gemerkt-liste a span { color: var(--leise); font-size: 0.85rem; overflow-wrap: anywhere; }
.merk-weg { appearance: none; border: 0; background: none; color: var(--leise); font-size: 1.3rem; padding: 0 0.8rem; cursor: pointer; }
.merk-weg:hover { color: var(--text); }

/* Kennzahlen-Reihe (So genau rechnen wir) */
.kennzahlen-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; margin: 1rem 0 1.4rem; }
.kennzahlen-reihe div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 0.8rem 1rem; display: grid; gap: 0.15rem; }
.kennzahlen-reihe b { font-size: 1.7rem; color: var(--akzent); font-variant-numeric: tabular-nums; }
.kennzahlen-reihe span { color: var(--leise); font-size: 0.88rem; }

/* Stufenrechner */
.sr-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem 0.9rem; margin: 0.6rem 0 1rem; }
.sr-felder label { display: grid; gap: 0.25rem; font-size: 0.86rem; color: var(--leise); font-weight: 600; }
.sr-felder select, .sr-felder input { font: inherit; font-size: 1rem; color: var(--text); background: var(--flaeche); border: 1.5px solid var(--feldrand);
  border-radius: 10px; padding: 0.55rem 0.7rem; min-width: 0; width: 100%; box-sizing: border-box; }
.sr-felder select:focus, .sr-felder input:not([type="checkbox"]):focus { outline: none; border-color: var(--akzent); }
.sr-felder input[type="checkbox"]:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.sr-hinweise { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.sr-fertig { background: var(--flaeche-2); border-radius: 12px; padding: 0.8rem 1rem; }

/* Rechtstexte */
.rechtstext h2 { font-size: 1.05rem; margin: 1.3rem 0 0.35rem; }
.rechtstext p { max-width: 70ch; }

/* Pensionsrechner */
.sr-haken { display: flex !important; align-items: center; gap: 0.5rem; color: var(--text) !important; }
.sr-haken input { width: 1.25rem !important; height: 1.25rem; padding: 0; flex: none; accent-color: var(--akzent); }
.pr-kopf { margin: 0.4rem 0 0.8rem; }
.pr-kopf .ticket-netto { margin: 0.1rem 0; }
.pr-titel { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--leise); margin: 1rem 0 0.4rem; }
.pr-posten { list-style: none; padding: 0; margin: 0; }
.pr-posten li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; }
.pr-posten .summe { border-top: 1px solid var(--linie); font-weight: 750; }
.pr-hinweise { padding-left: 1.1rem; margin-top: 0.8rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin: 0 0 0.9rem; }
.kpis div { background: var(--flaeche-2); border-radius: 12px; padding: 0.5rem 0.6rem; min-width: 0; }
.kpis dt { font-size: 0.72rem; color: var(--leise); line-height: 1.2; }
.kpis dd { margin: 0.15rem 0 0; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1rem; overflow-wrap: anywhere; }
.ticket-netto { font-size: clamp(2.4rem, 11vw, 3.2rem); font-weight: 850; letter-spacing: -0.04em; color: var(--akzent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pensionsrechner .sr-felder, .stufenrechner .sr-felder { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ================= Desktop-Gestaltung (ab 960 px) =================
   Alles darüber gilt auch fürs Handy und bleibt dort unverändert. Hier: Schrift, Breite, Rhythmus und Desktop-Bausteine. */
@media (min-width: 960px) {
  :root { --rand: 32px; --breite: 1200px; }
  body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
  .kopf-innen, .inhalt.breit, .fuss-innen { max-width: calc(var(--breite) + 2 * var(--rand)); }
  .inhalt { padding-top: 2rem; padding-bottom: 4rem; }
  h1 { font-size: 2.9rem; letter-spacing: -0.035em; }
  h2 { font-size: 1.6rem; letter-spacing: -0.025em; }
  .unter { font-size: 1.05rem; }
  .block { margin-bottom: 3.5rem; }
  /* Kopf: Marke · Suche · Navigation */
  .kopf-innen { padding-top: 0.7rem; padding-bottom: 0.7rem; gap: 1.5rem; }
  .kopf-suche { display: block; flex: 0 1 400px; margin: 0 auto; }
  .kopf-suche .suche { margin: 0; max-width: none; }
  .kopf-suche .suche input { padding: 0.5rem 0.9rem 0.5rem 2.3rem; font-size: 0.92rem; background-color: var(--flaeche-2);
    border-color: transparent; background-position: 0.8rem center; background-size: 1rem; }
  .kopf-suche .suche input:focus { background-color: var(--flaeche); border-color: var(--akzent); }
  .nav { gap: 1.35rem; }
  .nav .nur-desk { display: inline; }
  /* Fuß: Marke links, drei Linkspalten */
  .fuss { background: var(--flaeche); }
  .fuss-innen { grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.85fr); gap: 3rem; padding-top: 2.75rem; padding-bottom: 3.25rem; }
  .fuss-marke b { font-size: 1.05rem; color: var(--text); }
  .fuss-spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  /* Band: Abschnitt auf voller Fensterbreite in der Kartenfläche – nur per Schatten, der Inhalt bleibt im Raster */
  .band { background: var(--flaeche); box-shadow: 0 0 0 100vmax var(--flaeche); clip-path: inset(0 -100vmax); padding: 2.75rem 0 3rem; }
  /* Icon-Kachel: das Emoji sitzt in einer ruhigen Fläche statt frei im Text */
  .ikon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
    background: var(--akzent-zart); font-size: 1.35rem; line-height: 1; }
}
/* ---------- Desktop: Startseite ---------- */
@media (min-width: 960px) {
  .held { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 0 4.5rem; padding: 2.5rem 0 0; margin-bottom: 3.5rem; align-items: center; }
  /* Schein hinter dem Rechenbeispiel: am Seitenhintergrund, damit er keine Kante am Raster hat */
  body[data-seite="start"] { background: radial-gradient(900px 520px at 74% 300px, var(--akzent-zart), transparent 70%) no-repeat, var(--bg); }
  .held h1 { font-size: 4.1rem; letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 1rem; }
  .held-unter { font-size: 1.2rem; margin-bottom: 1.7rem; max-width: 30rem; }
  .held-desk { display: block; }
  .ohne { display: none; }
  .held-desk .suche { margin: 0 0 0.9rem; max-width: 540px; }
  .held-desk .suche input { padding: 0.95rem 1.2rem 0.95rem 3rem; font-size: 1.05rem; background-position: 1.1rem center; box-shadow: var(--schatten); }
  .beliebt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1.7rem; font-size: 0.88rem; }
  .beliebt span { color: var(--leise); margin-right: 0.2rem; }
  .beliebt a { padding: 0.28rem 0.75rem; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie);
    color: var(--text); text-decoration: none; font-weight: 600; }
  .beliebt a:hover { border-color: var(--akzent); color: var(--akzent); }
  .vertrauen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 0.45rem 2rem; color: var(--leise);
    font-size: 0.9rem; font-weight: 550; }
  .vertrauen li::before { content: "✓"; color: var(--akzent); font-weight: 800; margin-right: 0.45rem; }

  /* Rechenbeispiel: echte Zahlen aus dem Bau, als Karte mit zwei angedeuteten Karten dahinter */
  .held-karte { display: block; position: relative; margin: 0 14px 18px 0; }
  .held-karte::before, .held-karte::after { content: ""; position: absolute; inset: 0; border-radius: 26px;
    background: var(--flaeche); border: 1px solid var(--linie); }
  .held-karte::before { transform: rotate(2.2deg) translate(6px, 6px); opacity: 0.8; }
  .held-karte::after { transform: rotate(4.4deg) translate(12px, 12px); opacity: 0.45; }
  .bsp { position: relative; z-index: 1; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 26px;
    box-shadow: var(--schatten-hoch); padding: 1.6rem 1.7rem 1.5rem; overflow: hidden; }
  .bsp::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--akzent), var(--akzent-hell)); }
  .bsp-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 0.6rem;
    font-size: 0.88rem; color: var(--leise); font-weight: 600; }
  .bsp-netto { margin: 0; font-size: 3.5rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; color: var(--akzent); font-variant-numeric: tabular-nums; }
  .bsp-netto small { display: block; font-size: 0.9rem; font-weight: 550; letter-spacing: 0; color: var(--leise); margin-top: 0.35rem; }
  .bsp-balken { height: 10px; border-radius: 999px; background: var(--flaeche-2); margin: 1.15rem 0 0.8rem; overflow: hidden; }
  .bsp-balken i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--akzent), var(--akzent-hell)); }
  .bsp-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1.2rem; }
  .bsp-zahlen div { background: var(--flaeche-2); border-radius: 12px; padding: 0.55rem 0.75rem; min-width: 0; }
  .bsp-zahlen dt { font-size: 0.75rem; color: var(--leise); }
  .bsp-zahlen dd { margin: 0.1rem 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
  .bsp-kurve { display: block; width: 100%; height: 84px; overflow: visible; }
  .bsp-kurve polygon { fill: var(--akzent-zart); }
  .bsp-kurve polyline { fill: none; stroke: var(--akzent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .bsp-achse { display: flex; justify-content: space-between; margin: 0.35rem 0 0.9rem; font-size: 0.75rem; color: var(--leise); }
  .bsp-fuss { margin: 0 0 1rem; font-size: 0.78rem; color: var(--leise); }
  .bsp .knopf { width: 100%; justify-content: center; }

  /* Die Berufsbereiche: ein Band über die ganze Breite, 7 × 2 Kacheln */
  .start-bereiche { grid-column: 1 / -1; grid-template-columns: repeat(var(--spalten, 7), minmax(0, 1fr)); gap: 0.75rem; margin-top: 3.5rem;
    padding: 2.25rem 0 2.6rem; background: var(--flaeche); box-shadow: 0 0 0 100vmax var(--flaeche); clip-path: inset(0 -100vmax); }
  .bereiche-titel { display: block; grid-column: 1 / -1; margin: 0 0 0.45rem; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; }
  .start-bereiche a { flex-direction: column; align-items: flex-start; gap: 0.75rem; min-height: 0; padding: 1rem 0.95rem 1.1rem;
    background: var(--bg); border-width: 1px; box-shadow: none; border-radius: 18px; }
  .start-bereiche a:hover { background: var(--flaeche); }
  .start-bereiche .sym { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--akzent-zart); font-size: 1.35rem; }
  .start-bereiche b { font-size: 0.98rem; overflow-wrap: normal; hyphens: auto; }
  .start-bereiche small { font-size: 0.78rem; margin-top: 0.15rem; }
  .start-bereiche a.breit { grid-column: span 2; flex-direction: row; align-items: center; }
  /* Berufswahl der Rangliste: umbrechen statt seitlich abgeschnitten */
  .vergleich-kopf .schalter-rolle { overflow: visible; padding: 0; }
  .vergleich-kopf .schalter-rolle .schalter { flex-wrap: wrap; border-radius: 22px; }

  /* Kennzahlen als ruhige Zahlenleiste */
  .fakten { gap: 0; margin: 0 0 3.5rem; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
  .fakten li { background: none; border: 0; border-radius: 0; padding: 1.35rem 1.5rem; }
  .fakten li + li { border-left: 1px solid var(--linie); }
  .fakten b { font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1.15; color: var(--akzent); }
  .fakten span { font-size: 0.92rem; }

  /* Gehälter nach Beruf: Verzeichnis statt Pillen; die Suche steht am Desktop im Held */
  .berufe .suche { display: none; }
  .beruf-links { display: block; columns: 4; column-gap: 2.25rem; margin: 1.1rem 0 1.4rem; }
  .beruf-links a { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; break-inside: avoid; min-height: 0;
    padding: 0.62rem 0.15rem; border-radius: 0; background: none; border-bottom: 1px solid var(--linie); font-weight: 600; font-size: 0.95rem; }
  .beruf-links a::after { content: "→"; color: var(--leise); font-weight: 400; transition: transform 0.15s ease; }
  .beruf-links a:hover { background: none; color: var(--akzent); }
  .beruf-links a:hover::after { color: var(--akzent); transform: translateX(3px); }

  /* Rangliste: Balken je Land (Betrag / Spitze, ab null) */
  .rang .balken { display: block; height: 4px; max-width: 240px; margin-top: 0.45rem; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; }
  .rang .balken i { display: block; height: 100%; border-radius: inherit; background: var(--akzent); opacity: 0.5; }
  .rang li:first-child .balken i { opacity: 1; }

  /* Themen und Tabellen */
  .start-themen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 3.5rem; }
  .start-themen .thema { grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.25rem; align-content: start; padding: 1.3rem 1.4rem; }
  .start-themen .ikon { display: grid; grid-row: 1 / span 2; }
  .tarif-karten { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
  .tarif-karte { padding: 1rem 1.15rem; }
  .tarif-karte b { font-size: 1.1rem; overflow-wrap: normal; hyphens: auto; }
}
/* ---------- Desktop: Berufs-, Gehalts- und Gruppenseiten ---------- */
@media (min-width: 960px) {
  .h1-zusatz { font-size: 0.5em; margin-top: 0.35rem; }
  .antwort { max-width: 62rem; font-size: 1.14rem; padding: 1.1rem 1.4rem; margin: 1.1rem 0 1.75rem; border-radius: 0 18px 18px 0; }
  .rollen-karten { gap: 1rem; margin: 0 0 3.5rem; }
  .rollen-karte { padding: 1.25rem 1.35rem 1.15rem; gap: 0.45rem; }
  .rollen-karte h3 small { display: block; margin-top: 0.1rem; }
  .rollen-karte .gross { font-size: 1.55rem; overflow-wrap: normal; }
  .rollen-karte .mehr { margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--linie); }
  .kennzahlen { gap: 1rem; margin: 0.6rem 0 1.75rem; }
  .kennzahlen div { padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--schatten); }
  .kennzahlen b { font-size: 1.7rem; color: var(--akzent); }
  /* Tabellen mit Netto: als Karte auf einer Fläche, Zeile hebt sich beim Überfahren ab */
  .tabelle-rahmen:has(> .netto-tabelle) { border-radius: var(--radius); padding: 0.35rem 0.6rem; }
  .netto-tabelle th, .netto-tabelle td { padding: 0.7rem 0.85rem; }
  .netto-tabelle tbody tr:hover > * { background: var(--akzent-zart); }
  .netto-tabelle td b { font-size: 1.02rem; }
  /* Tabellen mit Fließtext in den Zellen brechen um, statt seitlich zu laufen (am Handy bleibt das Wischen: kürzer) */
  .text-tabelle :is(th, td) { white-space: normal; vertical-align: top; text-align: left; }
  .text-tabelle td { min-width: 6rem; }
  /* Häufige Fragen: ruhige Akkordeons mit ＋/− */
  .faq { max-width: 880px; }
  .faq details { padding: 0 1.25rem; border-radius: 14px; margin-bottom: 0.55rem; }
  .faq summary { padding: 1rem 2.25rem 1rem 0; }
  .faq details p { margin: 0 0 1.15rem; color: var(--leise); max-width: 72ch; }
  /* Links am Seitenende: lange Namenslisten als Verzeichnis, kurze Gruppen bleiben Pillen */
  .such-chips { margin-top: 2.25rem; gap: 0.45rem; }
  .such-chips.verzeichnis { display: block; columns: 4; column-gap: 2.25rem; }
  .such-chips.verzeichnis p { margin-bottom: 0.4rem; column-span: all; }
  .such-chips.verzeichnis a { display: flex; justify-content: space-between; align-items: center; break-inside: avoid; min-height: 0;
    padding: 0.55rem 0.15rem; border-radius: 0; background: none; border-bottom: 1px solid var(--linie); font-weight: 600; font-size: 0.93rem; }
  .such-chips.verzeichnis a::after { content: "→"; color: var(--leise); font-weight: 400; transition: transform 0.15s ease; }
  .such-chips.verzeichnis a:hover { background: none; color: var(--akzent); }
  .such-chips.verzeichnis a:hover::after { color: var(--akzent); transform: translateX(3px); }
  .such-chips.verzeichnis a[aria-current] { background: none; color: var(--akzent); }
  .such-chips.verzeichnis a[aria-current]::after { content: "●"; font-size: 0.6rem; color: var(--akzent); }
  .detail-cta { margin: 2rem 0 0.5rem; }
  /* Gehaltsübersicht: Bereiche mit Icon-Kachel */
  .gehalt-bereich { margin-top: 2.5rem; }
  .gehalt-bereich h2 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.3rem; margin: 0 0 0.9rem; }
  .gehalt-bereich h2 .sym { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--akzent-zart); font-size: 1.2rem; }
  .gehalt-liste { gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .gehalt-liste a { padding: 0.9rem 1.1rem; border-radius: var(--radius); }
  .gehalt-bereich .such-chips { margin-top: 1rem; }
}
/* ---------- Desktop: Tabellenseiten (Land, Bund, Tarif) ----------
   Statt zwei ungleicher Spalten: Gruppenwahl, Stufen als Kachelreihe, Rechner-Knopf neben Quelle, dann die ganze Tabelle
   über die volle Breite. Die beiden Hüllen lösen sich per display: contents auf, die Reihenfolge regelt order. */
@media (min-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; }
  .detail-haupt, .detail-neben { display: contents; }
  .detail-haupt > *, .detail-neben > * { grid-column: 1 / -1; order: 1; }
  .detail-haupt > .detail-cta { grid-column: 1; order: 2; align-self: center; margin: 1.6rem 0; }
  .detail-neben > .quelle { grid-column: 2; order: 2; margin: 1.6rem 0; }
  .detail-neben > .tabelle { order: 3; margin: 0 0 1rem; }
  .detail-neben .kasten:first-child { margin-top: 0; }
  .detail .schalter-rolle { overflow: visible; padding: 0; margin-top: 0.6rem; }
  .detail .schalter-rolle .schalter { flex-wrap: wrap; border-radius: 22px; }
  .detail .stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0.6rem;
    background: none; border: 0; box-shadow: none; margin-top: 0.9rem; }
  .detail .stufen li { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.85rem 1rem;
    background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); }
  .detail .stufen li + li { border-top: 1px solid var(--linie); }
  .detail .stufen span { font-size: 0.8rem; }
  .detail .stufen b { font-size: 1.12rem; letter-spacing: -0.01em; }
  .tabelle > summary { font-size: 1.05rem; padding: 0.15rem 0; }
  .tabelle th, .tabelle td { padding: 0.5rem 0.55rem; }
  /* Tabellen mit 11 oder 12 Stufen etwas kompakter, damit sie ab 960 px ohne Querscrollen passen */
  .tabelle table:has(thead th:nth-child(12)) { font-size: 0.8rem; }
  .tabelle table:has(thead th:nth-child(12)) :is(th, td) { padding: 0.5rem 0.3rem; }
  .tabelle tbody tr:hover > * { background: var(--akzent-zart); }
  .tabelle tbody tr:hover > th { background: var(--flaeche); box-shadow: inset 0 0 0 100vmax var(--akzent-zart); }
}
@media (min-width: 960px) and (max-width: 1199px) {
  /* Schmaler Desktop: etwas kleiner, damit nichts eng umbricht */
  .held { gap: 0 2.75rem; }
  .held h1 { font-size: 3.4rem; }
  .bsp-netto { font-size: 2.9rem; }
  .bsp { padding: 1.4rem 1.4rem 1.3rem; }
  .beruf-links, .such-chips.verzeichnis { columns: 3; }
}
@media (min-width: 1200px) {
  /* Lange Ranglisten zweispaltig: 1–8 | 9–16 */
  .vergleich-liste .rang { columns: 2; column-gap: 0; column-rule: 1px solid var(--linie); }
  .vergleich-liste .rang li { break-inside: avoid; box-shadow: 0 1px 0 var(--linie); }
  .vergleich-liste .rang li + li { border-top: 0; }
}
@media (min-width: 960px) and (hover: hover) {
  .tarif-karte, .start-bereiche a, .start-themen .thema, .gehalt-liste a, .bereich-kachel {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
  .tarif-karte:hover, .start-bereiche a:hover, .start-themen .thema:hover, .gehalt-liste a:hover, .bereich-kachel:hover {
    transform: translateY(-2px); box-shadow: var(--schatten-hoch); }
}
