/* ==========================================================================
   cre8ors bau – Child-Theme für GeneratePress
   Gestaltung: cre8ors-bau.de (Schwarz #363636, Grau #F3F3F3, Gelb #FFEA00,
   Avenir Next, Versalien-Headlines, eckige Buttons, Schräg-Elemente)
   ========================================================================== */

:root {
	--cb-schwarz: #363636;
	--cb-dunkel: #2c2c2c;
	--cb-gelb: #ffea00;
	--cb-grau: #f3f3f3;
	--cb-weiss: #f9f9f9;
	--cb-mittel: #5a5a5a;
	--cb-linie: #d9d9d9;
	--cb-max: 1360px;
	--cb-pad: clamp(20px, 3vw, 40px);
	--cb-section: clamp(72px, 9vw, 128px);
	--cb-font: "AvenirNextLTPro-Regular", "Avenir Next", "Segoe UI", Arial, sans-serif;
	--cb-font-bold: "AvenirNextLTPro-Bold", "AvenirNextLTPro-Regular", "Avenir Next", "Segoe UI", Arial, sans-serif;
	--cb-font-demi: "AvenirNextLTPro-Demi", "AvenirNextLTPro-Regular", "Avenir Next", "Segoe UI", Arial, sans-serif;
	--cb-schraeg: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

/* ---------- Basis ---------- */
body {
	font-family: var(--cb-font);
	font-size: 19px;
	line-height: 1.55;
	color: var(--cb-schwarz);
	background: var(--cb-grau);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.editor-styles-wrapper h1, .editor-styles-wrapper h2, .editor-styles-wrapper h3, .editor-styles-wrapper h4 {
	font-family: var(--cb-font-bold);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.08;
	color: inherit;
	letter-spacing: 0;
	margin-bottom: .5em;
}
h1, .editor-styles-wrapper h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.02; }
h2, .editor-styles-wrapper h2 { font-size: clamp(32px, 3.8vw, 56px); }
h3, .editor-styles-wrapper h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; }
h4, .editor-styles-wrapper h4 { font-size: 20px; }
strong, b { font-family: var(--cb-font-bold); font-weight: 700; }
a { color: var(--cb-schwarz); text-underline-offset: .18em; }
a:hover, a:focus { color: #000; }
:focus-visible { outline: 3px solid var(--cb-gelb); outline-offset: 2px; }
.has-bau-gelb-background-color :focus-visible { outline-color: var(--cb-schwarz); }
img { height: auto; }
::selection { background: var(--cb-gelb); color: var(--cb-schwarz); }

.screen-reader-text:focus { background: var(--cb-gelb); color: var(--cb-schwarz); }
.skip-link.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; position: fixed; top: 16px; left: 16px; z-index: 100000; padding: 14px 22px; font-family: var(--cb-font-bold); font-size: 17px; text-decoration: none; outline: 3px solid var(--cb-schwarz); }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-element-button,
.button, button.cb-button, input[type="submit"] {
	font-family: var(--cb-font-demi);
	font-size: 19px;
	letter-spacing: .7px;
	border-radius: 0;
	padding: 18px 34px;
	background: var(--cb-schwarz);
	color: var(--cb-weiss);
	border: 2px solid var(--cb-schwarz);
	text-decoration: none;
	line-height: 1.2;
	transition: background .2s, color .2s, border-color .2s;
}
.wp-block-button__link:hover, .wp-block-button__link:focus { background: #000; border-color: #000; color: var(--cb-weiss); }
.wp-block-button.is-style-gelb .wp-block-button__link { background: var(--cb-gelb); border-color: var(--cb-gelb); color: var(--cb-schwarz); }
.wp-block-button.is-style-gelb .wp-block-button__link:hover { background: var(--cb-weiss); border-color: var(--cb-weiss); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--cb-schwarz); border-color: var(--cb-schwarz); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--cb-schwarz); color: var(--cb-weiss); }
.wp-block-button.is-style-outline-hell .wp-block-button__link { background: transparent; color: var(--cb-weiss); border-color: var(--cb-weiss); }
.wp-block-button.is-style-outline-hell .wp-block-button__link:hover { background: var(--cb-weiss); color: var(--cb-schwarz); }
.wp-block-buttons { gap: 16px; }

