/* ==========================================================================
   Finest Invest – Designsystem
   Aufbau angelehnt an DKB Grund: weiße Basis, eine starke Markenfarbe,
   vollflächige Farbbänder, Bild + überlappende Karte, schräger Footer.
   ========================================================================== */

/* 1. Tokens
   ----------------------------------------------------------------------- */
:root {
	--fi-bordeaux: #5e1224;
	--fi-bordeaux-700: #4c0e1d;
	--fi-bordeaux-800: #3d0b17;
	--fi-bordeaux-600: #74203a;
	--fi-bordeaux-100: #f5ecee;
	--fi-bordeaux-50: #fbf7f8;
	--fi-ink: #231f20;
	--fi-text: #3a3335;
	--fi-muted: #6b6264;
	--fi-line: #e7e1df;
	--fi-line-strong: #cfc6c4;
	--fi-surface: #f6f3f1;
	--fi-white: #fff;
	--fi-success: #2f7a4f;
	--fi-warning: #8f5d12;
	--fi-danger: #b3261e;

	--fi-gold: #b1976b;
	--fi-gold-700: #7f6a45; /* Gold für Text auf Weiß/Fläche (Kontrast ≥ 4,5:1) */
	--fi-card-edge: #d9d1cf;

	--fi-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--fi-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fi-container: 1240px;
	--fi-content: 780px;
	--fi-gutter: clamp(16px, 4vw, 32px);
	--fi-section: clamp(64px, 8vw, 120px);
	--fi-radius: 3px;
	--fi-radius-lg: 4px;
	--fi-header-h: 88px;

	--fi-shadow-sm: 0 2px 8px rgb(35 15 22 / 7%);
	--fi-shadow: 0 4px 18px rgb(35 15 22 / 10%);
	--fi-shadow-lg: 0 12px 40px rgb(35 15 22 / 14%);
	--fi-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Basis
   ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--fi-header-h) + 16px); }

body {
	margin: 0;
	background: var(--fi-white);
	color: var(--fi-text);
	font-family: var(--fi-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.fi-icon { flex-shrink: 0; }

a { color: var(--fi-bordeaux); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s; }
a:hover { color: var(--fi-bordeaux-700); }

:focus-visible { outline: 2px solid var(--fi-bordeaux); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--fi-bordeaux); font-family: var(--fi-sans); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.75rem + 1.9vw, 3.25rem); font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(1.85rem, 1.55rem + 1.15vw, 2.5rem); font-weight: 500; line-height: 1.18; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5, h6 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: var(--fi-ink); }

ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--fi-line); margin: 2.5em 0; }

table { border-collapse: collapse; width: 100%; }

::selection { background: var(--fi-bordeaux); color: #fff; }

.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--fi-bordeaux); color: #fff; padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

/* 3. Layout
   ----------------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--fi-gutter), var(--fi-container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--fi-gutter), var(--fi-content)); margin-inline: auto; }

.section { padding-block: var(--fi-section); }
.section--tight { padding-block: calc(var(--fi-section) * .6); }
.section--surface { background: var(--fi-surface); }
.section--bordeaux { background: var(--fi-bordeaux); color: rgb(255 255 255 / 88%); }
/* Zwei aufeinanderfolgende Abschnitte mit gleichem Hintergrund: kein doppelter Abstand. */
.section:not(.section--surface, .section--bordeaux) + .section:not(.section--surface, .section--bordeaux) { padding-top: 0; }
.section--surface + .section--surface { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.section-head--split > div { max-width: 720px; }
.section-head p { color: var(--fi-muted); font-size: 1.1rem; }
.section-head h2 { margin-bottom: .35em; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	margin: 0 0 14px;
	color: var(--fi-bordeaux);
	font-family: var(--fi-sans); font-size: .75rem; font-weight: 700;
	letter-spacing: .24em; text-transform: uppercase; line-height: 1.4;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--fi-gold); }
.section--bordeaux .eyebrow,
.band .eyebrow { color: rgb(255 255 255 / 80%); }

.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.65; color: var(--fi-text); }

.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.stack > * + * { margin-top: 1em; }
.text-center { text-align: center; }
.muted { color: var(--fi-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* 4. Buttons & Links
   ----------------------------------------------------------------------- */
.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 26px;
	border: 0; border-bottom: 3px solid var(--fi-bordeaux-800); border-radius: 2px;
	background: var(--fi-bordeaux); color: #fff;
	font-family: var(--fi-sans); font-size: .95rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
	text-decoration: none; text-align: center;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--fi-ease);
}
.btn:hover,
.wp-block-button__link:hover { background: var(--fi-bordeaux-700); border-bottom-color: #2a0710; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .fi-icon { transition: transform .2s var(--fi-ease); }
.btn:hover .fi-icon--arrow-right { transform: translateX(3px); }

.btn--outline,
.is-style-fi-outline .wp-block-button__link { background: #fff; color: var(--fi-ink); border-bottom-color: var(--fi-card-edge); box-shadow: var(--fi-shadow-sm); }
.btn--outline:hover,
.is-style-fi-outline .wp-block-button__link:hover { background: #fff; color: var(--fi-bordeaux); border-bottom-color: var(--fi-bordeaux); }

.btn--white,
.is-style-fi-weiss .wp-block-button__link { background: #fff; border-bottom-color: rgb(0 0 0 / 22%); color: var(--fi-bordeaux); }
.btn--white:hover,
.is-style-fi-weiss .wp-block-button__link:hover { background: var(--fi-bordeaux-100); border-bottom-color: var(--fi-gold); color: var(--fi-bordeaux-700); }

.btn--ghost { background: transparent; border: 1.5px solid rgb(255 255 255 / 70%); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--fi-bordeaux); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--fi-bordeaux);
}
.link-arrow .fi-icon { transition: transform .2s var(--fi-ease); }
.link-arrow:hover .fi-icon { transform: translateX(4px); }

/* 5. Header & Navigation
   ----------------------------------------------------------------------- */
.site-header {
	/* Kein backdrop-filter/transform hier: das würde den Header zum Bezugsrahmen
	   des fixierten Mobilmenüs machen (Menü hätte dann 0 px Höhe). */
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--fi-line); box-shadow: 0 6px 24px rgb(35 15 22 / 6%); }

.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--fi-header-h); transition: height .25s var(--fi-ease); }
.site-header__inner.container { width: min(100% - 2 * var(--fi-gutter), 1400px); }
.header-cta { white-space: nowrap; }
.site-header.is-scrolled .site-header__inner { height: 72px; }

.site-logo { display: block; flex-shrink: 0; line-height: 0; }
.site-logo__img { width: auto; max-width: 100%; height: var(--fi-logo-h, 42px); object-fit: contain; object-position: left center; transition: height .25s var(--fi-ease); }
.site-logo__picture { display: block; }
.site-header.is-scrolled .site-logo__img { height: calc(var(--fi-logo-h, 42px) * .86); }

