/*
Theme Name: Baufineo
Theme URI: https://baufineo.de
Author: Baufineo GmbH
Description: Block-Theme für die Baufineo GmbH, Baufinanzierung in Fürth. Alle Bereiche der Startseite sind als Muster (Patterns) im Editor bearbeitbar. Schriften liegen lokal im Theme.
Version: 1.3.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baufineo
*/

:root {
	--bf-green: #056a3a;
	--bf-bright: #00d970;
	--bf-ink: #11120d;
	--bf-soft: #f1f6f3;
	--bf-text: #14201a;
	--bf-muted: #4f5d56;
	--bf-line: #dbe5de;
	--bf-on-dark: #eef4f0;
	--bf-on-dark-muted: #b4c3ba;
	--bf-dark-line: #26332b;
	--bf-ph: #fff3c4;
	--bf-ph-line: #c9ae2c;
	--bf-shadow: 0 10px 34px rgba(17, 18, 13, 0.12);
	--bf-gutter: max(20px, calc((100% - 1160px) / 2));
	--bf-display: var(--wp--preset--font-family--heading, Poppins, "Segoe UI", system-ui, sans-serif);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

a:focus-visible,
.wp-block-button__link:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--bf-bright);
	outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
	border: 2px solid transparent;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 217, 112, 0.3);
}

.wp-block-button.is-style-bf-green .wp-block-button__link {
	background: var(--bf-green);
	color: #fff;
}

.wp-block-button.is-style-bf-green .wp-block-button__link:hover {
	box-shadow: 0 8px 20px rgba(5, 106, 58, 0.35);
}

.wp-block-button.is-style-bf-ink .wp-block-button__link {
	background: var(--bf-ink);
	color: #fff;
}

.wp-block-button.is-style-bf-ink .wp-block-button__link:hover {
	box-shadow: 0 8px 20px rgba(17, 18, 13, 0.3);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	box-shadow: none;
}

.bf-actions {
	gap: 12px;
}

/* Kein Blockabstand zwischen Kopfbereich, Inhalt und Fußbereich */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ---------- Kopfbereich ---------- */
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.bf-header {
	padding: 0 max(20px, calc((100% - 1160px) / 2));
	background: #fff;
	border-bottom: 1px solid var(--bf-line);
}

.bf-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	color: var(--bf-text);
}

.bf-bar > * {
	margin: 0;
}

.bf-bar-right {
	display: flex;
	align-items: center;
	gap: 22px;
}

.bf-bar-right > * {
	margin: 0;
}

.bf-bar-right .wp-block-button .wp-block-button__link {
	padding: 0.7rem 1.4rem;
	font-size: 0.93rem;
	white-space: nowrap;
}

/* Logo: Website-Titel wird als Bild dargestellt, der Text bleibt für Screenreader und Suchmaschinen erhalten */
.wp-block-site-title.bf-logo {
	--bf-logo-h: 38px;
	margin: 0;
	line-height: 0;
}

.wp-block-site-title.bf-logo a {
	display: block;
	width: calc(var(--bf-logo-h) * 4.523);
	height: var(--bf-logo-h);
	background: url("assets/images/logo-dark.png") left center / contain no-repeat;
	overflow: hidden;
	white-space: nowrap;
	text-indent: -9999px;
	color: transparent;
}

.wp-block-site-title.bf-logo-light a {
	background-image: url("assets/images/logo-light.png");
}

.bf-nav {
	font-size: 0.95rem;
	font-weight: 600;
}

.bf-nav .wp-block-navigation__container {
	gap: 22px;
}

.bf-nav a {
	text-decoration: none;
	color: var(--bf-text);
}

.bf-nav a:hover {
	color: var(--bf-green);
}

