#ps-sub{--pal-bf-muenze:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%224%22 y=%220%22 width=%224%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%222%22 y=%221%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%224%22 y=%221%22 width=%224%22 height=%221%22 fill=%22%23DCD3A0%22/%3E%3Crect x=%228%22 y=%221%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%222%22 y=%222%22 width=%222%22 height=%221%22 fill=%22%23DCD3A0%22/%3E%3Crect x=%224%22 y=%222%22 width=%226%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2210%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%222%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23DCD3A0%22/%3E%3Crect x=%223%22 y=%223%22 width=%223%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%226%22 y=%223%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%228%22 y=%223%22 width=%222%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2210%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%220%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23DCD3A0%22/%3E%3Crect x=%222%22 y=%224%22 width=%224%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%226%22 y=%224%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%228%22 y=%224%22 width=%223%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2211%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%220%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%225%22 width=%2210%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2211%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%220%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%226%22 width=%224%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%225%22 y=%226%22 width=%223%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%228%22 y=%226%22 width=%223%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2211%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%220%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%227%22 width=%225%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%226%22 y=%227%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%228%22 y=%227%22 width=%223%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2211%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%222%22 y=%228%22 width=%224%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%226%22 y=%228%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%228%22 y=%228%22 width=%222%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2210%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%221%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%222%22 y=%229%22 width=%223%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%225%22 y=%229%22 width=%224%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%229%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%2210%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%222%22 y=%2210%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%224%22 y=%2210%22 width=%224%22 height=%221%22 fill=%22%238E8440%22/%3E%3Crect x=%228%22 y=%2210%22 width=%222%22 height=%221%22 fill=%22%231E2748%22/%3E%3Crect x=%224%22 y=%2211%22 width=%224%22 height=%221%22 fill=%22%231E2748%22/%3E%3C/svg%3E")}
/*
 * Baufi-Seite /immobilienfinanzierung/ (Livefassung, erzeugt von live/bau_live.py aus prototyp/baufi.css). Tokens aus framework/tokens.css (--ps-*), Formular-Sprache wie
 * werkzeuge/geld-rechner.css (Fläche, Rand, eine Zahl). Ausgeschlossen: Pillen, Versalien-Eyebrow, Farbleisten links oder oben,
 * Kartengitter mit Farbkante, Creme als Seitengrund. Pixel nur an ⓘ-Münze, CTA-Motiv, Pixelhaus und Bankfertig-Steinen.
 * Bewegung: nur einmal beim Wachsen des Hauses (≤ 1,2 s), bei reduced-motion aus.
 */
#ps-sub [hidden], #ps-sub .pal-bf-szene g[hidden] { display: none !important; }

/* ---------- Kopf: kompakt, Knöpfe rechts neben der Headline (Dauerauftrag 29.09.) ---------- */
#ps-sub .pal-bf-kopf { padding-block: 28px 8px; }
#ps-sub .pal-bf-kopf__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; }
#ps-sub .pal-bf-kopf h1 { max-width: 820px; font-size: clamp(32px, 3.6vw, 50px); }
#ps-sub .pal-bf-kopf h1 span { margin-top: 6px; }
#ps-sub .pal-bf-kopf .ps-sub-hero__lead { margin-top: 14px; max-width: 700px; }
#ps-sub .pal-bf-kopf h1, #ps-sub .pal-bf-kopf .ps-sub-hero__lead, #ps-sub .pal-bf-betrag, #ps-sub .pal-bf-aufst { -webkit-hyphens: manual; hyphens: manual; }
#ps-sub .pal-bf-kopf__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 34px; }
#ps-sub .pal-bf-kopf__knoepfe .ps-btn { min-height: 48px; }
#ps-sub .ps-btn .pal-bf-motiv { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; image-rendering: pixelated; }