/* ---------- GeneratePress-Grundlayout ---------- */
.site-header { background: var(--cb-weiss); }
.inside-header { padding: 20px var(--cb-pad); max-width: var(--cb-max); }
.site-logo img, .site-header .header-image { height: 58px; width: auto; }
.main-navigation, .main-navigation ul ul { background: var(--cb-weiss); }
.main-navigation .main-nav ul li a {
	font-family: var(--cb-font-demi);
	font-size: 17px;
	color: var(--cb-schwarz);
	padding-left: 16px;
	padding-right: 16px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: #000; background: transparent; }
.main-navigation .main-nav ul li.current-menu-item > a::before { content: "["; }
.main-navigation .main-nav ul li.current-menu-item > a::after { content: "]"; }
.main-navigation .main-nav ul li.current-menu-item.menu-item-has-children > a::after { content: "]"; }
.main-navigation ul ul { box-shadow: 0 12px 30px rgba(0,0,0,.12); border-top: 4px solid var(--cb-gelb); width: 280px; }
.main-navigation .main-nav ul ul li a { font-size: 16px; padding: 12px 18px; line-height: 1.3; }
.main-navigation .main-nav ul li.menu-cta > a {
	background: var(--cb-schwarz);
	color: var(--cb-weiss);
	margin-left: 12px;
	padding-left: 26px;
	padding-right: 26px;
	letter-spacing: .7px;
}
.main-navigation .main-nav ul li.menu-cta > a:hover { background: #000; color: var(--cb-weiss); }
.main-navigation .main-nav ul li.menu-cta > a::before,
.main-navigation .main-nav ul li.menu-cta > a::after { content: none; }
.menu-toggle { font-family: var(--cb-font-demi); }

/* Seiten mit Sektionen: volle Breite, keine GP-Innenabstände */
.cbau-builder .site-content { padding: 0; display: block; }
.cbau-builder .site-main { margin: 0 !important; }
.cbau-builder .inside-article { padding: 0 !important; background: transparent; }
.cbau-builder .entry-content { margin-top: 0 !important; }
.cbau-builder .entry-content > *:not(.alignfull) { max-width: var(--cb-max); margin-left: auto; margin-right: auto; padding-left: var(--cb-pad); padding-right: var(--cb-pad); box-sizing: border-box; }
.cbau-builder .entry-content > .alignfull { margin-top: 0 !important; margin-bottom: 0 !important; width: 100%; max-width: none; }
.cbau-builder .entry-header { display: none; }
.separate-containers.cbau-builder .site-main { margin: 0; }
.site-content .content-area { width: 100%; }

/* ---------- Sektionen ---------- */
.cb-section { padding: var(--cb-section) 0; position: relative; }
.cb-section.cb-section--eng { padding: calc(var(--cb-section) * .6) 0; }
.cb-inner { max-width: var(--cb-max); margin: 0 auto; padding: 0 var(--cb-pad); box-sizing: border-box; }
.cb-inner > *:first-child { margin-top: 0; }
.cb-inner > *:last-child { margin-bottom: 0; }
.cb-section h2 { margin-bottom: .6em; }
.cb-narrow { max-width: 900px; }
.cb-lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; font-family: var(--cb-font-demi); max-width: 34em; }
.cb-eyebrow { font-family: var(--cb-font-bold); letter-spacing: .1em; text-transform: uppercase; font-size: 16px; margin-bottom: 12px; }
.has-bau-schwarz-background-color .cb-eyebrow, .has-bau-dunkel-background-color .cb-eyebrow { color: var(--cb-gelb); }
.has-bau-schwarz-background-color, .has-bau-dunkel-background-color { color: var(--cb-weiss); }
.has-bau-schwarz-background-color a:not(.wp-block-button__link), .has-bau-dunkel-background-color a:not(.wp-block-button__link) { color: var(--cb-gelb); }
.has-bau-schwarz-background-color p, .has-bau-dunkel-background-color p { color: #e4e4e4; }

/* Parallelogramm-Badge (wie „1. Imageproblem“ auf der alten Seite) */
.cb-badge, .is-style-badge {
	display: inline-block;
	background: var(--cb-gelb);
	color: var(--cb-schwarz) !important;
	clip-path: var(--cb-schraeg);
	padding: 6px 28px;
	font-family: var(--cb-font-bold);
	font-size: 20px;
	text-transform: uppercase;
	margin: 0 0 18px;
	line-height: 1.4;
}
.has-bau-gelb-background-color .cb-badge { background: var(--cb-schwarz); color: var(--cb-gelb) !important; }

/* ---------- Hero ---------- */
.cb-hero {
	position: relative;
	overflow: hidden;
	background: var(--cb-dunkel);
	color: var(--cb-weiss);
	min-height: min(72vh, 640px);
	display: flex;
	align-items: flex-end;
	padding: 112px 0 96px;
}
.cb-hero--klein { min-height: min(70vh, 640px); }
.cb-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cb-hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(25,25,25,.88) 0%, rgba(25,25,25,.4) 60%, rgba(25,25,25,.25) 100%); }
.cb-hero > .cb-inner { position: relative; z-index: 2; width: 100%; }
.cb-hero h1 { color: var(--cb-weiss); max-width: 14em; }
.cb-hero p { color: var(--cb-weiss); }
.cb-hero .cb-hero__mark img { width: 420px; max-width: 80%; }
.cb-hero .wp-block-buttons { margin-top: 32px; }
.cb-hero__toggle { position: absolute; top: 24px; right: clamp(20px, 3vw, 40px); z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; font: inherit; font-family: var(--cb-font-bold); font-size: 15px; letter-spacing: .04em; color: var(--cb-weiss); background: rgba(28,28,28,.7); border: 2px solid var(--cb-weiss); border-radius: 0; cursor: pointer; transition: transform 160ms cubic-bezier(.23,1,.32,1), background-color 160ms ease, color 160ms ease; }
.cb-hero__toggle::before { content: '❚❚'; font-size: 13px; }
.cb-hero__toggle[aria-pressed="true"]::before { content: '▶'; }
.cb-hero__toggle:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cb-hero__toggle:hover { background: var(--cb-gelb); color: var(--cb-schwarz); } }

