/* ═══════════════════════════════════════════════════════════════════════
   HANSEKREDIT — Berufsseiten zum Beamtenkredit (29.11.2026)
   Ergänzt beamte-eigentum.css (Hero, Formular, Fragen), redesign.css
   (.hk-zusatz); die Grundbausteine .hk-sek, .hk-kopf, .hk-welt stehen unten.
   Seiten entstehen aus scripts/build-berufe.js.
   ═══════════════════════════════════════════════════════════════════════ */
/* ── Grundbausteine (.hk-sek, .hk-kopf, .hk-pfeil, .hk-welt, .hk-textlink) ──
   Bis 01.12.2026 aus home-sections.css geladen. Seit die Startseite wieder
   näher am bisherigen Aussehen liegt, stehen sie hier für die Berufsseiten. */
.hk-sek { --hs-tinte: #001845; --hs-nacht: #001233; --hs-linie: rgba(0, 24, 69, .10); --hs-linie-zart: rgba(0, 24, 69, .07);
  --hs-grau: #55606f; --hs-blau: #005fd9; --hs-blau-hell: #b3d1f7; --hs-orange: #FF5F00;
  padding: clamp(72px, 9vw, 120px) 24px; }
.hk-sek__inner { max-width: 1140px; margin: 0 auto; }
.hk-sek .section-label { margin-bottom: 14px; }

/* ── Kopf: links Aussage, rechts ein Satz dazu ── */
.hk-kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.hk-kopf__titel { margin: 0; font-family: var(--hk-font-display, 'Fraunces', Georgia, serif); font-size: clamp(30px, 3.7vw, 48px); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: var(--hs-tinte); text-wrap: balance; }
.hk-kopf__titel em { font-style: italic; color: var(--hs-orange); }
.hk-kopf__text { margin: 0; font-size: 17.5px; line-height: 1.65; color: var(--hs-grau); max-width: 44ch; }

/* ── Pfeil im Kreis (wie am Werkzeug-Kärtchen) ── */
.hk-pfeil { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--hs-blau-hell); color: var(--hs-blau); display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s; }
.hk-pfeil svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }

.hk-textlink { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 700; font-size: 16px; color: var(--hs-tinte); text-decoration: none; }
.hk-textlink .hk-pfeil { width: 36px; height: 36px; }

/* ═══ Themenwelten ═══ */
.hk-welten { background: var(--gray-bg, #F4F6F9); }
.hk-welten__raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hk-welt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 18px 18px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--hs-linie-zart); text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(16, 19, 26, .04); }
.hk-welt.fade-up { transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease, border-color .25s ease; }
.hk-welt__icon { width: 52px; height: 52px; border-radius: 13px; background: var(--hs-nacht); color: #fff; display: grid; place-items: center; }
.hk-welt__icon svg { width: 25px; height: 25px; stroke-width: 1.8; }
.hk-welt__titel { display: block; font-family: var(--hk-font-display, 'Fraunces', Georgia, serif); font-size: 19.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--hs-tinte); }
.hk-welt__sub { display: block; margin-top: 5px; font-size: 15px; line-height: 1.5; color: var(--hs-grau); }

