/*
 * Beamtenberatung24 – Gestaltung
 * Referenz: Fruitful („Calm Financial Clarity“, beraterzentriert), Details aus N26 (Haarlinien-Tabellen)
 * und Open Collective (Navy-Typografie). Rollen und Begründungen: docs/UMSETZUNG.md.
 */

/* ---------- Schrift (Inter, variabel, lokal) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Grundwerte ---------- */
:root {
	/* Farben (Rollen siehe docs/UMSETZUNG.md) */
	--navy: #102550;          /* Marke: Überschriften, Kopf, Fuß */
	--navy-tief: #0b1a3a;
	--text: #1a2742;          /* Fließtext */
	--grau: #4f5b70;          /* Zweittext (6,9:1 auf Weiß) */
	--linie: #dfe4ec;         /* Haarlinien */
	--linie-stark: #c5cdd9;   /* Feldränder */
	--rand-zweit: #98a2b3;    /* Rand des Zweitbuttons (Fruitful Ghost) */
	--weiss: #ffffff;
	--flaeche: #eef1f6;       /* Navy-Grau-Tönung */
	--salbei: #edf6e6;        /* Grün-Tönung */
	--sand: #fbefe2;          /* warme Tönung, Beraterkarte */
	--karte: #e2e8f2;         /* Kacheln der Deutschlandkarte */
	--aktion: #3d7a10;        /* nur Hauptbuttons (5,3:1 mit Weiß) */
	--aktion-tief: #346a0d;
	--gruen-deko: #5ba116;    /* Kundengrün: nur dekorative Icons/Häkchen */
	--warnung: #b20000;
	--fuss-text: #c5d0e3;

	/* Schrift */
	--schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--t-display: clamp(2.25rem, 1.35rem + 3vw, 3.75rem);
	--t-h1: clamp(2rem, 1.45rem + 1.9vw, 3rem);
	--t-h2: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
	--t-h3: 1.25rem;
	--t-gross: 1.1875rem;
	--t-text: 1.0625rem;
	--t-ui: 1rem;
	--t-klein: 0.875rem;
	--t-mini: 0.8125rem;

	/* Formen und Abstände (8-px-Raster) */
	--radius: 12px;
	--radius-pille: 80px;
	--schatten-erhoeht: 0 25px 16px rgba(16, 37, 80, 0.05), 0 10px 10px rgba(16, 37, 80, 0.07), 0 3px 6px rgba(16, 37, 80, 0.08);
	--rand-seite: 16px;
	--breite: 1200px;
	--abschnitt: 56px;
	--kopf-hoehe: 64px;
}
@media (min-width: 720px) {
	:root { --rand-seite: 24px; --abschnitt: 72px; }
}
@media (min-width: 1080px) {
	:root { --rand-seite: 32px; --abschnitt: 96px; --kopf-hoehe: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
	margin: 0;
	background: var(--weiss);
	color: var(--text);
	font-family: var(--schrift);
	font-size: var(--t-ui);
	line-height: 1.6;
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0; letter-spacing: -0.02em; text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.bb-kopf :focus-visible, .bb-fuss :focus-visible { outline-color: var(--weiss); }

.bb-icon { width: 1.25em; height: 1.25em; flex: none; }
.bb-unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.bb-sprung { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--weiss); color: var(--navy); border-radius: var(--radius); font-weight: 600; }
.bb-sprung:focus { top: 12px; }

/* ---------- Raster ---------- */
.bb-huelle { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand-seite)); margin: 0 auto; padding: 0 var(--rand-seite); }
.bb-schmal { max-width: calc(760px + 2 * var(--rand-seite)); }
.bb-abschnitt { padding: var(--abschnitt) 0; }
.bb-abschnitt--knapp { padding: calc(var(--abschnitt) * 0.6) 0; }
.bb-abschnitt--flaeche { background: var(--flaeche); }
.bb-abschnitt--salbei { background: var(--salbei); }
.bb-abschnitt__kopf { max-width: 720px; margin-bottom: 40px; }
.bb-abschnitt__kopf h2 { font-size: var(--t-h2); }
.bb-abschnitt__kopf p { margin-top: 16px; font-size: var(--t-gross); color: var(--grau); }
.bb-abschnitt__kopf--zeile { max-width: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; justify-content: space-between; }
.bb-abstand-unten { padding-bottom: var(--abschnitt); }
.bb-abstand-oben { padding-top: 40px; }
@media (min-width: 1080px) { .bb-abstand-oben { padding-top: 56px; } }
.bb-zweispaltig { display: grid; gap: 40px; align-items: center; }
.bb-zweispaltig__text h2 { font-size: var(--t-h2); margin-bottom: 16px; }
.bb-zweispaltig__text p + p { margin-top: 12px; }
.bb-zweispaltig__text p { color: var(--grau); font-size: var(--t-text); }
.bb-zweispaltig__text .bb-laenderliste, .bb-zweispaltig__text .bb-knopf { margin-top: 24px; }
@media (min-width: 900px) {
	.bb-zweispaltig { grid-template-columns: 1.05fr 1fr; gap: 72px; }
}

