/*
Theme Name: Hebesatzatlas
Theme URI: https://hebesatzatlas.de/
Author: Maik Möhring Media
Description: Register mit Magazin-Rhythmus. Dunkles Hero-Band, mitwachsende Typografie, Datenskala als Palette, Tabellenziffern überall, selbst ausgelieferte Schriften, keine Drittanbieter.
Version: 2.11.0
Requires PHP: 7.4
License: proprietär
Text Domain: hba
*/

/* ---------------------------------------------------------------- Schriften */

@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
/* Rückfallschrift auf die Metrik der Hausschrift ziehen, sonst springt beim
   Tausch das grösste Inhaltselement. */
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial");
  size-adjust: 103%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%;
}

/* ------------------------------------------------------------------ Tokens */

:root {
  --papier: #FBFBF9;
  --tinte: #14181D;
  --tinte-hell: #1B2027;
  --stumm: #6B7480;
  --linie: #DDE1E0;
  --linie-zart: #EDEFEE;
  --auf-dunkel: #B9C0C7;
  --auf-dunkel-still: #79828C;

  --stufe-1: #1F6F6B;
  --stufe-2: #7FA48A;
  --stufe-3: #E3C878;
  --stufe-4: #C8794A;
  --stufe-5: #8E3B4E;

  --aktiv: #1B4B8F;
  --aktiv-hell: #3A72C4;
  --aktiv-bg: #E8EFF8;
  --warnung: #8A5A00;
  --warnung-bg: #FCFAF4;

  --text: "Public Sans", "Public Sans Fallback", system-ui, sans-serif;
  --titel: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --breite: 820px;
  --breit: 1140px;
}

/* Inhaltsspalte: links bündig zum Kopf, Fliesstext bleibt lesbar schmal. */
.hba-inhalt { max-width: var(--breit); margin: 0 auto; padding: 34px 22px 0; }
.hba-inhalt > p, .hba-inhalt > ul, .hba-inhalt > ol, .hba-inhalt > .hba-lead { max-width: 68ch; }
.hba-inhalt > h1 { max-width: 24ch; }
.hba-inhalt > h2, .hba-inhalt > h3 { max-width: 34ch; }

/* ------------------------------------------------------------------- Basis */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 17.5px/1.65 var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.hba-huelle { max-width: var(--breite); margin: 0 auto; padding: 0 22px; }
.hba-huelle--breit { max-width: var(--breit); }

h1, h2, h3, h4 {
  font-family: var(--titel); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.028em; margin: 0 0 16px;
}
h1 { font-size: clamp(30px, 4.6vw, 44px); }
h2 { font-size: clamp(25px, 3.2vw, 34px); margin-top: 52px; color: var(--aktiv); }
h3 { font-size: 21px; margin-top: 32px; letter-spacing: -0.02em; color: var(--aktiv); }
/* Überschriften tragen die Bedienfarbe, sind aber nie unterstrichen.
   Links im Text bleiben dadurch als einziges unterstrichenes Blau erkennbar. */
h1 a, h2 a, h3 a { text-decoration: none; }

p, li { max-width: 68ch; }
p { margin: 0 0 17px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 7px; }
.hba-lead { font-size: 19.5px; line-height: 1.55; color: #333A42; max-width: 62ch; }

a { color: var(--aktiv); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--aktiv); outline-offset: 3px; }

code, .hba-mono { font-family: var(--mono); font-size: 0.86em; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 34px 0; }
img { max-width: 100%; height: auto; }