/* ---------- Werkzeug ---------- */
#ps-sub .pal-bf-sec { padding-block: 12px 0; }   /* Abstand zur nächsten Sektion trägt deren padding (seit „Lage in Kürze“ weg) */
#ps-sub .pal-bf {
	display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 0;
	border: 1px solid var(--ps-farbe-rand); border-radius: var(--ps-radius-lg, 8px);
	background: var(--ps-farbe-flaeche); box-shadow: var(--ps-schatten-1);
	color: var(--ps-farbe-text); font-family: var(--ps-font-body); font-size: var(--ps-gr-text); line-height: var(--ps-zeile-klein);
}
#ps-sub .pal-bf *, #ps-sub .pal-bf *::before, #ps-sub .pal-bf *::after { box-sizing: border-box; }
#ps-sub .pal-bf__haupt { padding: 28px 32px 32px; min-width: 0; }
#ps-sub .pal-bf__seite { padding: 28px 28px 32px; border-left: 1px solid var(--ps-farbe-rand); background: var(--ps-farbe-flaeche-2); border-radius: 0 var(--ps-radius-lg, 8px) var(--ps-radius-lg, 8px) 0; min-width: 0; }
#ps-sub .pal-bf__titelzeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
#ps-sub .pal-bf__titel { margin: 0; color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: var(--ps-gr-h3); font-weight: var(--ps-staerke-kopf); line-height: var(--ps-zeile-eng); }
#ps-sub .pal-bf__schritt { color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); }
#ps-sub .pal-bf__vorschlag { margin-top: 10px; font-size: var(--ps-gr-klein); }

/* Fragen: eine offen, beantwortete als Zeile */
#ps-sub .pal-bf-frage { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
#ps-sub .pal-bf-frage.ist-zu { margin-top: 0; padding: 10px 0; border-bottom: 1px solid var(--ps-farbe-rand); }
#ps-sub .pal-bf-frage.ist-zu + .pal-bf-frage.ist-auf { margin-top: 18px; }
#ps-sub .pal-bf-frage legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: 19px; font-weight: var(--ps-staerke-betont); line-height: var(--ps-zeile-eng); }
#ps-sub .pal-bf-frage.ist-zu legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
#ps-sub .pal-bf-frage__inhalt { clear: both; }
#ps-sub .pal-bf-frage__zeile { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-frage__wert { color: var(--ps-farbe-text); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf-frage__wert::before {
	content: ""; display: inline-block; width: 6px; height: 11px; margin: 0 12px 0 3px;
	border: solid var(--ps-farbe-erledigt); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-2px);
}

#ps-sub .pal-bf-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#ps-sub .pal-bf-wahl--ek { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#ps-sub .pal-bf-wahl label { position: relative; display: flex; margin: 0; cursor: pointer; }
#ps-sub .pal-bf-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#ps-sub .pal-bf-wahl label > span {
	display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 56px; padding: 8px 12px;
	border: 1px solid var(--ps-grau-300, #C9CDD6); border-radius: var(--ps-radius, 4px); background: var(--ps-farbe-flaeche);
	color: var(--ps-farbe-text); font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-eng);
}
#ps-sub .pal-bf-wahl small { margin-top: 3px; color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); }
#ps-sub .pal-bf-wahl label:hover > span { border-color: var(--ps-farbe-kopf); }
#ps-sub .pal-bf-wahl input:focus-visible + span { outline: 3px solid var(--ps-farbe-fokus); outline-offset: 2px; }
#ps-sub .pal-bf-wahl input:checked + span { border: 2px solid var(--ps-farbe-kopf); padding: 7px 11px; color: var(--ps-farbe-kopf); font-weight: var(--ps-staerke-betont); }

#ps-sub .pal-bf-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#ps-sub .pal-bf-feld { display: grid; gap: 6px; min-width: 0; }
#ps-sub .pal-bf-feld label { color: var(--ps-farbe-kopf); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf select, #ps-sub .pal-bf input[type="number"], #ps-sub .pal-bf input[type="text"], #ps-sub .pal-bf input[type="tel"], #ps-sub .pal-bf input[type="email"] {
	width: 100%; min-height: 46px; margin: 0; padding: 8px 12px; border: 1px solid var(--ps-grau-300, #C9CDD6); border-radius: var(--ps-radius, 4px);
	background: var(--ps-farbe-flaeche); color: var(--ps-farbe-text); font: inherit; font-size: 16px; box-shadow: none;
}
#ps-sub .pal-bf select:focus-visible, #ps-sub .pal-bf input:focus-visible, #ps-sub .pal-bf button:focus-visible, #ps-sub .pal-bf a:focus-visible { outline: 3px solid var(--ps-farbe-fokus); outline-offset: 2px; }
#ps-sub .pal-bf input[readonly] { background: var(--ps-farbe-flaeche-2); }
#ps-sub .pal-bf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
#ps-sub .pal-bf-zeile .pal-bf-feld { flex: 1 1 260px; }
#ps-sub .pal-bf-hinweis { margin-top: 8px !important; color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); line-height: var(--ps-zeile-klein); }
#ps-sub .pal-bf-hinweis--warn { color: var(--ps-farbe-fehler); }