/* Menü bleibt auf allen Breiten sichtbar (nur drei Punkte) */
@media (max-width: 599px) {
	/* Handy: Logo und Button oben, die drei Menüpunkte als zweite Zeile */
	.bf-bar { flex-wrap: wrap; row-gap: 2px; padding: 10px 0 6px; }
	.bf-bar-right { display: contents; }
	.bf-bar-right .wp-block-buttons { order: 2; }
	nav.bf-nav { order: 3; flex: 1 0 100%; font-size: 0.9rem; border-top: 1px solid var(--bf-line); padding: 8px 0 2px; }
	.bf-nav { order: 3; flex: 1 0 100%; font-size: 0.9rem; }
	.bf-nav .wp-block-navigation__container { gap: 22px; justify-content: center; flex-wrap: nowrap; width: 100%; }
	.bf-nav .wp-block-navigation-item__content { white-space: nowrap; }
}

@media (max-width: 599px) {
	.bf-header {
		padding-inline: 8px;
	}

	.bf-bar {
		padding-left: 16px;
	}

	.bf-bar-right {
		gap: 6px;
	}

	.wp-block-site-title.bf-logo {
		--bf-logo-h: 30px;
	}

	.bf-bar-right .wp-block-button .wp-block-button__link {
		padding: 0.6rem 1rem;
		font-size: 0.85rem;
	}
}

/* ---------- Gemeinsame Bausteine ---------- */
.bf-section {
	padding-block: clamp(64px, 9vw, 120px);
	padding-inline: var(--bf-gutter);
}

.bf-section p {
	max-width: 62ch;
}

.bf-dark {
	color: var(--bf-on-dark);
}

.bf-dark a:not(.wp-block-button__link) {
	color: inherit;
}

.bf-lead {
	font-size: 1.15rem;
}

.bf-muted {
	color: var(--bf-muted);
}

/* Platzhalter, die noch ersetzt werden müssen */
.bf-todo {
	background: var(--bf-ph);
	border: 2px dashed var(--bf-ph-line);
	border-radius: 8px;
	padding: 0.4em 0.8em;
	color: #2a2610;
}

/* ---------- Hero ---------- */
.bf-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(70px, 9vw, 120px);
	background:
		radial-gradient(46% 60% at 80% 26%, rgba(0, 217, 112, 0.5) 0%, rgba(0, 217, 112, 0) 70%),
		radial-gradient(62% 82% at 96% 104%, rgba(5, 106, 58, 0.95) 0%, rgba(5, 106, 58, 0) 72%),
		radial-gradient(48% 58% at 0% 108%, rgba(5, 106, 58, 0.5) 0%, rgba(5, 106, 58, 0) 70%),
		var(--bf-ink);
}

@media (max-width: 899px) {
	.bf-hero {
		background:
			radial-gradient(circle 300px at 92% 6%, rgba(0, 217, 112, 0.42) 0%, rgba(0, 217, 112, 0) 100%),
			radial-gradient(circle 380px at 100% 100%, rgba(5, 106, 58, 0.9) 0%, rgba(5, 106, 58, 0) 100%),
			radial-gradient(circle 320px at 0% 100%, rgba(5, 106, 58, 0.5) 0%, rgba(5, 106, 58, 0) 100%),
			var(--bf-ink);
	}
}

.bf-hero .bf-hero-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-top: 22px;
	color: var(--bf-on-dark-muted);
	font-size: 0.95rem;
}

.bf-hero .bf-hero-rating strong {
	color: var(--bf-bright);
	font-weight: 400;
	letter-spacing: 0.12em;
}

.bf-hero h1 {
	color: #fff;
}

.bf-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 44px;
	align-items: center;
}

.bf-hero-grid > * {
	margin: 0;
}

.bf-hero .bf-lead {
	margin-top: 22px;
	color: var(--bf-on-dark-muted);
	font-size: 1.2rem;
}

.bf-hero .bf-actions {
	margin-top: 32px;
}

.bf-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.bf-facts li {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--bf-dark-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.92rem;
}

.bf-art {
	width: 100%;
	max-width: 420px;
	justify-self: center;
}

.bf-art svg {
	display: block;
	width: 100%;
	height: auto;
}