.hba-skip { position: absolute; left: -9999px; top: 0; background: var(--aktiv); color: #fff; padding: 10px 16px; z-index: 100; }
.hba-skip:focus { left: 0; }

/* -------------------------------------------------------------------- Kopf */

.hba-kopf {
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50;
}
body.admin-bar .hba-kopf { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hba-kopf { top: 46px; } }
html { scroll-padding-top: 86px; }
.hba-kopf .hba-huelle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 13px; padding-bottom: 13px; flex-wrap: wrap;
}
.hba-marke {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--titel); font-weight: 700; font-size: 19px;
  letter-spacing: -0.03em; color: var(--tinte); text-decoration: none;
}
.hba-bildmarke { height: 22px; width: auto; display: block; flex: 0 0 auto; }
.hba-wortmarke span { color: var(--aktiv); }
.hba-marke--hell { color: #fff; margin-bottom: 22px; }
.hba-marke--hell .hba-bildmarke { height: 26px; }
.hba-marke--hell .hba-wortmarke span { color: var(--stufe-3); }
.hba-nav { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
.hba-nav a { color: var(--stumm); text-decoration: none; white-space: nowrap; }
.hba-nav a:hover { color: var(--tinte); }
.hba-nav a[aria-current] { color: var(--tinte); font-weight: 600; box-shadow: 0 2px 0 var(--aktiv); }

/* Schalter erscheint erst, wenn die Leiste zu eng wird. */
.hba-schalter {
  display: none; align-items: center; gap: 9px; cursor: pointer;
  font: 600 15px/1 var(--text); color: var(--tinte);
  background: transparent; border: 1px solid var(--linie); padding: 9px 13px;
}
.hba-balken, .hba-balken::before, .hba-balken::after {
  display: block; width: 17px; height: 2px; background: var(--tinte); content: "";
}
.hba-balken { position: relative; }
.hba-balken::before { position: absolute; top: -5px; }
.hba-balken::after { position: absolute; top: 5px; }
.hba-schalter[aria-expanded="true"] { background: var(--aktiv); color: #fff; border-color: var(--aktiv); }
.hba-schalter[aria-expanded="true"] .hba-balken,
.hba-schalter[aria-expanded="true"] .hba-balken::before,
.hba-schalter[aria-expanded="true"] .hba-balken::after { background: #fff; }

@media (max-width: 1100px) {
  .hba-js .hba-schalter { display: inline-flex; }
  .hba-js .hba-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; }
  .hba-js .hba-nav--offen { display: flex; }
  .hba-js .hba-nav a {
    padding: 13px 2px; border-top: 1px solid var(--linie-zart);
    font-size: 16.5px; color: var(--tinte);
  }
  .hba-js .hba-nav a[aria-current] { box-shadow: none; color: var(--aktiv); }
}

/* -------------------------------------------------------------------- Hero */

.hba-hero { background: var(--tinte); color: #fff; padding: 62px 0 54px; }
.hba-hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 58px); max-width: 16ch; margin: 0 0 22px; }
.hba-hero h1 em { font-style: normal; color: var(--stufe-3); }
.hba-unter { color: var(--auf-dunkel); font-size: 17px; max-width: 60ch; margin: 0 0 30px; }
.hba-fein { color: var(--auf-dunkel-still); font-size: 14px; margin: 14px 0 0; max-width: none; }
.hba-kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #9AA3AC; margin: 0 0 18px; max-width: none; }
.hba-kicker i { display: block; width: 34px; height: 2px; background: var(--aktiv-hell); font-style: normal; }

.hba-suche { display: flex; max-width: 600px; border: 1px solid #39404A; background: var(--tinte-hell); }
.hba-suche input {
  flex: 1; min-width: 0; font: 500 18px/1.4 var(--text);
  padding: 16px 18px; border: 0; background: transparent; color: #fff;
}
.hba-suche input::placeholder { color: var(--auf-dunkel-still); }
.hba-suche button {
  font: 600 17px/1.4 var(--text); padding: 16px 26px; border: 0;
  background: var(--aktiv-hell); color: #fff; cursor: pointer; white-space: nowrap;
}
.hba-suche button:hover { background: #4A83D6; }

.hba-suche--hell { border-color: var(--tinte); background: #fff; }
.hba-suche--hell input { color: var(--tinte); }
.hba-suche--hell input::placeholder { color: var(--stumm); }
.hba-suche--hell button { background: var(--aktiv); }

/* ------------------------------------------- Zahlenband und Kennzahlenleiste */

.hba-band { background: #fff; border-bottom: 1px solid var(--linie); }
.hba-band .hba-huelle { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.hba-kennzahlen {
  background: #fff; border-top: 1px solid var(--tinte); border-bottom: 1px solid var(--linie);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0 0 30px;
}
.hba-kz, .hba-zahl { padding: 26px; border-left: 1px solid var(--linie-zart); }
.hba-kz:first-child, .hba-zahl:first-child { border-left: 0; padding-left: 22px; }
.hba-kz-art, .hba-zahl-art { font-size: 13.5px; color: var(--stumm); margin-bottom: 9px; }
.hba-kz-wert, .hba-zahl-wert {
  font-family: var(--titel); font-weight: 600; font-size: 38px;
  line-height: 0.95; letter-spacing: -0.03em; display: flex; align-items: center;
}
.hba-kz-sub, .hba-zahl-sub { font-size: 13px; color: var(--stumm); margin-top: 10px; }
.hba-kz-diff { font-size: 14px; margin-top: 9px; }
.hba-kz--leer .hba-kz-wert, .hba-zahl--leer .hba-zahl-wert {
  font-family: var(--text); font-size: 19px; font-weight: 500; color: var(--stumm); line-height: 1.3;
}

/* -------------------------------------------------------------- Abschnitte */

.hba-abschnitt { padding: 64px 0; }
.hba-abschnitt--weiss { background: #fff; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.hba-marke-abschnitt {
  display: flex; align-items: center; gap: 12px; max-width: none;
  font-size: 14.5px; font-weight: 600; color: var(--aktiv); margin: 0 0 12px;
}
.hba-marke-abschnitt i { display: block; width: 30px; height: 2px; background: var(--aktiv); font-style: normal; }

/* -------------------------------------------------------- Einstiegsflächen */

.hba-silos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px; background: var(--linie); border: 1px solid var(--linie); margin-top: 34px;
}
.hba-silo {
  background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit; transition: background 0.15s;
}
.hba-silo:hover { background: #F6F8F7; }
.hba-silo-t { font-family: var(--titel); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.hba-silo-gr { font-family: var(--titel); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 10px; }
.hba-silo-gr small { font: 400 13.5px/1.4 var(--text); color: var(--stumm); }
.hba-silo p { margin: 0; font-size: 15.5px; color: #4A525B; max-width: none; }
.hba-silo-mehr { font-size: 15px; color: var(--aktiv); font-weight: 600; margin-top: auto; }

/* --------------------------------------------------------------- Bausteine */

.hba-meta { font: 400 14.5px/1.6 var(--text); color: var(--stumm); margin: 14px 0 26px; }

.hba-kapsel { border-left: 4px solid var(--aktiv); background: var(--aktiv-bg); padding: 24px 26px; margin: 0 0 28px; }
.hba-kapsel > p { margin: 0; max-width: none; font-size: 18px; line-height: 1.55; }
.hba-kapsel .hba-lab { display: block; font-size: 14px; font-weight: 600; color: var(--aktiv); margin-bottom: 8px; }

.hba-fakten { border: 1px solid var(--linie); background: #fff; margin: 0 0 28px; }
.hba-fakten > p:first-child { background: var(--tinte); color: #fff; margin: 0; padding: 11px 18px; font: 600 14.5px/1.5 var(--text); max-width: none; }
.hba-fakten ul { margin: 0; padding: 16px 20px 16px 38px; }
.hba-fakten li { max-width: none; }

.hba-beleg { border: 1px solid var(--tinte); background: #fff; padding: 16px 18px; margin: 0 0 24px; }
.hba-bruch { border-left: 4px solid var(--warnung); background: var(--warnung-bg); padding: 16px 20px; margin: 0 0 26px; font-size: 16px; max-width: none; }
.hba-bruch b, .hba-bruch strong { color: var(--warnung); }
.hba-leer { border: 1px solid var(--linie); background: #fff; padding: 16px 20px; margin: 0 0 24px; max-width: none; }
.hba-hinweis { border-top: 1px solid var(--linie); padding-top: 18px; margin-top: 36px; font-size: 14.5px; color: var(--stumm); max-width: none; }
.hba-quelle { font-size: 14px; color: var(--stumm); margin: 0 0 28px; max-width: none; }

.hba-autor { border: 1px solid var(--linie); background: #fff; padding: 18px 20px; margin: 32px 0 0; font-size: 15.5px; }
.hba-autor p { margin: 0; max-width: none; }

/* ---------------------------------------------------------------- Tabellen */

/* Tabellen aus dem Redaktionssystem stehen ohne Rahmen im Text. Damit sie die
   Spalte nicht sprengen, bekommen sie den Rahmen hier. */
.hba-inhalt > table, .hba-inhalt > figure > table {
  display: block; overflow-x: auto; max-width: 100%;
  border: 1px solid var(--linie); background: #fff; margin: 0 0 12px;
}

.hba-scroll { overflow-x: auto; border: 1px solid var(--linie); background: #fff; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
.hba-scroll table { min-width: 560px; }
caption { text-align: left; font-size: 14.5px; color: var(--stumm); padding: 15px 18px; border-bottom: 1px solid var(--linie); background: var(--aktiv-bg); }
th, td { padding: 13px 18px; text-align: right; border-bottom: 1px solid var(--linie-zart); white-space: normal; }
/* Zahlen sollen nicht umbrechen, Text schon. Sonst sprengt eine lange
   Quellenangabe die Spalte, wie es auf der Methodik-Seite passiert ist. */
td:not(:first-child), th:not(:first-child) { white-space: nowrap; }
th[scope="row"], td:first-child, thead th:first-child { white-space: normal; }
thead th { background: var(--aktiv); color: #fff; font-weight: 600; font-size: 14px; border-bottom: 0; }
thead th:first-child, thead th:nth-child(2) { text-align: left; }
th[scope="row"] { text-align: left; font-weight: 500; background: #fff; position: sticky; left: 0; }
thead th:first-child { position: sticky; left: 0; background: var(--aktiv); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover th[scope="row"], tbody tr:hover td { background: #F6F8F7; }
tbody tr.hba-ist th[scope="row"], tbody tr.hba-ist td { background: var(--aktiv-bg); font-weight: 600; }
tbody tr.hba-reform td { background: var(--warnung-bg); color: var(--warnung); text-align: left; font-size: 14.5px; font-style: italic; white-space: normal; }

/* Skalenstufe als Zellfläche. Der Zahlenwert bleibt sichtbar, weil Farbe nie
   alleiniger Bedeutungsträger sein darf. */
td.hba-f1, td.hba-f2, td.hba-f4, td.hba-f5 { color: #fff; font-weight: 600; }
td.hba-f3 { color: var(--tinte); font-weight: 600; }
td.hba-f1 { background: var(--stufe-1); }
td.hba-f2 { background: var(--stufe-2); }
td.hba-f3 { background: var(--stufe-3); }
td.hba-f4 { background: var(--stufe-4); }
td.hba-f5 { background: var(--stufe-5); }

.hba-punkt { width: 12px; height: 12px; flex: 0 0 12px; display: inline-block; vertical-align: -1px; margin-right: 9px; }
.hba-s1 { background: var(--stufe-1); }
.hba-s2 { background: var(--stufe-2); }
.hba-s3 { background: var(--stufe-3); }
.hba-s4 { background: var(--stufe-4); }
.hba-s5 { background: var(--stufe-5); }

.hba-legende { display: flex; flex-wrap: wrap; border: 1px solid var(--linie); background: #fff; margin: 10px 0 14px; }
.hba-legende div { flex: 1 1 100px; padding: 11px 12px; font-size: 13px; border-left: 1px solid var(--linie-zart); }
.hba-legende div:first-child { border-left: 0; }
.hba-legende b { display: block; height: 6px; margin-bottom: 8px; }

/* --------------------------------------------------------------- Werkzeuge */

.hba-werkzeug { border: 1px solid var(--tinte); background: #fff; margin: 0 0 28px; }
.hba-werkzeug .k { background: var(--tinte); color: #fff; padding: 12px 18px; font: 600 14.5px/1.5 var(--text); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hba-werkzeug .k a { color: #fff; }
.hba-werkzeug .b { padding: 18px; }
.hba-werkzeug label { display: block; font-size: 13.5px; color: var(--stumm); margin-bottom: 5px; }
.hba-werkzeug input, .hba-werkzeug select {
  width: 100%; font: 500 17px/1.4 var(--text); font-variant-numeric: tabular-nums;
  padding: 10px 12px; border: 1px solid var(--linie); background: var(--papier); color: var(--tinte);
}
.hba-werkzeug .f { font-size: 13.5px; color: var(--stumm); margin: 13px 0 0; max-width: none; }

details { border-bottom: 1px solid var(--linie); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { margin: 11px 0 0; }

/* -------------------------------------------------------------------- Fuss */

.hba-fuss { background: var(--tinte); color: #9AA3AC; padding: 44px 0 60px; font-size: 14.5px; }
.hba-fuss p { max-width: 78ch; margin: 0 0 10px; }
.hba-fuss a { color: #C9D2DB; }
.hba-fuss-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid #2A3038; }

/* ------------------------------------------------------------------- Mobil */

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .hba-hero { padding: 44px 0 38px; }
  .hba-abschnitt { padding: 44px 0; }
  h2 { margin-top: 40px; }
  .hba-band .hba-huelle, .hba-kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .hba-kz, .hba-zahl { border-left: 1px solid var(--linie-zart); border-top: 1px solid var(--linie-zart); padding: 20px; }
  .hba-kz:nth-child(odd), .hba-zahl:nth-child(odd) { border-left: 0; padding-left: 22px; }
  .hba-kz:nth-child(-n+2), .hba-zahl:nth-child(-n+2) { border-top: 0; }
  .hba-kz-wert, .hba-zahl-wert { font-size: 31px; }
  .hba-suche { flex-wrap: wrap; }
  .hba-suche button { flex: 1 1 100%; }
  th, td { padding: 11px 14px; }
}

@media print {
  .hba-kopf, .hba-nav, .hba-fuss, .hba-werkzeug, .hba-silos { display: none; }
  .hba-hero { background: #fff; color: var(--tinte); padding: 0; }
  .hba-hero h1 { color: var(--tinte); }
  body { background: #fff; font-size: 11pt; }
  .hba-scroll { overflow: visible; }
}

/* ------------------------------------------------------------------ Karte */

.hba-karte { margin: 0 0 12px; border: 1px solid var(--linie); background: #fff; }
.hba-karte svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 20px auto 8px; }
.hba-karte figcaption { font-size: 13.5px; color: var(--stumm); padding: 12px 18px; border-top: 1px solid var(--linie); }
.hba-karte path { stroke: #fff; stroke-width: 1; transition: opacity 0.12s; }
.hba-karte a:hover path, .hba-karte a:focus path { opacity: 0.75; }
.hba-karte a:focus-visible path { stroke: var(--tinte); stroke-width: 2; }
.hba-kf1 { fill: var(--stufe-1); }
.hba-kf2 { fill: var(--stufe-2); }
.hba-kf3 { fill: var(--stufe-3); }
.hba-kf4 { fill: var(--stufe-4); }
.hba-kf5 { fill: var(--stufe-5); }

.hba-kreisliste {
  columns: 2; column-gap: 34px; list-style: none; padding: 0;
  margin: 0 0 30px; max-width: none; font-size: 16px;
}
.hba-kreisliste li { margin-bottom: 7px; break-inside: avoid; max-width: none; }
@media (min-width: 900px) { .hba-kreisliste { columns: 3; } }
@media (max-width: 560px) { .hba-kreisliste { columns: 1; } }

/* ---------------------------------------------------------------- Lexikon */

.hba-lexikon { margin: 0 0 30px; display: grid; gap: 1px; background: var(--linie);
  border: 1px solid var(--linie); }
.hba-lexikon > div { background: #fff; padding: 16px 18px; }
.hba-lexikon dt { font-family: var(--titel); font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em; margin-bottom: 4px; }
.hba-lexikon dd { margin: 0; font-size: 15.5px; color: #4A525B; max-width: 72ch; }
@media (min-width: 820px) { .hba-lexikon { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------- Zweispaltiges Layout */

.hba-zweispaltig {
  max-width: var(--breit); margin: 0 auto; padding: 34px 22px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px;
  align-items: start;
}
.hba-haupt { min-width: 0; }
.hba-haupt > p, .hba-haupt > ul, .hba-haupt > ol, .hba-haupt .hba-lead { max-width: 68ch; }
.hba-haupt > h1 { max-width: 22ch; }
.hba-haupt > h2, .hba-haupt > h3 { max-width: 34ch; scroll-margin-top: 92px; }

/* ------------------------------------------------------------- Titelbild */

.hba-titelbild { margin: 0 0 30px; border: 1px solid var(--linie); background: #fff; }
.hba-titelbild img { display: block; width: 100%; height: auto; }
.hba-titelbild figcaption {
  font-size: 13.5px; color: var(--stumm);
  padding: 11px 16px; border-top: 1px solid var(--linie);
}

/* ----------------------------------------------------------- Seitenleiste */

.hba-seitenleiste { font-size: 15.5px; }
.hba-sb-haft { position: sticky; top: 92px; }
body.admin-bar .hba-sb-haft { top: 124px; }
.hba-sb-block {
  border: 1px solid var(--linie); background: #fff;
  padding: 16px 18px; margin: 0 0 18px;
}
.hba-sb-titel {
  font: 600 13.5px/1.4 var(--text); color: var(--stumm);
  margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid var(--linie-zart);
  max-width: none;
}
.hba-sb-block ol, .hba-sb-block ul { margin: 0; padding: 0; list-style: none; counter-reset: hba-toc; }
.hba-sb-block li { margin: 0 0 9px; max-width: none; line-height: 1.4; }
.hba-sb-block li:last-child { margin-bottom: 0; }
.hba-sb-block a { text-decoration: none; }
.hba-sb-block a:hover { text-decoration: underline; }

.hba-toc ol { counter-reset: hba-toc; }
.hba-toc li { counter-increment: hba-toc; display: flex; gap: 10px; }
.hba-toc li::before {
  content: counter(hba-toc); flex: 0 0 auto;
  font-variant-numeric: tabular-nums; color: var(--stumm); font-size: 13.5px;
  line-height: 1.5;
}
.hba-sb-liste li { padding-left: 13px; position: relative; }
.hba-sb-liste li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; background: var(--aktiv);
}
.hba-sb-mehr { margin: 12px 0 0; font-size: 14px; max-width: none; }

.hba-werbung--fluss { margin: 0 0 30px; }
.hba-werbung--fluss .hba-sb-titel { font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--stumm); margin: 0 0 6px; }
.hba-anzeige > div { overflow: hidden; }
.hba-anzeige img, .hba-anzeige iframe { max-width: 100%; height: auto; }

@media (max-width: 980px) {
  .hba-zweispaltig { grid-template-columns: 1fr; gap: 0; }
  .hba-seitenleiste { margin-top: 42px; border-top: 1px solid var(--linie); padding-top: 28px; }
  .hba-sb-haft { position: static; }
  /* Auf schmalen Geräten steht das Verzeichnis vor dem Text, nicht dahinter. */
  .hba-toc { order: -1; }
}
@media print { .hba-seitenleiste { display: none; } .hba-zweispaltig { display: block; } }

/* ----------------------------------------------------------- Magazinform */

.hba-aufmacher, .hba-karte {
  display: grid; text-decoration: none; color: inherit;
  border: 1px solid var(--linie); background: #fff;
  transition: background 0.15s;
}
.hba-aufmacher:hover, .hba-karte:hover { background: #F6F8F7; }
.hba-aufmacher:hover .hba-karte-titel, .hba-karte:hover .hba-karte-titel { color: var(--aktiv); }

.hba-aufmacher { grid-template-columns: 1fr; margin: 0 0 34px; max-width: none; }
@media (min-width: 760px) { .hba-aufmacher { grid-template-columns: 1.15fr 1fr; } }

.hba-karten {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px; margin: 0 0 34px;
}
.hba-karte { grid-template-rows: auto 1fr; }

.hba-karte-bild { display: block; overflow: hidden; background: var(--papier); }
.hba-karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.hba-aufmacher .hba-karte-bild img { aspect-ratio: 4 / 3; height: 100%; }

.hba-karte-text { display: flex; flex-direction: column; gap: 9px; padding: 22px 24px; }
.hba-karte-kicker {
  font: 600 12.5px/1.4 var(--text); color: var(--aktiv);
  display: flex; align-items: center; gap: 9px;
}
.hba-karte-kicker::before { content: ""; width: 18px; height: 2px; background: var(--aktiv); flex: 0 0 auto; }
.hba-karte-titel {
  font-family: var(--titel); font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.15; font-size: 21px;
}
.hba-aufmacher .hba-karte-titel { font-size: clamp(24px, 2.6vw, 30px); }
.hba-karte-text-p { font-size: 15.5px; line-height: 1.55; color: #4A525B; }
.hba-aufmacher .hba-karte-text-p { font-size: 17px; }
.hba-karte-mehr { font-size: 15px; font-weight: 600; color: var(--aktiv); margin-top: auto; padding-top: 6px; }

@media (max-width: 520px) {
  .hba-karten { grid-template-columns: 1fr; gap: 18px; }
  .hba-karte-text { padding: 18px 20px; }
}
@media print { .hba-karte-bild { display: none; } }