.main-nav { margin-left: auto; }
.main-nav__list,
.main-nav .menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 9px 13px; border-radius: var(--fi-radius);
	color: var(--fi-ink); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.main-nav a:hover { color: var(--fi-bordeaux); background: var(--fi-bordeaux-50); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a,
.main-nav .current-page-ancestor > a { background: var(--fi-bordeaux-100); color: var(--fi-bordeaux); }

.main-nav .menu-item-has-children { display: flex; align-items: center; }
.main-nav .menu-item-has-children > a { padding-right: 4px; }
.submenu-toggle { display: inline-grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 0; background: none; color: var(--fi-muted); cursor: pointer; }
/* Hauptpunkte mit Untermenü: Hover-/Aktiv-Fläche umfasst Link und Pfeil. */
.main-nav__list > .menu-item-has-children { padding-right: 6px; border-radius: var(--fi-radius); transition: background-color .2s; }
.main-nav__list > .menu-item-has-children > a,
.main-nav__list > .menu-item-has-children > a:hover { background: none; }
.main-nav__list > .menu-item-has-children:hover,
.main-nav__list > .menu-item-has-children.is-open { background: var(--fi-bordeaux-50); }
.main-nav__list > .menu-item-has-children:is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current-page-ancestor) { background: var(--fi-bordeaux-100); }
.main-nav__list > .menu-item-has-children:is(:hover, .is-open, .current-menu-item, .current-menu-ancestor, .current_page_item, .current-page-ancestor) > :is(a, .submenu-toggle) { color: var(--fi-bordeaux); }
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 10;
	min-width: 260px; margin: 0; padding: 10px; list-style: none;
	background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); box-shadow: var(--fi-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--fi-ease), visibility .2s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.main-nav .sub-menu a { padding: 10px 12px; white-space: normal; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--fi-ink); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.header-phone .fi-icon { color: var(--fi-bordeaux); }
.header-phone:hover { color: var(--fi-bordeaux); }

