/* ==========================================================================
   XXL-Garage – Theme-Styles
   Gestaltungsidee: Sprache des Lageplans. Klare Kanten, Maßketten, viel Luft,
   wenige starke Fotos. Farben/Schriftgrößen kommen aus theme.json.
   ========================================================================== */

:root {
	--xxl-navy: var(--wp--preset--color--navy, #001233);
	--xxl-blau: var(--wp--preset--color--blau, #0466C8);
	--xxl-orange: var(--wp--preset--color--orange, #B35A00);
	--xxl-hell: var(--wp--preset--color--hellgrau, #F2F3FA);
	--xxl-linie: #D5DAE3;
	--xxl-soft: #3D4A63;
	--xxl-blau-hell: #E8F1FB;
	--xxl-radius: 16px;
	--xxl-radius-s: 4px;
	--xxl-section-y: clamp(64px, 8vw, 112px);
	--xxl-header-h: 76px;
	--xxl-content: 1120px;
	--xxl-icon-filter: invert(25%) sepia(98%) saturate(2140%) hue-rotate(199deg) brightness(93%) contrast(97%);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
p { margin-block: 0; }
.wp-block-heading { margin: 0; }
:where(p, li, h1, h2, h3) { overflow-wrap: break-word; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
@media (max-width: 600px) { :where(p, li) { hyphens: auto; } }
h1 { font-variation-settings: "opsz" 32; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--xxl-navy); color: #fff; padding: 10px 16px; border-radius: var(--xxl-radius-s); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--xxl-blau); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Primär-Button (Block-Buttons + Header) ----------
   Leichter Verlauf von oben, feine Lichtkante, farbiger Schatten.
   Beim Überfahren wird er etwas heller, beim Klicken etwas dunkler. */
.xxl-btn,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff; text-decoration: none; font-weight: 600; line-height: 1.4; letter-spacing: .005em;
	border: 0; border-radius: 6px; padding: 13px 24px;
	background: linear-gradient(180deg, #C4680C 0%, #B35A00 55%, #A55200 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .22),
		inset 0 -1px 0 rgba(0, 0, 0, .12),
		0 1px 2px rgba(0, 18, 51, .12),
		0 6px 16px -6px rgba(179, 90, 0, .6);
	transition: box-shadow .15s ease, filter .15s ease;
}
.xxl-btn:hover,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	color: #fff; filter: brightness(1.08);
}
.xxl-btn:active,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:active {
	filter: brightness(.94);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 18, 51, .12);
}
.xxl-btn:focus-visible,
.wp-block-button__link:focus-visible { outline: 3px solid rgba(4, 102, 200, .55); outline-offset: 3px; }
.site-nav__cta.xxl-btn { padding: 10px 18px; font-size: 15px; }

/* Sekundär-Button (Kontur) – hier vollständig definiert, damit er auch in PHP-Vorlagen (ohne Block) gleich aussieht */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--xxl-navy); border: 2px solid var(--xxl-navy); box-shadow: none;
	border-radius: 6px; padding: 11px 22px; font-weight: 600; line-height: 1.4; text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--xxl-navy); color: #fff; border-color: var(--xxl-navy); }
.wp-block-buttons { gap: 12px; }

/* Textlink: Absatz mit Klasse "xxl-more" */
.xxl-more a {
	font-weight: 600; color: var(--xxl-blau); text-decoration: underline; text-decoration-thickness: 2px;
	text-underline-offset: 5px; text-decoration-color: rgba(4, 102, 200, .35); transition: text-decoration-color .15s;
}
.xxl-more a:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--xxl-linie); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	max-width: calc(1280px + 40px); margin: 0 auto; padding: 0 20px;
	min-height: var(--xxl-header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__brand img, .site-header .custom-logo { width: 150px; height: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__cta { white-space: nowrap; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.site-nav__list a { color: var(--xxl-navy); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 0; display: inline-block; white-space: nowrap; }
@media (max-width: 1320px) { .site-nav { gap: 24px; } .site-nav__list { gap: 22px; } }
.site-nav__list a:hover, .site-nav__list .current-menu-ancestor > a { color: var(--xxl-blau); }
.site-nav__list .current-menu-item > a { color: var(--xxl-blau); box-shadow: inset 0 -2px 0 var(--xxl-blau); }

.site-nav__list .menu-item-has-children { position: relative; }
.site-nav__list .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; margin-bottom: 3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.site-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: -16px; min-width: 280px;
	background: #fff; border: 1px solid var(--xxl-linie); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 18, 51, .12);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav__list .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; }
.site-nav__list .sub-menu a:hover { background: var(--xxl-hell); }
.site-nav__list .menu-item-has-children:hover > .sub-menu,
.site-nav__list .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.site-header__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--xxl-navy); }
.burger { display: grid; gap: 5px; width: 24px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header__toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
	.site-header__toggle { display: block; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
		flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
		box-shadow: 0 16px 32px rgba(0, 18, 51, .12); border-top: 1px solid var(--xxl-linie);
		max-height: calc(100vh - var(--xxl-header-h)); overflow-y: auto;
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__list > li { border-bottom: 1px solid var(--xxl-hell); }
	.site-nav__list a { padding: 14px 0; display: block; font-size: 16px; }
	.site-nav__list .current-menu-item > a { box-shadow: none; }
	.site-nav__list .menu-item-has-children > a::after { float: right; margin-top: 8px; }
	.site-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; min-width: 0; }
	.site-nav__list .is-open > .sub-menu { display: block; }
	.site-nav__cta { margin-top: 18px; padding: 12px 18px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--xxl-navy); color: rgba(255, 255, 255, .82); font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9CC6F2; }
.site-footer__inner {
	max-width: calc(var(--xxl-content) + 40px); margin: 0 auto; padding: 72px 20px 40px;
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
.site-footer__logo { width: 240px; max-width: 100%; height: auto; display: block; margin-bottom: 18px; }
.site-footer__heading { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer__menu, .site-footer__legal { list-style: none; margin: 0; padding: 0; }
.site-footer__menu li { margin-bottom: 9px; }
.site-footer__bottom {
	max-width: calc(var(--xxl-content) + 40px); margin: 0 auto; padding: 20px 20px 28px;
	border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 14px;
}
.site-footer__legal { display: flex; gap: 28px; }
.xxl-admin-hint a { color: #f6c48f; font-size: 13px; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
	.site-footer__bottom { flex-direction: column; align-items: stretch; text-align: center; gap: 16px; }
	.site-footer__bottom p { margin: 0; }
	.site-footer__legal { gap: 24px; justify-content: center; flex-wrap: wrap; }
}

/* ==========================================================================
   Abschnitte
   ========================================================================== */
.entry-content > .alignfull.wp-block-group { padding-top: var(--xxl-section-y); padding-bottom: var(--xxl-section-y); }
.is-style-hellgrau { background: var(--xxl-hell); }
.is-style-dunkel { background: var(--xxl-navy); color: rgba(255, 255, 255, .86); }
.is-style-dunkel :where(h1, h2, h3, h4) { color: #fff; }

/* Abschnittstitel: linksbündig, kräftig, mit Abstand zum Inhalt */
/* Titel bleibt bündig mit dem Inhalt, Zeilenlänge aber begrenzt (unabhängig von der Fensterbreite) */
.xxl-section-title {
	max-width: min(34ch, 100%) !important;
	margin-bottom: clamp(32px, 4vw, 56px) !important;
}
.is-layout-constrained > .xxl-section-title {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1120px)) / 2)) !important;
	margin-right: auto !important;
}
.is-layout-constrained > .has-text-align-center.xxl-section-title { margin-left: auto !important; }
.is-style-unterstrichen::after { content: ""; display: block; width: 56px; height: 3px; background: var(--xxl-blau); margin-top: 16px; }
.is-style-eyebrow { font-size: 15px !important; font-weight: 600; color: var(--xxl-blau) !important; letter-spacing: 0 !important; }
.xxl-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--xxl-soft); max-width: 56ch; }

/* Kinder in Rastern: keine zusätzlichen Flow-Abstände */
.is-layout-grid > *, .xxl-feature-table > *, .xxl-iconbar > *, .xxl-steps > * { margin-block: 0 !important; }

