/* =====================================================================
   CAT Projekt-Anfrage & Consent
   Farben und Maße hier zentral anpassbar.
   ===================================================================== */
:root {
	--cat-accent: var(--nectar-accent-color, #00aba5);
	--cat-text: #2e2d2c;
	--cat-field-bg: #c6c5c1;
	--cat-field-text: #2e2d2c;
	--cat-error: #b3261e;
	--cat-field-height: 42px;
	--cat-textarea-height: 235px;
	--cat-form-width: 400px;
}

/* ---------------------------------------------------------------------
   Formular
   --------------------------------------------------------------------- */
.cat-anfrage {
	width: 100%;
	max-width: var(--cat-form-width);
	font-family: inherit;
	color: var(--cat-text);
	text-align: left;
}
.cat-anfrage .cat-form { margin: 0; padding: 0; }

.cat-anfrage .cat-field { margin: 0 0 20px; padding: 0; position: relative; }

.cat-anfrage .cat-label {
	display: block !important;
	margin: 0 0 6px !important;
	padding: 0 0 0 10px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 20px !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var(--cat-text) !important;
}

.cat-anfrage .cat-input {
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
	height: var(--cat-field-height) !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cat-field-bg) !important;
	box-shadow: none !important;
	color: var(--cat-field-text) !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 20px !important;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow .15s ease;
}
.cat-anfrage textarea.cat-input {
	height: var(--cat-textarea-height) !important;
	min-height: 120px;
	padding: 14px 18px !important;
	border-radius: 30px !important;
	resize: vertical;
}
.cat-anfrage .cat-input:focus,
.cat-anfrage .cat-input:focus-visible {
	box-shadow: 0 0 0 2px var(--cat-accent) !important;
}
.cat-anfrage .cat-invalid .cat-input {
	box-shadow: 0 0 0 2px var(--cat-error) !important;
}
.cat-anfrage .cat-error {
	display: block;
	padding: 0 0 0 10px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--cat-error);
}
.cat-anfrage .cat-error:empty { display: none; }
.cat-anfrage .cat-invalid .cat-error { margin-top: 5px; }

/* Honeypot – für Menschen unsichtbar */
.cat-anfrage .cat-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* Datenschutz-Häkchen */
.cat-anfrage .cat-field--check {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin: 4px 0 14px;
	padding-left: 0;
}
.cat-anfrage .cat-checkbox {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex: 0 0 auto;
	width: 12px !important;
	height: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #6b6a67 !important;
	border-radius: 0 !important;
	background: #fff !important;
	cursor: pointer;
	position: relative;
	box-shadow: none !important;
}
.cat-anfrage .cat-checkbox:checked {
	background: var(--cat-accent) !important;
	border-color: var(--cat-accent) !important;
}
.cat-anfrage .cat-checkbox:checked::after {
	content: "";
	position: absolute;
	left: 3px; top: 0;
	width: 3px; height: 7px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.cat-anfrage .cat-checkbox:focus-visible { outline: 2px solid var(--cat-accent); outline-offset: 2px; }
.cat-anfrage .cat-invalid .cat-checkbox { border-color: var(--cat-error) !important; }
.cat-anfrage .cat-check-label {
	flex: 1 1 0;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	line-height: 17px !important;
	font-weight: 400 !important;
	color: var(--cat-text) !important;
	cursor: pointer;
}
.cat-anfrage .cat-check-label a { color: var(--cat-accent) !important; text-decoration: none; }
.cat-anfrage .cat-check-label a:hover { text-decoration: underline; }
.cat-anfrage .cat-field--check .cat-error { flex-basis: 100%; padding-left: 20px; }

/* Button */
.cat-anfrage .cat-actions { margin: 0; }
/* Mehrfach-Klassen erhöhen die Priorität: Salient setzt für alle Absende-Buttons per !important
   eckige Radien, größeres Padding und beim Hover einen Hebe-Effekt mit Schatten. */
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button,
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button:hover,
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button:focus,
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button:active {
	display: inline-block !important;
	position: relative !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 6px 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cat-accent) !important;
	box-shadow: none !important;
	transform: none !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	letter-spacing: .02em !important;
	text-transform: uppercase !important;
	text-shadow: none !important;
	cursor: pointer;
	transition: opacity .2s ease !important;
}
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button::before,
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button::after { display: none !important; }
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button:hover { opacity: .85; }
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button:focus-visible { outline: 2px solid var(--cat-accent); outline-offset: 3px; }
.cat-anfrage.cat-anfrage .cat-form.cat-form .cat-button.cat-button[disabled] { opacity: .6; cursor: wait; }