/* Statistik / große Zahlen */
.cb-stats { border-top: 3px solid currentColor; padding-top: 40px; margin-top: 56px !important; gap: 40px !important; }
.cb-stat-zahl { font-family: var(--cb-font-bold); font-size: clamp(48px, 5vw, 72px); line-height: 1; margin: 0 0 10px; }
.cb-stat-text { font-family: var(--cb-font-demi); margin: 0; }

/* Karten */
.cb-cards { gap: 4px !important; }
.cb-card { background: var(--cb-weiss); padding: clamp(28px, 3vw, 48px); height: 100%; box-sizing: border-box; }
.has-bau-weiss-background-color .cb-card { background: var(--cb-grau); }
.has-bau-schwarz-background-color .cb-card { background: #404040; }
.cb-card h3 { margin-top: 0; }
.cb-card p:last-child { margin-bottom: 0; }
.cb-card .cb-card__link { font-family: var(--cb-font-bold); }

/* Bild-Text-Zeilen */
.cb-row { gap: clamp(32px, 4vw, 64px) !important; align-items: center !important; margin-bottom: clamp(64px, 7vw, 112px) !important; }
.cb-row:last-child { margin-bottom: 0 !important; }
.cb-row .wp-block-image { margin: 0; overflow: hidden; }
.cb-row .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (min-width: 782px) { .cb-row--umgekehrt { flex-direction: row-reverse; } }

/* Tag-Liste */
.is-style-tags { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.is-style-tags li { border: 1.5px solid currentColor; padding: 6px 14px; font-size: 16px; font-family: var(--cb-font-demi); margin: 0; opacity: .9; }

/* Checkliste */
.is-style-haken { list-style: none; padding: 0; margin-left: 0; }
.is-style-haken li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.is-style-haken li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 12px; background: var(--cb-gelb); clip-path: polygon(0 45%, 18% 30%, 40% 55%, 82% 0, 100% 15%, 40% 100%); }
.has-bau-gelb-background-color .is-style-haken li::before { background: var(--cb-schwarz); }

/* Schritte */
.cb-steps { gap: 40px !important; }
.cb-step { border-top: 3px solid currentColor; padding-top: 26px; }
.cb-step-nr { font-family: var(--cb-font-bold); font-size: 52px; line-height: 1; margin: 0 0 12px; }

/* Auf einen Blick (GEO) */
.cb-glance { background: var(--cb-weiss); border-left: 8px solid var(--cb-gelb); padding: clamp(24px, 3vw, 40px); }
.cb-glance h2, .cb-glance h3 { font-size: 22px; margin-top: 0; }
.cb-glance ul { margin-bottom: 0; }

/* CTA-Box */
.cb-cta { background: var(--cb-gelb); padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px); gap: 32px !important; align-items: center !important; }
.cb-cta h2 { margin: 0 0 .3em; font-size: clamp(30px, 3.4vw, 50px); }
.cb-cta p { font-family: var(--cb-font-demi); margin: 0; }