/* ---------- Buttons, Abzeichen, Chips ---------- */
.bb-knopf {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 12px 20px;
	border: 1px solid transparent; border-radius: var(--radius);
	font-size: var(--t-ui); font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
	cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bb-knopf--haupt { background: var(--aktion); color: var(--weiss); }
.bb-knopf--haupt:hover { background: var(--aktion-tief); }
.bb-knopf--zweit { background: transparent; border-color: var(--rand-zweit); color: var(--navy); }
.bb-knopf--zweit:hover { border-color: var(--navy); }
.bb-knopf--text { padding-left: 0; padding-right: 0; color: var(--navy); }
.bb-abzeichen {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: var(--radius-pille);
	background: var(--flaeche); color: var(--navy);
	font-size: var(--t-klein); font-weight: 500;
}
.bb-abzeichen .bb-icon { width: 16px; height: 16px; color: var(--gruen-deko); }
@media (max-width: 719px) { .bb-abzeichen { padding: 6px 12px; font-size: var(--t-mini); gap: 6px; } .bb-buehne__text { font-size: var(--t-text); } }
/* Längeres Abzeichen der Startseite: auf dem Handy zwei ausgewogene Zeilen statt einer langen und einer kurzen. */
.bb-buehne .bb-abzeichen { text-wrap: balance; }
@media (max-width: 719px) {
	.bb-buehne .bb-abzeichen { display: inline-block; border-radius: 18px; padding: 8px 16px; text-align: center; }
	.bb-buehne .bb-abzeichen .bb-icon { display: inline-block; margin-right: 6px; vertical-align: -3px; }
}
.bb-mehr { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.bb-mehr:hover { text-decoration: underline; }
.bb-mehr .bb-icon { width: 18px; height: 18px; }
.bb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bb-chips a {
	display: inline-block; padding: 8px 14px; border-radius: var(--radius-pille);
	background: var(--weiss); border: 1px solid var(--linie); color: var(--navy);
	font-size: var(--t-klein); font-weight: 500; text-decoration: none;
}
.bb-chips a:hover { border-color: var(--navy); }
.bb-chips--gross a { font-size: var(--t-ui); padding: 12px 18px; }
.bb-klein-titel { font-size: var(--t-h3); margin-bottom: 16px; }

/* ---------- Kopf ---------- */
.bb-kopf { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--weiss); }
.bb-kopf__innen { display: flex; align-items: center; gap: 24px; min-height: var(--kopf-hoehe); }
.bb-logo { display: block; flex: none; }
.bb-logo img { width: auto; height: 30px; }
@media (min-width: 1080px) { .bb-logo img { height: 34px; } }
.bb-kopf__menue {
	margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; color: var(--weiss); cursor: pointer;
}
.bb-kopf__menue .bb-icon { width: 26px; height: 26px; }
.bb-kopf__menue-zu, .bb-menue-offen .bb-kopf__menue-auf { display: none; }
.bb-menue-offen .bb-kopf__menue-zu { display: block; }
.bb-kopf__aktionen { display: none; }
.bb-kopf__telefon { display: inline-flex; align-items: center; gap: 8px; color: var(--weiss); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bb-kopf__telefon .bb-icon { width: 18px; height: 18px; color: var(--gruen-deko); }
.bb-kopf__telefon:hover span { text-decoration: underline; }
.bb-kopf .bb-knopf { min-height: 42px; padding: 10px 16px; }

/* Navigation: mobil als Schublade */
.bb-nav { display: none; }
.bb-menue-offen .bb-nav {
	display: block; position: fixed; inset: var(--kopf-hoehe) 0 0 0; overflow-y: auto;
	background: var(--weiss); color: var(--text); padding: 8px var(--rand-seite) 32px;
}
.bb-menue-offen { overflow: hidden; }
.bb-nav__liste { list-style: none; }
.bb-nav__punkt { border-bottom: 1px solid var(--linie); }
.bb-nav__knopf, .bb-nav__link {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
	padding: 16px 0; border: 0; background: none; color: var(--navy);
	font-size: 1.0625rem; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.bb-nav__pfeil { width: 18px; height: 18px; transition: transform .15s ease; }
.bb-nav__knopf[aria-expanded="true"] .bb-nav__pfeil { transform: rotate(180deg); }
.bb-nav__feld-innen { padding: 4px 0 20px; display: grid; gap: 20px; }
.bb-nav__gruppentitel { font-size: var(--t-mini); font-weight: 600; color: var(--grau); margin-bottom: 8px; }
.bb-nav__gruppe ul { list-style: none; display: grid; gap: 2px; }
.bb-nav__gruppe a, .bb-nav__feld .bb-laenderliste a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; }
.bb-nav__gruppe a:hover, .bb-nav__feld .bb-laenderliste a:hover, .bb-nav__feld a[aria-current="page"] { color: var(--navy); text-decoration: underline; }
.bb-nav__laender-text p:not(.bb-nav__gruppentitel) { color: var(--grau); font-size: var(--t-klein); }
.bb-nav__alle { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; text-decoration: none; color: var(--navy); }
.bb-nav__alle .bb-icon { width: 18px; height: 18px; }
.bb-nav__mobil-kontakt { display: grid; gap: 12px; margin-top: 24px; }
.bb-nav__mobil-kontakt p { color: var(--grau); font-size: var(--t-klein); }

@media (min-width: 1080px) {
	.bb-kopf__menue { display: none; }
	.bb-kopf__aktionen { display: flex; align-items: center; gap: 20px; margin-left: auto; }
	.bb-nav { display: block; position: static; padding: 0; background: none; overflow: visible; }
	.bb-menue-offen .bb-nav { position: static; }
	.bb-nav__liste { display: flex; align-items: center; gap: 4px; }
	.bb-nav__punkt { border: 0; position: static; }
	.bb-nav__knopf, .bb-nav__link {
		width: auto; padding: 10px 12px; border-radius: var(--radius);
		color: var(--weiss); font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
	}
	.bb-nav__knopf:hover, .bb-nav__link:hover, .bb-nav__knopf[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
	.bb-nav .bb-nav__knopf.ist-aktiv, .bb-nav .bb-nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gruen-deko); border-radius: var(--radius) var(--radius) 0 0; text-decoration: none; color: var(--weiss); }
	.bb-nav__feld {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--weiss); color: var(--text);
		border-top: 1px solid var(--linie); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 24px 32px rgba(16, 37, 80, 0.12);
	}
	.bb-nav__feld-innen { max-width: calc(var(--breite) + 2 * var(--rand-seite)); margin: 0 auto; padding: 32px var(--rand-seite) 36px; }
	.bb-nav__feld-innen--berufe { grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 28px; }
	.bb-nav__feld-innen--berufe .bb-nav__alle { grid-column: 1 / -1; }
	.bb-nav__feld-innen--laender { grid-template-columns: 300px 1fr; gap: 48px; }
	.bb-nav__feld .bb-laenderliste { columns: 3; }
	.bb-nav__mobil-kontakt { display: none; }
	.bb-kopf__innen { position: relative; }
	.bb-kopf { position: sticky; }
}
/* Schmale Desktops: Menü enger, Telefon nur als Symbol (Nummer bleibt für Screenreader lesbar). */
@media (min-width: 1080px) and (max-width: 1279px) {
	.bb-kopf__innen { gap: 16px; }
	.bb-kopf__aktionen { gap: 12px; }
	.bb-nav__liste { gap: 2px; }
	.bb-nav__knopf, .bb-nav__link { padding-left: 9px; padding-right: 9px; }
	.bb-kopf__telefon { padding: 10px; margin: -10px 0; }
	.bb-kopf__telefon .bb-icon { width: 22px; height: 22px; }
	.bb-kopf__telefon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Bühne (Startseite) ---------- */
.bb-buehne { padding: 48px 0 var(--abschnitt); text-align: center; }
@media (min-width: 1080px) { .bb-buehne { padding-top: 80px; } }
.bb-buehne__titel { max-width: 15em; margin: 20px auto 0; hyphens: manual; font-size: var(--t-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
.bb-buehne__text { max-width: 62ch; margin: 20px auto 0; font-size: var(--t-gross); color: var(--grau); }
.bb-buehne__aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.bb-vertrauen { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 28px auto 0; color: var(--grau); font-size: var(--t-klein); }
.bb-vertrauen li { display: inline-flex; align-items: center; gap: 8px; }
.bb-vertrauen .bb-icon { width: 18px; height: 18px; color: var(--gruen-deko); }
.bb-buehne .bb-berater { margin-top: 56px; text-align: left; }

/* ---------- Beraterkarte (Fruitful Guide Card) ---------- */
.bb-berater {
	display: grid; gap: 24px; align-items: center;
	padding: 24px; border-radius: var(--radius);
	background: var(--sand); box-shadow: var(--schatten-erhoeht);
}
.bb-berater__foto { width: 140px; }
.bb-berater__bild { width: 100%; aspect-ratio: 441 / 526; object-fit: cover; border-radius: var(--radius); }
.bb-berater__titel { font-size: var(--t-mini); font-weight: 600; letter-spacing: 0; color: var(--grau); margin-bottom: 6px; }
.bb-berater__name { font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; line-height: 1.25; }
.bb-berater__name span { display: block; font-size: var(--t-ui); font-weight: 500; color: var(--grau); letter-spacing: 0; }
.bb-berater__satz { margin-top: 12px; font-size: var(--t-text); color: var(--text); max-width: 60ch; }
.bb-berater__fakten { list-style: none; display: grid; gap: 8px; margin-top: 16px; font-size: var(--t-klein); color: var(--grau); }
.bb-berater__fakten li { display: flex; gap: 10px; align-items: flex-start; }
.bb-berater__fakten .bb-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gruen-deko); }
.bb-berater__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bb-berater__aktionen .bb-knopf--zweit { background: var(--weiss); border-color: transparent; }
.bb-berater__aktionen .bb-knopf--zweit:hover { border-color: var(--navy); }
.bb-berater__aktionen .bb-icon { width: 18px; height: 18px; }
/* Handy: Foto klein neben Titel und Name, der Rest darunter über die volle Breite (das Foto hat nur 441 px). */
@media (max-width: 719px) {
	.bb-berater { grid-template-columns: 96px minmax(0, 1fr); gap: 0 16px; }
	.bb-berater__text { display: contents; }
	.bb-berater__foto { grid-column: 1; grid-row: 1 / span 2; width: 96px; }
	.bb-berater__titel { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 4px; }
	.bb-berater__name { grid-column: 2; grid-row: 2; align-self: start; font-size: 1.3125rem; }
	.bb-berater:not(:has(.bb-berater__titel)) .bb-berater__name { grid-row: 1 / span 2; align-self: center; }
	.bb-berater__satz, .bb-berater__fakten, .bb-berater__aktionen { grid-column: 1 / -1; }
	.bb-berater__satz { margin-top: 20px; }
	.bb-berater__aktionen .bb-knopf { flex: 1 1 100%; }
}
@media (min-width: 720px) {
	.bb-berater { grid-template-columns: 220px 1fr; gap: 40px; padding: 40px; }
	.bb-berater__foto { width: 220px; }
}
@media (min-width: 1080px) {
	.bb-berater { grid-template-columns: 260px 1fr; gap: 56px; padding: 48px; }
	.bb-berater__foto { width: 260px; }
}

/* ---------- Berufskacheln ---------- */
.bb-berufe { display: grid; gap: 32px; }
@media (min-width: 720px) { .bb-berufe { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1080px) { .bb-berufe { grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 40px; } }
.bb-berufe__titel { font-size: var(--t-klein); font-weight: 600; color: var(--grau); letter-spacing: 0; margin-bottom: 12px; }
.bb-berufe__liste { list-style: none; display: grid; gap: 8px; }
.bb-beruf {
	display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: center;
	padding: 14px 16px; border-radius: var(--radius); background: var(--weiss); border: 1px solid transparent;
	color: var(--navy); font-weight: 600; text-decoration: none;
	transition: border-color .15s ease;
}
.bb-beruf:hover { border-color: var(--navy); }
.bb-beruf__icon { width: 24px; height: 24px; color: var(--navy); }
.bb-beruf:hover .bb-beruf__icon { color: var(--gruen-deko); }
.bb-beruf__kurz { grid-column: 2; margin-top: 4px; font-size: var(--t-klein); font-weight: 400; color: var(--grau); }
.bb-abschnitt:not(.bb-abschnitt--flaeche) .bb-beruf, .bb-uebersicht .bb-beruf { background: var(--flaeche); }
/* Bildkarte (Übersicht, sobald die Berufsseite ein Beitragsbild hat): Foto oben, darunter Icon, Name, Kurztext. */
.bb-beruf--bild { padding: 0 16px 16px; overflow: hidden; }
.bb-beruf__bild { grid-column: 1 / -1; display: block; margin: 0 -16px 14px; }
.bb-beruf__bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* In Seiteninhalten (Übersicht „PKV nach Beruf“) gelten die Fließtext-Abstände für h3 nicht. */
.bb-inhalt .bb-berufe__titel { margin: 0 0 12px; font-size: 1.125rem; color: var(--navy); }
.bb-inhalt .bb-berufe__liste { margin-top: 0; }

/* ---------- Deutschlandkarte (SVG, Natural Earth) ---------- */
.bb-karte { display: grid; justify-items: center; gap: 16px; width: 100%; }
.bb-karte__svg { display: block; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.bb-karte__land path { fill: var(--karte); stroke: var(--weiss); stroke-width: 1.2; stroke-linejoin: round; transition: fill .15s ease; }
.bb-abschnitt--flaeche .bb-karte__land path { fill: var(--weiss); stroke: var(--flaeche); }
.bb-karte__kurz { fill: var(--navy); font-family: var(--schrift); font-size: 15px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .15s ease; }
.bb-karte__linie { stroke: var(--grau); stroke-width: 1; }
.bb-karte__marke { fill: var(--weiss); stroke: var(--linie-stark); stroke-width: 1; transition: fill .15s ease, stroke .15s ease; }
.bb-karte__kurz--marke { font-size: 12px; }
a.bb-karte__land:hover path, a.bb-karte__land:focus-visible path, .bb-karte__land.ist-aktiv path { fill: var(--navy); }
a.bb-karte__land:hover .bb-karte__kurz, a.bb-karte__land:focus-visible .bb-karte__kurz, .bb-karte__land.ist-aktiv .bb-karte__kurz { fill: var(--weiss); }
a.bb-karte__land:hover .bb-karte__marke, a.bb-karte__land:focus-visible .bb-karte__marke, .bb-karte__land.ist-aktiv .bb-karte__marke { fill: var(--navy); stroke: var(--navy); }
a.bb-karte__land:focus { outline: none; }
a.bb-karte__land:focus-visible path { stroke: var(--navy-tief); stroke-width: 2.5; }
.bb-karte__sitz { pointer-events: none; }
.bb-karte__sitz circle { fill: var(--gruen-deko); stroke: var(--weiss); stroke-width: 2.5; }
.bb-karte__sitz rect { fill: var(--navy); }
.bb-karte__sitz text { fill: var(--weiss); font-family: var(--schrift); font-size: 11.5px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.bb-karte__bund {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pille);
	background: var(--weiss); border: 1px solid var(--linie); color: var(--navy); font-weight: 600; text-decoration: none;
}
.bb-karte__bund .bb-icon { width: 18px; height: 18px; }
.bb-karte__bund:hover, .bb-karte__bund.ist-aktiv { border-color: var(--navy); }
.bb-karte-block { display: grid; gap: 32px; margin: 32px 0; align-items: start; }
@media (min-width: 900px) { .bb-karte-block { grid-template-columns: 420px 1fr; gap: 56px; } }

.bb-laenderliste { list-style: none; columns: 2; column-gap: 24px; }
.bb-laenderliste li { break-inside: avoid; padding: 3px 0; }
.bb-laenderliste a { color: var(--navy); text-decoration: none; font-weight: 500; }
.bb-laenderliste a:hover, .bb-laenderliste a[aria-current="page"] { text-decoration: underline; }

/* ---------- Ablauf ---------- */
.bb-schritte { list-style: none; display: grid; gap: 16px; counter-reset: schritt; }
@media (min-width: 900px) { .bb-schritte { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.bb-schritt { padding: 32px; border-radius: var(--radius); background: var(--weiss); }
.bb-schritt__nr {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700;
}
.bb-schritt h3 { margin-top: 20px; font-size: var(--t-h3); }
.bb-schritt p { margin-top: 8px; color: var(--grau); }

/* ---------- Artikelkarten ---------- */
.bb-karten { list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .bb-karten { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1080px) { .bb-karten { grid-template-columns: repeat(3, 1fr); } }
.bb-karte-artikel { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 24px; border-radius: var(--radius); border: 1px solid var(--linie); background: var(--weiss); transition: border-color .15s ease; }
/* Beitragsbild randlos oben in der Karte, einheitlich 16:9, mit Abstand zum Titel */
.bb-karte-artikel__bild { margin: -24px -24px 20px; aspect-ratio: 16 / 9; background: var(--flaeche); }
.bb-karte-artikel__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-karte-artikel:hover { border-color: var(--navy); }
.bb-karte-artikel__rubrik { font-size: var(--t-mini); font-weight: 600; color: var(--grau); margin-bottom: 8px; }
.bb-karte-artikel__titel { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; }
.bb-karte-artikel__titel a { text-decoration: none; }
.bb-karte-artikel__titel a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.bb-karte-artikel__auszug { margin-top: 10px; color: var(--grau); font-size: var(--t-klein); }

/* ---------- Anfrage und Formular ---------- */
.bb-anfrage { display: grid; gap: 40px; }
@media (min-width: 1080px) { .bb-anfrage { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; } }
.bb-anfrage__text h2 { font-size: var(--t-h2); }
.bb-anfrage__text p { margin-top: 16px; color: var(--grau); font-size: var(--t-text); }
.bb-anfrage__wege { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.bb-anfrage__weg { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 600; text-decoration: none; font-size: 1.125rem; }
.bb-anfrage__weg .bb-icon { width: 22px; height: 22px; color: var(--gruen-deko); }
.bb-anfrage__weg:hover span { text-decoration: underline; }
.bb-anfrage__formular { padding: 24px; border-radius: var(--radius); background: var(--weiss); }
@media (min-width: 720px) { .bb-anfrage__formular { padding: 40px; } }

.bb-formular__raster { display: grid; gap: 16px; }
@media (min-width: 720px) { .bb-formular__raster { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.bb-feld { display: grid; gap: 6px; }
.bb-feld--breit { grid-column: 1 / -1; }
.bb-feld label { font-size: var(--t-klein); font-weight: 600; color: var(--navy); }
.bb-feld input, .bb-feld select, .bb-feld textarea,
.bb-formular--wpforms input[type="text"], .bb-formular--wpforms input[type="email"], .bb-formular--wpforms input[type="tel"], .bb-formular--wpforms select, .bb-formular--wpforms textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1px solid var(--linie-stark); border-radius: var(--radius); background: var(--weiss);
	font-size: var(--t-ui); color: var(--text);
}
.bb-feld textarea { min-height: 120px; resize: vertical; }
.bb-feld input:focus, .bb-feld select:focus, .bb-feld textarea:focus,
.bb-formular--wpforms input:focus, .bb-formular--wpforms select:focus, .bb-formular--wpforms textarea:focus { border-color: var(--navy); outline: 3px solid rgba(16, 37, 80, 0.18); outline-offset: 0; }
.bb-feld--haken { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.bb-feld--haken input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--navy); }
.bb-feld--haken label { font-weight: 400; color: var(--grau); }
.bb-feld--honig { position: absolute; left: -9999px; }
.bb-formular .bb-knopf { margin-top: 24px; width: 100%; }
@media (min-width: 720px) { .bb-formular .bb-knopf { width: auto; } }
.bb-formular__hinweis { margin-top: 12px; font-size: var(--t-mini); color: var(--grau); }
.bb-formular__fehler { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: #fde9e9; color: var(--warnung); font-weight: 500; }
.bb-formular--danke { padding: 24px; border-radius: var(--radius); background: var(--salbei); }
.bb-formular__titel { font-weight: 700; color: var(--navy); font-size: 1.125rem; margin-bottom: 6px; }
/* WPForms (Formular 909 der Live-Seite) an das Design anpassen */
.bb-formular--wpforms .wpforms-container { margin: 0 !important; }
.bb-formular--wpforms .wpforms-field { padding: 8px 0 !important; }
.bb-formular--wpforms .wpforms-field-label { font-size: var(--t-klein) !important; font-weight: 600 !important; color: var(--navy) !important; margin-bottom: 6px !important; }
.bb-formular--wpforms .wpforms-field-sublabel { font-size: var(--t-mini) !important; color: var(--grau) !important; }
.bb-formular--wpforms .wpforms-submit, .bb-formular--wpforms button[type="submit"] {
	min-height: 46px !important; padding: 12px 24px !important; border: 0 !important; border-radius: var(--radius) !important;
	background: var(--aktion) !important; color: var(--weiss) !important; font-size: var(--t-ui) !important; font-weight: 600 !important; cursor: pointer;
}
.bb-formular--wpforms .wpforms-submit:hover { background: var(--aktion-tief) !important; }
.bb-formular--wpforms label.wpforms-error, .bb-formular--wpforms em.wpforms-error { color: var(--warnung) !important; font-size: var(--t-mini) !important; }

/* ---------- Seitenkopf, Brotkrumen ---------- */
.bb-seitenkopf { padding: 32px 0 40px; background: var(--flaeche); }
@media (min-width: 1080px) { .bb-seitenkopf { padding: 40px 0 56px; } }
.bb-brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 24px; font-size: var(--t-klein); color: var(--grau); }
.bb-brotkrumen a { color: var(--grau); text-decoration: none; }
.bb-brotkrumen a:hover { color: var(--navy); text-decoration: underline; }
.bb-brotkrumen span[aria-current] { color: var(--navy); font-weight: 500; }
.bb-brotkrumen__trenner { color: var(--linie-stark); }
.bb-seitenkopf .bb-abzeichen { background: var(--weiss); margin-bottom: 16px; }
.bb-seitenkopf__titel { max-width: 22ch; font-size: var(--t-h1); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
/* Ab Tablet genug Platz: Seitentitel ohne automatische Silbentrennung (auf dem Handy bleibt sie für lange Wörter). */
@media (min-width: 720px) { .bb-seitenkopf__titel { hyphens: manual; } }
.bb-seitenkopf__text-satz { max-width: 65ch; margin-top: 16px; font-size: var(--t-gross); color: var(--grau); }
/* Seitenkopf mit Foto (Berufsseiten): Text links, Foto rechts; auf dem Handy Foto unter dem Text. */
.bb-seitenkopf--mit-bild .bb-seitenkopf__innen { display: grid; gap: 28px; align-items: center; }
.bb-seitenkopf__bild { margin: 0; }
.bb-seitenkopf__bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 1080px) {
	.bb-seitenkopf--mit-bild .bb-seitenkopf__innen { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; }
}

/* ---------- Langer Inhalt mit Inhaltsverzeichnis ---------- */
.bb-artikel { display: grid; gap: 32px; padding-top: 40px; padding-bottom: var(--abschnitt); }
/* Rasterspalten dürfen schmaler als ihr breitester Inhalt werden (sonst drücken Tabellen die Seite auf). */
.bb-artikel > * { min-width: 0; }
@media (min-width: 1080px) {
	.bb-artikel { grid-template-columns: 250px minmax(0, 760px); gap: 72px; padding-top: 56px; }
	.bb-artikel--ohne-seite { grid-template-columns: minmax(0, 760px); }
	.bb-artikel__klebend { position: sticky; top: calc(var(--kopf-hoehe) + 32px); max-height: calc(100vh - var(--kopf-hoehe) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.bb-verzeichnis { padding: 20px; border-radius: var(--radius); background: var(--flaeche); }
@media (min-width: 1080px) { .bb-verzeichnis { padding: 0; background: none; } }
.bb-verzeichnis__titel { font-size: var(--t-mini); font-weight: 600; color: var(--grau); margin-bottom: 10px; }
.bb-verzeichnis ol { list-style: none; display: grid; gap: 2px; }
@media (min-width: 1080px) { .bb-verzeichnis ol { border-left: 1px solid var(--linie); } }
.bb-verzeichnis a { display: block; padding: 6px 0; color: var(--grau); font-size: var(--t-klein); line-height: 1.4; text-decoration: none; }
@media (min-width: 1080px) { .bb-verzeichnis a { padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; } }
.bb-verzeichnis a:hover { color: var(--navy); }
.bb-verzeichnis a.ist-aktiv { color: var(--navy); font-weight: 600; border-left-color: var(--navy); }
.bb-minikontakt { display: none; }
@media (min-width: 1080px) {
	.bb-minikontakt { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; align-items: center; margin-top: 32px; padding: 16px; border-radius: var(--radius); background: var(--sand); font-size: var(--t-klein); }
	.bb-minikontakt__bild { grid-row: span 2; width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--weiss); }
	.bb-minikontakt__telefon { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--navy); }
	.bb-minikontakt__telefon .bb-icon { width: 16px; height: 16px; color: var(--gruen-deko); }
}

/* ---------- Fließtext (Seiteninhalt, Blöcke) ---------- */
.bb-inhalt { font-size: var(--t-text); line-height: 1.65; }
.bb-inhalt > * + * { margin-top: 1.1em; }
.bb-inhalt h2 { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem); margin-top: 2em; line-height: 1.22; scroll-margin-top: calc(var(--kopf-hoehe) + 24px); }
.bb-inhalt h3 { font-size: var(--t-h3); margin-top: 1.6em; letter-spacing: -0.01em; }
.bb-inhalt h2 + *, .bb-inhalt h3 + * { margin-top: 0.7em; }
.bb-inhalt > :first-child { margin-top: 0; }
.bb-inhalt a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bb-inhalt a:hover { color: var(--aktion); }
/* Bausteine im Fließtext behalten ihre eigene Linkgestaltung. */
.bb-inhalt .bb-karte a, .bb-inhalt .bb-laenderliste a, .bb-inhalt .bb-beruf, .bb-inhalt .bb-chips a, .bb-inhalt .bb-knopf, .bb-inhalt .bb-berater a { text-decoration: none; }
.bb-inhalt .bb-laenderliste a:hover { text-decoration: underline; color: var(--navy); }
.bb-inhalt .bb-karte a:hover, .bb-inhalt .bb-beruf:hover { color: inherit; }
.bb-inhalt .bb-knopf--haupt:hover { color: var(--weiss); }
.bb-inhalt strong { color: var(--navy); font-weight: 600; }
/* Einrückung und Aufzählungszeichen nur für Textlisten (Blöcke, alte Inhalte), nicht für Bausteine wie Berufskacheln. */
.bb-inhalt > ul, .bb-inhalt > ol, .bb-inhalt .wp-block-list, .bb-inhalt .bb-alt ul, .bb-inhalt .bb-alt ol { padding-left: 1.4em; }
.bb-inhalt > ul > li + li, .bb-inhalt > ol > li + li, .bb-inhalt .wp-block-list > li + li, .bb-inhalt .bb-alt li + li { margin-top: 0.45em; }
.bb-inhalt > ul > li::marker, .bb-inhalt .wp-block-list > li::marker, .bb-inhalt .bb-alt li::marker { color: var(--navy); }
.bb-inhalt .bb-klein { font-size: var(--t-klein); color: var(--grau); }
.bb-uebersicht { padding-top: 40px; padding-bottom: var(--abschnitt); }
.bb-uebersicht > p:first-child { max-width: 70ch; font-size: var(--t-gross); color: var(--grau); }
.bb-uebersicht .bb-berufe { margin: 40px 0; }

/* Kasten „Auf einen Blick“ */
.bb-inhalt .bb-blick { padding: 24px; border-radius: var(--radius); background: var(--salbei); }
@media (min-width: 720px) { .bb-inhalt .bb-blick { padding: 28px 32px; } }
.bb-inhalt .bb-blick__titel { font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.bb-inhalt .bb-blick ul { list-style: none; padding-left: 0; margin: 0; }
.bb-inhalt .bb-blick li { position: relative; padding-left: 30px; }
.bb-inhalt .bb-blick li::before {
	content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px;
	background: var(--gruen-deko);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.5 4.5L19.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.5 4.5L19.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bb-inhalt .bb-blick li::marker { content: none; }

/* FAQ und Quellen (<details>) */
.bb-inhalt details { border-bottom: 1px solid var(--linie); margin-top: 0; }
.bb-inhalt h2 + details, .bb-inhalt :not(details) + details { border-top: 1px solid var(--linie); margin-top: 1em; }
.bb-inhalt summary {
	display: flex; justify-content: space-between; gap: 16px; padding: 18px 0;
	color: var(--navy); font-weight: 600; cursor: pointer; list-style: none;
}
.bb-inhalt summary::-webkit-details-marker { display: none; }
.bb-inhalt summary::after { content: "+"; flex: none; width: 24px; text-align: center; font-size: 1.375rem; line-height: 1; font-weight: 400; color: var(--grau); }
.bb-inhalt details[open] summary::after { content: "–"; }
.bb-inhalt details > :not(summary) { margin: 0 0 18px; color: var(--text); }
.bb-inhalt details.bb-quellen { margin-top: 2.5em; border: 1px solid var(--linie); border-radius: var(--radius); padding: 0 20px; font-size: var(--t-klein); }
.bb-inhalt details.bb-quellen summary { padding: 14px 0; font-weight: 500; color: var(--grau); }
.bb-inhalt details.bb-quellen ul { padding-left: 1.2em; }
.bb-inhalt details.bb-quellen li { color: var(--grau); }

/* Kontakt-Kasten in der Textmitte (Fruitful „Guide Card“ im Kleinformat) */
.bb-cta {
	display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "bild titel" "text text" "aktionen aktionen";
	gap: 12px 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--sand);
}
.bb-inhalt .bb-cta { margin-top: 2em; }
.bb-cta__bild { grid-area: bild; width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--weiss); }
.bb-inhalt .bb-cta__bild { border-radius: 50%; }
.bb-cta__titel { grid-area: titel; font-size: var(--t-gross); font-weight: 700; line-height: 1.3; color: var(--navy); letter-spacing: -0.01em; }
.bb-cta__text { grid-area: text; font-size: var(--t-ui); color: var(--grau); }
.bb-inhalt .bb-cta > * + * { margin-top: 0; }
.bb-cta__aktionen { grid-area: aktionen; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.bb-cta__aktionen .bb-knopf { flex: 1 1 100%; }
.bb-cta .bb-knopf--zweit { background: var(--weiss); border-color: transparent; }
.bb-cta .bb-knopf--zweit:hover { border-color: var(--navy); color: var(--navy); }
.bb-cta .bb-icon { width: 18px; height: 18px; }
@media (min-width: 560px) {
	.bb-cta__aktionen .bb-knopf { flex: 0 1 auto; }
}
@media (min-width: 720px) {
	.bb-cta { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "bild titel" "bild text" "bild aktionen"; gap: 6px 24px; align-items: start; padding: 28px 32px; }
	.bb-cta__bild { width: 72px; height: 72px; }
	.bb-cta__aktionen { margin-top: 14px; }
}

/* ---------- Anfrageseite: Formular und Kontaktkarte ---------- */
.bb-anfrageseite { display: grid; gap: 28px; padding-top: 32px; padding-bottom: var(--abschnitt); }
.bb-anfrageseite__inhalt { min-width: 0; }
/* Handy: schmale Zeile mit Foto, Name und Telefon über dem Formular */
.bb-kontaktkarte {
	display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "bild rolle" "bild name" "bild wege";
	column-gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--radius); background: var(--sand);
}
.bb-kontaktkarte__bild { grid-area: bild; width: 64px; height: 64px; object-fit: cover; object-position: center 15%; border-radius: 50%; background: var(--weiss); }
.bb-kontaktkarte__rolle { grid-area: rolle; align-self: end; font-size: var(--t-mini); font-weight: 600; color: var(--grau); }
.bb-kontaktkarte__name { grid-area: name; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--navy); letter-spacing: -0.01em; }
.bb-kontaktkarte__name span { display: none; }
.bb-kontaktkarte__wege { grid-area: wege; align-self: start; list-style: none; display: grid; gap: 8px; margin: 2px 0 0; padding: 0; }
.bb-kontaktkarte__weg { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: break-word; min-width: 0; }
.bb-kontaktkarte__mail .bb-kontaktkarte__weg { font-size: var(--t-klein); }
.bb-kontaktkarte__weg:hover span { text-decoration: underline; }
.bb-kontaktkarte__weg .bb-icon, .bb-kontaktkarte__kern .bb-icon { flex: none; width: 18px; height: 18px; color: var(--gruen-deko); }
.bb-kontaktkarte__mail, .bb-kontaktkarte__kern, .bb-kontaktkarte__schritte { display: none; }
@media (min-width: 1080px) {
	.bb-anfrageseite { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding-top: 56px; }
	.bb-anfrageseite__inhalt { grid-column: 1; grid-row: 1; }
	.bb-kontaktkarte {
		grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--kopf-hoehe) + 32px);
		grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "bild rolle" "bild name" "wege wege" "kern kern" "schritte schritte";
		row-gap: 2px; padding: 28px;
	}
	.bb-kontaktkarte__bild { width: 88px; height: 88px; }
	.bb-kontaktkarte__name { font-size: 1.25rem; align-self: start; }
	.bb-kontaktkarte__name span { display: block; font-size: var(--t-klein); font-weight: 500; color: var(--grau); letter-spacing: 0; }
	.bb-kontaktkarte__wege { margin-top: 22px; gap: 10px; }
	.bb-kontaktkarte__mail { display: list-item; }
	.bb-kontaktkarte__kern { grid-area: kern; display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: var(--t-klein); color: var(--grau); }
	.bb-kontaktkarte__kern .bb-icon { margin-top: 2px; }
	.bb-kontaktkarte__schritte { grid-area: schritte; display: block; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(16, 37, 80, 0.12); }
	.bb-kontaktkarte__zwischentitel { font-size: var(--t-klein); font-weight: 700; color: var(--navy); }
	.bb-kontaktkarte__schritte ol { list-style: none; counter-reset: schritt; display: grid; gap: 10px; margin: 12px 0 0; padding: 0; font-size: var(--t-klein); color: var(--text); }
	.bb-kontaktkarte__schritte li { counter-increment: schritt; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
	.bb-kontaktkarte__schritte li::before {
		content: counter(schritt); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
		background: var(--weiss); color: var(--navy); font-size: var(--t-mini); font-weight: 700;
	}
}

/* ---------- Rechner (Beihilfe, Öffnungsaktion, Dienstunfähigkeit) ---------- */
.bb-rechner { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); overflow: hidden; font-size: var(--t-ui); line-height: 1.55; }
.bb-inhalt .bb-rechner { margin-top: 1.4em; }
.bb-rechner__eingabe { display: grid; gap: 20px; padding: 20px; background: var(--flaeche); }
@media (min-width: 720px) { .bb-rechner__eingabe { padding: 24px 28px; } }
.bb-rechner__raster { display: grid; gap: 16px; }
@media (min-width: 560px) { .bb-rechner__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }
.bb-rechner__hilfe { margin-top: -12px; font-size: var(--t-mini); line-height: 1.5; color: var(--grau); }
.bb-feld .bb-rechner__hilfe { margin-top: 0; }
.bb-rechner .bb-feld input[type="date"] { min-height: 48px; }

/* Auswahl als Pillen */
.bb-wahl { min-width: 0; margin: 0; padding: 0; border: 0; }
.bb-wahl legend { margin-bottom: 8px; padding: 0; font-size: var(--t-klein); font-weight: 600; color: var(--navy); }
.bb-wahl__optionen { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-wahl__option { position: relative; display: inline-flex; }
.bb-wahl__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bb-wahl__option span {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px;
	border: 1px solid var(--linie-stark); border-radius: var(--radius-pille); background: var(--weiss);
	color: var(--navy); font-size: var(--t-klein); font-weight: 500; line-height: 1.3; text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bb-wahl__option:hover span { border-color: var(--navy); }
.bb-wahl__option input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--weiss); font-weight: 600; }
.bb-wahl__option input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.bb-wahl--zahlen .bb-wahl__option span { min-width: 52px; padding-left: 12px; padding-right: 12px; }
.bb-haken { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-klein); color: var(--text); cursor: pointer; }
.bb-haken input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }

/* Ergebnis */
.bb-rechner__ergebnis { display: grid; gap: 16px; padding: 20px; }
@media (min-width: 720px) { .bb-rechner__ergebnis { padding: 24px 28px 28px; } }
.bb-rechner__leer { color: var(--grau); }
.bb-rechner__titel { font-size: var(--t-mini); font-weight: 600; color: var(--grau); }
.bb-rechner__titel + * { margin-top: -10px; }
.bb-rechner__kern { font-size: var(--t-gross); line-height: 1.45; color: var(--text); }
.bb-rechner__kern strong, .bb-rechner__euro strong { color: var(--navy); font-weight: 700; }
.bb-rechner__gross { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
.bb-rechner__euro { font-size: var(--t-ui); color: var(--text); }
.bb-rechner__block { display: grid; gap: 8px; }
.bb-rechner__zwischentitel { font-size: var(--t-klein); font-weight: 700; color: var(--navy); }
.bb-rechner__hinweise, .bb-rechner__haken { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; font-size: var(--t-klein); color: var(--grau); }
.bb-rechner__hinweise li { position: relative; padding-left: 18px; }
.bb-rechner__hinweise li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--rand-zweit); }
.bb-rechner__haken li { position: relative; padding-left: 28px; color: var(--text); }
.bb-rechner__haken li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: var(--gruen-deko);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.5 4.5L19.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.5 4.5L19.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bb-rechner__fuss { padding-top: 14px; border-top: 1px solid var(--linie); font-size: var(--t-mini); line-height: 1.5; color: var(--grau); }
.bb-rechner__aktion { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.bb-rechner__aktion .bb-knopf { width: 100%; }
@media (min-width: 560px) { .bb-rechner__aktion .bb-knopf { width: auto; } }
.bb-rechner__link { font-size: var(--t-klein); font-weight: 600; }
.bb-rechner__ohne-js { padding: 0 20px 20px; color: var(--grau); font-size: var(--t-klein); }

/* Anteile mit Balken */
.bb-anteile { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.bb-anteil__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin-bottom: 6px; font-size: var(--t-klein); }
.bb-anteil__wer { font-weight: 600; color: var(--navy); }
.bb-anteil__werte { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--grau); }
.bb-anteil__werte strong { color: var(--navy); font-weight: 700; }
.bb-anteil__zusatz { font-size: var(--t-mini); color: var(--grau); }
/* Handy: Werte immer unter der Bezeichnung, damit alle Zeilen gleich aussehen. */
@media (max-width: 559px) { .bb-anteil__kopf { flex-direction: column; } }
.bb-balken { display: flex; height: 12px; overflow: hidden; border-radius: 6px; background: var(--flaeche); }
.bb-balken > span { display: block; height: 100%; }
.bb-balken__beihilfe, .bb-balken__ruhegehalt, .bb-balken__verstrichen { background: var(--navy); }
.bb-balken__pkv { background: var(--gruen-deko); }
.bb-balken__luecke { background: repeating-linear-gradient(-45deg, var(--linie-stark) 0 6px, var(--flaeche) 6px 12px); }
.bb-balken__rest { background: var(--karte); }
.bb-balken__vorbei { background: var(--rand-zweit); }
.bb-legende { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: -6px; font-size: var(--t-mini); color: var(--grau); }
.bb-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.bb-legende__beihilfe::before, .bb-legende__ruhegehalt::before { background: var(--navy); }
.bb-legende__pkv::before { background: var(--gruen-deko); }
.bb-legende__luecke::before { background: repeating-linear-gradient(-45deg, var(--linie-stark) 0 3px, var(--flaeche) 3px 6px); }

/* Fristende */
.bb-marke { justify-self: start; padding: 4px 12px; border-radius: var(--radius-pille); background: var(--salbei); color: var(--aktion-tief); font-size: var(--t-klein); font-weight: 600; }
.bb-marke--vorbei { background: #fde9e9; color: var(--warnung); }
.bb-frist__daten { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: var(--t-mini); color: var(--grau); }

/* Rechenweg */
.bb-tabelle.bb-rechenweg { border: 1px solid var(--linie); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.bb-tabelle.bb-rechenweg caption { padding: 0 0 8px; font-size: var(--t-klein); }
.bb-tabelle.bb-rechenweg tbody tr:first-child th, .bb-tabelle.bb-rechenweg tbody tr:first-child td { border-top: 0; }
.bb-tabelle.bb-rechenweg tbody th { width: 45%; font-weight: 500; color: var(--grau); }
.bb-rechenweg td { color: var(--navy); font-weight: 600; }
.bb-rechenweg tbody tr:last-child { background: var(--flaeche); }
/* Handy: Bezeichnung über dem Wert */
@media (max-width: 559px) {
	.bb-rechenweg tr { display: block; padding: 10px 14px; border-top: 1px solid var(--linie); }
	.bb-rechenweg tbody tr:first-child { border-top: 0; }
	.bb-tabelle.bb-rechenweg tbody th, .bb-tabelle.bb-rechenweg td { display: block; width: auto; padding: 0; border: 0; }
	.bb-tabelle.bb-rechenweg td { margin-top: 2px; }
}

/* Karten der Rechner und Hinweis-Kasten */
.bb-rechnerkarten { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }
@media (min-width: 900px) { .bb-rechnerkarten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.bb-inhalt .bb-rechnerkarten { grid-template-columns: minmax(0, 1fr); }
.bb-rechnerkarte {
	position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
	padding: 20px 24px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); transition: border-color .15s ease;
}
.bb-rechnerkarte:hover { border-color: var(--navy); }
.bb-rechnerkarte__icon, .bb-rechnerhinweis__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--salbei); color: var(--aktion); }
.bb-rechnerkarte__icon .bb-icon, .bb-rechnerhinweis__icon .bb-icon { width: 24px; height: 24px; }
.bb-rechnerkarte__titel { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; }
.bb-inhalt .bb-rechnerkarte__titel { margin-top: 0; }
.bb-rechnerkarte__titel a { text-decoration: none; }
.bb-inhalt .bb-rechnerkarte__titel a { text-decoration: none; }
.bb-rechnerkarte__titel a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.bb-rechnerkarte__text { margin-top: 6px; font-size: var(--t-klein); color: var(--grau); }
.bb-rechnerhinweis {
	display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px 16px; align-items: start;
	padding: 20px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss);
}
.bb-inhalt .bb-rechnerhinweis { margin-top: 2em; }
.bb-rechnerhinweis__titel { font-weight: 700; color: var(--navy); line-height: 1.35; }
.bb-rechnerhinweis__text { margin-top: 2px; font-size: var(--t-klein); line-height: 1.5; color: var(--grau); }
.bb-rechnerhinweis .bb-knopf { grid-column: 1 / -1; }
@media (min-width: 720px) {
	.bb-rechnerhinweis { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; padding: 20px 24px; }
	.bb-rechnerhinweis .bb-knopf { grid-column: auto; }
}
.bb-inhalt .bb-rechnerhinweis .bb-knopf--zweit:hover, .bb-inhalt .bb-rechner .bb-knopf--zweit:hover { color: var(--navy); }