.bf-art .roof,
.bf-art .ln {
	stroke-dasharray: 1;
	animation: bf-draw 1.6s 0.2s cubic-bezier(0.6, 0.1, 0.2, 1) both;
}

.bf-art .ln1 {
	animation-delay: 0.9s;
	animation-duration: 1.4s;
}

.bf-art .ln2 {
	animation-delay: 1.15s;
	animation-duration: 1.4s;
}

.bf-art .dot {
	transform-box: fill-box;
	transform-origin: center;
	animation: bf-pop 0.6s 1.7s cubic-bezier(0.3, 1.6, 0.5, 1) both, bf-pulse 2.8s 2.6s ease-out infinite;
}

@keyframes bf-draw {
	from {
		stroke-dashoffset: 1;
	}

	to {
		stroke-dashoffset: 0;
	}
}

@keyframes bf-pop {
	from {
		opacity: 0;
		transform: scale(0);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes bf-pulse {
	0% {
		filter: drop-shadow(0 0 0 rgba(0, 217, 112, 0.7));
	}

	70%,
	100% {
		filter: drop-shadow(0 0 16px rgba(0, 217, 112, 0));
	}
}

/* Hero: Text erscheint gestaffelt, Hintergrund atmet langsam */
.bf-hero-text > * {
	animation: bf-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.bf-hero-text > :nth-child(1) {
	animation-delay: 0.05s;
}

.bf-hero-text > :nth-child(2) {
	animation-delay: 0.22s;
}

.bf-hero-text > :nth-child(3) {
	animation-delay: 0.38s;
}

.bf-hero-text > :nth-child(4) {
	animation-delay: 0.52s;
}

.bf-hero-text > :nth-child(5) {
	animation-delay: 0.66s;
}

@keyframes bf-rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.bf-hero::before,
.bf-hero::after {
	content: "";
	position: absolute;
	z-index: 0;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}

.bf-hero::before {
	width: 46vw;
	max-width: 620px;
	aspect-ratio: 1;
	right: 4%;
	top: 4%;
	background: rgba(0, 217, 112, 0.28);
	animation: bf-drift 16s ease-in-out infinite alternate;
}

.bf-hero::after {
	width: 40vw;
	max-width: 520px;
	aspect-ratio: 1;
	left: -8%;
	bottom: -22%;
	background: rgba(5, 106, 58, 0.55);
	animation: bf-drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes bf-drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}

	to {
		transform: translate3d(-9%, 12%, 0) scale(1.18);
	}
}

.bf-art svg {
	animation: bf-float 7s 2.4s ease-in-out infinite alternate;
}

@keyframes bf-float {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(-12px);
	}
}

/* Leichter Parallax beim Scrollen, wo der Browser es kann */
@supports (animation-timeline: scroll()) {
	.bf-art {
		animation: bf-parallax linear both;
		animation-timeline: scroll(root);
		animation-range: 0 700px;
	}

	@keyframes bf-parallax {
		to {
			transform: translateY(70px);
		}
	}
}

@media (min-width: 900px) {
	.bf-hero-grid {
		grid-template-columns: 1.55fr 0.45fr;
	}
}

/* ---------- Rechner und Leistungen ---------- */
.bf-head {
	margin-bottom: 40px;
}

.bf-head > * {
	margin: 0;
}

.bf-tools {
	display: grid;
	gap: 18px;
}

.bf-tools > * {
	margin: 0;
}

@media (min-width: 800px) {
	.bf-tools {
		grid-template-columns: repeat(2, 1fr);
	}
}

.bf-tool {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	padding: 34px;
	overflow: hidden;
	border-radius: 12px;
	color: #fff;
	transition: transform 0.25s;
}

.bf-tool:hover {
	transform: translateY(-4px);
}

.bf-tool > * {
	margin: 0;
}

.bf-tool h3 {
	color: #fff;
}

.bf-tool p {
	color: #d3e6da;
}

.bf-tool-green {
	background: linear-gradient(150deg, #056a3a 0%, #04502c 100%);
}

.bf-tool-ink {
	background: var(--bf-ink);
}

.bf-tool-ink p {
	color: var(--bf-on-dark-muted);
}

.bf-tool .wp-block-buttons {
	margin-top: auto;
}

.bf-tool::after {
	content: "";
	position: absolute;
	top: -30px;
	right: -30px;
	width: 150px;
	height: 150px;
	border: 10px solid rgba(0, 217, 112, 0.22);
	border-radius: 50%;
	pointer-events: none;
}

.bf-ico {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 10px;
	background: var(--bf-bright);
}

.bf-ico svg {
	width: 28px;
	height: 28px;
	fill: var(--bf-ink);
}

.bf-list {
	margin-top: 56px;
	border-top: 1px solid var(--bf-line);
}

.bf-list > * {
	margin: 0;
}

.bf-row {
	display: grid;
	gap: 8px;
	padding: 26px 0;
	border-bottom: 1px solid var(--bf-line);
}

.bf-row > * {
	margin: 0;
}

.bf-row p {
	color: var(--bf-muted);
}

@media (min-width: 800px) {
	.bf-row {
		grid-template-columns: 320px 1fr;
		gap: 40px;
		align-items: baseline;
	}
}

.bf-sit {
	display: grid;
	gap: 16px;
	margin-top: 34px;
}

.bf-sit > * {
	margin: 0;
}

.bf-sit-item {
	display: grid;
	gap: 10px;
	align-content: start;
	min-width: 0;
	padding: 28px;
	border: 1px solid var(--bf-line);
	border-radius: 12px;
	background: #fff;
}

.bf-sit-item > * {
	margin: 0;
}

.bf-sit-item p {
	color: var(--bf-muted);
}

@media (min-width: 760px) {
	.bf-sit {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Ablauf ---------- */
.bf-flow {
	margin-inline: 12px;
	border-radius: 12px;
	background: var(--bf-ink);
}

.bf-flow h2 {
	color: #fff;
}

.bf-steps {
	counter-reset: bf-step;
}

.bf-steps > .bf-step {
	--bf-stick: calc(var(--wp-admin--admin-bar--height, 0px) + 112px);
	position: sticky;
	top: var(--bf-stick);
	margin: 0 0 20px;
	padding: 36px 36px 40px 128px;
	min-height: 210px;
	border: 1px solid var(--bf-dark-line);
	border-radius: 12px;
	background: linear-gradient(160deg, #18241c 0%, #101711 100%);
	counter-increment: bf-step;
}

.bf-steps > .bf-step:nth-child(2) {
	top: calc(var(--bf-stick) + 18px);
}

.bf-steps > .bf-step:nth-child(3) {
	top: calc(var(--bf-stick) + 36px);
	margin-bottom: 0;
}

.bf-step > * {
	margin: 0;
}

.bf-step h3 {
	color: #fff;
	font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}

.bf-step p {
	max-width: 52ch;
	margin-top: 10px;
	color: var(--bf-on-dark-muted);
}

.bf-step::before {
	content: counter(bf-step);
	position: absolute;
	top: 26px;
	left: 34px;
	color: transparent;
	font: 700 4.6rem/1 var(--bf-display);
	-webkit-text-stroke: 2px var(--bf-bright);
}

@media (max-width: 699px) {
	.bf-steps > .bf-step {
		padding: 88px 24px 28px;
		min-height: 0;
	}

	.bf-step::before {
		top: 18px;
		left: 24px;
		font-size: 3.4rem;
	}
}

/* ---------- Kreditangebot prüfen ---------- */
.bf-offer-section {
	padding-bottom: 0;
}

.bf-offer {
	display: grid;
	gap: 22px;
	align-items: center;
	padding: 44px 28px;
	border-radius: 12px;
	background: var(--bf-bright);
	color: var(--bf-ink);
}

.bf-offer > * {
	margin: 0;
}

.bf-offer h2 {
	margin-bottom: 12px;
}

.bf-offer p {
	color: #0b2a19;
}

@media (min-width: 900px) {
	.bf-offer {
		grid-template-columns: 1fr auto;
		padding: 52px 56px;
	}
}

/* ---------- Fürth ---------- */
.bf-fuerth {
	display: grid;
	gap: 40px;
	align-items: center;
}

.bf-fuerth > * {
	margin: 0;
}

.bf-fuerth-text > * + * {
	margin-top: 16px;
}

.bf-fuerth-text .bf-actions {
	margin-top: 24px;
}

.bf-fcard {
	display: grid;
	gap: 14px;
	min-width: 0;
	padding: 32px;
	border: 1px solid var(--bf-line);
	border-radius: 12px;
	background: #fff;
}

.bf-fcard > * {
	margin: 0;
}

.bf-fcard a {
	font-weight: 600;
	text-decoration: none;
}

.bf-fcard a:hover {
	text-decoration: underline;
}

@media (min-width: 900px) {
	.bf-fuerth {
		grid-template-columns: 1.2fr 0.8fr;
		gap: 64px;
	}
}

/* ---------- Über uns ---------- */
.bf-about {
	display: grid;
	gap: 40px;
	align-items: center;
}

.bf-about > * {
	margin: 0;
}

.bf-about-text > * + * {
	margin-top: 16px;
}

.bf-portrait {
	position: relative;
	width: 100%;
	max-width: 380px;
	margin: 0;
}

.bf-portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1.08;
	object-fit: cover;
	clip-path: url("#bf-house");
}

.bf-portrait img:not([src]),
.bf-portrait img[src=""] {
	background: var(--bf-ph);
}

.bf-team {
	display: grid;
	gap: 40px;
	margin-top: 64px;
	padding-top: 56px;
	border-top: 1px solid var(--bf-line);
}

.bf-member {
	display: grid;
	gap: 20px;
	align-items: center;
	grid-template-columns: 120px 1fr;
}

.bf-member > * {
	margin: 0;
}

.bf-member .bf-portrait {
	max-width: 120px;
}

.bf-member-text > * + * {
	margin-top: 6px;
}

.bf-member-text h3 {
	margin: 0;
	font-size: 1.15rem;
}

.bf-role {
	color: var(--bf-muted);
}

@media (min-width: 900px) {
	.bf-team {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		gap: 56px;
	}

	.bf-member {
		grid-template-columns: 160px 1fr;
		gap: 28px;
		align-items: start;
	}

	.bf-member .bf-portrait {
		max-width: 160px;
	}
}

.bf-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.bf-reg {
	color: var(--bf-muted);
	font-size: 0.95rem;
}

@media (min-width: 900px) {
	.bf-about {
		grid-template-columns: 380px 1fr;
		gap: 72px;
	}
}

/* ---------- Bewertungen ---------- */
.bf-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 26px 0 28px;
}

.bf-rating > * {
	margin: 0;
}

.bf-score {
	font: 700 3.2rem/1 var(--bf-display);
	letter-spacing: -0.03em;
}

.bf-stars {
	color: var(--bf-green);
	font-size: 1.25rem;
	letter-spacing: 0.12em;
	line-height: 1.2;
}

.bf-rating-text {
	color: var(--bf-muted);
	font-size: 0.95rem;
}

.wp-block-quote.bf-quote {
	margin: 0;
	padding: 30px;
	border: 1px solid var(--bf-line);
	border-radius: 12px;
	background: #fff;
	font-size: 1.08rem;
}

.wp-block-quote.bf-quote.bf-todo {
	border: 2px dashed var(--bf-ph-line);
	background: var(--bf-ph);
}

.wp-block-quote.bf-quote cite {
	color: var(--bf-muted);
	font-size: 0.9rem;
	font-style: normal;
}

/* ---------- FAQ ---------- */
.bf-faq {
	max-width: 860px;
	margin-top: 34px;
	border-top: 1px solid var(--bf-line);
}

.bf-faq > * {
	margin: 0;
}

.wp-block-details.bf-faq-item {
	margin: 0;
	border-bottom: 1px solid var(--bf-line);
}

.bf-faq-item summary {
	position: relative;
	padding: 22px 44px 22px 0;
	font: 700 1.08rem/1.35 var(--bf-display);
	letter-spacing: -0.01em;
	list-style: none;
	cursor: pointer;
}

.bf-faq-item summary::-webkit-details-marker {
	display: none;
}

.bf-faq-item summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	color: var(--bf-green);
	font: 600 1.7rem/1 var(--wp--preset--font-family--body, sans-serif);
}

.bf-faq-item[open] summary::after {
	content: "\2013";
}

.bf-faq-item p {
	max-width: 70ch;
	margin: 0;
	padding: 0 0 24px;
	color: var(--bf-muted);
}

/* ---------- Kontakt-Abschluss ---------- */
.bf-contact {
	display: grid;
	gap: 28px;
	align-items: center;
	margin-inline: 12px;
	padding: 56px 26px;
	border-radius: 12px;
	background: var(--bf-green);
	color: #fff;
}

.bf-contact > * {
	margin: 0;
}

.bf-contact h2 {
	margin-bottom: 14px;
	color: #fff;
}

.bf-contact p {
	max-width: 52ch;
	color: #dcefe4;
}

@media (min-width: 900px) {
	.bf-contact {
		grid-template-columns: 1.2fr 0.8fr;
		gap: 56px;
		padding: 68px 64px;
	}

	.bf-contact .wp-block-buttons {
		justify-content: flex-end;
	}
}

/* ---------- Fußbereich ---------- */
.bf-footer {
	padding: 56px var(--bf-gutter) 34px;
	color: var(--bf-muted);
	font-size: 0.93rem;
}

.bf-footer-cols {
	display: grid;
	gap: 28px;
}

.bf-footer-cols > * {
	margin: 0;
}

.bf-footer-cols > div > * + * {
	margin-top: 8px;
}

.bf-footer h3 {
	color: var(--bf-text);
	font-size: 1rem;
}

.bf-footer a {
	color: inherit;
	text-decoration: none;
}

.bf-footer a:hover {
	text-decoration: underline;
}

.bf-legal {
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px solid var(--bf-line);
	font-size: 0.88rem;
}

.bf-legal p {
	max-width: none;
	margin: 0 0 8px;
}

@media (min-width: 760px) {
	.bf-footer-cols {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Normale Seiten und Beiträge ---------- */
.bf-page {
	padding: 64px 20px 96px;
}

/* Seiten ohne Titel: Beginnt der Inhalt nicht mit einem Vollbild-Abschnitt, Platz für die Kopfzeile lassen */
.bf-open .wp-block-post-content > :first-child:not(.alignfull) {
	margin-top: 56px;
}

.bf-page .wp-block-post-title {
	margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.bf-art .roof,
	.bf-art .ln,
	.bf-art .dot,
	.bf-art svg,
	.bf-art,
	.bf-hero-text > *,
	.bf-hero::before,
	.bf-hero::after {
		animation: none;
	}

	.wp-block-button .wp-block-button__link {
		transition: none;
	}

	.wp-block-button .wp-block-button__link:hover {
		transform: none;
	}
}

/* Abschnitte, die direkt auf einen weißen Abschnitt folgen */
.bf-section.bf-section-cont {
	padding-top: 0;
}

/* ---------- Feinschliff: Hero, Vertrauensstreifen, Icons, FAQ ---------- */
.bf-hero h1 {
	font-size: clamp(2.3rem, 6.4vw, 4.4rem);
	text-wrap: balance;
}

.bf-facts li {
	padding: 7px 14px;
	font-size: 0.9rem;
}

.bf-trust-wrap {
	position: relative;
	z-index: 2;
	margin-top: -46px;
	padding-inline: var(--bf-gutter);
}

.bf-trust {
	display: grid;
	gap: 0;
	border: 1px solid var(--bf-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--bf-shadow);
}

.bf-trust > * {
	margin: 0;
}

.bf-trust-item {
	display: grid;
	gap: 4px;
	align-content: center;
	padding: 22px 28px;
	border-top: 1px solid var(--bf-line);
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--bf-muted);
}

.bf-trust-item:first-child {
	border-top: 0;
}

.bf-trust-item > * {
	margin: 0;
}

.bf-trust-item strong {
	color: var(--bf-text);
}

.bf-trust-item .bf-trust-stars {
	color: var(--bf-green);
	font-size: 1.15rem;
	letter-spacing: 0.14em;
}

.bf-trust-item .bf-trust-stars strong {
	color: var(--bf-green);
	font-weight: 400;
}

@media (min-width: 900px) {
	.bf-trust {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.bf-trust-item {
		border-top: 0;
		border-left: 1px solid var(--bf-line);
	}

	.bf-trust-item:first-child {
		border-left: 0;
	}
}

.bf-trust-wrap + .bf-section {
	padding-top: clamp(64px, 8vw, 110px);
}

.bf-sit-ico {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 6px;
	border-radius: 10px;
	background: var(--bf-soft);
	color: var(--bf-green);
}

.bf-sit-ico svg {
	width: 24px;
	height: 24px;
}

.bf-step {
	overflow: hidden;
}

.bf-step-ico {
	position: absolute;
	top: 50%;
	right: clamp(24px, 6vw, 80px);
	display: none;
	width: 120px;
	height: 120px;
	transform: translateY(-50%);
	color: rgba(0, 217, 112, 0.22);
	pointer-events: none;
}

.bf-step-ico svg {
	width: 100%;
	height: 100%;
	stroke-width: 1.1;
}

@media (min-width: 700px) {
	.bf-step-ico {
		display: block;
	}
}

@media (min-width: 900px) {
	.bf-faq-grid {
		display: grid;
		grid-template-columns: 0.8fr 1.2fr;
		gap: 64px;
		align-items: start;
	}

	.bf-faq-intro {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 120px);
	}

	.bf-faq-grid .bf-faq {
		max-width: none;
		margin-top: 0;
	}
}

.bf-faq-grid > * {
	margin: 0;
}

.bf-faq-intro > * + * {
	margin-top: 18px;
}

.bf-faq-intro .bf-muted {
	max-width: 36ch;
}

@media (max-width: 899px) {
	.bf-faq-grid {
		display: grid;
		gap: 24px;
	}
}

#bewertungen > * + * {
	margin-top: 24px;
}

@media (max-width: 699px) {
	.bf-art {
		max-width: 230px;
	}
}

/* ---------- Budgetrechner (#bfr) ---------- */
#bfr {
	--ek: #00d970;
	--dl: #1f9d62;
	--nk: #8a9a91;
	max-width: none;
	margin: 0;
	color: var(--bf-text);
	font-size: 1rem;
	line-height: 1.5;
	color-scheme: light;
}

#bfr *,
#bfr *::before,
#bfr *::after {
	box-sizing: border-box;
}