/* Allgemeine Karte (für eigene Inhalte im Editor) */
.is-style-karte { background: #fff; border: 1px solid var(--xxl-linie); border-radius: var(--xxl-radius); padding: 28px; }
.is-style-karte > * + * { margin-top: 12px; }

/* Icons (Bild-Block mit Klasse xxl-icon) */
.wp-block-image.xxl-icon { margin: 0; }
.wp-block-image.xxl-icon img { width: 44px; height: 44px; object-fit: contain; filter: var(--xxl-icon-filter); }
.wp-block-image.xxl-icon-s img { width: 28px; height: 28px; }
.is-style-abgerundet img { border-radius: var(--xxl-radius); }

/* Checkliste */
.is-style-checkliste { list-style: none; padding-left: 0; margin: 0; }
.is-style-checkliste li { position: relative; padding-left: 34px; }
.is-style-checkliste li + li { margin-top: 12px; }
.is-style-checkliste li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--xxl-blau-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230466C8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.is-style-dunkel .is-style-checkliste li::before, .xxl-handbuch .is-style-checkliste li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%239CC6F2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.is-style-checkliste li strong { display: block; color: var(--xxl-navy); }

/* ---------- Hero: Text auf Lageplan-Raster, Foto daneben ---------- */
.xxl-hero, .xxl-phead, .xxl-seitenkopf {
	position: relative; isolation: isolate; padding-top: clamp(40px, 6vw, 88px) !important; padding-bottom: clamp(48px, 6vw, 88px) !important;
	background-color: #fff;
	background-image:
		linear-gradient(rgba(4, 102, 200, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(4, 102, 200, .07) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: -1px -1px;
}
.xxl-hero::after, .xxl-phead::after, .xxl-seitenkopf::after { /* Raster nach rechts/unten ausblenden */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(255,255,255,0) 30%, #fff 62%), linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 30%);
}
.xxl-hero > *, .xxl-phead > *, .xxl-seitenkopf > * { position: relative; z-index: 1; }
.xxl-hero__cols { align-items: center !important; gap: clamp(32px, 5vw, 72px) !important; margin: 0 !important; }
.xxl-hero__text > * + * { margin-top: 24px; }
.xxl-hero__text h1 { max-width: 15ch; }
.xxl-hero__text .wp-block-buttons { margin-top: 36px; }
.xxl-hero__img { margin: 0; }
.xxl-hero__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; border-radius: var(--xxl-radius); }

/* Maßkette: drei Eckdaten auf einer Bemaßungslinie */
.xxl-masskette {
	position: relative; display: grid !important; grid-template-columns: repeat(3, 1fr);
	margin-top: 48px !important; padding-top: 22px; border-top: 1.5px solid var(--xxl-navy); max-width: 560px;
}
.xxl-masskette::before, .xxl-masskette::after { content: ""; position: absolute; top: -7px; width: 1.5px; height: 13px; background: var(--xxl-navy); }
.xxl-masskette::before { left: 0; }
.xxl-masskette::after { right: 0; }
.xxl-masskette p { position: relative; font-size: 14px; line-height: 1.4; color: var(--xxl-soft); padding: 0 10px; margin: 0 !important; text-align: center; }
.xxl-masskette p + p::before { content: ""; position: absolute; left: -1px; top: -29px; width: 1.5px; height: 13px; background: var(--xxl-navy); }
.xxl-masskette strong { display: block; font-size: 22px; font-weight: 700; color: var(--xxl-navy); letter-spacing: -0.01em; margin-bottom: 2px; }

@media (max-width: 781px) {
	.xxl-hero::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 40%); }
	.xxl-hero__img img { aspect-ratio: 4 / 3; }
	.xxl-hero__img picture img { aspect-ratio: 1 / 1; object-position: 50% 50%; } /* eigener Handy-Ausschnitt */
	.xxl-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.xxl-hero .wp-block-button__link { width: 100%; }
	.xxl-masskette strong { font-size: 17px; }
}

/* Leistungsleiste unter dem Hero */
.xxl-iconbar-section { padding-top: 0 !important; padding-bottom: 0 !important; background: #fff; }
.xxl-iconbar { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--xxl-linie); border-bottom: 1px solid var(--xxl-linie); }
.xxl-iconbar > .wp-block-group { display: flex !important; align-items: center; gap: 14px !important; padding: 26px 20px; min-width: 0; flex-wrap: nowrap !important; }
.xxl-iconbar > .wp-block-group + .wp-block-group { border-left: 1px solid var(--xxl-linie); }
.xxl-iconbar p { font-weight: 600; font-size: 15px; line-height: 1.3; }
.xxl-iconbar .wp-block-image { flex-shrink: 0; }
@media (max-width: 781px) {
	.xxl-iconbar { grid-template-columns: 1fr 1fr; }
	.xxl-iconbar > .wp-block-group { padding: 18px 12px; }
	.xxl-iconbar > .wp-block-group:nth-child(3) { border-left: 0; }
	.xxl-iconbar > .wp-block-group:nth-child(n+3) { border-top: 1px solid var(--xxl-linie); }
	.xxl-iconbar p { font-size: 14px; hyphens: auto; }
}

/* ---------- Bildkacheln (3 Einstiege) ---------- */
.xxl-tiles { gap: 20px !important; }
.xxl-tile {
	position: relative; isolation: isolate; overflow: hidden; border-radius: var(--xxl-radius);
	min-height: 440px; padding: 28px !important; display: flex !important; flex-direction: column; justify-content: flex-end;
	background-size: cover; background-position: center; color: #fff;
}
.xxl-tile::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(0, 18, 51, 0) 30%, rgba(0, 18, 51, .55) 55%, rgba(0, 18, 51, .94) 100%);
	transition: background-color .2s;
}
.xxl-tile:hover::before { background-color: rgba(0, 18, 51, .15); }
.xxl-tile h3 { font-size: 24px; letter-spacing: -0.015em; }
.xxl-tile h3 a { color: #fff; text-decoration: none; }
.xxl-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* ganze Kachel klickbar */
.xxl-tile h3 a:focus-visible { outline: none; }
.xxl-tile:focus-within { outline: 3px solid var(--xxl-blau); outline-offset: 3px; }
.xxl-tile p { margin-top: 10px; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.5; max-width: 34ch; }
.xxl-tile p::after {
	content: "Mehr erfahren"; display: block; margin-top: 18px; font-weight: 600; font-size: 15px; color: #fff;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--xxl-orange);
}
@media (max-width: 781px) { .xxl-tile { min-height: 340px; } }

/* ---------- Foto + Vorteile ---------- */
.xxl-media-text { align-items: center !important; gap: clamp(32px, 6vw, 88px) !important; }
.xxl-photo { margin: 0; }
.xxl-photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--xxl-radius); }
.xxl-tags { list-style: none; padding: 0; margin: 16px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.xxl-tags li { background: var(--xxl-blau-hell); color: var(--xxl-navy); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 4px; }
.xxl-benefits li { padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--xxl-linie); margin: 0 !important; color: var(--xxl-soft); }
.xxl-benefits li:last-child { border-bottom: 1px solid var(--xxl-linie); }
.xxl-benefits li::before { top: 21px; }
.xxl-benefits li strong { font-size: 18px; margin-bottom: 4px; }

/* ---------- Ablauf (echte Abfolge -> nummerierte Zeitleiste) ---------- */
.xxl-process { background: var(--xxl-hell); }
.xxl-steps {
	counter-reset: xxl-step; list-style: none; margin-block: 0 !important; padding: 0; position: relative;
	display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px;
}
.xxl-steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--xxl-blau) 0 8px, transparent 8px 14px); }
.xxl-step { counter-increment: xxl-step; position: relative; padding-top: 68px; }
.xxl-step::before {
	content: counter(xxl-step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
	background: var(--xxl-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px;
	box-shadow: 0 0 0 6px var(--xxl-hell);
}
.xxl-step h3 { font-size: 18px; }
.xxl-step p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--xxl-soft); }
.xxl-section-action { margin-top: 56px !important; }
@media (max-width: 960px) {
	.xxl-steps { grid-auto-flow: row; grid-template-columns: 1fr; gap: 28px; }
	.xxl-steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--xxl-blau) 0 8px, transparent 8px 14px); }
	.xxl-step { padding-top: 8px; padding-left: 72px; min-height: 46px; }
}

/* ---------- Ausstattung (Spezifikationsblatt, dunkel) ---------- */
.xxl-feature-table { border-top: 1px solid rgba(255, 255, 255, .18); }
.xxl-feature-table > .wp-block-group {
	display: grid !important; grid-template-columns: 260px repeat(3, 1fr); align-items: start;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.xxl-feature-table h3 { padding: 26px 24px 26px 0; font-size: 18px; color: #fff; margin: 0 !important; }
.xxl-feature-table h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--xxl-blau); margin-right: 12px; vertical-align: 1px; }
.xxl-feature-table p { padding: 26px 24px; margin: 0 !important; font-size: 16px; color: rgba(255, 255, 255, .86); }
.is-style-dunkel .xxl-more { margin-top: 32px !important; }
.is-style-dunkel .xxl-more a { color: #fff; text-decoration-color: var(--xxl-orange); }
@media (max-width: 781px) {
	.xxl-feature-table > .wp-block-group { grid-template-columns: 1fr; padding: 18px 0; }
	.xxl-feature-table h3 { padding: 0 0 8px; }
	.xxl-feature-table p { padding: 4px 0 4px 22px; }
}

/* ---------- Teaser Unternehmen ---------- */
.xxl-teaser { gap: clamp(32px, 6vw, 88px) !important; align-items: center !important; }
.xxl-teaser .wp-block-image { margin: 0; }
.xxl-teaser .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--xxl-radius); }
.xxl-teaser .wp-block-column:last-child > * + * { margin-top: 16px; }
.xxl-teaser h3 { font-size: 24px; letter-spacing: -0.015em; }
.xxl-teaser p { color: var(--xxl-soft); }
.xxl-teaser p strong { color: var(--xxl-navy); }