/* Statusmeldung */
.cat-anfrage .cat-status {
	margin: 14px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
}
.cat-anfrage .cat-status:empty { display: none; }
.cat-anfrage .cat-status--success { color: var(--cat-accent); font-weight: 700; }
.cat-anfrage .cat-status--error { color: var(--cat-error); }

/* ---------------------------------------------------------------------
   Einzelnes Formular [cat_anfrage] – Ausrichtung
   --------------------------------------------------------------------- */
.cat-anfrage--align-center { margin-left: auto; margin-right: auto; }
.cat-anfrage--align-right { margin-left: auto; }

/* ---------------------------------------------------------------------
   Kompletter Bereich [cat_projekt_bereich] / WPBakery-Element
   --------------------------------------------------------------------- */
.cat-section-wrap { container-type: inline-size; width: 100%; }
.cat-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, var(--cat-form-width, 400px));
	gap: 40px var(--cat-gap, 60px);
	align-items: var(--cat-valign, start);
	color: var(--cat-text);
}
.cat-section--form-left { grid-template-columns: minmax(260px, var(--cat-form-width, 400px)) minmax(0, 1fr); }
.cat-section--form-left > .cat-section__form { order: -1; }
.cat-section__intro { min-width: 0; }
.cat-section__form { min-width: 0; }
.cat-section__form .cat-anfrage { max-width: none; }

.cat-section__heading {
	margin: 0 0 14px !important;
	padding: 0 !important;
	color: var(--cat-text);
}
p.cat-section__heading { font-size: 30px; line-height: 36px; }
.cat-section__subline {
	max-width: 450px;
	margin: 0 0 30px !important;
	padding: 0 !important;
	color: var(--cat-accent) !important;
	font-size: 16px;
	line-height: 1.1;
}
.cat-section__text { max-width: 560px; margin: -10px 0 30px; }
.cat-section__text > :last-child { margin-bottom: 0; padding-bottom: 0; }
.cat-section__buttons { display: flex; flex-wrap: wrap; gap: 20px 50px; align-items: center; }
.cat-section .cat-pill {
	display: inline-block;
	padding: 12px 40px;
	border-radius: 50px;
	background: var(--cat-accent);
	color: #fff !important;
	font-size: 16px;
	line-height: 20px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: opacity .2s ease;
}
.cat-section .cat-pill:hover { opacity: .85; }
.cat-section .cat-pill b { font-weight: 700; }

/* Einspaltig – je nach gewähltem Breakpoint */
@media (max-width: 999px) {
	.cat-section.cat-section--bp-1000 { grid-template-columns: minmax(0, 1fr); }
	.cat-section.cat-section--bp-1000 > .cat-section__form { order: var(--cat-stack-order, 1); }
	.cat-section.cat-section--bp-1000 .cat-section__form .cat-anfrage { max-width: var(--cat-form-width, 400px); }
}
@media (max-width: 689px) {
	.cat-section.cat-section--bp-690 { grid-template-columns: minmax(0, 1fr); }
	.cat-section.cat-section--bp-690 > .cat-section__form { order: var(--cat-stack-order, 1); }
	.cat-section.cat-section.cat-section .cat-section__form .cat-anfrage { max-width: none; }
	.cat-section__buttons { gap: 15px; }
	.cat-section .cat-pill { padding: 12px 28px; }
}
@container (max-width: 820px) {
	.cat-section.cat-section--bp-auto { grid-template-columns: minmax(0, 1fr); }
	.cat-section.cat-section--bp-auto > .cat-section__form { order: var(--cat-stack-order, 1); }
	.cat-section.cat-section--bp-auto .cat-section__form .cat-anfrage { max-width: var(--cat-form-width, 400px); }
}
@supports not (container-type: inline-size) {
	@media (max-width: 999px) {
		.cat-section.cat-section--bp-auto { grid-template-columns: minmax(0, 1fr); }
	}
}