/* Knöpfe */
#ps-sub .pal-bf-knopf {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0; padding: 8px 20px;
	border: 2px solid var(--ps-farbe-aktion); border-radius: var(--ps-knopf-radius, 4px); background: var(--ps-farbe-aktion); color: #fff;
	font-family: var(--ps-font-head); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-knopf); line-height: var(--ps-zeile-eng);
	text-decoration: none; cursor: pointer; transition: background var(--ps-dauer-kurz), transform var(--ps-dauer-kurz);
}
#ps-sub .pal-bf-knopf:hover { background: var(--ps-farbe-aktion-hover); border-color: var(--ps-farbe-aktion-hover); color: #fff; }
#ps-sub .pal-bf-knopf:active { transform: translateY(1px); }
#ps-sub .pal-bf-knopf[disabled] { border-color: var(--ps-grau-300); background: var(--ps-grau-100); color: var(--ps-grau-600); cursor: not-allowed; }
#ps-sub .pal-bf-knopf--zwei { background: var(--ps-farbe-flaeche); color: var(--ps-farbe-aktion); }
#ps-sub .pal-bf-knopf--zwei:hover { background: var(--ps-blue-100, #E2EDF4); color: var(--ps-farbe-aktion-hover); }
#ps-sub .pal-bf-knopf .pal-bf-motiv { width: 20px; height: 20px; image-rendering: pixelated; flex: 0 0 auto; }
#ps-sub .pal-bf-link { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--ps-farbe-link); font: inherit; font-weight: var(--ps-staerke-betont); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#ps-sub .pal-bf-link:hover { color: var(--ps-farbe-link-hover); }

/* ⓘ-Münze (E-08), wie geld-rechner.css */
#ps-sub .pal-bf-info { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -8px 0 -8px 2px; padding: 0; border: 0; border-radius: var(--ps-radius, 4px); background: transparent; cursor: pointer; vertical-align: middle; }
#ps-sub .pal-bf-info i { display: block; width: 16px; height: 16px; background: var(--pal-bf-muenze) center / contain no-repeat; image-rendering: pixelated; }
@media (prefers-reduced-motion: no-preference) {
	#ps-sub .pal-bf-info i { animation: pal-bf-schimmer 4.5s ease-in-out infinite; }
	@keyframes pal-bf-schimmer { 0%, 82%, 100% { filter: none; } 90% { filter: brightness(1.25) saturate(1.1); } }
}
#ps-sub .pal-bf-infotext { margin: 8px 0 0 !important; padding: 12px 16px; border-radius: var(--ps-radius, 4px); background: var(--ps-farbe-flaeche-2); color: var(--ps-farbe-text); font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-klein); }

/* ---------- Ergebnis ---------- */
#ps-sub .pal-bf-ergebnis { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ps-farbe-rand); }
#ps-sub .pal-bf-betrag-wort { color: var(--ps-farbe-leise); font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-betrag { margin: 2px 0 0 !important; color: var(--ps-farbe-kopf); font-family: var(--ps-font-zahl); font-size: clamp(30px, 4.6vw, 44px); font-weight: var(--ps-staerke-kopf-gross); font-variant-numeric: tabular-nums; line-height: 1.08; }
#ps-sub .pal-bf-betrag.ist-text { font-size: clamp(24px, 3vw, 30px); }
#ps-sub .pal-bf-grundzeile { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
#ps-sub .pal-bf-grundzeile p { font-size: var(--ps-gr-klein); }
/* Restdienstzeit-Ampel als Pixel-Signal: drei Lampen, eine leuchtet */
#ps-sub .pal-bf-ampel { flex: 0 0 auto; display: grid; grid-template-rows: repeat(3, 8px); gap: 2px; width: 14px; padding: 2px; margin-top: 2px; background: var(--ps-navy, #1E2748); }
#ps-sub .pal-bf-ampel i { display: block; width: 10px; height: 8px; background: #3e414c; }
#ps-sub .pal-bf-ampel--voll i:nth-child(3) { background: #7FA05E; }
#ps-sub .pal-bf-ampel--teil i:nth-child(2) { background: #DCD3A0; }
#ps-sub .pal-bf-ampel--null i:nth-child(1) { background: #d8675c; }
#ps-sub .pal-bf-wege { margin-top: 14px; padding: 14px 16px; border-radius: var(--ps-radius, 4px); background: var(--ps-farbe-flaeche-2); }
#ps-sub .pal-bf-wege__titel { color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf ul, #ps-sub .pal-bf ol { margin: 0; padding: 0; list-style: none; }
#ps-sub .pal-bf li { margin: 0; padding: 0; }
#ps-sub .pal-bf li::before { content: none !important; display: none !important; }
#ps-sub .pal-bf-wege ul { display: grid; gap: 8px; margin-top: 8px; }
#ps-sub .pal-bf-wege li { font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-klein); }