.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--fi-line); border-radius: var(--fi-radius); background: #fff; cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; margin: auto; }
.nav-toggle__bars span { display: block; height: 2px; background: var(--fi-bordeaux); border-radius: 2px; transition: transform .25s var(--fi-ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
	position: fixed; inset: var(--fi-header-h) 0 0; z-index: 99;
	overflow-y: auto; background: #fff; border-top: 1px solid var(--fi-line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__inner { padding-block: 24px 120px; }
.mobile-nav__list,
.mobile-nav .menu { margin: 0 0 28px; padding: 0; list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--fi-line); }
.mobile-nav a:not(.btn) { display: block; padding: 16px 4px; color: var(--fi-ink); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.mobile-nav .sub-menu { margin: 0 0 12px; padding: 0 0 0 16px; list-style: none; }
.mobile-nav .sub-menu li { border: 0; }
.mobile-nav .sub-menu a { padding: 8px 4px; font-size: 1rem; font-weight: 600; color: var(--fi-text); }
.mobile-nav .current-menu-item > a { color: var(--fi-bordeaux); }
.mobile-nav .submenu-toggle { display: none; }
.mobile-nav__contact { display: grid; gap: 12px; }

/* Seiten-Reiter rechts (wie DKB „Nachricht/Kontakt“) */
.side-tabs { position: fixed; right: 0; top: 34vh; z-index: 90; display: grid; gap: 4px; }
.side-tab {
	position: relative;
	display: grid; justify-items: center; gap: 4px;
	width: 70px; padding: 12px 6px 10px;
	background: var(--fi-bordeaux); color: #fff;
	border-radius: var(--fi-radius) 0 0 var(--fi-radius);
	box-shadow: var(--fi-shadow-sm);
	font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	transition: background-color .2s, width .2s var(--fi-ease), padding .2s;
}
.side-tab:hover { background: var(--fi-bordeaux-700); color: #fff; width: 76px; padding-right: 12px; }
.side-tab[hidden] { display: none; }

.mobile-cta { display: none; }

/* 6. Footer (schräge Oberkante)
   ----------------------------------------------------------------------- */
.site-footer {
	--fi-footer-slant: clamp(40px, 6vw, 90px);
	--fi-footer-cut: var(--fi-white); /* Farbe über der Schräge = Hintergrund des letzten Abschnitts */
	position: relative;
	margin-top: clamp(60px, 7vw, 110px);
	padding-top: clamp(110px, 12vw, 170px);
	background: var(--fi-bordeaux);
	color: rgb(255 255 255 / 80%);
	font-size: .95rem;
}
.site-footer::after {
	content: ""; position: absolute; inset: 0 0 auto; height: var(--fi-footer-slant); pointer-events: none;
	background: linear-gradient(to bottom right, var(--fi-footer-cut) calc(50% - .5px), transparent calc(50% + .5px));
}
.site-footer::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(1200px 500px at 85% 0%, rgb(255 255 255 / 7%), transparent 60%);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer__logo { display: inline-block; margin-bottom: 22px; }
.site-footer__logo .site-logo__img { height: var(--fi-logo-h-footer, 98px); width: auto; max-width: 100%; }
.site-footer__text { max-width: 320px; color: rgb(255 255 255 / 72%); }
.site-footer__heading { margin: 6px 0 18px; color: #fff; font-family: var(--fi-sans); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.site-footer__address { margin-bottom: 18px; font-style: normal; line-height: 1.7; }
.site-footer__address strong { color: #fff; }
.site-footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact .fi-icon { color: rgb(255 255 255 / 60%); }
.site-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__links a::before { content: "›"; color: rgb(255 255 255 / 55%); font-weight: 700; transition: transform .2s; }
.site-footer__links a:hover::before { transform: translateX(3px); }
.site-footer__social-label { margin: 28px 0 12px; font-size: .85rem; color: rgb(255 255 255 / 70%); }
.site-footer__social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fi-gold); color: #fff; transition: background-color .2s, color .2s; }
.site-footer__social a:hover { background: #fff; border-color: #fff; color: var(--fi-bordeaux); }
.site-footer__bottom {
	position: relative;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
	padding-block: 22px 28px;
	border-top: 1px solid rgb(255 255 255 / 16%);
	font-size: .82rem; color: rgb(255 255 255 / 60%);
}
.site-footer__bottom p { margin: 0; }

/* 7. Breadcrumbs & Seitenkopf
   ----------------------------------------------------------------------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--fi-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: var(--fi-line-strong); font-weight: 700; margin-right: 2px; }
.breadcrumbs a { color: var(--fi-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fi-bordeaux); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--fi-bordeaux); font-weight: 600; }

.page-header { padding-block: clamp(28px, 4vw, 44px) clamp(32px, 4vw, 56px); }
.page-header + .section--tight,
.page-meta + .section--tight { padding-top: 0; }
.page-header .breadcrumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.page-header__title { max-width: 900px; margin-bottom: .3em; }
.page-header__intro { max-width: 760px; margin-top: 18px; font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem); color: var(--fi-text); }

/* Bild-Kopf mit Label-Box (wie DKB-Hero) */
.page-hero { position: relative; }
.page-hero__media { position: relative; height: clamp(280px, 36vw, 480px); overflow: hidden; background: var(--fi-surface); clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(24px, 4vw, 56px)), 0 100%); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__label-wrap { position: absolute; inset: auto 0 clamp(28px, 4.5vw, 64px); }
.page-hero__label,
.hero__label {
	max-width: min(760px, 100%); margin: 0;
	color: #fff; font-family: var(--fi-sans); font-weight: 600; font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem); line-height: 1.42; letter-spacing: -.01em;
	white-space: pre-line;
}
.page-hero__label span,
.hero__label span {
	padding: .06em .36em .1em;
	background: var(--fi-bordeaux);
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.page-hero + .page-meta { padding-top: 18px; }
.page-meta { padding-bottom: 8px; }
.page-meta + .entry-content { padding-top: clamp(28px, 4vw, 56px); }

/* 8. Hero Startseite
   ----------------------------------------------------------------------- */
.hero { position: relative; }
.hero__media { position: relative; height: clamp(380px, 52vw, 680px); overflow: hidden; background: #f7f1ee; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, rgb(94 18 36 / 18%), transparent); pointer-events: none; }
.hero__label-wrap { position: absolute; inset: auto 0 clamp(24px, 3.5vw, 48px); }
.hero__label { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem); }
.hero__band { background: var(--fi-bordeaux); color: rgb(255 255 255 / 90%); }
.hero__band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: 26px 34px; }
.hero__band p { max-width: 720px; margin: 0; font-size: 1.05rem; }

/* Startseite: Einleitung, Rechner-Teaser, FAQ */
.intro__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.intro__head h2 { margin: 0; }
.intro__text .btn-row { margin-top: 28px; }
.front-content { padding-bottom: var(--fi-section); }

/* Hintergrund über .section--surface (sonst greift die Abstandsregel für weiße Folgeabschnitte). */
.rechner-teaser__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rechner-teaser__text .checklist { margin: 26px 0 30px; }

.faq-section__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-section__head { position: sticky; top: calc(var(--fi-header-h) + 32px); }
.faq-section__head .btn { margin-top: 10px; }

.service__more { margin-top: 36px; }
.band__call { margin: 22px 0 0; font-size: .95rem; color: rgb(255 255 255 / 80%); }
.band__call a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* 9. Farbbänder (Bordeaux, vollflächig)
   ----------------------------------------------------------------------- */
.band { position: relative; background: var(--fi-bordeaux); color: rgb(255 255 255 / 88%); overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: #fff; }
.band .ap-card a, .band .lead-form--light a { color: var(--fi-ink); }
.band .ap-card__name { color: var(--fi-bordeaux); }
.band .ap-card__role { color: var(--fi-muted); }
.band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; min-height: 440px; }
.band__media { align-self: stretch; position: relative; min-height: 320px; }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__content { padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 80px); max-width: 680px; }
.band__content p { color: rgb(255 255 255 / 85%); }
.band--simple .band__inner { grid-template-columns: 1fr; min-height: 0; }
.band--simple .band__content { max-width: none; width: min(100% - 2 * var(--fi-gutter), var(--fi-container)); margin-inline: auto; padding-inline: 0; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band p:last-child { margin-bottom: 0; }
.cta-band__aside { display: grid; gap: 18px; justify-items: start; }
.cta-band__aside .ap-card { width: 100%; }
.band--reverse .band__media { order: 2; }

/* 10. Bild + überlappende Karte
   ----------------------------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 7vw, 104px); }
.feature-row__media { grid-column: 1 / span 7; grid-row: 1; align-self: stretch; position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--fi-radius); background: var(--fi-surface); }
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--fi-ease); }
.feature-row:hover .feature-row__media img { transform: scale(1.025); }
.feature-row__card {
	grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 1;
	padding: clamp(28px, 3.6vw, 56px);
	background: #fff; border-radius: var(--fi-radius);
	box-shadow: var(--fi-shadow-lg);
}
/* Kernleistungen (Leistungsseite): Abstand zum Text davor und zum Raster danach. */
.leistungen-reihen { padding-block: clamp(40px, 5vw, 72px) var(--fi-section); }
/* Fester vertikaler Versatz zur Bildkante – bei langen Texten wächst das Bild mit (object-fit: cover). */
.feature-row__card { margin-block: clamp(24px, 3vw, 40px); }
.feature-row__card h3 { margin-bottom: .6em; font-size: clamp(1.45rem, 1.25rem + .8vw, 1.95rem); font-weight: 500; line-height: 1.22; }
.feature-row__card p { color: var(--fi-text); }
.feature-row__card .btn-row { margin-top: 28px; }
.feature-row--reverse .feature-row__media { grid-column: 6 / span 7; }
.feature-row--reverse .feature-row__card { grid-column: 1 / span 6; }

/* 11. Karten, Badges, Listen
   ----------------------------------------------------------------------- */
.card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border-radius: 2px; border-bottom: 3px solid var(--fi-card-edge);
	box-shadow: var(--fi-shadow);
	overflow: hidden; transition: box-shadow .3s var(--fi-ease), transform .3s var(--fi-ease), border-color .3s;
}
.card:hover { box-shadow: var(--fi-shadow-lg); border-bottom-color: var(--fi-bordeaux); }

.badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 10px; border-radius: 3px;
	background: #fff; color: var(--fi-bordeaux);
	font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}
.badge--solid { background: var(--fi-bordeaux); color: #fff; }
.badge--soft { background: var(--fi-bordeaux-100); }
.badge--success { background: #e6f2eb; color: var(--fi-success); }
.badge--warning { background: #fbf0dc; color: var(--fi-warning); }
.badge--muted { background: #eeeaea; color: var(--fi-muted); }

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--fi-bordeaux-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e1224' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 32px; }
.band .checklist li::before,
.section--bordeaux .checklist li::before { background-color: rgb(255 255 255 / 14%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* Objektkarte (DKB-Aufbau) */
.objekt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.objekt-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.objekt-card { height: 100%; }
.objekt-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--fi-surface); }
.objekt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--fi-ease); }
.objekt-card:hover .objekt-card__media img { transform: scale(1.035); }
.objekt-card__badges { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 28px); }
.objekt-card__status {
	position: absolute; left: 0; bottom: 16px;
	padding: 7px 14px; background: var(--fi-ink); color: #fff;
	font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.objekt-card__status--reserviert { background: var(--fi-warning); }
.objekt-card__status--verkauft { background: var(--fi-bordeaux); }
.objekt-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgb(35 31 32 / 70%); color: #fff; font-size: .75rem; font-weight: 700; }
.objekt-card.is-verkauft .objekt-card__media img { filter: grayscale(.45); }
.objekt-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 18px; }
.objekt-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.objekt-card__title { margin: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.35; color: var(--fi-bordeaux); }
.objekt-card__title a { color: inherit; text-decoration: none; }
.objekt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.objekt-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.objekt-card__loc { display: flex; align-items: center; gap: 6px; margin: 8px 0 16px; color: var(--fi-muted); font-size: .72rem; font-weight: 600; letter-spacing: .06em; }
.objekt-card__loc .fi-icon { color: var(--fi-muted); }
.objekt-card__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 18px; }
.objekt-card__facts div { display: grid; gap: 2px; }
.objekt-card__facts dt { color: var(--fi-text); font-size: .8rem; }
.objekt-card__facts dd { margin: 0; color: var(--fi-ink); font-size: 1rem; font-weight: 700; }
.objekt-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.objekt-card__price { display: grid; line-height: 1.2; }
.objekt-card__price span { color: var(--fi-text); font-size: .8rem; }
.objekt-card__price strong { color: var(--fi-bordeaux); font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; }
.objekt-card__more { display: inline-flex; align-items: center; gap: 2px; color: var(--fi-bordeaux); font-size: .85rem; font-weight: 600; white-space: nowrap; }

.badge--gold { background: var(--fi-gold); color: var(--fi-ink); }

/* Themen-Filter (Ratgeber) */
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 3vw, 40px); }
.chip-nav__item { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--fi-line-strong); border-radius: 999px; color: var(--fi-ink); font-size: .88rem; font-weight: 700; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.chip-nav__item:hover { border-color: var(--fi-bordeaux); color: var(--fi-bordeaux); }
.chip-nav__item.is-active { background: var(--fi-bordeaux); border-color: var(--fi-bordeaux); color: #fff; }

/* Beitragskarte */
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fi-surface); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--fi-ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; color: var(--fi-muted); font-size: .8rem; font-weight: 600; }
.post-card__meta a { position: relative; z-index: 2; color: var(--fi-bordeaux); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 800; }
.post-card__title { margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.post-card__title a { color: var(--fi-bordeaux); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { color: var(--fi-text); font-size: .95rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 14px; }

/* 12. Kennzahlen, Prozess, Vorteile
   ----------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(var(--fi-stats-cols, 4), minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--fi-line); }
.stat { padding: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 32px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--fi-line); }
.stat__value { display: block; color: var(--fi-bordeaux); font-size: clamp(2.6rem, 1.9rem + 2.4vw, 3.9rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat__label { display: block; max-width: 220px; margin: 12px auto 0; color: var(--fi-muted); font-size: .92rem; line-height: 1.45; }

.prozess { counter-reset: schritt; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.prozess__step { position: relative; padding-top: 74px; }
.prozess__step::before {
	counter-increment: schritt; content: counter(schritt, decimal-leading-zero);
	position: absolute; left: 0; top: 0; z-index: 1;
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: #fff; border: 1.5px solid var(--fi-bordeaux); color: var(--fi-bordeaux);
	font-size: 1.1rem; font-weight: 700;
}
.prozess__step::after { content: ""; position: absolute; left: 56px; right: -24px; top: 28px; height: 1px; background: linear-gradient(90deg, var(--fi-bordeaux) 0 40%, var(--fi-line) 40%); }
.prozess__step:last-child::after { display: none; }
.prozess__step h3 { margin-bottom: .4em; font-size: 1.08rem; color: var(--fi-ink); }
.prozess__step p { margin: 0; color: var(--fi-muted); font-size: .93rem; line-height: 1.6; }
.section--surface .prozess__step::before { background: var(--fi-surface); }

.icon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.icon-card { padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); transition: box-shadow .3s, border-color .3s, transform .3s var(--fi-ease); }
.icon-card:hover { box-shadow: var(--fi-shadow); border-color: transparent; transform: translateY(-2px); }
.icon-card__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 22px; border-radius: 50%; background: var(--fi-bordeaux-100); color: var(--fi-bordeaux); }
.icon-card h3 { margin-bottom: .45em; font-size: 1.15rem; color: var(--fi-ink); }
.icon-card p { color: var(--fi-muted); font-size: .96rem; }
.icon-card .link-arrow { margin-top: 14px; }
.icon-cards--center .icon-card { text-align: center; }
.icon-cards--center .icon-card__icon { margin-inline: auto; }

/* Leistungs-Raster (Rundum-sorglos-Paket) */
.leistungen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fi-line); border-left: 1px solid var(--fi-line); }
.leistung { position: relative; padding: clamp(24px, 2.6vw, 36px); border-right: 1px solid var(--fi-line); border-bottom: 1px solid var(--fi-line); background: #fff; transition: background-color .25s; }
.leistung:hover { background: var(--fi-bordeaux-50); }
.leistung__nr { position: absolute; right: 22px; top: 18px; color: var(--fi-gold-700); font-size: 1rem; font-weight: 700; letter-spacing: .06em; }
.leistung .fi-icon { color: var(--fi-bordeaux); margin-bottom: 18px; }
.leistung h3 { margin-bottom: .4em; font-size: 1.05rem; color: var(--fi-ink); }
.leistung p { margin: 0; color: var(--fi-muted); font-size: .92rem; line-height: 1.6; }

/* 13. Highlight-Slider (wie DKB „Immobilien Highlights“)
   ----------------------------------------------------------------------- */
.slider { position: relative; container-type: inline-size; }
.slider__track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
	padding-bottom: 56px; /* Platz für den Kartenschatten – overflow würde ihn sonst abschneiden */ }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__nav {
	position: absolute; top: calc(21.43cqw - 29px); z-index: 3; /* Mitte des 21:9-Bildes */
	display: grid; place-items: center; width: 58px; height: 58px; padding: 0;
	border: 0; border-radius: 50%; background: #fff; color: var(--fi-bordeaux);
	box-shadow: var(--fi-shadow); cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s, transform .2s var(--fi-ease);
}
.slider__nav:hover { background: var(--fi-bordeaux); color: #fff; }
.slider__nav[disabled] { opacity: .35; pointer-events: none; }
.slider__nav--prev { left: clamp(8px, 2vw, 24px); }
.slider__nav--next { right: clamp(8px, 2vw, 24px); }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: -8px; }
.slider__dot { width: 10px; height: 10px; padding: 0; border: 1.5px solid var(--fi-bordeaux); border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .2s, transform .2s; }
.slider__dot[aria-current="true"] { background: var(--fi-bordeaux); transform: scale(1.15); }