/* ---------------------------------------------------------------------
   Cookie-Banner
   --------------------------------------------------------------------- */
#cat-cc[hidden], #cat-cc [hidden] { display: none !important; }
#cat-cc {
	position: fixed;
	z-index: 2147483000;
	left: 20px;
	bottom: 20px;
	width: calc(100% - 40px);
	max-width: 560px;
	font-family: inherit;
	color: var(--cat-text);
	text-align: left;
}
#cat-cc .cat-cc__box {
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 26px 28px 20px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
}
#cat-cc .cat-cc__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--cat-text);
}
#cat-cc .cat-cc__text {
	margin: 0 0 18px;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cat-text);
}
#cat-cc .cat-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
#cat-cc .cat-cc__btn {
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 10px 18px !important;
	border: 2px solid var(--cat-accent) !important;
	border-radius: 999px !important;
	background: var(--cat-accent) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 18px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
	transition: opacity .2s ease;
}
#cat-cc .cat-cc__btn--ghost { background: transparent !important; color: var(--cat-accent) !important; }
#cat-cc .cat-cc__btn:hover { opacity: .85; }
#cat-cc .cat-cc__btn:focus-visible { outline: 2px solid var(--cat-text); outline-offset: 2px; }
#cat-cc .cat-cc__legal { margin: 14px 0 0; padding: 0; font-size: 13px; line-height: 1.4; }
#cat-cc a { color: var(--cat-accent); text-decoration: none; }
#cat-cc a:hover { text-decoration: underline; }

/* Schwebendes Cookie-Symbol */
#cat-cc-float[hidden] { display: none !important; }
#cat-cc-float {
	position: fixed;
	z-index: 2147482999;
	bottom: 20px;
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--cat-accent) !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18) !important;
	cursor: pointer;
	opacity: .92;
	transition: transform .2s ease, opacity .2s ease;
	animation: cat-float-in .3s ease;
}
#cat-cc-float.cat-cc-float--right { left: auto; right: 20px; }
#cat-cc-float:hover { opacity: 1; transform: scale(1.07); }
#cat-cc-float:focus-visible { outline: 2px solid var(--cat-text); outline-offset: 3px; }
#cat-cc-float svg { display: block; width: 24px; height: 24px; }
@keyframes cat-float-in { from { opacity: 0; transform: scale(.6); } to { opacity: .92; transform: scale(1); } }
@media (max-width: 600px) {
	#cat-cc-float { bottom: 14px; left: 14px; width: 42px !important; height: 42px !important; }
	#cat-cc-float.cat-cc-float--right { left: auto; right: 14px; }
}
@media print { #cat-cc, #cat-cc-float { display: none !important; } }

/* Einstellungen */
#cat-cc .cat-cc__prefs { margin: 0 0 18px; border-top: 1px solid #e3e2de; }
#cat-cc .cat-cc__cat { padding: 14px 0; border-bottom: 1px solid #e3e2de; }
#cat-cc .cat-cc__switch { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
#cat-cc .cat-cc__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#cat-cc .cat-cc__toggle {
	flex: 0 0 auto;
	position: relative;
	width: 40px; height: 22px;
	border-radius: 22px;
	background: var(--cat-field-bg);
	transition: background .2s ease;
}
#cat-cc .cat-cc__toggle::after {
	content: "";
	position: absolute;
	top: 3px; left: 3px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}