/* Tabellen mit Haarlinien (N26) */
.bb-tabelle-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); }
.bb-tabelle { width: 100%; border-collapse: collapse; font-size: var(--t-klein); line-height: 1.5; }
.bb-tabelle caption { padding: 16px 16px 8px; text-align: left; font-weight: 700; color: var(--navy); font-size: var(--t-ui); }
.bb-tabelle th, .bb-tabelle td { padding: 12px 16px; border-top: 1px solid var(--linie); text-align: left; vertical-align: top; }
.bb-tabelle thead th { border-top: 0; color: var(--grau); font-weight: 600; font-size: var(--t-mini); white-space: nowrap; }
.bb-tabelle tbody th { color: var(--navy); font-weight: 600; }
.bb-tabelle td strong { color: var(--navy); }
.bb-tabelle__hinweis { display: block; margin-top: 4px; color: var(--grau); }
.bb-tabelle--vergleich { min-width: 760px; }
.bb-tabelle--vergleich tbody th a { text-decoration: none; }
.bb-tabelle--vergleich tbody th a:hover { text-decoration: underline; }
.bb-tabelle--aemter { min-width: 560px; }
.bb-tabelle--fakten th { width: 32%; }

/* Fakten-Kasten der Länderseiten */
.bb-fakten { border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.bb-inhalt .bb-fakten { margin-top: 2em; }
.bb-fakten__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 16px; background: var(--flaeche); }
@media (min-width: 720px) { .bb-fakten__kopf { padding: 18px 20px; } .bb-fakten .bb-tabelle th, .bb-fakten .bb-tabelle td, .bb-fakten .bb-tabelle caption { padding-left: 20px; padding-right: 20px; } }
.bb-fakten__titel { font-weight: 700; color: var(--navy); }
.bb-fakten__stand { font-size: var(--t-mini); color: var(--grau); }
.bb-fakten .bb-tabelle caption { padding-top: 20px; }
.bb-fakten .bb-tabelle tbody th { width: 42%; }
.bb-fakten__fuss { padding: 16px; border-top: 1px solid var(--linie); font-size: var(--t-klein); color: var(--grau); }
@media (min-width: 720px) { .bb-fakten__fuss { padding: 16px 20px 20px; } }
.bb-fakten__fuss > * + * { margin-top: 8px; }
.bb-fakten__fuss ul { padding-left: 1.2em; }
.bb-fakten__hinweis { font-size: var(--t-mini); }
/* Handy: Faktentabellen als gestapelte Zeilen (Thema oben, Regelung darunter). */
@media (max-width: 719px) {
	.bb-fakten .bb-tabelle thead { display: none; }
	.bb-fakten .bb-tabelle tr { display: block; padding: 14px 16px; border-top: 1px solid var(--linie); }
	.bb-fakten .bb-tabelle th, .bb-fakten .bb-tabelle td { display: block; width: auto; padding: 0; border: 0; }
	.bb-fakten .bb-tabelle tbody th { width: auto; }
	.bb-fakten .bb-tabelle td { margin-top: 4px; }
	.bb-fakten .bb-tabelle caption { display: block; padding: 18px 16px 8px; }
}