#bfr .bfr-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

@media (max-width: 899px) {
	#bfr .bfr-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

#bfr .bfr-panel {
	margin: 0;
	padding: clamp(22px, 3vw, 36px);
	border: 1px solid var(--bf-line);
	border-radius: 12px;
	background: #fff;
}

#bfr .bfr-h {
	margin: 0 0 8px;
	font-family: var(--bf-display);
	font-size: clamp(1.3rem, 2.8vw, 1.7rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--bf-text);
	text-wrap: balance;
}

#bfr .bfr-lead {
	margin: 0 0 26px;
	max-width: 56ch;
	color: var(--bf-muted);
}

#bfr fieldset {
	display: grid;
	gap: 16px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

#bfr fieldset + fieldset {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--bf-line);
}

#bfr legend {
	width: auto;
	margin: 0 0 14px;
	padding: 0;
	color: var(--bf-green);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#bfr .row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 420px) {
	#bfr .row {
		grid-template-columns: minmax(0, 1fr);
	}
}

#bfr label {
	display: grid;
	gap: 6px;
	margin: 0;
	color: var(--bf-text);
	font-size: 0.95rem;
	font-weight: 600;
}

#bfr .hint {
	margin: 0;
	color: var(--bf-muted);
	font-size: 0.85rem;
	font-weight: 400;
}