/* Streifen-Element */
.cb-stripes { display: block; height: 56px; background: url("../img/streifen-dunkel.svg") right bottom / auto 56px no-repeat; }
.cb-stripes--gelb { background-image: url("../img/streifen-gelb.svg"); height: 80px; background-size: auto 80px; }

/* FAQ */
.cb-faq .wp-block-details, .wp-block-details {
	border-bottom: 2px solid var(--cb-schwarz);
	padding: 0;
	margin: 0;
}
.cb-faq { border-top: 2px solid var(--cb-schwarz); }
.has-bau-schwarz-background-color .cb-faq, .has-bau-schwarz-background-color .wp-block-details { border-color: var(--cb-weiss); }
.wp-block-details summary {
	font-family: var(--cb-font-bold);
	text-transform: uppercase;
	font-size: 19px;
	padding: 22px 48px 22px 0;
	cursor: pointer;
	list-style: none;
	position: relative;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 32px; line-height: 1; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > *:not(summary) { margin: 0 0 22px; max-width: 46em; }

/* ---------- Referenzen (Shortcode) ---------- */
.cb-ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 40px 24px; }
.cb-ref-grid--featured .cb-ref:first-child { grid-column: 1 / -1; }
.cb-ref-grid--featured .cb-ref:first-child .cb-ref__bild img { aspect-ratio: 21 / 9; }
.cb-ref { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 16px; }
.cb-ref__bild { overflow: hidden; background: var(--cb-dunkel); }
.cb-ref__bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.cb-ref:hover .cb-ref__bild img, .cb-ref:focus .cb-ref__bild img { transform: scale(1.04); }
.cb-ref__meta { font-family: var(--cb-font-bold); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-mittel); }
.has-bau-schwarz-background-color .cb-ref__meta { color: #cfcfcf; }
.cb-ref__titel { font-family: var(--cb-font-bold); font-size: clamp(22px, 1.8vw, 26px); text-transform: uppercase; line-height: 1.2; margin: 0; }
.cb-ref-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.cb-ref-filter a { display: inline-block; border: 2px solid var(--cb-schwarz); padding: 8px 18px; text-decoration: none; font-family: var(--cb-font-demi); }
.cb-ref-filter a[aria-current="true"], .cb-ref-filter a:hover { background: var(--cb-schwarz); color: var(--cb-weiss); }

/* Fakten-Leiste (Referenz) */
.cb-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin: 0; }
.cb-fakten dt { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--cb-gelb); }
.cb-fakten dd { margin: 6px 0 0; font-family: var(--cb-font-bold); font-size: 22px; color: var(--cb-weiss); }