/* ── Überfahren und Tastatur ── */
@media (hover: hover) {
  .hk-welt:hover { border-color: var(--hs-blau-hell); box-shadow: 0 2px 6px rgba(16, 19, 26, .05), 0 22px 54px rgba(16, 19, 26, .11); }
  .hk-welt:hover .hk-pfeil, .hk-textlink:hover .hk-pfeil { background: var(--hs-blau); border-color: var(--hs-blau); color: #fff; }
  .hk-welt:hover .hk-pfeil svg, .hk-textlink:hover .hk-pfeil svg { transform: translateX(2px); }
}
.hk-welt:focus-visible, .hk-textlink:focus-visible { outline: 3px solid var(--hs-orange); outline-offset: 3px; }

/* ── Tablet ── */
@media (max-width: 1020px) {
  .hk-welten__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── Handy: alles an einer linken Kante ── */
@media (max-width: 700px) {
  .hk-sek { padding: 60px 20px; }
  .hk-kopf { grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; }
  .hk-welt__icon { width: 46px; height: 46px; border-radius: 11px; }
  .hk-welt__icon svg { width: 22px; height: 22px; }
  /* Am Handy tragen Praxisfälle und Fragen nur Stichwort und Verweis. */
  .hk-welten__raster { grid-template-columns: 1fr; gap: 12px; }
  .hk-welt { padding: 14px; gap: 14px; }
  .hk-welt .hk-pfeil { display: none; }
}
@media (min-width: 701px) and (max-width: 860px) {
}
@media (prefers-reduced-motion: reduce) {
  .hk-pfeil, .hk-pfeil svg { transition: none; }
}

/* Die Überschrift ist hier länger als auf der Hauptseite. */
.be-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; text-wrap: balance; }

.bf-pfad { background: #fff; border-bottom: 1px solid rgba(0, 24, 69, .08); padding: 14px 24px; }
.bf-pfad-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: #55606f; }
.bf-pfad a { color: #0050c0; text-decoration: none; font-weight: 600; }
.bf-pfad a:hover { text-decoration: underline; }
.bf-pfad [aria-current] { color: #001845; font-weight: 700; }

.bf-wer { background: #fff; }
.bf-wer-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.bf-wer .hk-kopf__titel { font-size: clamp(28px, 3vw, 40px); }
.bf-text { margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: #55606f; max-width: 46ch; }
.bf-liste { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.bf-liste li { break-inside: avoid; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 14px 0; hyphens: auto; overflow-wrap: anywhere; border-bottom: 1px solid rgba(0, 24, 69, .08);
  font-family: var(--hk-font-display, 'Fraunces', Georgia, serif); font-size: 18px; font-weight: 600; line-height: 1.3; color: #001845; }
.bf-liste-nr { font-family: var(--hk-font-text, 'DM Sans', sans-serif); font-size: 15px; font-weight: 700; color: #FF5F00; font-variant-numeric: tabular-nums; }

.bf-dienst { background: var(--gray-bg, #F4F6F9); }
.bf-werkzeug { margin-top: 26px; max-width: 460px; }

.bf-anlass { background: #fff; }
.bf-anlass-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-anlass .hk-welt { background: var(--gray-bg, #F4F6F9); border-color: transparent; box-shadow: none; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease; }
@media (hover: hover) { .bf-anlass .hk-welt:hover { background: #fff; } }

.bf-hinweis { max-width: 820px; margin: 34px auto 0; font-size: 15px; line-height: 1.6; color: #6b7280; }
.bf-quellen { max-width: 820px; margin: 16px auto 0; font-size: 15px; color: #55606f; }
.bf-quellen summary { cursor: pointer; font-weight: 700; color: #001845; padding: 6px 0; }
.bf-quellen ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.bf-quellen a { color: #0050c0; }
.bf-quellen span { color: #6b7280; }

.bf-weitere { background: var(--gray-bg, #F4F6F9); padding: clamp(48px, 6vw, 80px) 24px; }
.bf-weitere-inner { max-width: 1140px; margin: 0 auto; }
.bf-weitere-kopf { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.bf-weitere-kopf .section-label { margin: 0; }
.bf-weitere-kopf .hk-textlink { margin-top: 0; }
.bf-weitere-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bf-weitere-liste a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(0, 24, 69, .10); font-weight: 600; font-size: 15.5px; color: #001845; text-decoration: none; transition: border-color .2s, color .2s; }
@media (hover: hover) { .bf-weitere-liste a:hover { border-color: #b3d1f7; color: #0050c0; } }
.bf-pfad a:focus-visible, .bf-weitere-liste a:focus-visible, .bf-quellen summary:focus-visible { outline: 3px solid #FF5F00; outline-offset: 3px; }

@media (max-width: 900px) {
  .bf-wer-raster { grid-template-columns: 1fr; gap: 28px; }
  .bf-anlass-raster { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bf-liste { columns: 1; }
  .bf-liste li { padding: 12px 0; font-size: 17px; }
  .bf-pfad { padding: 12px 20px; font-size: 14px; }
}