/* ---------- FAQ + Handbuch ---------- */
.xxl-faq-cols { gap: clamp(32px, 5vw, 72px) !important; align-items: flex-start !important; }
.xxl-faq-cols > .wp-block-column { flex: 1 1 0 !important; min-width: 0; }
@media (max-width: 781px) { .xxl-faq-cols > .wp-block-column:last-child { flex-basis: 100% !important; } }
.xxl-faq { border-top: 1px solid var(--xxl-linie); }
.wp-block-details { border-bottom: 1px solid var(--xxl-linie); margin: 0 !important; }
.wp-block-details summary { cursor: pointer; padding: 22px 48px 22px 0; font-weight: 600; font-size: 17px; position: relative; list-style: none; color: var(--xxl-navy); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before, .wp-block-details summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--xxl-blau); transition: transform .2s;
}
.wp-block-details summary::after { transform: rotate(90deg); }
.wp-block-details[open] summary::after { transform: rotate(0deg); }
.wp-block-details summary:hover { color: var(--xxl-blau); }
.wp-block-details > :not(summary) { padding: 0 48px 24px 0; margin: 0; color: var(--xxl-soft); }

.xxl-handbuch { background: var(--xxl-navy); color: rgba(255, 255, 255, .86); border-radius: var(--xxl-radius); padding: clamp(28px, 4vw, 48px); }
.xxl-handbuch > * + * { margin-top: 20px; }
.xxl-handbuch h3 { color: #fff; font-size: 24px; letter-spacing: -0.015em; }
.xxl-handbuch .wp-block-columns { gap: clamp(24px, 3vw, 40px) !important; align-items: flex-start !important; }
.xxl-handbuch .wp-block-image { margin: 0; }
.xxl-handbuch .wp-block-image img { display: block; border-radius: 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); transform: rotate(-3deg); }
.xxl-handbuch .wp-block-column:last-child > * + * { margin-top: 14px; }
.xxl-handbuch .is-style-checkliste li { font-size: 16px; }
.xxl-handbuch .is-style-checkliste li + li { margin-top: 8px; }
@media (max-width: 600px) {
	.xxl-handbuch { padding: 28px 22px; }
	.xxl-handbuch .wp-block-columns { flex-direction: column; }
	.xxl-handbuch .wp-block-column { flex-basis: 100% !important; }
	.xxl-handbuch .wp-block-image img { max-width: 130px; }
}

/* ---------- Kosten-/Leistungsblöcke ---------- */
.xxl-icon-cards { gap: 0 !important; border-top: 1px solid var(--xxl-linie); }
.xxl-icon-cards .xxl-card { padding: 32px 28px 32px 0; }
.xxl-icon-cards .xxl-card + .xxl-card { padding-left: 28px; border-left: 1px solid var(--xxl-linie); }
.xxl-icon-cards .xxl-card > * + * { margin-top: 16px; }
.xxl-icon-cards .xxl-card h3 { font-size: 19px; }
.xxl-icon-cards .is-style-checkliste li { font-size: 15px; color: var(--xxl-soft); }
@media (max-width: 960px) {
	.xxl-icon-cards .xxl-card, .xxl-icon-cards .xxl-card + .xxl-card { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--xxl-linie); }
}

/* ---------- Team ---------- */
.xxl-team { row-gap: 40px !important; }
.xxl-team .xxl-card > * + * { margin-top: 6px; }
.xxl-team .wp-block-image { margin: 0 0 16px !important; }
.xxl-team .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; display: block; border-radius: var(--xxl-radius); background: var(--xxl-hell); }
.xxl-team h3 { font-size: 19px; }
.xxl-team .xxl-role { color: var(--xxl-blau); font-size: 15px; font-weight: 600; }
.xxl-team .xxl-contact { font-size: 15px; color: var(--xxl-soft); }

/* ---------- CTA mit Foto ---------- */
.xxl-cta { position: relative; isolation: isolate; color: #fff; text-align: center; background-size: cover; background-position: center; }
.xxl-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 18, 51, .86); }
.xxl-cta h2 { color: #fff; }
.xxl-cta p { color: rgba(255, 255, 255, .86); margin-top: 16px !important; font-size: 18px; }
.xxl-cta .wp-block-buttons { margin-top: 32px !important; }
.xxl-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.xxl-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--xxl-navy); border-color: #fff; }

/* ---------- Platzhalter für dynamische Blöcke (bis Phase 3) ---------- */
.xxl-placeholder { border: 2px dashed var(--xxl-blau); border-radius: var(--xxl-radius); padding: 40px 24px; text-align: center; color: var(--xxl-blau); background: rgba(4, 102, 200, .04); }
.xxl-handbuch .xxl-placeholder { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .05); padding: 24px; }

/* ---------- Seitenkopf ohne Hero ---------- */
.xxl-page-head { background: var(--xxl-hell); padding: 72px 20px; }
.xxl-page-head > * { max-width: var(--xxl-content); margin-inline: auto; }

/* ==========================================================================
   Projekte: Karten, Filter
   ========================================================================== */
