/* Grundsätze, Vorschau ?darstellung=neu („Leitlinie“, 02.11.2026, Plan arbeit/grundsaetze-v3/20-plan.md).
   Lädt inc/grundsaetze-neu.php nach seite-grundsaetze-charta.css und seite-grundsaetze-jury.css. Alle Regeln unter body.hb-gs-neu.
   Einträge GS-N1 bis GS-N4 (aenderungen/grundsaetze-neu.json). */

.hb-gs-neu { --hb-gs-leit: rgba(19, 49, 138, .22); --hb-gs-spalte-n: 30px; --hb-gs-mitte: 14px; }
@media (min-width: 760px) { .hb-gs-neu { --hb-gs-spalte-n: 72px; --hb-gs-mitte: 35px; } }

/* ===== Hero: Absenderzeile (GS-N1) statt großem Porträt ===== */
.hb-gs-neu .hb-lead--h2 { text-wrap: balance; } /* kein Einzelwort „Finanzplanung“ in der letzten Zeile (375 px) */
.hb-gs-neu .hb-hero__name { margin-top: 18px; max-width: none; font-size: var(--hb-fs-klein); line-height: 1.4; color: var(--hb-muted); }
.hb-gs-absender { display: flex; align-items: center; gap: 12px; }
.hb-gs-absender picture { display: block; flex: none; }
.hb-gs-absender__bild { display: block; width: 56px; height: 56px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.hb-gs-absender__text a { font-weight: 600; }
.hb-gs-neu .hb-hero__einleitung { margin-top: 16px; max-width: 36em; font-size: var(--hb-fs); line-height: 1.6; color: var(--hb-text); }

/* ===== Übersichtsgrafik „Leitlinie“ (GS-N2): sieben Knoten auf einer Linie, Sprunglinks ===== */
.hb-gs-linie { width: 100%; max-width: 520px; background: var(--hb-hell); padding: 18px 20px; }
.hb-gs-linie ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.hb-gs-linie ol::before { content: ""; position: absolute; left: 14px; top: 15px; bottom: 15px; width: 2px; background: var(--hb-blau); }
.hb .hb-gs-linie a { display: flex; align-items: center; gap: 14px; min-height: 30px; color: var(--hb-ink); text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: var(--hb-fs); line-height: 1.3; hyphens: manual; overflow-wrap: break-word; }
.hb-gs-linie__knoten { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--hb-blau); color: var(--hb-blau); font-family: var(--hb-serif); font-weight: 500; font-size: 16px;
  line-height: 1; font-variant-numeric: lining-nums tabular-nums; transition: background-color .15s, color .15s; }
