/**
 * City Bau – Darstellung der Projektbausteine.
 * Farben aus dem Entwurf des Grafikers abgegriffen.
 */

.cb-kennzahlen,
.cb-kachelreihe,
.cb-kartenbereich,
.cb-projektliste,
.cb-detail {
	--cb-gruen:        #506245;
	--cb-gruen-dunkel: #415138;
	--cb-salbei:       #7b8873;
	--cb-salbei-hell:  #a8b1a2;
	--cb-flaeche:      #e4e8e2;
	--cb-badge:        #c1c8bd;
	--cb-text:         #707377;
	--cb-linie:        #d3d7d1;

	color: var(--cb-text);
	box-sizing: border-box;
}

.cb-kennzahlen *,
.cb-kachelreihe *,
.cb-kartenbereich *,
.cb-projektliste *,
.cb-detail * {
	box-sizing: inherit;
}

/* ------------------------------------------------------------- Bausteine */

.cb-knopf {
	display: inline-block;
	padding: 0.65em 1.7em;
	border: 1px solid var(--cb-linie);
	background: #fff;
	color: var(--cb-gruen);
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cb-knopf:hover,
.cb-knopf:focus-visible {
	background: var(--cb-salbei);
	border-color: var(--cb-salbei);
	color: #fff;
}

.cb-abschnitt-titel {
	margin: 0 0 1.5rem;
	color: var(--cb-text);
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cb-ort {
	margin: 0 0 0.15em;
	color: var(--cb-text);
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cb-badges {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: flex;
	gap: 0.4rem;
}

.cb-badge {
	padding: 0.25em 0.7em;
	background: var(--cb-badge);
	color: var(--cb-gruen-dunkel);
	font-size: 0.75rem;
	line-height: 1.4;
	white-space: nowrap;
}

/* ----------------------------------------------------------- Kennzahlen */

.cb-kennzahlen {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.cb-kennzahl {
	flex: 0 1 11rem;
	padding: 1.1rem 1rem 0.9rem;
	background: var(--cb-flaeche);
	text-align: center;
}

.cb-kennzahl__wert {
	display: block;
	color: var(--cb-gruen);
	font-size: 2.4rem;
	font-weight: 400;
	line-height: 1.1;
}

.cb-kennzahl__label {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.85rem;
}

/* -------------------------------------------------------------- Kacheln */

.cb-kacheln {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.cb-kacheln [hidden] {
	display: none;
}

.cb-kachel {
	display: flex;
	flex-direction: column;
	background: #fff;
	transition: box-shadow 0.2s, transform 0.2s;
}

.cb-kachel.ist-hervorgehoben {
	box-shadow: 0 0 0 2px var(--cb-salbei);
}

.cb-kachel__bild {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--cb-flaeche);
}

.cb-kachel__bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cb-kachel__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1rem 1.1rem 1.3rem;
}

.cb-kachel__titel {
	margin: 0;
	color: var(--cb-gruen);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.2;
}

.cb-kachel__unter {
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
}

/* Kompakte Kacheln neben der Karte: nur Bild, Ort, Name – die ganze Kachel
   ist der Link. Dadurch passen deutlich mehr Projekte in die Spalte. */
.cb-kacheln--kompakt {
	/* Spaltenzahl wächst mit der Breite: zwei auf schmalen Bildschirmen,
	   drei oder vier auf breiten – ohne feste Umbruchpunkte. */
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1rem 1.1rem;
}

.cb-kachel--kompakt {
	background: none;
	color: inherit;
	text-decoration: none;
}

.cb-kachel--kompakt .cb-kachel__bild {
	display: block;
	aspect-ratio: 3 / 2;
}

.cb-kachel--kompakt .cb-kachel__text {
	display: block;
	padding: 0.6rem 0.1rem 0;
}

.cb-kachel--kompakt .cb-ort {
	display: block;
	margin-bottom: 0.1em;
	font-size: 0.75rem;
}

.cb-kachel--kompakt .cb-kachel__titel {
	display: block;
	font-size: 1.15rem;
	line-height: 1.25;
}

.cb-kachel--kompakt:hover .cb-kachel__titel,
.cb-kachel--kompakt:focus-visible .cb-kachel__titel {
	text-decoration: underline;
}

.cb-kachel--kompakt.ist-hervorgehoben {
	box-shadow: none;
}

.cb-kachel--kompakt.ist-hervorgehoben .cb-kachel__bild {
	outline: 2px solid var(--cb-salbei);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- Karte */

/* Links die Liste, rechts die Karte. Die Karte bleibt beim Scrollen stehen,
   bis die Liste durchgelaufen ist – ohne den Seitenscroll abzufangen. */
.cb-kartenbereich {
	display: grid;
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	gap: 2rem;
	align-items: start;
}

.cb-kartenspalte {
	position: sticky;
	/* Abstand nach oben: muss zur Höhe des fixierten Divi-Kopfs passen. */
	top: var(--cb-karte-abstand, 7rem);
	align-self: start;
}

.cb-karte {
	width: 100%;
	height: min(70vh, 640px);
	background: var(--cb-flaeche);
}

.cb-kartentreffer {
	min-width: 0;
}

/* Nur für Screenreader: nimmt keinen Platz ein, damit die erste Kachelreihe
   oben bündig mit der Karte abschliesst. */
.cb-nur-vorlesen {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cb-leer {
	padding: 2.5rem 1rem;
	background: var(--cb-flaeche);
	text-align: center;
}

.cb-leer p {
	margin: 0 0 1rem;
}

/* Pin und Gruppierung */
.cb-pin svg {
	display: block;
	fill: var(--cb-gruen, #506245);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
	transition: transform 0.15s;
	transform-origin: 50% 100%;
}

.cb-pin__auge {
	fill: #fff;
}

.cb-pin.ist-hervorgehoben svg,
.cb-pin:hover svg {
	transform: scale(1.25);
}

/* Doppelte Klasse gegen die Grundregeln der Kartenbibliothek – sonst sitzt die
   Zahl als normaler Text oben links statt in der Mitte des Kreises. */
.cb-cluster,
.maplibregl-marker.cb-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 38px;
	height: 38px;
	background: #506245;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: background-color 0.15s, box-shadow 0.15s;
}

.cb-pin {
	cursor: pointer;
}

.cb-cluster__zahl {
	display: block;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1;
	text-align: center;
}

/* Kein transform auf der Gruppe selbst – die Karte positioniert sie darüber. */
.cb-cluster.ist-hervorgehoben,
.cb-cluster:hover {
	background: #3d4b34;
	box-shadow: 0 0 0 5px rgba(80, 98, 69, 0.3), 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------- Projektliste */

.cb-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
	margin-bottom: 2.5rem;
}

.cb-filter__knopf {
	padding: 0 0 0.3rem;
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	color: var(--cb-salbei-hell);
	font-size: 1.05rem;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.cb-filter__knopf:hover {
	color: var(--cb-gruen);
}

.cb-filter__knopf.ist-aktiv {
	border-bottom-color: var(--cb-gruen);
	color: var(--cb-gruen);
}

.cb-zeilen {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.cb-zeile[hidden] {
	display: none;
}

.cb-zeile {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 2.5rem;
	align-items: center;
}

.cb-zeile__bild {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--cb-flaeche);
}

.cb-zeile__bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cb-zeile__titel {
	margin: 0 0 0.2rem;
	color: var(--cb-gruen);
	font-size: 2.6rem;
	font-weight: 400;
	line-height: 1.1;
}

.cb-zeile__unter {
	margin: 0 0 1rem;
	color: var(--cb-gruen);
	font-size: 1.2rem;
}

.cb-eckdaten {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

.cb-eckdaten div {
	display: flex;
	gap: 0.4em;
}

.cb-eckdaten dt,
.cb-eckdaten dd {
	margin: 0;
}

.cb-leer-liste {
	padding: 2.5rem 1rem;
	background: var(--cb-flaeche);
	text-align: center;
}

/* ---------------------------------------------------------------- Klein */

@media (max-width: 1100px) {
	/* Gestapelt: Karte oben, Liste darunter. Kein Kleben mehr. */
	.cb-kartenbereich {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.cb-kartenspalte {
		position: static;
		order: -1;
	}

	.cb-karte {
		height: 380px;
	}
}

@media (max-width: 980px) {
	.cb-kacheln {
		grid-template-columns: repeat(2, 1fr);
	}

	.cb-zeile {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.cb-zeile__titel {
		font-size: 2rem;
	}
}

@media (max-width: 640px) {
	.cb-kacheln {
		grid-template-columns: 1fr;
	}

	.cb-kacheln--kompakt {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.9rem;
	}

	.cb-kachel--kompakt .cb-kachel__titel {
		font-size: 1rem;
	}

	.cb-karte {
		height: 320px;
	}

	.cb-filter {
		gap: 1.25rem;
	}

	.cb-kennzahl {
		flex-basis: 8rem;
	}

	.cb-kennzahl__wert {
		font-size: 1.9rem;
	}
}

/* ====================================================== Projekt-Detailseite */

.cb-detail {
	--cb-inhalt: 860px;
	/* Entspricht der Divi-Zeile im Kopf: width 80%, max-width 1125px.
	   Nur so beginnt alles exakt unter dem Logo. Ändert die Agentur die
	   Kopfzeile, muss dieser Wert mitziehen. */
	--cb-breit: 1125px;
}

/* Hero mit Bild und Textfeld unten links, wie im Entwurf. */
.cb-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(62vh, 620px);
	/* Unten kein Abstand: Das Textfeld schliesst bündig mit der Bildkante ab. */
	padding: 2.5rem 0 0;
	background-color: var(--cb-flaeche);
	background-position: center;
	background-size: cover;
}

.cb-hero__innen {
	width: 80%;
	max-width: var(--cb-breit);
	margin: 0 auto;
}

.cb-hero__panel {
	max-width: 34rem;
	padding: 1.6rem 2rem 1.8rem;
	background: linear-gradient(180deg, rgba(43, 52, 38, 0.74), rgba(43, 52, 38, 0.88));
	color: #fff;
}

.cb-hero__ort {
	margin: 0 0 0.2em;
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cb-hero__titel {
	margin: 0;
	color: #fff;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	font-weight: 300;
	line-height: 1.05;
}

.cb-hero__unter {
	margin: 0.4rem 0 0;
	font-size: 1.1rem;
	font-weight: 300;
}

.cb-hero .cb-knopf {
	margin-top: 1.4rem;
}

.cb-knopf--hell {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.cb-knopf--hell:hover,
.cb-knopf--hell:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--cb-gruen);
}

/* Einleitungssatz unter dem Hero – mittig, ruhig. */
.cb-detail__kurztext,
.cb-detail__aufruf {
	width: min(80%, var(--cb-inhalt));
	margin: 3.5rem auto;
	color: var(--cb-gruen);
	font-size: 1.2rem;
	font-weight: 300;
	line-height: 1.6;
	text-align: center;
}

.cb-detail__aufruf {
	margin-top: 2.5rem;
}

.cb-detail__block {
	width: min(80%, var(--cb-inhalt));
	margin: 3rem auto;
}

.cb-detail__block--breit {
	width: 80%;
	max-width: var(--cb-breit);
}

.cb-detail__titel {
	margin: 0 0 1rem;
	color: var(--cb-gruen);
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 300;
	line-height: 1.2;
}

.cb-detail__titel--versal {
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cb-detail__text p {
	margin: 0 0 1rem;
	line-height: 1.65;
}

.cb-detail__text p:last-child {
	margin-bottom: 0;
}

.cb-merkmale {
	margin: 0;
	padding-left: 1.2em;
	line-height: 1.65;
}

.cb-merkmale li {
	margin-bottom: 0.7rem;
}

/* Karte: breiter als die Textspalte, aber nicht randlos. */
.cb-detail__karte {
	width: 80%;
	max-width: var(--cb-breit);
	margin: 3rem auto;
}

.cb-detailkarte {
	width: 100%;
	height: 420px;
	background: var(--cb-flaeche);
}

.cb-detail__cta {
	margin: 2.5rem 0 3.5rem;
	text-align: center;
}

.cb-detail__grossbild {
	margin: 0;
}

/* Flaches Band wie im Entwurf – sonst wird das Bild auf breiten Bildschirmen
   fast zwei Meter hoch und man scrollt minutenlang daran vorbei. */
.cb-detail__grossbild img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 780px) {
	.cb-detail__grossbild img {
		aspect-ratio: 4 / 3;
	}
}

/* Formularblock der Ankündigungsseiten. */
.cb-formularblock {
	width: 80%;
	max-width: var(--cb-breit);
	margin-top: 3.5rem;
}

.cb-formular {
	margin-top: 1.5rem;
	padding: 2rem;
	background: #ebeceb;
}

.cb-hinweis {
	margin-top: 1rem;
	padding: 1rem 1.2rem;
	background: #ebeceb;
	border-left: 3px solid var(--cb-salbei);
	font-size: 0.95rem;
}

.cb-detail__weitere {
	width: 80%;
	max-width: var(--cb-breit);
	margin: 4rem auto 4.5rem;
}

@media (max-width: 780px) {
	.cb-hero {
		min-height: 60vh;
		padding: 1.25rem 0 0;
	}

	.cb-hero__panel {
		max-width: none;
		padding: 1.2rem 1.3rem 1.4rem;
	}

	.cb-detail__kurztext,
	.cb-detail__aufruf {
		margin: 2.5rem auto;
		font-size: 1.05rem;
	}

	.cb-detailkarte {
		height: 300px;
	}

	.cb-formular {
		padding: 1.25rem;
	}
}

/* ------------------------------------------- Kontaktformular (Contact Form 7) */

.cb-formular form {
	max-width: 640px;
}

.cb-formular p {
	margin: 0 0 1.2rem;
}

.cb-formular input[type="text"],
.cb-formular input[type="email"],
.cb-formular input[type="tel"],
.cb-formular select,
.cb-formular textarea {
	width: 100%;
	padding: 0.5em 0;
	border: 0;
	border-bottom: 1px solid #b9beb7;
	border-radius: 0;
	background: transparent;
	color: var(--cb-gruen-dunkel);
	font: inherit;
	appearance: none;
}

.cb-formular select {
	/* Pfeil, weil appearance:none den Standardpfeil entfernt. */
	background-image: linear-gradient(45deg, transparent 50%, #6c7568 50%),
		linear-gradient(135deg, #6c7568 50%, transparent 50%);
	background-position: right 0.7em top 55%, right 0.35em top 55%;
	background-size: 0.35em 0.35em, 0.35em 0.35em;
	background-repeat: no-repeat;
	padding-right: 1.6em;
}

.cb-formular textarea {
	min-height: 6em;
	resize: vertical;
}

.cb-formular input:focus,
.cb-formular select:focus,
.cb-formular textarea:focus {
	outline: 0;
	border-bottom-color: var(--cb-gruen);
}

.cb-formular ::placeholder {
	color: #8b9088;
	opacity: 1;
}

/* Ankreuzfelder nebeneinander. */
.cb-formular .wpcf7-checkbox,
.cb-formular .wpcf7-radio {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.8rem;
	margin-top: 0.4rem;
}

.cb-formular .wpcf7-list-item {
	margin: 0;
}

.cb-formular .wpcf7-list-item-label {
	margin-left: 0.4em;
}

.cb-formular .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.cb-formular input[type="submit"] {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.65em 2.4em;
	border: 1px solid var(--cb-linie);
	background: #fff;
	color: var(--cb-gruen);
	font: inherit;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cb-formular input[type="submit"]:hover {
	background: var(--cb-salbei);
	border-color: var(--cb-salbei);
	color: #fff;
}

.cb-formular .wpcf7-not-valid-tip {
	color: #a4443a;
	font-size: 0.85rem;
}

.cb-formular .wpcf7-response-output {
	margin: 1.2rem 0 0;
	padding: 0.8em 1em;
	border: 1px solid var(--cb-linie);
	background: #fff;
}

/* Quellenangabe der Karte zurückhaltend halten – sie muss sichtbar bleiben. */
.maplibregl-ctrl-attrib {
	font-size: 11px;
}

.maplibregl-ctrl-attrib a {
	color: #5a6157;
}

/* ====================================================== Inhaltsseiten */

.cb-seite {
	--cb-gruen:        #506245;
	--cb-gruen-dunkel: #415138;
	--cb-salbei:       #7b8873;
	--cb-salbei-hell:  #a8b1a2;
	--cb-flaeche:      #e4e8e2;
	--cb-badge:        #c1c8bd;
	--cb-text:         #707377;
	--cb-linie:        #d3d7d1;
	--cb-breit:        1125px;
	--cb-inhalt:       860px;

	color: var(--cb-text);
	box-sizing: border-box;
}

.cb-seite * {
	box-sizing: inherit;
}

/* Vollflächiges Bild am Seitenanfang */
.cb-seitenbild img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}

/* Mittiger Textblock mit Überschrift und Knopf */
.cb-intro {
	width: min(80%, var(--cb-inhalt));
	margin: 4rem auto;
	text-align: center;
}

.cb-intro__titel {
	margin: 0 0 1.5rem;
	color: var(--cb-gruen);
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	font-weight: 300;
	line-height: 1.25;
}

.cb-intro__text {
	margin: 0 auto 2rem;
	font-size: clamp(1rem, 1.3vw, 1.2rem);
	font-weight: 300;
	line-height: 1.65;
}

.cb-intro__text p {
	margin: 0 0 1rem;
}

/* Abschnittsüberschrift über einem Baustein */
.cb-abschnitt {
	width: 80%;
	max-width: var(--cb-breit);
	margin: 4rem auto;
}

.cb-abschnitt--breit {
	width: 100%;
	max-width: none;
}

.cb-abschnitt__titel {
	margin: 0 0 2rem;
	color: var(--cb-gruen);
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	font-weight: 300;
	line-height: 1.2;
	text-align: center;
}

.cb-abschnitt__label {
	margin: 0 0 1.5rem;
	color: var(--cb-text);
	font-size: 1.4rem;
	font-weight: 300;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cb-mitte {
	margin-top: 2.5rem;
	text-align: center;
}

/* Leistungskacheln */
.cb-leistungen {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-top: 2.5rem;
}

.cb-leistung {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-height: 13rem;
	padding: 2rem 1.5rem;
	background: var(--cb-salbei-hell);
	color: #fff;
	text-align: center;
}

.cb-leistung__titel {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 300;
}

.cb-leistung__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Ankauf: Bild mit Textfeld rechts */
.cb-ankauf {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: min(60vh, 560px);
	padding: 3rem 0;
	background-color: var(--cb-flaeche);
	background-position: center;
	background-size: cover;
}

.cb-ankauf__innen {
	width: 80%;
	max-width: var(--cb-breit);
	margin: 0 auto;
	display: flex;
	justify-content: flex-end;
}

.cb-ankauf__panel {
	max-width: 30rem;
	padding: 2rem 2.2rem 2.4rem;
	background: rgba(255, 255, 255, 0.92);
}

.cb-ankauf__titel {
	margin: 0 0 1rem;
	color: var(--cb-gruen);
	font-size: clamp(1.4rem, 2.2vw, 2rem);
	font-weight: 300;
	line-height: 1.25;
}

.cb-ankauf__text {
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

/* Kontakt: Formular links, Angaben rechts */
.cb-kontaktgitter {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 3rem;
	align-items: start;
}

.cb-kontaktdaten {
	font-size: clamp(1.05rem, 1.5vw, 1.35rem);
	line-height: 1.9;
}

.cb-kontaktdaten a {
	color: var(--cb-gruen);
	text-decoration: none;
}

.cb-kontaktdaten a:hover {
	text-decoration: underline;
}

.cb-kontaktdaten__block + .cb-kontaktdaten__block {
	margin-top: 1.5rem;
}

/* Standortangabe unter der Karte */
.cb-standort {
	margin-top: 2rem;
	text-align: center;
}

.cb-standort__name {
	margin: 0;
	color: var(--cb-gruen);
	font-size: 1.4rem;
	font-weight: 300;
}

.cb-standort__adresse {
	margin: 0.3rem 0 1.5rem;
}

/* Impressionen: Bildbänder mit Textfeld */
.cb-impressionen {
	--cb-gruen: #506245;
	--cb-breit: 1125px;
}

.cb-band {
	position: relative;
}

.cb-band__bild {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.cb-band__innen {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	width: 80%;
	max-width: var(--cb-breit);
	margin: 0 auto;
	left: 0;
	right: 0;
}

.cb-band--rechts .cb-band__innen {
	justify-content: flex-end;
}

.cb-band__panel {
	max-width: 26rem;
	padding: 1.6rem 2rem 1.8rem;
	background: linear-gradient(180deg, rgba(43, 52, 38, 0.74), rgba(43, 52, 38, 0.88));
	color: #fff;
}

.cb-band__ort {
	margin: 0 0 0.2em;
	font-size: 1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cb-band__titel {
	margin: 0;
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 300;
	line-height: 1.1;
}

.cb-band__unter {
	margin: 0.4rem 0 0;
	font-size: 1.05rem;
	font-weight: 300;
}

.cb-band__link {
	display: inline-block;
	margin-top: 1rem;
	color: #fff;
	font-size: 1.05rem;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.cb-band__link:hover {
	border-bottom-color: #fff;
}

@media (max-width: 900px) {
	.cb-leistungen {
		grid-template-columns: 1fr;
	}

	.cb-kontaktgitter {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.cb-ankauf {
		min-height: 0;
		padding: 2rem 0;
	}

	.cb-ankauf__panel {
		max-width: none;
	}

	.cb-band__bild {
		aspect-ratio: 4 / 3;
	}

	.cb-band__panel {
		max-width: none;
		padding: 1.2rem 1.3rem 1.4rem;
	}
}

/* ---------------------------------------------- Divis Inhaltsbreite lösen */

/*
 * Divi begrenzt den Inhaltsbereich auf 1080 px. Unsere Seiten bringen ihre
 * eigenen Breiten mit (80 %, höchstens 1125 px – wie die Kopfzeile) und
 * brauchen darum die volle Breite. Gilt nur für Seiten mit .cb-seite, alles
 * andere bleibt unberührt.
 */
#main-content .container:has(.cb-seite) {
	width: 100%;
	max-width: none;
}

/* Auf diesen Seiten steht die Überschrift im Inhalt, nicht als Seitentitel. */
article:has(.cb-seite) > .entry-title {
	display: none;
}