#cat-cc .cat-cc__switch input:checked + .cat-cc__toggle { background: var(--cat-accent); }
#cat-cc .cat-cc__switch input:checked + .cat-cc__toggle::after { transform: translateX(18px); }
#cat-cc .cat-cc__switch input:indeterminate + .cat-cc__toggle { background: #8fd3d0; }
#cat-cc .cat-cc__switch input:indeterminate + .cat-cc__toggle::after { transform: translateX(9px); }
#cat-cc .cat-cc__switch input:disabled + .cat-cc__toggle { opacity: .55; }
#cat-cc .cat-cc__switch input:focus-visible + .cat-cc__toggle { outline: 2px solid var(--cat-text); outline-offset: 2px; }
#cat-cc .cat-cc__catname { font-size: 15px; font-weight: 700; line-height: 1.3; }
#cat-cc .cat-cc__catname small { font-weight: 400; font-size: 13px; }
#cat-cc .cat-cc__catdesc { margin: 6px 0 0 52px; padding: 0; font-size: 13px; line-height: 1.45; }
#cat-cc .cat-cc__details { margin: 6px 0 0 52px; font-size: 13px; line-height: 1.45; }
#cat-cc .cat-cc__details summary { cursor: pointer; color: var(--cat-accent); }
#cat-cc .cat-cc__service { margin: 10px 0 0; padding: 10px 12px; background: #f2f1ed; border-radius: 12px; }
#cat-cc .cat-cc__sname { display: block; margin: 0 0 6px; padding: 0; font-weight: 700; font-size: 13px; cursor: pointer; }
#cat-cc .cat-cc__sname input { margin: 0 6px 0 0; vertical-align: -1px; accent-color: var(--cat-accent); }
#cat-cc dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; padding: 0; }
#cat-cc dt { margin: 0; padding: 0; font-weight: 700; }
#cat-cc dd { margin: 0; padding: 0; }
#cat-cc .cat-cc__id { margin: 12px 0 0; padding: 0; font-size: 12px; color: #6b6a67; }
#cat-cc .cat-cc__id code { font-size: 11px; background: none; padding: 0; color: inherit; }

@media (max-width: 600px) {
	#cat-cc { left: 10px; bottom: 10px; width: calc(100% - 20px); }
	#cat-cc .cat-cc__box { padding: 20px 18px 16px; border-radius: 18px; max-height: calc(100vh - 20px); }
	#cat-cc .cat-cc__btn { flex-basis: 100%; }
	#cat-cc .cat-cc__catdesc, #cat-cc .cat-cc__details { margin-left: 0; }
}

/* ---------------------------------------------------------------------
   Platzhalter für YouTube / Google Maps
   --------------------------------------------------------------------- */
.cat-embed {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 220px;
	padding: 24px;
	background: #f2f1ed;
	border: 1px solid #e3e2de;
	border-radius: 20px;
	color: var(--cat-text);
	text-align: center;
}
.cat-embed__inner { max-width: 420px; }
.cat-embed__title { margin: 0 0 8px !important; padding: 0 !important; font-weight: 700; font-size: 17px; line-height: 1.3; }
.cat-embed__text { margin: 0 0 16px !important; padding: 0 !important; font-size: 14px; line-height: 1.45; }
.cat-embed__text a { color: var(--cat-accent); }
.cat-embed__btn {
	display: inline-block;
	margin: 0 0 12px !important;
	padding: 9px 26px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cat-accent) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 18px !important;
	cursor: pointer;
}
.cat-embed__btn:hover { opacity: .85; }
.cat-embed__always { display: block; font-size: 13px; line-height: 1.4; cursor: pointer; }
.cat-embed__always input { width: 14px !important; height: 14px !important; margin: 0 6px 0 0; vertical-align: -1px; accent-color: var(--cat-accent); }
.cat-embed .cat-embed__btn.cat-embed__btn,
.cat-embed .cat-embed__btn.cat-embed__btn:hover { transform: none !important; box-shadow: none !important; border-radius: 999px !important; }