.hb .hb-gs-linie a:hover, .hb .hb-gs-linie a:focus-visible { color: var(--hb-blau); text-decoration: none; }
.hb-gs-linie a:hover .hb-gs-linie__knoten, .hb-gs-linie a:focus-visible .hb-gs-linie__knoten { background: var(--hb-blau); color: #fff; }
@media (max-width: 899px) {
  /* mobil kompakter, damit Gebot 1 früher kommt */
  .hb-gs-neu .hb-hero { padding-bottom: 24px; }
  .hb-gs-neu .hb-hero__grid { gap: 20px; }
  .hb-gs-linie { padding: 14px 16px; }
  .hb-gs-linie ol { gap: 6px; }
}
@media (min-width: 900px) {
  .hb-gs-neu .hb-hero__media { margin-top: 38px; }
  .hb-gs-linie { max-width: 440px; padding: 28px 32px; }
  .hb-gs-linie ol { gap: 14px; }
  .hb-gs-linie ol::before { left: 16px; top: 17px; bottom: 17px; }
  .hb-gs-linie__knoten { width: 34px; height: 34px; font-size: 17px; }
}

/* ===== Gebote an der Leitlinie ===== */
.hb-gs-neu .hb-gs-neu-sec { background: var(--hb-flaeche); --hb-sec-y: clamp(40px, 6vw, 72px); }
.hb-gs-neu .hb-gs-leitlinie, .hb-gs-neu .hb-gs-fuss { max-width: 860px; }
.hb-gs-neu .hb-charta__gebot { position: relative; grid-template-columns: var(--hb-gs-spalte-n) minmax(0, 1fr); border-bottom: 0; padding: 0 0 32px; }
.hb-gs-neu .hb-charta__gebot::after { content: ""; position: absolute; left: var(--hb-gs-mitte); top: 0; bottom: 0; width: 2px; background: var(--hb-gs-leit); }
.hb-gs-neu .hb-charta__gebot:first-child::after { top: 18px; }
.hb-gs-neu .hb-charta__gebot::before { position: relative; z-index: 1; justify-self: center; align-self: start; text-align: center;
  background: var(--hb-flaeche); padding: 2px 2px 8px; }
.hb-gs-neu .hb-charta__gebot p { max-width: 36em; }
@media (min-width: 760px) {
  .hb-gs-neu .hb-charta__gebot { padding: 0 0 40px; }
  .hb-gs-neu .hb-charta__gebot:first-child::after { top: 30px; }
}

/* ===== Endknoten (GS-N3) ===== */
.hb-gs-endknoten { position: relative; display: grid; grid-template-columns: var(--hb-gs-spalte-n) minmax(0, 1fr); column-gap: 12px; align-items: start; }
.hb-gs-endknoten::before { content: ""; position: absolute; left: var(--hb-gs-mitte); top: 0; height: 16px; width: 2px; background: var(--hb-gs-leit); }
.hb-gs-endknoten__knoten { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--hb-blau); color: #fff; }
.hb-gs-endknoten__satz { font-family: var(--hb-serif); font-weight: 500; font-size: max(2rem, 20px); line-height: 1.3; color: var(--hb-ink); text-wrap: balance; padding-top: 1px; }
.hb-gs-endknoten__weiter { margin-top: 16px; }
.hb .hb-gs-endknoten__btn { border-color: var(--hb-blau); cursor: pointer; }
@media (min-width: 760px) {
  .hb-gs-endknoten { column-gap: 24px; }
  .hb-gs-endknoten::before { height: 18px; }
  .hb-gs-endknoten__knoten { width: 34px; height: 34px; }
  .hb-gs-endknoten__satz { font-size: max(2.3rem, 23px); }
}

/* ===== Quelle (GS-J6) und Drucken (GS-N4) ===== */
.hb-sec > .hb-wrap > .hb-gs-fuss, .hb-chg-block > .hb-gs-fuss { margin-top: 48px; }
.hb-gs-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 14px; border-top: 1px solid var(--hb-linie); }
.hb-gs-neu .hb-gs-quelle { margin: 0; padding: 0; border: 0; flex: 1 1 22em; }
.hb-gs-druck__knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--hb-sans); font-size: var(--hb-fs-klein); line-height: 1.3; color: var(--hb-blau); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.hb-gs-druck__knopf:hover { color: var(--hb-blau-h); text-decoration-thickness: 2px; }
.hb-gs-druck__knopf .hb-i { width: 20px; height: 20px; }

/* ===== Druckansicht (GS-N4): Gebote, Quelle und Kontaktdaten bleiben ===== */
@media print {
  .hb-gs-neu .hb-gs-linie, .hb-gs-neu .hb-hero__media, .hb-gs-neu .hb-krumen, .hb-gs-neu .hb-gs-endknoten__weiter, .hb-gs-neu .hb-gs-druck,
  .hb-gs-neu .hb-weitere, .hb-gs-neu .hb-kontakt__ort, .hb-gs-neu .hb-person__foto,
  body.hb-gs-neu > header, body.hb-gs-neu > footer, body.hb-gs-neu #header, body.hb-gs-neu #footer, body.hb-gs-neu .tg-kopf26, body.hb-gs-neu .tg-footer26,
  body.hb-gs-neu .cmplz-cookiebanner, body.hb-gs-neu .jcb-widget, body.hb-gs-neu [class*="callback"], body.hb-gs-neu .hb-nach-oben { display: none !important; }
  .hb-gs-neu .hb-hero, .hb-gs-neu .hb-sec { padding: 12px 0 !important; }
  .hb-gs-neu .hb-gs-neu-sec, .hb-gs-neu .hb-charta__gebot::before { background: #fff !important; border-image: none !important; }
  .hb-gs-neu .hb-charta__gebot { break-inside: avoid; padding-bottom: 18px; }
  .hb-gs-neu .hb-kontakt { background: #fff !important; color: #000 !important; border-image: none !important; }
  .hb-gs-neu .hb-kontakt a, .hb-gs-neu .hb-kontakt p, .hb-gs-neu .hb-kontakt li, .hb-gs-neu .hb-kontakt .hb-btn { color: #000 !important; background: none !important; border-color: #999 !important; }
}