#ps-sub .pal-bf table.pal-bf-aufst { display: table; width: 100%; margin: 16px 0 0; border: 0; border-collapse: collapse; background: none; font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-aufst th, #ps-sub .pal-bf-aufst td { padding: 8px 0; border: 0; border-bottom: 1px solid var(--ps-farbe-rand); background: none; color: var(--ps-farbe-text); font-weight: var(--ps-staerke-text); text-align: left; vertical-align: top; }
#ps-sub .pal-bf-aufst td { padding-left: 16px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Zeitachse Laufbahn × Zinsbindung */
#ps-sub .pal-bf-achse { margin-top: 22px; }
#ps-sub .pal-bf-achse__titel { color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf-achse__band { position: relative; height: 26px; margin: 12px 6px 6px; }
#ps-sub .pal-bf-achse__band > span { position: absolute; left: 0; height: 6px; }
#ps-sub .pal-bf-achse__dienst { top: 3px; background: var(--ps-bronze-500, #56694A); }
#ps-sub .pal-bf-achse__ueg { top: 3px; background: var(--ps-bronze-300, #A9B793); }
#ps-sub .pal-bf-achse__bind { top: 15px; background: var(--ps-blue, #105681); opacity: .85; }
#ps-sub .pal-bf-achse__marke { position: absolute; top: -2px; width: 4px; height: 30px; margin-left: -2px; background: var(--ps-navy, #1E2748); }
#ps-sub .pal-bf-achse__marke--heute { background: var(--ps-grau-600); }
#ps-sub .pal-bf-achse__kern { margin-top: 6px !important; font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-klein); }
#ps-sub .pal-bf-achse__liste { display: grid; gap: 6px; margin-top: 8px !important; }
#ps-sub .pal-bf-achse__punkt { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-klein); }
#ps-sub .pal-bf-achse__wann { grid-row: span 2; color: var(--ps-farbe-leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
#ps-sub .pal-bf-achse__was { color: var(--ps-farbe-text); }
#ps-sub .pal-bf-achse__legende { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); }
#ps-sub .pal-bf-achse__legende i { display: inline-block; width: 14px; height: 6px; margin-right: 6px; vertical-align: 2px; }

#ps-sub .pal-bf-genauer { margin-top: 18px; border-top: 1px solid var(--ps-farbe-rand); padding-top: 12px; }
#ps-sub .pal-bf-genauer summary { color: var(--ps-farbe-link); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); cursor: pointer; }
#ps-sub .pal-bf-genauer .pal-bf-felder { margin-top: 12px; }
#ps-sub .pal-bf-fuss { margin-top: 14px !important; color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); line-height: var(--ps-zeile-klein); }
#ps-sub .pal-bf-akte { margin-top: 18px; }
#ps-sub .pal-bf-akte-drin { margin-top: 18px !important; font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-akte-drin::before { content: ""; display: inline-block; width: 6px; height: 11px; margin: 0 12px 0 4px; border: solid var(--ps-farbe-erledigt); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* ---------- Nächster Schritt: Kontakt ---------- */
#ps-sub .pal-bf-kontakt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ps-farbe-rand); }
#ps-sub .pal-bf-kontakt__kopf { display: flex; align-items: center; gap: 14px; }
#ps-sub .pal-bf-kontakt__name { color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: 19px; font-weight: var(--ps-staerke-betont); line-height: var(--ps-zeile-eng); }
#ps-sub .pal-bf-kontakt__rolle { color: var(--ps-farbe-leise); font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-kontakt__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#ps-sub .pal-bf-weg { margin-top: 18px; padding: 20px; border: 1px solid var(--ps-farbe-rand); border-radius: var(--ps-radius, 4px); background: var(--ps-farbe-flaeche-2); }
#ps-sub .pal-bf-form { display: grid; gap: 16px; }
#ps-sub .pal-bf-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#ps-sub .pal-bf-form legend { margin-bottom: 8px; padding: 0; color: var(--ps-farbe-kopf); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf-form .pal-bf-wahl { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#ps-sub .pal-bf-form .pal-bf-wahl label > span { min-height: 46px; }
#ps-sub .pal-bf-form__eck { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 14px; border-radius: var(--ps-radius, 4px); background: var(--ps-farbe-flaeche); border: 1px dashed var(--ps-grau-300); }
#ps-sub .pal-bf-form__eck-titel { grid-column: 1 / -1; color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); }
#ps-sub .pal-bf-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-klein); }
#ps-sub .pal-bf-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ps-navy); }
#ps-sub .pal-bf-form__meldung { padding: 10px 14px; border-radius: var(--ps-radius, 4px); background: var(--ps-bronze-100, #E7EBE0); font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-form__recht { color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); line-height: var(--ps-zeile-klein); }