.highlight { position: relative; padding-bottom: 150px; }
.highlight__media { display: block; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--fi-radius); background: var(--fi-surface); }
.highlight__media img { width: 100%; height: 100%; object-fit: cover; }
.highlight__card {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: min(760px, calc(100% - 48px));
	padding: clamp(24px, 3vw, 44px);
	background: #fff; border-radius: var(--fi-radius); box-shadow: var(--fi-shadow-lg);
}
.highlight__card h3 { margin-bottom: .4em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); font-weight: 500; line-height: 1.22; }
.highlight__card h3 a { color: inherit; text-decoration: none; }
.highlight__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--fi-muted); font-size: .9rem; font-weight: 600; }
.highlight__facts strong { color: var(--fi-bordeaux); }
.highlight__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.highlight__price { color: var(--fi-bordeaux); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 14. Kundenstimmen, FAQ
   ----------------------------------------------------------------------- */
.stimmen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.stimme { margin: 0; padding: clamp(26px, 3vw, 38px); background: #fff; border-radius: var(--fi-radius-lg); box-shadow: var(--fi-shadow-sm); border: 1px solid var(--fi-line); }
.stimme__stars { display: flex; gap: 2px; margin-bottom: 14px; color: #c8952e; }
.stimme__stars .fi-icon { fill: currentColor; }
.stimme blockquote { margin: 0 0 18px; color: var(--fi-ink); font-family: var(--fi-serif); font-size: 1.35rem; font-style: italic; font-weight: 500; line-height: 1.4; }
.stimme figcaption { color: var(--fi-muted); font-size: .88rem; }
.stimme figcaption strong { display: block; color: var(--fi-bordeaux); }
.stimmen-hinweis { margin-top: 24px; color: var(--fi-muted); font-size: .82rem; }

.faq { border-top: 1px solid var(--fi-line); }
.faq details,
.wp-block-details { border-bottom: 1px solid var(--fi-line); }
.faq summary,
.wp-block-details summary {
	position: relative; display: block; padding: 22px 56px 22px 0;
	color: var(--fi-ink); font-size: 1.08rem; font-weight: 700; line-height: 1.45; list-style: none; cursor: pointer;
	transition: color .2s;
}
.faq summary::-webkit-details-marker,
.wp-block-details summary::-webkit-details-marker { display: none; }
.faq summary::after,
.wp-block-details summary::after {
	content: ""; position: absolute; right: 6px; top: 50%;
	width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
	background: var(--fi-bordeaux-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e1224' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform .3s var(--fi-ease), background-color .2s;
}
.faq details[open] summary::after,
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover,
.wp-block-details summary:hover { color: var(--fi-bordeaux); }
.faq__answer,
.wp-block-details > :not(summary) { padding: 0 56px 24px 0; color: var(--fi-text); }

/* 15. Formulare (DKB-Stil: weiße Felder mit Unterstrich)
   ----------------------------------------------------------------------- */
.lead-form__title { margin-bottom: .3em; }
.lead-form__text { margin-bottom: 28px; color: var(--fi-muted); }
.fi-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.fi-field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fi-field--full { grid-column: 1 / -1; }
.fi-field__label { padding: 0; color: var(--fi-ink); font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.fi-field__req { color: var(--fi-bordeaux); }

.fi-form input[type="text"],
.fi-form input[type="email"],
.fi-form input[type="tel"],
.fi-form input[type="number"],
.fi-form select,
.fi-form textarea,
.fi-input {
	width: 100%; min-height: 52px; padding: 13px 16px;
	border: 1px solid var(--fi-line); border-bottom: 2px solid var(--fi-line-strong); border-radius: var(--fi-radius) var(--fi-radius) 0 0;
	background: #fff; color: var(--fi-ink);
	font: inherit; font-size: 1rem; line-height: 1.4;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	appearance: none;
}
.fi-form textarea { min-height: 120px; resize: vertical; }
.fi-form select,
.fi-select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e1224' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.fi-form input:hover,
.fi-form select:hover,
.fi-form textarea:hover { border-bottom-color: var(--fi-muted); }
.fi-form input:focus,
.fi-form select:focus,
.fi-form textarea:focus { outline: none; border-color: var(--fi-line); border-bottom-color: var(--fi-bordeaux); box-shadow: 0 3px 0 -1px var(--fi-bordeaux); }
.fi-field.has-error input,
.fi-field.has-error select,
.fi-field.has-error textarea { border-bottom-color: var(--fi-danger); background: #fff8f7; }
.fi-field__error { margin: 0; color: var(--fi-danger); font-size: .82rem; font-weight: 600; }

.fi-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fi-chip { position: relative; cursor: pointer; }
.fi-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fi-chip span {
	display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px;
	border: 1.5px solid var(--fi-line-strong); border-radius: 999px; background: #fff;
	color: var(--fi-ink); font-size: .9rem; font-weight: 600; line-height: 1.3;
	transition: border-color .2s, background-color .2s, color .2s;
}
.fi-chip:hover span { border-color: var(--fi-bordeaux); }
.fi-chip input:checked + span { background: var(--fi-bordeaux); border-color: var(--fi-bordeaux); color: #fff; }
.fi-chip input:focus-visible + span { outline: 2px solid var(--fi-bordeaux); outline-offset: 2px; }

.fi-check { display: flex; align-items: flex-start; gap: 12px; color: var(--fi-text); font-size: .86rem; line-height: 1.55; cursor: pointer; }
.fi-check input {
	flex-shrink: 0; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--fi-line-strong); border-radius: 3px;
	background: #fff; appearance: none; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.fi-check input:checked { background: var(--fi-bordeaux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--fi-bordeaux); }
.fi-field.has-error .fi-check input { border-color: var(--fi-danger); }

.fi-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fi-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.fi-form__note { margin: 0; color: var(--fi-muted); font-size: .8rem; }
.fi-form__status:not([hidden]),
.fi-notice { margin-top: 22px; padding: 18px 20px 18px 54px; border-radius: var(--fi-radius); position: relative; font-weight: 600; line-height: 1.5; }
.fi-notice { margin: 0 0 24px; }
.fi-form__status.is-success,
.fi-notice--success { background: #e9f4ee; color: #1f5a39; }
.fi-form__status.is-error,
.fi-notice--error { background: #fdeceb; color: #8c1d17; }
.fi-form__status::before,
.fi-notice::before { content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fi-form__status a { color: inherit; }
.fi-form.is-sent .fi-form__grid,
.fi-form.is-sent .fi-form__footer { display: none; }

/* Formular auf Bordeaux */
.lead-form--dark .fi-field__label,
.lead-form--dark .fi-check,
.lead-form--dark .lead-form__text,
.lead-form--dark .fi-form__note { color: rgb(255 255 255 / 88%); }
.lead-form--dark .lead-form__title { color: #fff; }
.lead-form--dark .fi-field__req { color: #fff; }
.lead-form--dark .fi-check a { color: #fff; }
.lead-form--dark .fi-form input,
.lead-form--dark .fi-form select { border-color: transparent; border-bottom-color: rgb(255 255 255 / 40%); }
.lead-form--dark .fi-check input { border-color: rgb(255 255 255 / 60%); background-color: transparent; }
.lead-form--dark .fi-check input:checked { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e1224' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); border-color: #fff; }
.lead-form--dark .fi-field__error { color: #ffd9d6; }
.lead-form--inline .fi-form__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.lead-form--inline .fi-field--select { grid-column: auto; }

/* Suchformular (Band / Karte) */
.objekt-suche { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.objekt-suche .fi-field__label { color: inherit; }
.band .objekt-suche .fi-field__label { color: rgb(255 255 255 / 88%); }
.objekt-suche .btn { min-height: 52px; }

/* 16. Ansprechpartner, Kontakt
   ----------------------------------------------------------------------- */
.ap-card { display: flex; align-items: center; gap: 22px; padding: 22px 26px; background: #fff; border-radius: var(--fi-radius); box-shadow: var(--fi-shadow); color: var(--fi-text); }
.ap-card__photo { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--fi-bordeaux-100); }
.ap-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.ap-card__initials { display: grid; place-items: center; width: 100%; height: 100%; color: var(--fi-bordeaux); font-size: 1.8rem; font-weight: 600; letter-spacing: .02em; }
.ap-card__name { margin: 0; color: var(--fi-bordeaux); font-size: 1.15rem; font-weight: 800; }
.ap-card__role { margin: 2px 0 10px; color: var(--fi-muted); font-size: .88rem; font-weight: 600; }
.ap-card__links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.ap-card__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--fi-ink); font-weight: 700; text-decoration: none; }
.ap-card__links a:hover { color: var(--fi-bordeaux); }
.ap-card__links .fi-icon { color: var(--fi-bordeaux); }

.kontaktdaten { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.kontaktdaten li { display: flex; gap: 16px; align-items: flex-start; }
.kontaktdaten__icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--fi-bordeaux-100); color: var(--fi-bordeaux); }
.kontaktdaten li > div > span { display: block; color: var(--fi-muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kontaktdaten a, .kontaktdaten strong { color: var(--fi-ink); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.kontaktdaten a:hover { color: var(--fi-bordeaux); }

/* 17. Inhalte aus dem Block-Editor
   ----------------------------------------------------------------------- */
.entry-content { padding-bottom: clamp(32px, 4vw, 56px); }
.entry-content > * { width: min(100% - 2 * var(--fi-gutter), var(--fi-content)); margin-inline: auto; }
.entry-content > .alignwide { width: min(100% - 2 * var(--fi-gutter), var(--fi-container)); }
.entry-content > .alignfull,
.entry-content > .section,
.entry-content > .band { width: 100%; }
/* Abschnitte ohne Klasse (z. B. FAQ aus älteren Beiträgen) bleiben in Inhaltsbreite
   und werden wie die FAQ-Liste des Themes dargestellt. */
.entry-content > section:not([class]) > h2 { margin-bottom: .6em; }
.entry-content > section:not([class]) > div { padding: 18px 0; border-top: 1px solid var(--fi-line); }
.entry-content > section:not([class]) > div:last-child { border-bottom: 1px solid var(--fi-line); }
.entry-content > section:not([class]) > div h3 { margin: 0 0 .45em; font-size: 1.12rem; line-height: 1.35; }
.entry-content > section:not([class]) > div p { margin: 0; }
.entry-content > section:not([class]) > div p + p { margin-top: .8em; }
.entry-content:has(> :is(.is-style-fi-band, .is-style-fi-flaeche):last-child) { padding-bottom: 0; }
.site-main:has(> .entry-content > :is(.is-style-fi-band, .is-style-fi-flaeche):last-child) + .site-footer,
.site-main:has(> .band:last-child) + .site-footer,
.site-main:has(> .section:last-child) + .site-footer { margin-top: 0; }
/* Übergang zum Footer: die Fläche über der Schräge übernimmt die Farbe des letzten Abschnitts. */
.site-main:has(> .section--surface:last-child) + .site-footer,
.site-main:has(> .entry-content > .is-style-fi-flaeche:last-child) + .site-footer { --fi-footer-cut: var(--fi-surface); }
.site-main:has(> .band:last-child) + .site-footer,
.site-main:has(> .entry-content > .is-style-fi-band:last-child) + .site-footer { --fi-footer-cut: var(--fi-bordeaux); background-color: var(--fi-bordeaux-800); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content > h2 { margin-top: 1.6em; }
.entry-content > h3 { margin-top: 1.4em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p,
.entry-content li { text-wrap: pretty; }
.entry-content ul:not([class]) li::marker { color: var(--fi-bordeaux); }
.entry-content blockquote:not(.wp-block-pullquote) { margin-inline: 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--fi-bordeaux); font-family: var(--fi-serif); font-size: 1.45rem; font-style: italic; color: var(--fi-ink); line-height: 1.45; }
.entry-content figure { margin-block: 2em; }
.entry-content figcaption { margin-top: 10px; color: var(--fi-muted); font-size: .85rem; }
.entry-content table { font-size: .95rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--fi-line); text-align: left; }
.entry-content th { color: var(--fi-ink); background: var(--fi-surface); }
/* Tabellen-Block: ruhige Trennlinien statt der dunklen Rahmen aus dem Core-Stil */
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry-content .wp-block-table table:not(:has(thead)) { border-top: 1px solid var(--fi-line); }
.entry-content .wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--fi-line); }
.entry-content .wp-block-table thead { border: 0; }
.entry-content .wp-block-table thead th { border-bottom: 2px solid var(--fi-bordeaux); }
.entry-content .wp-block-image img { border-radius: var(--fi-radius); }

.wp-block-group.alignfull { padding-inline: var(--fi-gutter); }
.wp-block-group.has-background { padding: clamp(32px, 4vw, 56px); }
.wp-block-group.alignfull.has-background { padding: clamp(56px, 7vw, 104px) var(--fi-gutter); }

.is-style-fi-band { background: var(--fi-bordeaux); color: rgb(255 255 255 / 88%); }
.is-style-fi-band :where(h1, h2, h3, h4, a:not(.wp-block-button__link)) { color: #fff; }
.is-style-fi-band .wp-block-button__link { background: #fff; color: var(--fi-bordeaux); border-color: #fff; }
.is-style-fi-flaeche { background: var(--fi-surface); }
.wp-block-group.is-style-fi-band,
.wp-block-group.is-style-fi-flaeche { padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); }
.wp-block-group.alignfull.is-style-fi-band,
.wp-block-group.alignfull.is-style-fi-flaeche { padding: clamp(56px, 7vw, 104px) var(--fi-gutter); margin-block: clamp(40px, 6vw, 88px); }
.entry-content > .wp-block-group.alignfull:is(.is-style-fi-band, .is-style-fi-flaeche):last-child { margin-bottom: 0; }
.is-style-fi-karte { padding: clamp(28px, 3.6vw, 52px); background: #fff; border-radius: var(--fi-radius); box-shadow: var(--fi-shadow-lg); }

.is-style-fi-dachzeile { display: flex; align-items: center; gap: 12px; color: var(--fi-bordeaux) !important; font-size: .75rem !important; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin-bottom: -.4em !important; }
.is-style-fi-dachzeile::before { content: ""; flex-shrink: 0; width: 28px; height: 2px; background: var(--fi-gold); }
.is-style-fi-lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem) !important; line-height: 1.65; }
.is-style-fi-formel { padding: 18px 22px; border-left: 3px solid var(--fi-bordeaux); border-radius: 0 var(--fi-radius) var(--fi-radius) 0; background: var(--fi-surface); color: var(--fi-ink); font-weight: 600; line-height: 1.55; }

.wp-block-list.is-style-fi-checkliste { padding: 0; list-style: none; display: grid; gap: 12px; }
.wp-block-list.is-style-fi-checkliste li { position: relative; padding-left: 34px; }
.wp-block-list.is-style-fi-checkliste li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--fi-bordeaux-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e1224' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Media & Text als „Bild + überlappende Karte“ */
.wp-block-media-text.is-style-fi-overlap { grid-template-columns: 58% 1fr !important; align-items: center; }
.wp-block-media-text.is-style-fi-overlap .wp-block-media-text__media { border-radius: var(--fi-radius); overflow: hidden; }
.wp-block-media-text.is-style-fi-overlap .wp-block-media-text__media img { aspect-ratio: 16 / 11; object-fit: cover; }
.wp-block-media-text.is-style-fi-overlap .wp-block-media-text__content { position: relative; z-index: 1; margin-left: -12%; padding: clamp(28px, 3.6vw, 56px); background: #fff; border-radius: var(--fi-radius); box-shadow: var(--fi-shadow-lg); }
.wp-block-media-text.is-style-fi-overlap.has-media-on-the-right { grid-template-columns: 1fr 58% !important; }
.wp-block-media-text.is-style-fi-overlap.has-media-on-the-right .wp-block-media-text__content { margin-left: 0; margin-right: -12%; }
.wp-block-media-text.is-style-fi-overlap .wp-block-media-text__content h2,
.wp-block-media-text.is-style-fi-overlap .wp-block-media-text__content h3 { font-weight: 500; font-size: clamp(1.45rem, 1.25rem + .8vw, 1.95rem); }

.wp-block-columns.is-style-fi-icon-karten > .wp-block-column { padding: clamp(26px, 3vw, 38px); border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); background: #fff; }
.wp-block-quote.is-style-fi-stimme { padding: clamp(26px, 3vw, 38px); border: 1px solid var(--fi-line); border-radius: var(--fi-radius-lg); font-family: var(--fi-serif); font-size: 1.35rem; font-style: italic; }
.wp-block-quote.is-style-fi-stimme cite { display: block; margin-top: 12px; font-family: var(--fi-sans); font-size: .88rem; font-style: normal; color: var(--fi-muted); }
.wp-block-table.is-style-fi-daten td:first-child { color: var(--fi-muted); width: 45%; }
.wp-block-image.is-style-fi-rahmen { position: relative; }
.wp-block-image.is-style-fi-rahmen img { position: relative; z-index: 1; box-shadow: 18px 18px 0 var(--fi-bordeaux-100); }

.wp-block-separator { border: 0; border-top: 1px solid var(--fi-line); }
.wp-block-buttons { gap: 12px 16px; }

/* Einzelbeitrag (Ratgeber) */
.article-header { padding-block: clamp(28px, 4vw, 44px) 32px; }
.article-header .breadcrumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.article-header h1 { max-width: 900px; font-size: clamp(2.3rem, 1.8rem + 2vw, 3.5rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 18px; color: var(--fi-muted); font-size: .88rem; font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { width: min(100% - 2 * var(--fi-gutter), var(--fi-container)); margin: 0 auto clamp(40px, 5vw, 64px); aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--fi-radius); background: var(--fi-surface); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-footer { width: min(100% - 2 * var(--fi-gutter), var(--fi-content)); margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--fi-line); }
.article-cta { margin-top: 48px; padding: clamp(28px, 4vw, 44px); background: var(--fi-bordeaux); color: rgb(255 255 255 / 88%); border-radius: var(--fi-radius); }
.article-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }

.pagination,
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--fi-line); border-radius: var(--fi-radius); color: var(--fi-ink); font-weight: 700; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.page-numbers:hover { border-color: var(--fi-bordeaux); color: var(--fi-bordeaux); }
.page-numbers.current { background: var(--fi-bordeaux); border-color: var(--fi-bordeaux); color: #fff; }
.page-numbers.dots { border: 0; }

.fi-empty { padding: 32px; border: 1px dashed var(--fi-line-strong); border-radius: var(--fi-radius-lg); color: var(--fi-muted); text-align: center; }

/* 18. Dialog
   ----------------------------------------------------------------------- */
.fi-dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--fi-radius-lg); box-shadow: var(--fi-shadow-lg); color: var(--fi-text); }
.fi-dialog::backdrop { background: rgb(35 15 22 / 55%); backdrop-filter: blur(3px); }
.fi-dialog[open] { animation: fi-dialog-in .3s var(--fi-ease); }
.fi-dialog__inner { position: relative; padding: clamp(28px, 4vw, 48px); }
.fi-dialog__close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--fi-surface); color: var(--fi-ink); cursor: pointer; }
.fi-dialog__close:hover { background: var(--fi-bordeaux-100); color: var(--fi-bordeaux); }
.fi-dialog .lead-form__title { padding-right: 48px; font-size: clamp(1.6rem, 1.35rem + .9vw, 2.1rem); }
@keyframes fi-dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.has-dialog { overflow: hidden; }

/* 19. Einblend-Animationen
   ----------------------------------------------------------------------- */
.js [data-fi-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--fi-ease), transform .8s var(--fi-ease); }
.js [data-fi-reveal].is-visible { opacity: 1; transform: none; }

/* 20. Responsiv
   ----------------------------------------------------------------------- */
@media (max-width: 1520px) {
	.header-phone span { display: none; }
	.header-phone { padding: 8px; }
}

@media (max-width: 1280px) {
	.main-nav a { padding: 9px 10px; font-size: .88rem; }
	.site-logo__img { height: calc(var(--fi-logo-h, 42px) * .9); }
}

@media (max-width: 1100px) {
	:root { --fi-header-h: 76px; }
	.main-nav, .header-cta, .header-phone { display: none; }
	.nav-toggle { display: grid; place-items: center; }
	.site-header__actions { margin-left: auto; }
	.site-header.is-scrolled .site-header__inner { height: var(--fi-header-h); }
	.site-logo { flex-shrink: 1; min-width: 0; } /* sehr breite Logos skalieren statt überzulaufen */
	.site-logo__img, .site-header.is-scrolled .site-logo__img { height: var(--fi-logo-h-mobile, 34px); }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.prozess { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.prozess__step::after { display: none; }
	.leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--fi-line); }
	.objekt-suche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.objekt-suche .btn { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.intro__inner, .rechner-teaser__inner, .faq-section__inner, .cta-band { grid-template-columns: 1fr; }
	.faq-section__head { position: static; }
	.feature-row { grid-template-columns: 1fr; }
	.feature-row__media,
	.feature-row--reverse .feature-row__media { grid-column: 1; grid-row: 1; }
	.feature-row__card,
	.feature-row--reverse .feature-row__card { grid-column: 1; grid-row: 2; margin: -64px 16px 0; }
	.band__inner { grid-template-columns: 1fr; }
	.band__media { min-height: 260px; }
	.band--reverse .band__media { order: 0; }
	.band__content { padding-inline: var(--fi-gutter); }
	.highlight { padding-bottom: 0; }
	.highlight__media { aspect-ratio: 4 / 3; }
	.highlight__card { position: relative; left: auto; bottom: auto; transform: none; width: calc(100% - 32px); margin: -56px auto 0; }
	.slider__nav { top: calc(37.5cqw - 24px); width: 48px; height: 48px; } /* Mitte des 4:3-Bildes */
	.wp-block-media-text.is-style-fi-overlap,
	.wp-block-media-text.is-style-fi-overlap.has-media-on-the-right { grid-template-columns: 100% !important; }
	.wp-block-media-text.is-style-fi-overlap .wp-block-media-text__content,
	.wp-block-media-text.is-style-fi-overlap.has-media-on-the-right .wp-block-media-text__content { margin: -48px 16px 0; padding: 28px; }
	.lead-form--inline .fi-form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	body { font-size: 1rem; }
	.side-tabs { display: none; }
	.mobile-cta {
		position: fixed; inset: auto 0 0; z-index: 95;
		display: grid; grid-template-columns: repeat(3, 1fr);
		background: #fff; border-top: 1px solid var(--fi-line); box-shadow: 0 -6px 24px rgb(35 15 22 / 8%);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mobile-cta a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; color: var(--fi-ink); font-size: .72rem; font-weight: 700; text-decoration: none; }
	.mobile-cta a .fi-icon { color: var(--fi-bordeaux); }
	.mobile-cta__primary { background: var(--fi-bordeaux); color: #fff !important; }
	.mobile-cta__primary .fi-icon { color: #fff !important; }
	.site-footer { padding-bottom: 64px; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
	.fi-form__grid { grid-template-columns: 1fr; }
	.prozess { grid-template-columns: 1fr; }
	.leistungen { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat { padding-inline: 8px; }
	.objekt-suche { grid-template-columns: 1fr; }
	.hero__label { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
	.hero__band-inner .btn { width: 100%; }
	.breadcrumbs ol { justify-content: flex-start; }
	.ap-card { flex-direction: column; align-items: flex-start; }
	.faq summary, .wp-block-details summary { padding-right: 48px; font-size: 1rem; }
	.faq__answer, .wp-block-details > :not(summary) { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-fi-reveal] { opacity: 1; transform: none; }
}

@media print {
	.site-header, .side-tabs, .mobile-cta, .site-footer, .fi-dialog, .skip-link { display: none !important; }
	body { font-size: 11pt; }
}

/* Teaser-Kacheln (DKB) */
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.kachel { display: grid; justify-items: center; align-content: start; gap: 10px; padding: clamp(24px, 2.6vw, 34px) 22px; text-align: center; text-decoration: none; }
.kachel__icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 6px; border-radius: 50%; background: var(--fi-bordeaux-50); color: var(--fi-bordeaux); }
.kachel__title { color: var(--fi-bordeaux); font-size: 1.15rem; font-weight: 600; }
.kachel__text { color: var(--fi-text); font-size: .92rem; line-height: 1.55; }
.kachel:hover .kachel__icon { background: var(--fi-bordeaux); color: #fff; }
.kacheln-section__title { margin-bottom: 28px; }
.kacheln--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kacheln--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kacheln--1 { grid-template-columns: minmax(0, 360px); }
@media (max-width: 1100px) { .kacheln:not(.kacheln--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kacheln--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kacheln { grid-template-columns: 1fr; } }

/* Rechner-Seiten: Kacheln zu den übrigen Rechnern, Grunderwerbsteuer-Tabelle */
.rechner-links__head { margin-bottom: 28px; }
.rechner-links__head .kacheln-section__title { margin-bottom: 0; }
.rechner-links__head p { margin: 8px 0 0; }
.grest-tabelle table { width: 100%; font-variant-numeric: tabular-nums; }
.entry-content .grest-tabelle tbody th { background: none; font-weight: 500; }
.entry-content .grest-tabelle .is-aktiv :is(th, td) { background: var(--fi-bordeaux-50); color: var(--fi-ink); font-weight: 700; }
@media (max-width: 600px) {
	.grest-tabelle table { font-size: .8rem; }
	.entry-content .grest-tabelle :is(th, td) { padding: 10px 6px; hyphens: auto; }
}

/* Ergänzungen */
.icon-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .icon-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .icon-cards--4 { grid-template-columns: 1fr; } }
.search-group__title { margin: 0 0 clamp(18px, 2vw, 26px); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.objekt-grid + .search-group__title { margin-top: clamp(48px, 6vw, 80px); }
.kennzahlen__title { margin-bottom: clamp(20px, 3vw, 32px); text-align: center; }
.site-footer__slogan { margin: 0 0 10px; color: var(--fi-gold); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__bottom a { color: rgb(255 255 255 / 70%); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.team__photo { aspect-ratio: 1; background: var(--fi-bordeaux-50); overflow: hidden; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--fi-ease); }
.team__card:hover .team__photo img { transform: scale(1.03); }
.team__initials { display: grid; place-items: center; height: 100%; color: var(--fi-bordeaux); font-size: 3rem; font-weight: 600; }
.team__body { padding: 20px 22px 22px; }
.team__name { margin: 0; font-size: 1.2rem; font-weight: 600; }
.team__role { margin: 2px 0 14px; color: var(--fi-muted); font-size: .9rem; }
.team__links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.team__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--fi-ink); font-weight: 600; text-decoration: none; }
.team__links a:hover { color: var(--fi-bordeaux); }
.team__links .fi-icon { color: var(--fi-bordeaux); }
.objekt-suche--band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.objekt-suche--band .btn { justify-self: start; }
@media (max-width: 560px) { .objekt-suche--band { grid-template-columns: 1fr; } }

/* Karte (2-Klick) */
.map-consent { position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; border-radius: var(--fi-radius-lg); background: var(--fi-surface) url("../img/illustrations/map-pattern.svg") center / cover; }
.map-consent__inner { display: grid; justify-items: center; gap: 8px; max-width: 440px; padding: 28px; text-align: center; background: rgb(255 255 255 / 92%); border-radius: var(--fi-radius); box-shadow: var(--fi-shadow-sm); }
.map-consent__inner .fi-icon { color: var(--fi-bordeaux); }
.map-consent__inner p { margin: 0; }
.map-consent__text { color: var(--fi-muted); font-size: .82rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent--objekt { min-height: 300px; margin-top: 24px; }


/* Kontaktseite */
.kontakt-page__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.kontakt-page__form { padding: clamp(24px, 3.5vw, 44px); }
.kontakt-page__form .lead-form__title { font-size: clamp(1.6rem, 1.35rem + .9vw, 2.1rem); }
.kontakt-page__title { margin-bottom: 26px; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.kontakt-page__subtitle { margin: 36px 0 14px; color: var(--fi-ink); font-size: 1.05rem; }
@media (max-width: 960px) { .kontakt-page__grid { grid-template-columns: 1fr; } }

/* Beitrag */
.article-header .eyebrow a { color: inherit; text-decoration: none; }
.article-content { padding-bottom: 0; }
.article-content h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.article-content h3 { font-size: 1.25rem; }
.article-content img { border-radius: var(--fi-radius); }
.article-footer { padding-bottom: clamp(24px, 4vw, 48px); border-top: 0; }
.article-cta .btn-row { margin-top: 22px; }

/* 404 & Suche */
.error-404 h1 { margin-top: 6px; }
.error-404__actions { justify-content: center; margin: 30px 0; }
.error-404__search { max-width: 520px; margin: 0 auto; }
.search-form { display: flex; gap: 8px; }
.search-form .fi-input { flex: 1; min-height: 50px; padding: 12px 16px; border: 1px solid var(--fi-line); border-bottom: 2px solid var(--fi-line-strong); border-radius: var(--fi-radius) var(--fi-radius) 0 0; font: inherit; }
.search-form .btn { min-height: 50px; padding: 0 18px; }