/* ---------- Kundenlogos ---------- */
.cb-logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; background: #E4E4E4; border: 2px solid #E4E4E4; list-style: none; padding: 0; margin: 48px 0 0; }
.cb-logos li { background: #fff; height: 128px; display: flex; align-items: center; justify-content: center; padding: 12px 14px; box-sizing: border-box; margin: 0; }
.cb-logos img { max-height: 88px; width: auto; max-width: 100%; object-fit: contain; transition: filter 200ms ease, opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .cb-logos img { filter: grayscale(1); opacity: .72; } .cb-logos li:hover img { filter: none; opacity: 1; } }
.cb-logos li.cb-logos__cta { background: var(--cb-gelb); }
.cb-logos__cta a { color: var(--cb-schwarz); text-decoration: none; font-family: var(--cb-font-bold); text-transform: uppercase; font-size: 17px; line-height: 1.2; text-align: center; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1100px) { .cb-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cb-logos li { height: 104px; } }
.cb-logos span { font-family: var(--cb-font-bold); text-transform: uppercase; color: #7a7a7a; text-align: center; }

/* ---------- Breadcrumbs ---------- */
.cb-breadcrumbs { background: var(--cb-weiss); border-top: 1px solid #e6e6e6; font-size: 15px; }
.cb-breadcrumbs ol { list-style: none; margin: 0 auto; padding: 12px var(--cb-pad); max-width: var(--cb-max); display: flex; flex-wrap: wrap; gap: 6px; }
.cb-breadcrumbs li { margin: 0; }
.cb-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #999; }
.cb-breadcrumbs a { text-decoration: none; color: var(--cb-mittel); }
.cb-breadcrumbs a:hover { color: #000; text-decoration: underline; }
.cb-breadcrumbs [aria-current] { font-family: var(--cb-font-demi); }

/* ---------- Unterseiten-Navigation (automatisch) ---------- */
.cb-subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
.cb-subpages li { margin: 0; }
.cb-subpages a { display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; background: var(--cb-weiss); padding: 32px; text-decoration: none; transition: background .2s; }
.cb-subpages a:hover { background: var(--cb-gelb); }
.cb-subpages strong { text-transform: uppercase; font-size: 21px; line-height: 1.2; }
.cb-subpages span { font-size: 17px; }
.cb-subpages .cb-more { font-family: var(--cb-font-bold); margin-top: auto; }
.has-bau-weiss-background-color .cb-subpages a { background: var(--cb-grau); }
.has-bau-schwarz-background-color .cb-subpages a { background: #404040; color: var(--cb-weiss); }
.has-bau-schwarz-background-color .cb-subpages a:hover { background: var(--cb-gelb); color: var(--cb-schwarz); }

/* ---------- Kontaktformular ---------- */
.cb-form { display: grid; gap: 20px; }
.cb-form fieldset { border: 0; margin: 0; padding: 0; }
.cb-form legend { font-family: var(--cb-font-bold); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; margin-bottom: 12px; }
.cb-form__themen { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-form__themen label { position: relative; cursor: pointer; margin: 0; }
.cb-form__themen input { position: absolute; opacity: 0; inset: 0; }
.cb-form__themen span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 2px solid currentColor; font-family: var(--cb-font-demi); font-size: 17px; box-sizing: border-box; }
.cb-form__themen input:checked + span { background: var(--cb-gelb); border-color: var(--cb-gelb); color: var(--cb-schwarz); }
.cb-form__themen input:focus-visible + span { outline: 3px solid var(--cb-gelb); outline-offset: 2px; }
.cb-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.cb-form label.cb-feld { display: flex; flex-direction: column; gap: 8px; font-family: var(--cb-font-bold); font-size: 16px; margin: 0; }
.cb-form input[type="text"], .cb-form input[type="email"], .cb-form input[type="tel"], .cb-form textarea {
	font: inherit; font-size: 18px; padding: 14px 16px; border: 2px solid #9a9a9a; border-radius: 0; background: #fff; color: var(--cb-schwarz); min-height: 54px; width: 100%; box-sizing: border-box;
}
.has-bau-schwarz-background-color .cb-form input[type="text"],
.has-bau-schwarz-background-color .cb-form input[type="email"],
.has-bau-schwarz-background-color .cb-form input[type="tel"],
.has-bau-schwarz-background-color .cb-form textarea { border-color: var(--cb-weiss); background: var(--cb-weiss); }
.cb-form input:focus, .cb-form textarea:focus { outline: 3px solid var(--cb-gelb); outline-offset: 1px; }
.cb-form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin: 0; }
.cb-form__consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.cb-form .cb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cb-form button[type="submit"] { justify-self: start; background: var(--cb-gelb); color: var(--cb-schwarz); border-color: var(--cb-gelb); cursor: pointer; min-height: 58px; }
.cb-form button[type="submit"]:hover { background: var(--cb-weiss); border-color: var(--cb-weiss); }
.has-bau-weiss-background-color .cb-form button[type="submit"], .has-bau-grau-background-color .cb-form button[type="submit"] { background: var(--cb-schwarz); color: var(--cb-weiss); border-color: var(--cb-schwarz); }
.cb-form-hinweis { padding: 24px; border-left: 8px solid var(--cb-gelb); background: rgba(255,255,255,.06); }
.cb-form-hinweis--fehler { border-color: #ff6b5b; }
.cb-kontaktdaten { list-style: none; padding: 0; margin: 0; font-size: 20px; }
.cb-kontaktdaten li { margin-bottom: 6px; }
.cb-kontaktdaten a { font-family: var(--cb-font-bold); text-decoration: none; }

/* ---------- Footer ---------- */
.cb-footer { background: var(--cb-dunkel); color: var(--cb-weiss); font-size: 16px; }
.cb-footer a { color: var(--cb-weiss); text-decoration: none; }
.cb-footer a:hover { color: var(--cb-gelb); text-decoration: underline; }
.cb-footer__grid { max-width: var(--cb-max); margin: 0 auto; padding: 72px var(--cb-pad) 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.cb-footer__logo img { height: 60px; width: auto; margin-bottom: 18px; }
.cb-footer h2 { font-size: 16px; letter-spacing: .1em; color: var(--cb-gelb); margin: 0 0 16px; }
.cb-footer ul { list-style: none; margin: 0; padding: 0; }
.cb-footer li { margin: 0 0 8px; }
.cb-footer address { font-style: normal; color: #cfcfcf; line-height: 1.7; }
.cb-footer__bottom { border-top: 1px solid #444; }
.cb-footer__bottom-inner { max-width: var(--cb-max); margin: 0 auto; padding: 20px var(--cb-pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #bdbdbd; font-size: 15px; }
.cb-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cb-footer__social { display: flex; gap: 16px; margin-top: 18px; }
.cb-pre-footer { background: var(--cb-grau); }
.cb-pre-footer .cb-stripes { max-width: var(--cb-max); margin: 0 auto; }

/* ---------- Beiträge (Ratgeber) ---------- */
.single-post .inside-article, .blog .inside-article, .archive .inside-article { background: var(--cb-weiss); }
.single-post .entry-content { max-width: 820px; }
.single-post .entry-title { font-size: clamp(34px, 4vw, 56px); }
.single-post .entry-content h2 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 1.6em; }
.entry-meta { font-size: 15px; color: var(--cb-mittel); }

/* Bild-Stil Zoom */
.is-style-zoom { overflow: hidden; }
.is-style-zoom img { transition: transform .5s ease; }
.is-style-zoom:hover img { transform: scale(1.04); }

/* Abstands-Helfer */
.cb-mt-0 { margin-top: 0 !important; }
.cb-mb-0 { margin-bottom: 0 !important; }
.cb-ende { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	body { font-size: 18px; }
	.cb-hero { padding: 104px 0 56px; min-height: 64vh; }
	.cb-hero__toggle { top: 16px; font-size: 14px; }
	.main-navigation .main-nav ul li.menu-cta > a { margin: 8px 16px; display: inline-block; }
	.cb-stats { gap: 28px !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.cb-hero video.cb-hero__media, .cb-hero__toggle { display: none; }
}

/* Editor-Ansicht */
.editor-styles-wrapper { background: var(--cb-grau); font-family: var(--cb-font); }
.editor-styles-wrapper .cb-hero { min-height: 520px; }

/* Normale Seiten und Beiträge (nicht aus Sektionen gebaut): Innenabstand, falls GeneratePress ihn auf 0 setzt */
body:not(.cbau-builder) .inside-article { padding: 56px clamp(20px, 3vw, 40px) 96px; }
@media (max-width: 768px) { body:not(.cbau-builder) .inside-article { padding: 32px 20px 64px; } }
/* Beitragsbild bei Ratgeber-Artikeln als flaches Titelbild statt Hochformat */
.single-post .featured-image img, .single-post .page-header-image-single img { width: 100%; max-height: 480px; object-fit: cover; }
/* ---------- Sticky Header (eigene Lösung statt GP-Premium-Sticky) ---------- */
html { scroll-padding-top: 110px; }
.site-header { position: sticky; top: 0; z-index: 999; transition: box-shadow 200ms ease; }
.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 .inside-header, .site-logo img { transition: padding 200ms cubic-bezier(.23,1,.32,1), height 200ms cubic-bezier(.23,1,.32,1); }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.site-header.is-stuck .inside-header { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-stuck .site-logo img { height: 44px; }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .inside-header, .site-logo img { transition: none; } }
.site-header.is-stuck .main-navigation .main-nav > ul > li > a { line-height: 48px; }
/* ---------- Galerie (statt Referenz-Seiten) ---------- */
.cb-gal { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); grid-auto-flow: dense; gap: 8px; }
.cb-gal__item { margin: 0; }
.cb-gal__item figure { margin: 0; position: relative; height: 100%; }
.cb-gal__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--cb-dunkel); cursor: zoom-in; overflow: hidden; }
.cb-gal__btn img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms cubic-bezier(.23,1,.32,1); }
.cb-gal figcaption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 6px 14px; background: var(--cb-gelb); color: var(--cb-schwarz); font-family: var(--cb-font-bold); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
@media (min-width: 900px) { .cb-gal__item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; } }
@media (hover: hover) and (pointer: fine) { .cb-gal__btn:hover img { transform: scale(1.04); } }
.cb-gal__btn:active img { transform: scale(.98); }
/* Lightbox */
.cb-lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(20,20,20,.94); color: #fff; }
.cb-lightbox::backdrop { background: rgba(20,20,20,.94); }
.cb-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.cb-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(92vw, 1600px); }
.cb-lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.cb-lightbox figcaption { font-family: var(--cb-font-bold); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--cb-gelb); min-height: 1em; }
.cb-lightbox button { position: absolute; border: 0; background: var(--cb-gelb); color: var(--cb-schwarz); width: 52px; height: 52px; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 160ms cubic-bezier(.23,1,.32,1); }
.cb-lightbox button:active { transform: scale(.94); }
.cb-lightbox__close { top: 20px; right: 20px; }
.cb-lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.cb-lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
@media (max-width: 600px) { .cb-lightbox__prev, .cb-lightbox__next { top: auto; bottom: 20px; margin: 0; } }