/* ---------- Seite: Pixelhaus + Bankfertig ---------- */
#ps-sub .pal-bf-szene { display: block; width: 100%; max-width: 336px; height: auto; margin: 0 auto; image-rendering: pixelated; }
@media (prefers-reduced-motion: no-preference) {
	#ps-sub .pal-bf-stufe.ist-neu { animation: pal-bf-bau 1.1s steps(6, end) both; }
	@keyframes pal-bf-bau { from { transform: translateY(-3px); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
}
#ps-sub .pal-bf-stand { margin-top: 18px; }
#ps-sub .pal-bf-szene-titel { margin-top: 10px !important; color: var(--ps-farbe-leise); font-size: var(--ps-gr-klein); text-align: center; }
#ps-sub .pal-bf-stand__zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#ps-sub .pal-bf-stand__wort { color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: 19px; font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf-stand__zahl { color: var(--ps-farbe-kopf); font-family: var(--ps-font-zahl); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
#ps-sub .pal-bf-steine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
#ps-sub .pal-bf-steine i { display: block; height: 12px; background: var(--ps-farbe-flaeche); box-shadow: inset 0 0 0 2px var(--ps-grau-300); }
#ps-sub .pal-bf-steine i.ist-vor { box-shadow: inset 0 0 0 2px var(--ps-farbe-link); }
#ps-sub .pal-bf-steine i.ist-ja { background: var(--ps-bronze-500, #56694A); box-shadow: inset 0 -3px 0 var(--ps-bronze-900, #2C3529); }
#ps-sub .pal-bf-fertig { margin-top: 14px !important; font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-akte-hinweis { margin-top: 14px !important; color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); }

/* ---------- Lage in Kürze unter dem Rechner ---------- */

/* ---------- Ablauf (Marschroute statt nummerierter Kästen) ---------- */
#ps-sub .pal-bf-route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin: 28px 0 8px; padding: 0; list-style: none; }
/* Sieben Schritte (Jana 18.10.2026): 4 + 3 Spalten, gepunktete Linie je Zeile vom Wegpunkt zum nächsten */
#ps-sub .pal-bf-route li::after { content: ""; position: absolute; top: 9px; left: 24px; right: -16px; height: 0; border-top: 3px dotted var(--ps-bronze-300, #A9B793); }
#ps-sub .pal-bf-route li:nth-child(4n)::after, #ps-sub .pal-bf-route li:last-child::after { content: none; }
#ps-sub .pal-bf-route li { position: relative; margin: 0; padding: 30px 0 0; }
#ps-sub .pal-bf-route li::before { content: none !important; }
#ps-sub .pal-bf-route .pal-bf-route__wegpunkt { position: absolute; top: 0; left: 0; width: 20px; height: 20px; image-rendering: pixelated; }
#ps-sub .pal-bf-route b { display: block; color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: 18px; font-weight: var(--ps-staerke-betont); line-height: var(--ps-zeile-eng); }
#ps-sub .pal-bf-route span { display: block; margin-top: 6px; color: var(--ps-farbe-text); font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-klein); }

/* Nachweis-Box: Bankfertig-Gruppe */
#ps-sub .pal-bf-gruppe { margin: 18px 0 6px !important; color: var(--ps-farbe-kopf); font-family: var(--ps-font-head); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf-punkt.ist-ja .ps-punkt__titel { color: var(--ps-farbe-erledigt); }
#ps-sub .pal-bf-punkt__rechner { margin-top: 8px !important; font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-punkt__notiz { margin-top: 8px !important; font-size: var(--ps-gr-fein); color: var(--ps-farbe-leise); }

/* Prototyp-Hinweis über der Kopfleiste (nicht live) */

/* ---------- Schmal ---------- */
@media (max-width: 1080px) {
	#ps-sub .pal-bf { grid-template-columns: minmax(0, 1fr); }
	#ps-sub .pal-bf__seite { border-left: 0; border-top: 1px solid var(--ps-farbe-rand); border-radius: 0 0 var(--ps-radius-lg, 8px) var(--ps-radius-lg, 8px); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 28px; align-items: start; }
	#ps-sub .pal-bf__seite .pal-bf-szene { grid-row: span 3; }
	#ps-sub .pal-bf-stand { margin-top: 0; }
	#ps-sub .pal-bf-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#ps-sub .pal-bf-route li::after { display: none; }
}
@media (max-width: 760px) {
	#ps-sub .pal-bf-kopf { padding-block: 16px 4px; }
	#ps-sub .pal-bf-kopf__zeile { grid-template-columns: minmax(0, 1fr); }
	#ps-sub .pal-bf-kopf__knoepfe { order: 3; justify-content: flex-start; padding-top: 0; }
	#ps-sub .pal-bf-kopf__knoepfe .ps-btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
	#ps-sub .pal-bf-sec { padding-block: 8px 0; }
	#ps-sub .pal-bf__haupt { padding: 20px 16px 24px; }
	#ps-sub .pal-bf__seite { padding: 20px 16px 24px; grid-template-columns: minmax(0, 1fr); }
	#ps-sub .pal-bf__seite .pal-bf-szene { grid-row: auto; }
	#ps-sub .pal-bf-wahl { grid-template-columns: minmax(0, 1fr); }
	#ps-sub .pal-bf-wahl--ek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#ps-sub .pal-bf-felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	#ps-sub .pal-bf-felder .pal-bf-feld--breit { grid-column: 1 / -1; }
	#ps-sub .pal-bf table.pal-bf-aufst, #ps-sub .pal-bf-aufst tbody, #ps-sub .pal-bf-aufst tr { display: block; }
	#ps-sub .pal-bf-aufst tr { padding: 8px 0; border-bottom: 1px solid var(--ps-farbe-rand); }
	#ps-sub .pal-bf-aufst th, #ps-sub .pal-bf-aufst td { display: block; padding: 0; border: 0; }
	#ps-sub .pal-bf-aufst td { padding: 2px 0 0; text-align: left; font-weight: var(--ps-staerke-betont); }
	#ps-sub .pal-bf-achse__punkt { grid-template-columns: 76px minmax(0, 1fr); }
	#ps-sub .pal-bf-kontakt__knoepfe .pal-bf-knopf { width: 100%; }
	#ps-sub .pal-bf-route { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	#ps-sub .pal-bf-route li { padding: 0 0 12px 34px; }
	#ps-sub .pal-bf-route .pal-bf-route__wegpunkt { top: 2px; }
}

/* Unterlagen-Liste im Bankfertig-Punkt (ersetzt PDF per Mail, Musk-Prüfung 15.10.) */
#ps-sub .pal-bf-unterlagen { margin-top: 10px; }
#ps-sub .pal-bf-unterlagen summary { cursor: pointer; color: var(--ps-farbe-link); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf-unterlagen__gruppe { margin-top: 10px !important; color: var(--ps-farbe-kopf); font-size: var(--ps-gr-klein); font-weight: var(--ps-staerke-betont); }
#ps-sub .pal-bf-unterlagen ul { margin: 4px 0 0 18px; padding: 0; list-style: disc; }
#ps-sub .pal-bf-unterlagen li { font-size: var(--ps-gr-klein); line-height: var(--ps-zeile-klein); }

/* Mitwanderndes Haus an der Checkliste (Mauritz 15.10.: Haken → Haus baut sich sichtbar auf) */
#ps-sub .pal-bf-wache { display: grid; gap: 10px; padding: 18px 18px 20px; border: 1px solid var(--ps-farbe-rand); border-radius: var(--ps-radius-lg, 8px); background: var(--ps-farbe-flaeche-2); }
#ps-sub .pal-bf-wache .pal-bf-szene { max-width: 100%; }
#ps-sub .pal-bf-wache__hinweis { margin: 0 !important; color: var(--ps-farbe-leise); font-size: var(--ps-gr-fein); }
#ps-sub .pal-bf-wache.ist-fertig .pal-bf-wache__hinweis::after { content: " Alle sieben: stabiles Fundament."; }
@media (min-width: 1081px) {
	#ps-sub .ps-nachweis-seite { display: grid; grid-template-columns: minmax(0, 660px) 280px; justify-content: center; align-items: start; gap: 40px; }
	#ps-sub .ps-nachweis-seite .ps-punkte { margin: 0; }
	#ps-sub .pal-bf-wache { position: sticky; top: 24px; }
}
@media (max-width: 1080px) {
	/* schmal: Leiste am unteren Rand, solange die Checkliste im Bild ist */
	#ps-sub .pal-bf-wache { position: sticky; bottom: 0; z-index: 5; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; max-width: 660px; margin: 16px auto 0;
		padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)) 80px;   /* links frei für den runden Dienstweg-Knopf der Seite */ border-radius: var(--ps-radius-lg, 8px) var(--ps-radius-lg, 8px) 0 0; box-shadow: 0 -4px 14px rgba(30, 39, 72, .12); }
	#ps-sub .pal-bf-wache .pal-bf-figur { display: none; }
	#ps-sub .pal-bf-wache .pal-bf-stand__wort { font-size: 16px; }
	#ps-sub .pal-bf-wache .pal-bf-stand__zahl { font-size: 18px; }
	#ps-sub .pal-bf-wache .pal-bf-steine { margin-top: 4px; }
	#ps-sub .pal-bf-wache__hinweis { display: none; }
}