/* Altlasten aus Flatsome und unbekannte Blöcke */
.bb-alt { margin: 0; }
.bb-inhalt img { border-radius: var(--radius); }
.bb-inhalt figure { margin: 1.4em 0; }
.bb-inhalt blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--navy); color: var(--navy); }

/* ---------- Abschluss-Band ---------- */
.bb-abschluss { padding: var(--abschnitt) 0; background: var(--salbei); }
.bb-abschluss__innen { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .bb-abschluss__innen { grid-template-columns: 1fr auto; gap: 48px; } }
.bb-abschluss h2 { font-size: var(--t-h2); }
.bb-abschluss p { margin-top: 12px; color: var(--grau); max-width: 60ch; }
.bb-abschluss__aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.bb-abschluss .bb-knopf--zweit { background: var(--weiss); border-color: transparent; }
.bb-abschluss .bb-knopf--zweit:hover { border-color: var(--navy); }
.bb-abschluss .bb-icon { width: 18px; height: 18px; }

/* ---------- Seitentext Startseite, Archiv ---------- */
.bb-seitentext { border-top: 1px solid var(--linie); }
.bb-archiv__oben { padding: 0 0 32px; }
.bb-archiv__oben p { color: var(--grau); }
.bb-archiv__liste { margin-top: 8px; }
.bb-archiv__unten { padding: var(--abschnitt) 0 0; }
.bb-archiv__liste + .bb-archiv__unten, .bb-karten + .navigation { margin-top: 24px; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--linie); text-decoration: none; }
.nav-links .current { background: var(--navy); color: var(--weiss); border-color: var(--navy); }

/* ---------- Fuß ---------- */
.bb-fuss { background: var(--navy); color: var(--fuss-text); font-size: var(--t-klein); }
.bb-fuss a { color: var(--weiss); text-decoration: none; }
.bb-fuss a:hover { text-decoration: underline; }
.bb-fuss__oben { display: grid; gap: 40px; padding: 56px 0 40px; }
@media (min-width: 900px) { .bb-fuss__oben { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 56px; padding-top: 72px; } }
.bb-fuss .bb-logo img { height: 30px; }
.bb-fuss__kern { margin-top: 20px; color: var(--weiss); font-size: var(--t-ui); font-weight: 500; max-width: 36ch; }
.bb-fuss__adresse { margin-top: 16px; font-style: normal; line-height: 1.7; }
.bb-fuss__status { margin-top: 16px; font-size: var(--t-mini); }
.bb-fuss__titel { color: var(--weiss); font-weight: 600; margin-bottom: 12px; font-size: var(--t-ui); }
.bb-fuss__spalte ul { list-style: none; display: grid; gap: 6px; }
.bb-fuss .bb-laenderliste { display: block; }
.bb-fuss .bb-laenderliste a { font-weight: 400; }
.bb-fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.bb-fuss__unten nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