.xxl-projekte__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; }
.xxl-pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--xxl-linie); border-radius: var(--xxl-radius); overflow: hidden; }
.is-style-hellgrau .xxl-pcard { border-color: transparent; }
.xxl-pcard[hidden] { display: none; }
.xxl-pcard__media { position: relative; aspect-ratio: 3 / 2; background: var(--xxl-hell); overflow: hidden; }
.xxl-pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.xxl-pcard:hover .xxl-pcard__img { transform: scale(1.03); }
.xxl-pcard__media .xxl-pcard__badge { position: absolute; top: 14px; left: 14px; }
.xxl-pcard__media .xxl-pcard__badge + .xxl-pcard__badge { left: auto; right: 14px; }
.xxl-pcard__badge {
	display: inline-block; font-size: 13px; font-weight: 600; line-height: 1; padding: 7px 10px; border-radius: 4px;
	background: #fff; color: var(--xxl-navy); box-shadow: 0 1px 2px rgba(0, 18, 51, .12);
}
.xxl-pcard__badge--bau { background: var(--xxl-orange); color: #fff; }
.xxl-pcard__badge--planung { background: var(--xxl-blau); color: #fff; }
.xxl-pcard__badge--fertig { background: #fff; color: var(--xxl-navy); }
.xxl-pcard__badge--kauf { background: var(--xxl-navy); color: #fff; }
.xxl-pcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.xxl-pcard__ort { font-size: 14px; font-weight: 600; color: var(--xxl-blau); }
.xxl-pcard__title { font-size: 19px; line-height: 1.25; margin: 0; }
.xxl-pcard__title a { color: var(--xxl-navy); text-decoration: none; }
.xxl-pcard__title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.xxl-pcard__title a:focus-visible { outline: none; }
.xxl-pcard:focus-within { outline: 3px solid var(--xxl-blau); outline-offset: 2px; }
.xxl-pcard__facts { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--xxl-linie); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--xxl-navy); }
.xxl-pcard__facts li { display: flex; align-items: center; gap: 9px; line-height: 1.35; }
.xxl-pcard__facts .xxl-icon { flex: none; color: var(--xxl-blau); }
.xxl-pcard__fact--kalender { flex-basis: 100%; color: var(--xxl-soft); }
.xxl-pcard__preis { margin-top: auto !important; padding-top: 12px; font-weight: 700; color: var(--xxl-navy); font-size: 17px; }

.xxl-pfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.xxl-pfilter__btn {
	font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; padding: 8px 16px; border-radius: 999px;
	border: 1px solid var(--xxl-linie); background: #fff; color: var(--xxl-navy); transition: background-color .15s, color .15s, border-color .15s;
}
.xxl-pfilter__btn:hover { border-color: var(--xxl-navy); }
.xxl-pfilter__btn.is-active { background: var(--xxl-navy); border-color: var(--xxl-navy); color: #fff; }
.xxl-projekte-leer { color: var(--xxl-soft); }

/* ==========================================================================
   Formulare
   ========================================================================== */
.xxl-form-card { background: #fff; border-radius: var(--xxl-radius); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--xxl-linie); }
.is-style-hellgrau .xxl-form-card { border-color: transparent; }
.xxl-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xxl-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.xxl-form--handbuch .xxl-form__grid { grid-template-columns: 1fr; }
.xxl-form__field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.xxl-form__field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .xxl-form__grid { grid-template-columns: 1fr; } }
.xxl-form label { font-size: 15px; font-weight: 600; color: var(--xxl-navy); }
.xxl-form__opt { font-weight: 400; color: var(--xxl-soft); }
.xxl-form input[type="text"], .xxl-form input[type="email"], .xxl-form input[type="tel"], .xxl-form select, .xxl-form textarea {
	font: inherit; font-size: 16px; color: var(--xxl-navy); background: #fff; width: 100%;
	border: 1px solid #C3CAD6; border-radius: 6px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
.xxl-form textarea { resize: vertical; min-height: 120px; }
.xxl-form input:focus, .xxl-form select:focus, .xxl-form textarea:focus { outline: none; border-color: var(--xxl-blau); box-shadow: 0 0 0 3px rgba(4, 102, 200, .18); }
.xxl-form [aria-invalid="true"] { border-color: #B3261E !important; }
.xxl-form__error { display: block; color: #B3261E; font-size: 14px; font-weight: 500; }
.xxl-form__consent { margin: 18px 0 0; }
.xxl-form__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--xxl-soft); line-height: 1.5; }
.xxl-form__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--xxl-blau); flex-shrink: 0; }
.xxl-form__consent a { color: var(--xxl-blau); }
.xxl-form__actions { margin: 20px 0 0; }
.xxl-form__submit { font: inherit; font-size: 16px; cursor: pointer; }
.xxl-form__submit[disabled] { opacity: .7; cursor: progress; }
.xxl-form__status { margin: 12px 0 0; font-size: 15px; }
.xxl-form__status.is-error { color: #B3261E; font-weight: 500; }
.xxl-form-done { padding: 8px 0; outline: none; }
.xxl-form-done__title { font-size: 18px; font-weight: 600; color: var(--xxl-navy); }
.xxl-form-done__download { margin-top: 18px; }

/* Formular auf dunklem Grund (Handbuch-Box) */
.xxl-handbuch .xxl-form label { color: #fff; }
.xxl-handbuch .xxl-form__consent label, .xxl-handbuch .xxl-form__opt { color: rgba(255, 255, 255, .78); }
.xxl-handbuch .xxl-form__consent a { color: #9CC6F2; }
.xxl-handbuch .xxl-form input[type="text"], .xxl-handbuch .xxl-form input[type="email"] { border-color: transparent; }
.xxl-handbuch .xxl-form__error, .xxl-handbuch .xxl-form__status.is-error { color: #FFB4A9; }
.xxl-handbuch .xxl-form-done__title { color: #fff; }
.xxl-handbuch .xxl-form__submit { width: 100%; }

/* ==========================================================================
   Projektseite
   ========================================================================== */
.xxl-phead { padding-top: clamp(32px, 5vw, 64px) !important; padding-bottom: clamp(40px, 5vw, 64px) !important; }
.xxl-phead::after { background: linear-gradient(90deg, rgba(255,255,255,0) 35%, #fff 70%), linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 35%); }
/* Auf grauem Grund: Karten & Datenblatt weiß absetzen */
.xxl-einheiten .xxl-unit { background: var(--xxl-hell); }
.xxl-pbody .xxl-specs { background: #fff; border-top: 0; border-radius: var(--xxl-radius); padding: 8px 24px 12px; }
.xxl-pbody .xxl-specs dl > div:last-child { border-bottom: 0; }
#anfrage .xxl-form-card { background: var(--xxl-hell); border-color: transparent; }
.xxl-phead__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.xxl-phead__text > * + * { margin-top: 18px; }
.xxl-phead__back a { font-size: 15px; font-weight: 600; color: var(--xxl-blau); text-decoration: none; }
.xxl-phead__back a::before { content: ""; display: inline-block; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 8px; vertical-align: 1px; }
.xxl-phead__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.xxl-phead h1 { font-size: clamp(34px, 4.2vw, 52px); }
.xxl-phead__ort { font-weight: 600; color: var(--xxl-soft); }
.xxl-phead__actions { margin-top: 28px !important; display: flex; flex-wrap: wrap; gap: 12px; }
.xxl-phead__stand { font-size: 14px; color: var(--xxl-soft); }
.xxl-phead__media { margin: 0; }
.xxl-phead__media a { display: block; cursor: zoom-in; }
.xxl-pbilder { padding-top: clamp(28px, 3.5vw, 44px) !important; padding-bottom: clamp(28px, 3.5vw, 44px) !important; }
.xxl-pbilder__stand { margin: 0 0 16px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.xxl-pbilder__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.xxl-pbilder__grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.xxl-pbilder__grid a[hidden] { display: none; }
.xxl-pbilder__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.xxl-pbilder__grid a:hover img { transform: scale(1.04); }
.xxl-pbilder__grid .has-mehr::after { content: attr(data-mehr); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 18, 51, .62); color: #fff; font-weight: 600; font-size: 17px; }
@media (max-width: 781px) { .xxl-pbilder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xxl-phead__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--xxl-radius); }
.xxl-masskette--projekt { grid-template-columns: repeat(var(--xxl-cols, 4), 1fr); max-width: var(--wp--style--global--content-size, 1120px); margin-top: clamp(40px, 5vw, 64px) !important; }
@media (max-width: 781px) {
	.xxl-phead__inner { grid-template-columns: 1fr; }
	.xxl-phead__media { order: -1; }
	/* Mobil: Maßkette senkrecht – Linie links, Querstriche zwischen den Angaben */
	.xxl-masskette--projekt { grid-template-columns: 1fr; row-gap: 0; border-top: 0; border-left: 1.5px solid var(--xxl-navy); padding: 0 0 0 20px; }
	.xxl-masskette--projekt::before, .xxl-masskette--projekt::after { left: -7.5px; right: auto; width: 13px; height: 1.5px; }
	.xxl-masskette--projekt::before { top: 0; }
	.xxl-masskette--projekt::after { top: auto; bottom: 0; }
	.xxl-masskette--projekt p { text-align: left; padding: 12px 0; }
	.xxl-masskette--projekt p + p::before { display: block; left: -27.5px; top: -0.75px; width: 13px; height: 1.5px; }
}

.xxl-pbody__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.xxl-pbody__grid--single { grid-template-columns: minmax(0, 760px); }
.xxl-pbody__text > p, .xxl-richtext p { color: var(--xxl-soft); max-width: 68ch; }
.xxl-pbody__text > p + p, .xxl-richtext p + p { margin-top: 16px; }
@media (max-width: 900px) { .xxl-pbody__grid { grid-template-columns: 1fr; } }

.xxl-specs { border-top: 2px solid var(--xxl-navy); }
.xxl-specs__title { font-size: 18px; padding: 16px 0 6px; }
.xxl-specs dl { margin: 0; }
.xxl-specs dl > div { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--xxl-linie); font-size: 15px; }
.xxl-specs dt { color: var(--xxl-soft); }
.xxl-specs dd { margin: 0; font-weight: 400; color: var(--xxl-navy); }
.xxl-pbody .xxl-specs--breit { margin-top: clamp(32px, 4vw, 48px); padding: 8px 32px 16px; }
.xxl-specs--breit dl { columns: 2; column-gap: 48px; }
.xxl-specs--breit dl > div { break-inside: avoid; grid-template-columns: 150px 1fr; }
.xxl-pbody .xxl-specs--breit dl > div:last-child { border-bottom: 1px solid var(--xxl-linie); }
@media (max-width: 760px) { .xxl-specs--breit dl { columns: 1; } .xxl-specs--breit dl > div { grid-template-columns: 110px 1fr; gap: 12px; } .xxl-pbody .xxl-specs--breit { padding: 8px 20px 12px; } }

.xxl-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.xxl-unit { background: #fff; border-radius: var(--xxl-radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.xxl-unit h3 { font-size: 19px; }
.xxl-unit__preis { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; color: var(--xxl-navy); line-height: 1.1; padding-bottom: 12px; border-bottom: 1px solid var(--xxl-linie); }
.xxl-unit__preis span { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--xxl-soft); margin-top: 4px; }
.xxl-unit dl { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.xxl-unit dl > div { display: flex; justify-content: space-between; gap: 12px; }
.xxl-unit dt { color: var(--xxl-soft); }
.xxl-unit dd { margin: 0; font-weight: 600; text-align: right; }
.xxl-unit__hinweis { font-size: 14px; color: var(--xxl-soft); margin-top: auto !important; padding-top: 8px; }
.xxl-units__note { margin-top: 24px !important; font-size: 14px; color: var(--xxl-soft); }

.xxl-finanz__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.xxl-finanz__inner .is-style-checkliste li { color: rgba(255, 255, 255, .9); }
.xxl-finanz .xxl-more { margin-top: 24px !important; }
.xxl-finanz .xxl-more a { color: #fff; text-decoration-color: var(--xxl-orange); }
.xxl-finanz__note { margin-top: 20px !important; font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 781px) { .xxl-finanz__inner { grid-template-columns: 1fr; } }

.xxl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.xxl-gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.xxl-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.xxl-gallery a:hover img { transform: scale(1.04); }

.xxl-lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.xxl-lightbox__fig { margin: 0; }
.xxl-lightbox__cap { margin-top: 12px; text-align: center; color: #fff; font-size: 15px; }
.xxl-lightbox__cap[hidden] { display: none; }
.xxl-lightbox::backdrop { background: rgba(0, 18, 51, .92); }
.xxl-lightbox img { display: block; max-width: 94vw; max-height: 80vh; border-radius: 8px; }
.xxl-lightbox__close, .xxl-lightbox__nav { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.xxl-lightbox__close { top: 20px; right: 20px; }
.xxl-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.xxl-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.xxl-lightbox__close:hover, .xxl-lightbox__nav:hover { background: rgba(255, 255, 255, .25); }

/* Richtpreisrechner (übernommen): nur Rahmen, das Innere bringt eigene Styles mit */
.xxl-rechner { scroll-margin-top: 100px; }
.xxl-subtitle { font-size: 18px; margin-top: 0 !important; margin-bottom: 18px !important; color: var(--xxl-soft); font-weight: 600; }
.xxl-projekte + .xxl-subtitle, .xxl-projekte + .wp-block-heading { margin-top: 56px !important; }
.is-style-hellgrau > .xxl-more { margin-top: 32px !important; }

.xxl-pbody__grid--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 900px) { .xxl-pbody__grid--form { grid-template-columns: 1fr; } }
.xxl-form-card, .xxl-handbuch, .xxl-form-wrap { container-type: inline-size; }
@container (max-width: 480px) { .xxl-form__grid { grid-template-columns: 1fr; } }

/* ---------- Handbuch als breite Box über der FAQ ---------- */
.xxl-handbuch--wide { padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px); }
.xxl-handbuch--wide .xxl-handbuch__cols { gap: clamp(24px, 4vw, 56px) !important; align-items: center !important; margin: 0 !important; }
.xxl-handbuch--wide h2 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); }
.xxl-handbuch__text > * + * { margin-top: 16px; }
.xxl-handbuch__cover .wp-block-image img { max-width: 220px; margin-inline: auto; }
.xxl-handbuch__form { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 24px !important; }
.xxl-faq-block { gap: clamp(32px, 5vw, 72px) !important; }
/* Abstand nur, wenn das FAQ unter einem anderen Element (z. B. Handbuch-Box) steht */
* + .xxl-faq-block { margin-top: clamp(64px, 8vw, 104px) !important; }
.is-layout-constrained > .xxl-faq-block:first-child { margin-top: 0 !important; }
.xxl-faq-block .xxl-section-title { position: sticky; top: calc(var(--xxl-header-h) + 32px); }
@media (max-width: 900px) {
	.xxl-handbuch--wide .xxl-handbuch__cols { flex-wrap: wrap !important; flex-direction: row !important; align-items: stretch !important; }
	.xxl-handbuch__cover { flex-basis: 100% !important; }
	.xxl-handbuch__cover .wp-block-image img { max-width: 140px; margin-inline: 0; }
	.xxl-handbuch__text, .xxl-handbuch__form { flex-basis: 100% !important; width: 100%; }
	.xxl-handbuch__form { padding: 20px !important; }
}
@media (max-width: 781px) {
	.xxl-faq-block .xxl-section-title { position: static; margin-bottom: 8px !important; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.xxl-seitenkopf { padding-top: clamp(40px, 6vw, 80px) !important; padding-bottom: clamp(40px, 5vw, 72px) !important; }
.xxl-seitenkopf h1 { font-size: clamp(34px, 4.2vw, 52px); max-width: 20ch; }
.xxl-seitenkopf > * + * { margin-top: 18px; }
.xxl-seitenkopf .wp-block-buttons { margin-top: 28px !important; }
.xxl-hinweis { font-size: 14px; color: var(--xxl-soft); max-width: 72ch; margin-top: 28px !important; }

/* ---------- Kontaktseite: dunkles Infopanel + Formular als eine Einheit ---------- */
.xxl-kontakt {
	padding-top: clamp(40px, 6vw, 88px) !important; padding-bottom: clamp(48px, 7vw, 104px) !important;
	background-color: var(--xxl-hellgrau, #F2F3FA);
}
.xxl-kontakt__cols { gap: 0 !important; align-items: stretch !important; border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 18, 51, .35); }
.xxl-kontakt__cols > .wp-block-column { display: flex; flex-direction: column; }
.xxl-kontakt__panel, .xxl-kontakt__form { flex: 1; margin: 0 !important; }
.xxl-kontakt__panel { background: var(--xxl-navy); color: rgba(255, 255, 255, .78); border-radius: 14px 0 0 14px; padding: 0 clamp(24px, 3vw, 44px) clamp(28px, 3vw, 44px); overflow: hidden; }
.xxl-kontakt__panel > * + * { margin-top: 14px; }
.xxl-kontakt__foto { margin: 0 calc(-1 * clamp(24px, 3vw, 44px)) 28px !important; }
.xxl-kontakt__foto img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.xxl-kontakt__titel { font-size: clamp(24px, 2.2vw, 30px) !important; margin: 0 !important; }
.xxl-kontakt__panel .xxl-kontakt__titel { color: #fff; }
.xxl-kontakt__panel a { color: #fff; text-decoration: none; }
.xxl-kontakt__panel a:hover { text-decoration: underline; text-decoration-color: var(--xxl-orange-hell, #C86604); text-underline-offset: 4px; }
.xxl-kontakt__tel { margin-top: 24px !important; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.xxl-kontakt__mail { margin-top: 6px !important; font-size: 18px; font-weight: 600; }
.xxl-kontakt__adresse { font-size: 15px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.xxl-kontakt__ablauf-titel { color: #fff !important; font-size: 17px !important; margin-top: 28px !important; }
.xxl-kontakt__ablauf { list-style: none; counter-reset: schritt; padding: 0; margin: 18px 0 0 !important; }
.xxl-kontakt__ablauf li { counter-increment: schritt; position: relative; padding: 0 0 22px 46px; font-size: 15px; line-height: 1.5; }
.xxl-kontakt__ablauf li:last-child { padding-bottom: 0; }
.xxl-kontakt__ablauf li::before { content: counter(schritt); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #9CC6F2; color: #9CC6F2; font-size: 14px; font-weight: 700; display: grid; place-items: center; background: var(--xxl-navy); z-index: 1; }
.xxl-kontakt__ablauf li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 28px; bottom: 2px; border-left: 1.5px dashed rgba(156, 198, 242, .45); }
.xxl-kontakt__ablauf strong { display: block; color: #fff; font-weight: 600; }
.xxl-kontakt__form { background: #fff; border-radius: 0 14px 14px 0; padding: clamp(28px, 4vw, 56px); }
.xxl-kontakt__form > * + * { margin-top: 14px; }
.xxl-kontakt__form > p { color: var(--xxl-soft); max-width: 60ch; }
.xxl-kontakt__form .xxl-form { margin-top: 28px !important; }
@media (max-width: 781px) {
	.xxl-kontakt__panel { border-radius: 14px 14px 0 0; }
	.xxl-kontakt__form { border-radius: 0 0 14px 14px; }
}

/* Einleitungssatz unter einer Abschnittsüberschrift */
.xxl-section-title:has(+ .xxl-intro) { margin-bottom: 14px !important; }
.xxl-intro { max-width: min(64ch, 100%) !important; color: var(--xxl-soft); margin-bottom: clamp(28px, 3.5vw, 44px) !important; }
.is-layout-constrained > .xxl-intro { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1120px)) / 2)) !important; margin-right: auto !important; }
.xxl-seitenkopf.is-layout-constrained > :is(h1, .xxl-lead), .is-layout-constrained > .xxl-hinweis { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1120px)) / 2)) !important; margin-right: auto !important; }
.entry-content > section[id] { scroll-margin-top: calc(var(--xxl-header-h, 80px) - 1px); }

/* ---------- Leistungsseiten ---------- */
.xxl-seitenkopf__cols { align-items: center !important; gap: clamp(32px, 5vw, 72px) !important; margin-block: 0 !important; }
.xxl-seitenkopf__cols .wp-block-column > * + * { margin-top: 18px; }
.xxl-seitenkopf__cols h1 { font-size: clamp(32px, 3.8vw, 48px); }
.xxl-seitenkopf__cols .wp-block-buttons { margin-top: 28px !important; }
.xxl-seitenkopf__cols .xxl-masskette { margin-top: 40px !important; }
.xxl-seitenkopf__bild { margin: 0; }
.xxl-seitenkopf__bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--xxl-radius); }
@media (max-width: 781px) { .xxl-seitenkopf__bild img { aspect-ratio: 16 / 10; } }

.xxl-angebot__cols { gap: clamp(32px, 5vw, 80px) !important; align-items: center !important; }
.xxl-angebot__cols .xxl-section-title { margin-left: 0 !important; margin-bottom: 20px !important; }
.xxl-angebot__cols h3 { color: #fff; font-size: 17px; margin-top: 28px !important; }
.xxl-preiskarte { background: #fff; color: var(--xxl-navy); border-radius: 14px; padding: clamp(28px, 3vw, 40px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5); }
.xxl-preiskarte > * + * { margin-top: 10px; }
.xxl-preiskarte__label { font-size: 15px; font-weight: 600; color: var(--xxl-soft) !important; }
.xxl-preiskarte__preis { font-size: clamp(40px, 4vw, 52px); font-weight: 750; line-height: 1; letter-spacing: -.02em; color: var(--xxl-navy) !important; margin-top: 12px !important; }
.xxl-preiskarte__ust { font-size: 14px; color: var(--xxl-soft) !important; }
.xxl-preiskarte .is-style-checkliste { margin-top: 24px !important; padding-top: 20px; border-top: 1px solid var(--xxl-linie); }
.xxl-preiskarte .is-style-checkliste li { color: var(--xxl-navy); font-size: 15px; }
.xxl-preiskarte .wp-block-buttons { margin-top: 28px !important; }
.xxl-preiskarte .wp-block-button, .xxl-preiskarte .wp-block-button__link { width: 100%; text-align: center; }

.xxl-typen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.xxl-typ { background: #fff; border: 1px solid var(--xxl-linie); border-radius: 14px; padding: 28px; margin: 0 !important; }
.xxl-typ > * + * { margin-top: 8px; }
.xxl-typ h3 { font-size: 22px; }
.xxl-typ__flaeche { font-size: 34px; font-weight: 750; color: var(--xxl-navy); line-height: 1.1; letter-spacing: -.01em; margin-top: 14px !important; }
.xxl-typ dl, .xxl-typ .xxl-typ__daten { margin: 18px 0 0 !important; border-top: 1px solid var(--xxl-linie); }
.xxl-typ__daten p { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--xxl-linie); margin: 0 !important; font-size: 15px; }
.xxl-typ__daten p span:first-child { color: var(--xxl-soft); }
.xxl-typ__highlight { margin-top: 16px !important; font-size: 15px; color: var(--xxl-blau); font-weight: 600; }
@media (max-width: 900px) { .xxl-typen { grid-template-columns: 1fr; } }
.xxl-icon-cards .xxl-card p { font-size: 15px; line-height: 1.55; color: var(--xxl-soft); }
.xxl-icon-cards .xxl-icon img { width: 44px; height: 44px; }
.is-style-dunkel .xxl-preiskarte .is-style-checkliste li::before { background: var(--xxl-blau-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230466C8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.xxl-card__preis { font-size: 15px; font-weight: 700; color: var(--xxl-navy) !important; }
.xxl-icon-cards .xxl-card h3 a { color: inherit; text-decoration: none; }
.xxl-icon-cards .xxl-card h3 a:hover { color: var(--xxl-blau); }
.xxl-nutzer__cols { gap: clamp(24px, 4vw, 48px) !important; }
.xxl-nutzer > * + * { margin-top: 14px; }
.xxl-nutzer .xxl-photo img { aspect-ratio: 16 / 10; }
.xxl-nutzer h3 { margin-top: 24px !important; font-size: 22px; }
.xxl-nutzer p { color: var(--xxl-soft); }
.xxl-liste-2sp { columns: 2; column-gap: 56px; }
.xxl-liste-2sp li { break-inside: avoid; margin: 0 0 22px !important; }
.is-style-dunkel .xxl-liste-2sp li strong { color: #fff; display: block; }
@media (max-width: 781px) { .xxl-liste-2sp { columns: 1; } }
/* Foto je Einheitentyp (freigestellt, gleiche Bildhöhe) */
.xxl-typ__bild { margin: 0 0 20px !important; height: clamp(190px, 18vw, 250px); display: flex; justify-content: center; align-items: flex-end; }
.xxl-typ__bild img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 18, 51, .18)); }
.is-style-dunkel .xxl-intro { color: rgba(255, 255, 255, .72); }
.xxl-nowrap { white-space: nowrap; }
/* Textlinks auf dunklem Grund */
.is-style-dunkel :is(p, li) a:not(.wp-element-button) { color: #fff; text-decoration: underline; text-decoration-color: var(--xxl-orange-hell, #C86604); text-underline-offset: 3px; }
.is-style-dunkel :is(p, li) a:not(.wp-element-button):hover, .is-style-dunkel :is(p, li) a:not(.wp-element-button):focus-visible { color: #9CC6F2; text-decoration-color: currentColor; }
.is-style-dunkel .xxl-preiskarte :is(p, li) a:not(.wp-element-button) { color: var(--xxl-blau); }
/* Kostenblöcke: Bild links, 2×2-Raster rechts */
.xxl-kosten__cols { gap: clamp(32px, 5vw, 64px) !important; align-items: center !important; }
.xxl-kosten__bild { margin: 0; }
.xxl-kosten__bild img { display: block; width: 100%; height: auto; border-radius: var(--xxl-radius); }
.xxl-icon-cards--2x2 { border-top: 0 !important; }
.xxl-icon-cards--2x2 .xxl-card, .xxl-icon-cards--2x2 .xxl-card + .xxl-card { padding: 26px 26px 26px 0; border-left: 0; }
.xxl-icon-cards--2x2 .xxl-card:nth-child(even) { padding-left: 26px; padding-right: 0; border-left: 1px solid var(--xxl-linie); }
.xxl-icon-cards--2x2 .xxl-card:nth-child(-n+2) { border-bottom: 1px solid var(--xxl-linie); }
@media (max-width: 781px) {
	.xxl-icon-cards--2x2 .xxl-card, .xxl-icon-cards--2x2 .xxl-card + .xxl-card, .xxl-icon-cards--2x2 .xxl-card:nth-child(even) { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--xxl-linie); }
}
/* Ablauf auf weißem Grund + verlinkte Schritte */
.xxl-process--weiss { background: #fff; }
.xxl-process--weiss .xxl-step::before { box-shadow: 0 0 0 6px #fff; }
.xxl-step h3 a { color: inherit; text-decoration: none; }
.xxl-step h3 a:hover { color: var(--xxl-blau); }
.xxl-step .xxl-more { margin-top: 10px !important; font-size: 15px; }
.xxl-kontakt--weiss { background-color: #fff !important; }

/* Kapitalanlage: zwei Wege + Rechenbeispiel */
.xxl-wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.xxl-weg { margin: 0 !important; border: 1px solid var(--xxl-linie); border-top: 4px solid var(--xxl-navy); border-radius: 14px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.xxl-weg > * + * { margin-top: 14px; }
.xxl-weg h3 { font-size: 22px; }
.xxl-weg > p { color: var(--xxl-soft); }
.xxl-weg .wp-block-buttons { margin-top: auto !important; padding-top: 24px; }
.xxl-rechnung { margin-top: 40px !important; background: var(--xxl-hell); border-radius: 14px; padding: clamp(24px, 3vw, 36px); }
.xxl-rechnung h3 { font-size: 18px; }
.xxl-rechnung__zeilen { margin-top: 16px !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--xxl-navy); }
.xxl-rechnung__zeilen p { margin: 0 !important; padding: 14px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.xxl-rechnung__zeilen p span:first-child { font-size: 14px; color: var(--xxl-soft); }
.xxl-rechnung__zeilen p span:last-child { font-size: 22px; font-weight: 700; color: var(--xxl-navy); letter-spacing: -.01em; }
.xxl-rechnung__summe span:last-child { color: var(--xxl-orange) !important; }
.xxl-rechnung .xxl-hinweis { margin-top: 18px !important; }
@media (max-width: 781px) {
	.xxl-wege { grid-template-columns: 1fr; }
	.xxl-rechnung__zeilen { grid-template-columns: 1fr 1fr; row-gap: 12px; }
}

/* Rechtstexte */
.xxl-seitenkopf--klein { padding-bottom: clamp(24px, 3vw, 40px) !important; }
.xxl-rechtstext { padding-top: clamp(24px, 3vw, 40px) !important; padding-bottom: clamp(56px, 7vw, 96px) !important; }
.xxl-rechtstext h2 { font-size: 24px; margin-top: 44px !important; }
.xxl-rechtstext h3 { font-size: 19px; margin-top: 28px !important; }
.xxl-rechtstext h4 { font-size: 17px; margin-top: 20px !important; }
.xxl-rechtstext > * + * { margin-top: 14px; }
.xxl-rechtstext p, .xxl-rechtstext li { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }

/* Team-Karten mit Kurztext */
.xxl-team .xxl-bio { font-size: 15px; line-height: 1.55; color: var(--xxl-soft); margin-top: 12px !important; }
.xxl-team .xxl-contact a { color: var(--xxl-blau); text-decoration: none; }
.xxl-team .xxl-contact a:hover { text-decoration: underline; }



/* ---------- Team: Foto-Karten mit Name, Rolle, E-Mail und aufklappbarem Kurztext (Über uns) ---------- */
.xxl-team--karten { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px !important; }
.xxl-team--karten .xxl-person { position: relative; isolation: isolate; overflow: hidden; margin: 0 !important; padding: 24px; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; border: 0; border-radius: var(--xxl-radius); background: var(--xxl-navy); box-shadow: none; color: #fff; }
.xxl-team--karten .xxl-person > * { margin: 0 !important; }
.xxl-team--karten .xxl-person .wp-block-image { position: absolute; inset: 0; z-index: -2; }
.xxl-team--karten .xxl-person .wp-block-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 14%; border-radius: 0; background: var(--xxl-hell); transition: transform .5s ease; }
/* Verlauf unten für lesbare Schrift; beim Aufklappen deckt er mehr vom Foto ab */
.xxl-team--karten .xxl-person::before,
.xxl-team--karten .xxl-person::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .3s ease; }
.xxl-team--karten .xxl-person::before { background: linear-gradient(to top, color-mix(in srgb, var(--xxl-navy) 94%, transparent) 0%, color-mix(in srgb, var(--xxl-navy) 70%, transparent) 26%, color-mix(in srgb, var(--xxl-navy) 0%, transparent) 54%); }
.xxl-team--karten .xxl-person::after { background: linear-gradient(to top, color-mix(in srgb, var(--xxl-navy) 96%, transparent) 0%, color-mix(in srgb, var(--xxl-navy) 88%, transparent) 55%, color-mix(in srgb, var(--xxl-navy) 35%, transparent) 100%); opacity: 0; }
.xxl-team--karten .xxl-person:has(.xxl-bio[open])::after { opacity: 1; }
.xxl-team--karten .xxl-person h3 { color: #fff; font-size: 22px; line-height: 1.2; }
.xxl-team--karten .xxl-person .xxl-role { margin-top: 4px !important; color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 500; }
.xxl-team--karten .xxl-person .xxl-contact { margin-top: 14px !important; font-size: 14.5px; overflow-wrap: anywhere; }
.xxl-team--karten .xxl-person .xxl-contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; text-decoration: none; }
.xxl-team--karten .xxl-person .xxl-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.xxl-team--karten .xxl-person .xxl-contact a::before { content: ""; width: 17px; height: 17px; flex: none; background: currentColor; opacity: .85; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6 8.5-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6 8.5-6'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Chevron-Knopf: Text „Mehr erfahren“ bleibt für Screenreader erhalten */
.xxl-team--karten .xxl-bio.wp-block-details { margin-top: 14px !important; padding: 0; border: 0; }
.xxl-team--karten .xxl-bio summary { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; list-style: none; cursor: pointer; color: #fff; font-size: 0; transition: background-color .2s, border-color .2s; }
.xxl-team--karten .xxl-bio summary::-webkit-details-marker { display: none; }
.xxl-team--karten .xxl-bio summary::before { display: none; }
.xxl-team--karten .xxl-bio summary::after { content: ""; position: static; top: auto; right: auto; width: 8px; height: 8px; background: none; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
.xxl-team--karten .xxl-bio[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.xxl-team--karten .xxl-bio summary:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); }
.xxl-team--karten .xxl-bio summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.xxl-team--karten .xxl-bio > :not(summary) { padding: 0; }
.xxl-team--karten .xxl-bio p { margin-top: 12px !important; color: rgba(255, 255, 255, .9); font-size: 15px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
	.xxl-team--karten .xxl-person::before, .xxl-team--karten .xxl-person::after, .xxl-team--karten .xxl-bio summary::after { transition: none; }
}
@media (max-width: 1080px) { .xxl-team--karten .xxl-person { padding: 20px; } .xxl-team--karten .xxl-person h3 { font-size: 20px; } }
@media (max-width: 900px) { .xxl-team--karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Smartphone: Karten seitlich wischen statt sechs hohe Karten untereinander */
@media (max-width: 600px) {
	.xxl-team--karten { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--wp--style--root--padding-left, 20px); margin-inline: calc(-1 * var(--wp--style--root--padding-left, 20px)) !important; padding: 0 var(--wp--style--root--padding-left, 20px) 6px; scrollbar-width: none; }
	.xxl-team--karten::-webkit-scrollbar { display: none; }
	.xxl-team--karten .xxl-person { scroll-snap-align: start; }
}
.xxl-team--karten .xxl-person h3, .xxl-team--karten .xxl-person .xxl-role { text-shadow: 0 1px 12px rgba(0, 18, 51, .35); }
@media (max-width: 600px) {
	.xxl-team--karten .xxl-person { padding: 18px; }
	.xxl-team--karten .xxl-person::before { background: linear-gradient(to top, color-mix(in srgb, var(--xxl-navy) 95%, transparent) 0%, color-mix(in srgb, var(--xxl-navy) 78%, transparent) 36%, color-mix(in srgb, var(--xxl-navy) 0%, transparent) 66%); }
	.xxl-team--karten .xxl-person .xxl-contact { font-size: 13px; overflow-wrap: normal; white-space: nowrap; }
	.xxl-team--karten .xxl-person .xxl-contact a { gap: 6px; }
	.xxl-team--karten .xxl-person .xxl-contact a::before { width: 15px; height: 15px; }
}
/* Team-Karten: Chevron mittig in Orange ohne Kreis, E-Mail in hellem Akzentblau */
.xxl-team--karten .xxl-person .xxl-contact a { color: #9CC6F2; }
.xxl-team--karten .xxl-person .xxl-contact a::before { opacity: 1; }
.xxl-team--karten .xxl-bio.wp-block-details { margin-top: 10px !important; margin-bottom: -10px !important; }
.xxl-team--karten .xxl-bio summary { width: 100%; height: 40px; border: 0; border-radius: var(--xxl-radius-s); color: var(--wp--preset--color--orange-hell, #C86604); }
.xxl-team--karten .xxl-bio summary::after { width: 12px; height: 12px; border-right-width: 2.5px; border-bottom-width: 2.5px; }
.xxl-team--karten .xxl-bio summary:hover { background: none; color: #E07A12; }
.xxl-team--karten .xxl-bio summary:hover::after { transform: translateY(1px) rotate(45deg); }
.xxl-team--karten .xxl-bio[open] summary:hover::after { transform: translateY(0) rotate(-135deg); }
.xxl-team--karten .xxl-bio summary:focus-visible { outline-offset: 0; }
.xxl-team--karten .xxl-bio p { margin-top: 4px !important; margin-bottom: 10px !important; }
/* Team-Karten: kürzerer, satterer Verlauf + leicht abgedunkelte Fotos; helleres Orange für den Pfeil */
.xxl-team--karten .xxl-person .wp-block-image img { filter: brightness(.93) contrast(1.06) saturate(1.05); }
.xxl-team--karten .xxl-person::before { background: linear-gradient(to top, var(--xxl-navy) 0%, color-mix(in srgb, var(--xxl-navy) 90%, transparent) 20%, color-mix(in srgb, var(--xxl-navy) 55%, transparent) 33%, color-mix(in srgb, var(--xxl-navy) 0%, transparent) 46%); }
.xxl-team--karten .xxl-bio summary { color: #F08A24; }
.xxl-team--karten .xxl-bio summary:hover { color: #FFA552; }
@media (max-width: 600px) {
	.xxl-team--karten .xxl-person::before { background: linear-gradient(to top, var(--xxl-navy) 0%, color-mix(in srgb, var(--xxl-navy) 90%, transparent) 28%, color-mix(in srgb, var(--xxl-navy) 55%, transparent) 42%, color-mix(in srgb, var(--xxl-navy) 0%, transparent) 56%); }
}
/* Team-Karten: etwas mehr Luft */
.xxl-team--karten { gap: 26px !important; }
/* Wisch-Punkte (nur Smartphone) */
.xxl-team-dots { display: none; }
@media (max-width: 600px) {
	.xxl-team--karten { gap: 12px !important; }
	.xxl-team-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px !important; }
	.xxl-team-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
	.xxl-team-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--xxl-linie); transition: background-color .2s, width .2s; }
	.xxl-team-dots button.is-aktiv::before { width: 20px; border-radius: 4px; background: var(--xxl-orange); }
}
@media (prefers-reduced-motion: reduce) { .xxl-team-dots button::before { transition: none; } }
/* Tablet-Breiten (782–1100 px): Funktionstabelle und Maßkette im Hero ohne Überlauf */
@media (min-width: 782px) { .xxl-feature-table > .wp-block-group { grid-template-columns: minmax(170px, 260px) repeat(3, minmax(0, 1fr)); } }
.xxl-feature-table p { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 782px) and (max-width: 1100px) {
	.xxl-feature-table h3 { padding: 22px 16px 22px 0; font-size: 17px; }
	.xxl-feature-table p { padding: 22px 14px; font-size: 15px; }
	.xxl-masskette p { padding: 0 6px; font-size: 13px; }
	.xxl-masskette strong { font-size: 18px; }
}
.xxl-masskette strong { hyphens: auto; -webkit-hyphens: auto; }
/* Handy: Kennzahlen ohne Silbentrennung, Schrift so, dass „Bundesweit“ in eine Zeile passt */
@media (max-width: 480px) {
	.xxl-masskette p, .xxl-masskette strong { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
	.xxl-masskette p { font-size: 13px; padding: 0 6px; }
	.xxl-masskette strong { font-size: 15px; }
}
.site-nav__list .sub-menu .current-menu-item > a { box-shadow: none; }
/* ---------- Kapitalanlage (Investoren-Fokus) ---------- */
/* Wege-Karten im Standard-Kartenstil (ohne Balken oben) */
.xxl-weg { border: 1px solid var(--xxl-linie); border-radius: var(--xxl-radius); background: #fff; }
/* Icon-Karten 3 × 2 mit Trennlinien */
.xxl-icon-cards--3er { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.xxl-icon-cards--3er .xxl-card, .xxl-icon-cards--3er .xxl-card + .xxl-card { padding: 32px 28px; border-left: 1px solid var(--xxl-linie); }
.xxl-icon-cards--3er .xxl-card:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.xxl-icon-cards--3er .xxl-card:nth-child(3n) { padding-right: 0; }
.xxl-icon-cards--3er .xxl-card:nth-child(-n+3) { border-bottom: 1px solid var(--xxl-linie); }
@media (max-width: 960px) {
	.xxl-icon-cards--3er { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.xxl-icon-cards--3er .xxl-card, .xxl-icon-cards--3er .xxl-card + .xxl-card, .xxl-icon-cards--3er .xxl-card:nth-child(3n+1), .xxl-icon-cards--3er .xxl-card:nth-child(3n) { padding: 28px 24px; border-left: 0; border-bottom: 1px solid var(--xxl-linie); }
	.xxl-icon-cards--3er .xxl-card:nth-child(odd) { padding-left: 0; }
	.xxl-icon-cards--3er .xxl-card:nth-child(even) { padding-right: 0; border-left: 1px solid var(--xxl-linie); }
	.xxl-icon-cards--3er .xxl-card:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
	.xxl-icon-cards--3er { grid-template-columns: 1fr !important; }
	.xxl-icon-cards--3er .xxl-card, .xxl-icon-cards--3er .xxl-card:nth-child(n) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--xxl-linie); }
	.xxl-icon-cards--3er .xxl-card:last-child { border-bottom: 0; }
}
/* Rendite-Abschnitt und Einstieg mit einer Einheit */
.xxl-rendite__cols, .xxl-einheit__cols { gap: clamp(32px, 5vw, 72px) !important; align-items: center !important; }
.xxl-rendite__cols > .wp-block-column > * + *, .xxl-einheit__cols > .wp-block-column > * + * { margin-top: 18px; }
.xxl-unterzeile { font-size: 17px; margin-top: 28px !important; }
.xxl-rendite__box { background: var(--xxl-navy); color: rgba(255, 255, 255, .86); border-radius: var(--xxl-radius); padding: clamp(28px, 3.5vw, 44px); }
.xxl-rendite__box h3 { color: #fff; font-size: 22px; }
.xxl-rendite__box > * + * { margin-top: 14px; }
.xxl-rendite__box .wp-block-buttons { margin-top: 26px !important; }
.xxl-rendite__box .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.xxl-rendite__box .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--xxl-navy); border-color: #fff; }
.xxl-einheit__cols .xxl-rechnung { margin-top: 0 !important; }
.xxl-einheit__cols .xxl-rechnung__zeilen { grid-template-columns: 1fr 1fr; row-gap: 14px; }
@media (max-width: 781px) { .xxl-rendite__cols, .xxl-einheit__cols { align-items: stretch !important; } }
.is-style-hellgrau .xxl-einheit__cols .xxl-rechnung { background: #fff; }
/* Hochformat-Fotos (z. B. Lageplan) vollständig zeigen */
.xxl-photo--hoch img { aspect-ratio: 3 / 4; max-height: 720px; margin-inline: auto; }
/* Medien + Text, Überschrift links über dem Bild, Spalten oben bündig (z. B. Standortfaktoren) */
.xxl-media-text--oben { align-items: flex-start !important; }
.xxl-media-text--oben > .wp-block-column:first-child > .xxl-photo { margin-top: 32px !important; }
.xxl-media-text--oben > .wp-block-column:last-child { padding-top: 8px; }
@media (min-width: 782px) { .xxl-media-text--oben > .wp-block-column:first-child { position: sticky; top: calc(var(--xxl-header-h) + 24px); } }
.xxl-media-text--oben .xxl-section-title { margin-bottom: 0 !important; } .xxl-media-text--oben .xxl-section-title + p { margin-top: 16px !important; }
/* Icon-Karten: keine Linie oben, nur Trennlinien zwischen den Punkten */
.xxl-icon-cards { border-top: 0 !important; }
@media (max-width: 960px) { .xxl-icon-cards:not(.xxl-icon-cards--3er) .xxl-card:last-child { border-bottom: 0; } }
/* XXL-Garage kaufen: Bildausschnitt nach rechts, damit Wohnmobil und Oldtimer ganz zu sehen sind */
.xxl-seitenkopf__bild img[src*="garage-mit-wohnmobil-und-oldtimer"] { object-position: 92% 50%; }
/* ---------- Kennzeichnung KI-generierter Bilder (Klasse „xxl-ki“ am Bildblock) ---------- */
.wp-block-image.xxl-ki { position: relative; }
.wp-block-image.xxl-ki::after {
	content: "KI-generiert"; position: absolute; right: 12px; bottom: 12px; z-index: 1; pointer-events: none;
	padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
	background: rgba(40, 44, 52, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	color: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 600px) { .wp-block-image.xxl-ki::after { right: 8px; bottom: 8px; padding: 3px 8px; font-size: 10px; } }
.wp-block-image.xxl-ki::after { right: 10px; bottom: 10px; padding: 2px 8px; font-size: 9.5px; letter-spacing: .05em; background: rgba(40, 44, 52, .22); border-color: rgba(255, 255, 255, .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 600px) { .wp-block-image.xxl-ki::after { right: 8px; bottom: 8px; padding: 2px 7px; font-size: 9px; } }
.wp-block-image.xxl-ki::after { padding: 1px 7px; font-size: 8.5px; }
@media (max-width: 600px) { .wp-block-image.xxl-ki::after { padding: 1px 6px; font-size: 8px; } }
/* Garagenpark bauen: Bildausschnitt etwas tiefer (mehr Hallen, weniger Himmel) */
.xxl-seitenkopf__bild img[src*="/xxl-garagenpark.avif"] { object-position: 50% 60%; }
.wp-block-image.xxl-ki::after { border: 0; }
/* KI-Kennzeichnung auch für Abschnitte/Kacheln mit Hintergrundbild (Klasse „xxl-ki-bg“) */
.xxl-ki-bg { position: relative; }
.xxl-ki-bg::after {
	content: "KI-generiert"; position: absolute; right: 10px; bottom: 10px; z-index: 1; pointer-events: none;
	padding: 1px 7px; border-radius: 999px; background: rgba(40, 44, 52, .22);
	color: rgba(255, 255, 255, .92); font-size: 8.5px; font-weight: 500; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase;
}
.xxl-tile.xxl-ki-bg::after { top: 10px; bottom: auto; }
@media (max-width: 600px) { .xxl-ki-bg::after { right: 8px; bottom: 8px; padding: 1px 6px; font-size: 8px; } .xxl-tile.xxl-ki-bg::after { top: 8px; bottom: auto; } }
/* Variante für helle Bilder (z. B. Lagepläne): kräftigerer Hintergrund, damit die Schrift lesbar bleibt */
.wp-block-image.xxl-ki--hell::after, .xxl-ki-bg.xxl-ki--hell::after { background: rgba(0, 18, 51, .5); }
/* KI-Kennzeichnung allgemein (Projektkopf, Projektkarten, per Mediathek-Häkchen) */
.xxl-ki { position: relative; }
.xxl-ki::after {
	content: "KI-generiert"; position: absolute; right: 10px; bottom: 10px; z-index: 1; pointer-events: none;
	padding: 1px 7px; border-radius: 999px; background: rgba(40, 44, 52, .22);
	color: rgba(255, 255, 255, .92); font-size: 8.5px; font-weight: 500; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase;
}
.xxl-ki.xxl-ki--hell::after { background: rgba(0, 18, 51, .5); }
@media (max-width: 600px) { .xxl-ki::after { right: 8px; bottom: 8px; padding: 1px 6px; font-size: 8px; } }
/* KI-Kennzeichnung in der Projektbildergalerie (Vorschaubilder) und in der Lightbox */
.xxl-pbilder__grid a[data-ki="1"]::before, .xxl-lightbox__ki {
	content: "KI-generiert"; position: absolute; right: 8px; bottom: 8px; z-index: 2; pointer-events: none;
	padding: 1px 6px; border-radius: 999px; background: rgba(40, 44, 52, .22);
	color: rgba(255, 255, 255, .92); font-size: 8px; font-weight: 500; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase;
}
.xxl-lightbox__bild { position: relative; display: block; }
.xxl-lightbox__ki { right: 12px; bottom: 12px; padding: 2px 8px; font-size: 10px; }
.xxl-lightbox__ki[hidden] { display: none; }
/* Kacheln (Startseite): Kennzeichnung senkrecht am rechten Rand, unten rechts */
.xxl-tile.xxl-ki-bg::after { top: auto; bottom: 12px; right: 10px; padding: 7px 1px; writing-mode: vertical-rl; transform: rotate(180deg); }
@media (max-width: 600px) { .xxl-tile.xxl-ki-bg::after { top: auto; bottom: 10px; right: 8px; padding: 6px 1px; } }
.xxl-tile.xxl-ki-bg::after { top: 12px; bottom: auto; }
@media (max-width: 600px) { .xxl-tile.xxl-ki-bg::after { top: 10px; bottom: auto; } }
.xxl-tile.xxl-ki-bg::after { top: 50%; bottom: auto; transform: translateY(-50%) rotate(180deg); }
@media (max-width: 600px) { .xxl-tile.xxl-ki-bg::after { top: 50%; bottom: auto; } }
/* reCAPTCHA: Google-Badge ausblenden, Hinweis steht im Formular (von Google so erlaubt) */
.grecaptcha-badge { visibility: hidden !important; }
.xxl-form__recaptcha { margin-top: 10px !important; font-size: 12px; line-height: 1.5; color: var(--xxl-soft); }
.xxl-form__recaptcha a { color: inherit; }
.is-style-dunkel .xxl-form__recaptcha, .xxl-handbuch .xxl-form__recaptcha { color: rgba(255, 255, 255, .7); }
/* Buttons unabhängig vom WordPress-Block-CSS: gleiche Höhe und Ausrichtung,
   auch in PHP-Vorlagen (z. B. Projektkopf), wo WordPress das Button-CSS nicht lädt. */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; }
.wp-block-button.is-style-outline > .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; }

/* Team-Karten: Bildausschnitt pro Person (Person im Bild nach oben verschoben, bezogen auf die Bildhöhe) */
.xxl-team--karten .xxl-person .wp-block-image img.wp-image-1671 { object-position: 50% 32%; }  /* Jörg: 3 % */
.xxl-team--karten .xxl-person .wp-block-image img.wp-image-1667 { object-position: 50% 50%; }  /* Alina: 6 % */
.xxl-team--karten .xxl-person .wp-block-image img.wp-image-1668 { object-position: 50% 44%; }  /* Benjamin: 5 % */
.xxl-team--karten .xxl-person .wp-block-image img.wp-image-1670 { object-position: 50% 20%; }  /* Joso: 1 % */
.xxl-team--karten .xxl-person .wp-block-image img.wp-image-1673 { object-position: 50% 82%; }  /* Selma: ca. 11 % */

.xxl-hero__img picture { display: block; }