#bfr .field {
	position: relative;
	display: block;
}

#bfr input[type="number"],
#bfr select {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 10px 44px 10px 16px;
	border: 1px solid var(--bf-line);
	border-radius: 8px;
	background-color: var(--bf-soft);
	box-shadow: none;
	color: var(--bf-text);
	font: inherit;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

#bfr select {
	padding-right: 16px;
}

#bfr .unit {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	color: var(--bf-muted);
	font-size: 0.9rem;
	pointer-events: none;
}

#bfr input:focus-visible,
#bfr select:focus-visible {
	outline: 3px solid var(--bf-bright);
	outline-offset: 1px;
	border-color: var(--bf-green);
}

#bfr .check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

#bfr .check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--bf-green);
}

/* Ergebnis: dunkle Karte wie der Hero */
#bfr .bfr-result {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px);
	border-color: var(--bf-dark-line);
	background:
		radial-gradient(70% 55% at 90% 0%, rgba(0, 217, 112, 0.28) 0%, rgba(0, 217, 112, 0) 70%),
		radial-gradient(80% 60% at 100% 110%, rgba(5, 106, 58, 0.9) 0%, rgba(5, 106, 58, 0) 70%),
		var(--bf-ink);
	color: var(--bf-on-dark);
}

@media (max-width: 899px) {
	#bfr .bfr-result {
		position: static;
	}
}