/* ---------- Livefassung (bau_live.py): CF7-Formular, Kasten aus artikel.js ---------- */
#ps-sub .pal-bf-form .wpcf7-form-control-wrap { display: block; }
#ps-sub .pal-bf-wahl .wpcf7-form-control-wrap, #ps-sub .pal-bf-wahl .wpcf7-radio { display: contents; }
#ps-sub .pal-bf-wahl .wpcf7-list-item { display: flex; margin: 0; }
#ps-sub .pal-bf-wahl .wpcf7-list-item > label { width: 100%; }
#ps-sub .pal-bf-form .wpcf7-not-valid-tip { display: block; margin-top: 4px; color: #9E2F29; font-size: var(--ps-gr-fein); }
#ps-sub .pal-bf-wahl .wpcf7-not-valid-tip { grid-column: 1 / -1; }
#ps-sub .pal-bf-form .wpcf7-response-output { margin: 0; padding: 10px 14px; border: 0; border-radius: var(--ps-radius, 4px); background: var(--ps-bronze-100, #E7EBE0); font-size: var(--ps-gr-klein); }
#ps-sub .pal-bf-form .wpcf7-spinner { vertical-align: middle; }
#ps-sub .pal-bf-weg .wpcf7 p { margin: 0; }
#ps-sub .pal-bf-weg .wpcf7 { margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }   /* Theme: CF7 als Karte (Kontaktseite) */
#ps-sub .pal-bf-weg .wpcf7::before { content: none; }
#ps-sub .pal-bf-weg .wpcf7-form { grid-template-columns: minmax(0, 1fr); gap: 16px; }
#ps-sub .pal-bf-weg .wpcf7-form input[type="text"], #ps-sub .pal-bf-weg .wpcf7-form input[type="tel"], #ps-sub .pal-bf-weg .wpcf7-form select { margin-top: 4px; }
#ps-sub .pal-bf-wahl .wpcf7-list-item-label::before, #ps-sub .pal-bf-wahl .wpcf7-list-item-label::after { content: none; }
#ps-sub .pal-bf-weg .wpcf7-form input[type="submit"]:hover { transform: none; }
#ps-sub .ps-nachweis-seite.pal-bf-mit-wache { position: relative; }
#ps-sub .ps-nachweis-seite.pal-bf-mit-wache > .ps-lese-ende { position: absolute; top: 0; left: 0; }