#bfr .eyebrow {
	margin: 0;
	color: var(--bf-bright);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#bfr .big {
	margin: 8px 0 4px;
	color: #fff;
	font-family: var(--bf-display);
	font-size: clamp(2.2rem, 6vw, 3.2rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

#bfr .sub {
	margin: 0 0 22px;
	color: var(--bf-on-dark-muted);
	font-size: 0.95rem;
}

#bfr .bar {
	display: flex;
	height: 12px;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.12);
}

#bfr .bar span {
	display: block;
	height: 100%;
	transition: width 0.3s ease;
}

#bfr .legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 20px;
	color: var(--bf-on-dark-muted);
	font-size: 0.85rem;
}

#bfr .legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border-radius: 3px;
	vertical-align: -1px;
}

#bfr dl {
	display: grid;
	margin: 0;
}

#bfr .line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--bf-dark-line);
}

#bfr .line:last-child {
	border-bottom: 0;
}

#bfr dt {
	margin: 0;
	color: var(--bf-on-dark-muted);
	font-weight: 400;
}

#bfr dd {
	margin: 0;
	color: #fff;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

#bfr .line.strong dt {
	color: var(--bf-on-dark);
	font-weight: 600;
}

#bfr .line .hint,
#bfr .result .hint {
	color: var(--bf-on-dark-muted);
}

#bfr .warn {
	margin: 16px 0 0;
	padding: 12px 16px;
	border: 1px solid rgba(0, 217, 112, 0.35);
	border-radius: 8px;
	background: rgba(0, 217, 112, 0.1);
	color: var(--bf-on-dark);
	font-size: 0.92rem;
}

#bfr [hidden] {
	display: none !important;
}

#bfr .cta,
#bfr .cta:visited {
	display: block;
	margin-top: 22px;
	padding: 15px 24px;
	border-radius: 8px;
	background: var(--bf-bright);
	color: var(--bf-ink);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease;
}

#bfr .cta:hover {
	color: var(--bf-ink);
	filter: brightness(1.06);
	transform: translateY(-2px);
}

#bfr .cta:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

#bfr .note {
	max-width: 70ch;
	margin: 18px 0 0;
	color: var(--bf-on-dark-muted);
	font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
	#bfr .bar span,
	#bfr .cta {
		transition: none;
	}
}

.bf-head + #bfr,
.bf-section > #bfr {
	margin-bottom: 8px;
}
