/* Gerlach Suchprofil – Formular */
.gsp {
	--gsp-violett: #654ea3;
	--gsp-violett-dunkel: #57438f;
	--gsp-anthrazit: #464345;
	--gsp-linie: #d6d3d8;
	--gsp-grau: #7a767b;
	max-width: 760px;
	margin: 0 auto;
	padding: 4px 0;
	background: #fff;
	color: var(--gsp-anthrazit);
	font-family: "Montserrat", inherit;
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}
.gsp *, .gsp *::before, .gsp *::after { box-sizing: inherit; border-radius: 0; }
.gsp [hidden] { display: none !important; }

.gsp-progress { height: 3px; background: var(--gsp-linie); overflow: hidden; }
.gsp-progress-bar { height: 100%; width: 0; background: var(--gsp-violett); transition: width .3s ease; }
.gsp-stepinfo { margin: 8px 0 18px; font-size: 13px; letter-spacing: .02em; color: var(--gsp-grau); }

.gsp-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.gsp-title {
	font-family: "Raleway", inherit;
	font-weight: 600;
	font-size: clamp(22px, 3.2vw, 28px);
	line-height: 1.25;
	color: var(--gsp-anthrazit);
	margin: 0 0 8px;
	padding: 0;
	outline: none;
}
.gsp-hint { margin: 0 0 20px; color: #6b676c; }
.gsp-label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.gsp-opt { font-weight: 400; color: var(--gsp-grau); font-size: 13px; }

/* Felder */
.gsp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.gsp-field { display: block; position: relative; }
.gsp-full { margin-top: 16px; }
.gsp-input {
	width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--gsp-linie);
	background: #fff; color: var(--gsp-anthrazit); font: inherit; font-size: 16px; line-height: 1.3;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select.gsp-input, .gsp-multi-btn {
	background-image: linear-gradient(45deg, transparent 50%, var(--gsp-anthrazit) 50%), linear-gradient(135deg, var(--gsp-anthrazit) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; cursor: pointer;
}
.gsp-input:focus { outline: none; border-color: var(--gsp-anthrazit); }
.gsp-input.is-invalid { border-color: var(--gsp-anthrazit); }
textarea.gsp-input { resize: vertical; min-height: 110px; }
.gsp-unit { position: relative; display: block; }
.gsp-unit .gsp-input { padding-right: 42px; }
.gsp-unit em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--gsp-grau); }

/* Hausart: Auswahlliste mit Mehrfachauswahl */
.gsp-multi { position: relative; }
.gsp-multi-btn { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsp-multi.is-open .gsp-multi-btn { border-color: var(--gsp-anthrazit); }
.gsp-multi-panel {
	position: relative; margin-top: -1px;
	background: #fff; border: 1px solid var(--gsp-anthrazit);
	max-height: 320px; overflow-y: auto; padding: 4px 0 0;
}
.gsp-multi-foot {
	position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--gsp-linie);
	padding: 8px; margin-top: 4px; text-align: right;
}
.gsp-multi-done {
	border: 1px solid var(--gsp-anthrazit); background: #fff; color: var(--gsp-anthrazit);
	font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; cursor: pointer;
}
.gsp-multi-done:hover { background: #f5f4f6; }
.gsp-multi-done:focus-visible { outline: 2px solid var(--gsp-anthrazit); outline-offset: 2px; }
.gsp-multi-opt { display: flex; align-items: center; gap: 10px; padding: 9px 13px; cursor: pointer; font-size: 15px; }
.gsp-multi-opt:hover { background: #f5f4f6; }
.gsp-multi-opt.gsp-level-1 { padding-left: 37px; font-size: 14px; }
.gsp-multi-opt.gsp-level-2 { padding-left: 61px; font-size: 14px; }
.gsp-multi-opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--gsp-violett); }

/* Gruppen und Suchfeld in Auswahllisten */
.gsp-multi-filter {
	display: block; width: calc(100% - 16px); margin: 6px 8px 8px; padding: 8px 10px;
	border: 1px solid var(--gsp-linie); font: inherit; font-size: 15px; color: var(--gsp-anthrazit); background: #fff;
}
.gsp-multi-filter:focus { outline: none; border-color: var(--gsp-anthrazit); }
.gsp-multi-group-title { margin: 8px 13px 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gsp-grau); }
.gsp-unavailable { padding: 16px 0; }

/* Orte */
.gsp-place { position: relative; }
.gsp-suggest {
	list-style: none !important; margin: -1px 0 0 !important; padding: 4px 0 !important;
	border: 1px solid var(--gsp-anthrazit); background: #fff; max-height: 280px; overflow-y: auto;
}
.gsp-suggest li { margin: 0 !important; padding: 9px 13px !important; font-size: 15px; line-height: 1.35; list-style: none !important; }
.gsp-suggest li::before { content: none !important; }
.gsp-suggest-item { cursor: pointer; }
.gsp-suggest-item:hover, .gsp-suggest-item.is-active { background: #f5f4f6; }
.gsp-suggest-note { color: var(--gsp-grau); font-size: 14px !important; }
.gsp-locmode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.gsp-locmode-opt { position: relative; display: block; padding: 14px 16px; border: 1px solid var(--gsp-linie); cursor: pointer; background: #fff; }
.gsp-locmode-opt input { position: absolute; opacity: 0; pointer-events: none; }
.gsp-locmode-opt strong { display: block; font-weight: 600; }
.gsp-locmode-opt em { display: block; font-style: normal; font-size: 13px; color: var(--gsp-grau); margin-top: 2px; }
.gsp-locmode-opt.is-checked { border-color: var(--gsp-anthrazit); box-shadow: inset 0 0 0 1px var(--gsp-anthrazit); }
.gsp-locmode-opt:focus-within { outline: 2px solid var(--gsp-anthrazit); outline-offset: 2px; }
.gsp-addrow { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: start; }
.gsp-addrow .gsp-btn-add { margin-top: 26px; }
.gsp-selected { margin-top: 20px; }
.gsp-sel-row {
	display: grid; grid-template-columns: 1fr minmax(170px, 220px) auto; gap: 12px; align-items: center;
	padding: 8px 0 8px 14px; border: 1px solid var(--gsp-linie);
	margin-bottom: 8px; background: #fff;
}
.gsp-sel-row .gsp-input { min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.gsp-remove {
	border: 0; background: transparent; color: var(--gsp-grau); font: inherit; font-size: 13px;
	text-decoration: underline; cursor: pointer; padding: 6px 12px;
}
.gsp-remove:hover { color: var(--gsp-anthrazit); }

/* Merkmale */
.gsp-feat {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 12px 0; border-bottom: 1px solid var(--gsp-linie);
}
.gsp-feat:last-child { border-bottom: 0; }
.gsp-feat-label { font-weight: 500; }
.gsp-feat-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.gsp-feat-value { width: auto; min-width: 180px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.gsp-seg { display: inline-flex; border: 1px solid var(--gsp-linie); flex-shrink: 0; }
.gsp-seg label { position: relative; cursor: pointer; }
.gsp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.gsp-seg span { display: block; padding: 7px 14px; font-size: 13px; white-space: nowrap; transition: background .15s, color .15s; }
.gsp-seg label + label span { border-left: 1px solid var(--gsp-linie); }
.gsp-seg input:checked + span { background: var(--gsp-violett); color: #fff; }
.gsp-seg input[value="muss"]:checked + span { background: var(--gsp-anthrazit); }
.gsp-seg input:focus-visible + span { outline: 2px solid var(--gsp-violett); outline-offset: -2px; }

/* Einwilligung */
.gsp-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.gsp-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gsp-violett); }
.gsp-consent a { color: var(--gsp-violett); }
.gsp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gsp-error { display: block; color: var(--gsp-anthrazit); font-size: 13px; margin: 6px 0 0; }
.gsp-error:empty { display: none; }
.gsp-error-global { margin-top: 14px; font-size: 14px; }

/* Schaltflächen */
.gsp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.gsp-btn {
	appearance: none; border: 1px solid var(--gsp-violett); min-height: 46px;
	padding: 12px 28px; font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .02em;
	cursor: pointer; transition: background .15s, color .15s, opacity .15s;
}
.gsp-btn-next, .gsp-btn-submit { background: var(--gsp-violett); color: #fff; margin-left: auto; }
.gsp-btn-next:hover, .gsp-btn-submit:hover { background: var(--gsp-violett-dunkel); border-color: var(--gsp-violett-dunkel); }
.gsp-btn-back, .gsp-btn-add { background: #fff; color: var(--gsp-violett); }
.gsp-btn-back:hover, .gsp-btn-add:hover { background: #f5f4f6; }
.gsp-btn:focus-visible, .gsp-remove:focus-visible { outline: 2px solid var(--gsp-violett); outline-offset: 2px; }
.gsp-btn:disabled { opacity: .6; cursor: wait; }

/* Abschluss */
.gsp-done { text-align: center; padding: 28px 12px; outline: none; }
.gsp-done-icon {
	width: 52px; height: 52px; margin: 0 auto 16px;
	background: var(--gsp-violett); color: #fff; font-size: 26px; line-height: 52px;
}
.gsp-done p { max-width: 540px; margin: 10px auto 0; }

/* Mobil */
@media (max-width: 640px) {
	.gsp-grid { grid-template-columns: 1fr; }
	.gsp-spacer { display: none; }
	.gsp-addrow { grid-template-columns: 1fr; }
	.gsp-addrow .gsp-btn-add { margin-top: 0; }
	.gsp-locmode { grid-template-columns: 1fr; }
	.gsp-feat { flex-direction: column; align-items: flex-start; }
	.gsp-feat-controls { justify-content: flex-start; }
	.gsp-sel-row { grid-template-columns: 1fr auto; padding-right: 8px; }
	.gsp-sel-row .gsp-radius { grid-column: 1 / -1; grid-row: 2; }
	.gsp-btn { padding: 12px 20px; }
}

/* ------------------------------------------------------------------ */
/* Absicherung gegen Schaltflächen-Stile des Themes (Elementor u. a.)  */
/* ------------------------------------------------------------------ */
.gsp button.gsp-btn,
.gsp button.gsp-multi-btn,
.gsp button.gsp-multi-done,
.gsp button.gsp-remove {
	text-transform: none !important;
	letter-spacing: normal !important;
	font-family: inherit !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	border-radius: 0 !important;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.gsp button.gsp-multi-btn,
.gsp button.gsp-multi-btn:hover,
.gsp button.gsp-multi-btn:focus {
	width: 100% !important;
	min-height: 46px !important;
	padding: 11px 36px 11px 13px !important;
	border: 1px solid var(--gsp-linie) !important;
	background-color: #fff !important;
	background-image: linear-gradient(45deg, transparent 50%, var(--gsp-anthrazit) 50%), linear-gradient(135deg, var(--gsp-anthrazit) 50%, transparent 50%) !important;
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50% !important;
	background-size: 5px 5px !important;
	background-repeat: no-repeat !important;
	color: var(--gsp-anthrazit) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	text-align: left !important;
}
.gsp .gsp-multi.is-open button.gsp-multi-btn,
.gsp button.gsp-multi-btn:focus { border-color: var(--gsp-anthrazit) !important; outline: none; }
.gsp button.gsp-btn-next,
.gsp button.gsp-btn-submit {
	background: var(--gsp-violett) !important;
	color: #fff !important;
	border: 1px solid var(--gsp-violett) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 12px 28px !important;
	min-height: 46px !important;
}
.gsp button.gsp-btn-next:hover, .gsp button.gsp-btn-next:focus,
.gsp button.gsp-btn-submit:hover, .gsp button.gsp-btn-submit:focus {
	background: var(--gsp-violett-dunkel) !important;
	border-color: var(--gsp-violett-dunkel) !important;
	color: #fff !important;
}
.gsp button.gsp-btn-back,
.gsp button.gsp-btn-add {
	background: #fff !important;
	color: var(--gsp-violett) !important;
	border: 1px solid var(--gsp-violett) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 12px 28px !important;
	min-height: 46px !important;
}
.gsp button.gsp-btn-back:hover, .gsp button.gsp-btn-back:focus,
.gsp button.gsp-btn-add:hover, .gsp button.gsp-btn-add:focus {
	background: #f5f4f6 !important;
	color: var(--gsp-violett) !important;
}
.gsp button.gsp-multi-done,
.gsp button.gsp-multi-done:hover,
.gsp button.gsp-multi-done:focus {
	background: #fff !important;
	color: var(--gsp-anthrazit) !important;
	border: 1px solid var(--gsp-anthrazit) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	width: auto !important;
	min-height: 0 !important;
}
.gsp button.gsp-multi-done:hover { background: #f5f4f6 !important; }
.gsp button.gsp-remove,
.gsp button.gsp-remove:hover,
.gsp button.gsp-remove:focus {
	background: transparent !important;
	color: var(--gsp-grau) !important;
	border: 0 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	padding: 6px 12px !important;
	text-decoration: underline !important;
	width: auto !important;
	min-height: 0 !important;
}
.gsp button.gsp-remove:hover { color: var(--gsp-anthrazit) !important; }
@media (max-width: 640px) {
	.gsp button.gsp-btn { padding: 12px 20px !important; }
}

.gsp-mount { max-width: 760px; margin: 0 auto; min-height: 120px; }
.gsp-loading { color: #7a767b; font-size: 14px; }

.gsp input.gsp-multi-filter {
	display: block !important; box-sizing: border-box !important; width: calc(100% - 16px) !important; max-width: none !important;
	margin: 6px 8px 8px !important; padding: 8px 10px !important; height: auto !important; min-height: 0 !important;
	font-size: 15px !important; border: 1px solid var(--gsp-linie) !important; border-radius: 0 !important; box-shadow: none !important;
}

/* Ortsliste als Baum: Gemeinden mit aufklappbaren Ortsteilen */
.gsp-multi-row { display: flex; align-items: center; justify-content: space-between; }
.gsp-multi-row .gsp-multi-opt { flex: 1 1 auto; min-width: 0; }
.gsp-multi-row:hover { background: #f5f4f6; }
.gsp-multi-row .gsp-multi-opt:hover { background: transparent; }
.gsp-tree-toggle {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	margin-right: 8px; padding: 6px 8px; cursor: pointer; color: var(--gsp-grau); font-size: 13px; white-space: nowrap;
}
.gsp-tree-toggle:hover, .gsp-tree-toggle:focus { color: var(--gsp-anthrazit); outline: none; }
.gsp-tree-toggle:focus-visible { outline: 2px solid var(--gsp-anthrazit); outline-offset: 1px; }
.gsp-tree-chevron {
	width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg); transition: transform .15s; margin-right: 2px;
}
.gsp-tree-toggle.is-open .gsp-tree-chevron { transform: rotate(45deg); margin-top: -4px; }
.gsp-multi-row.is-child { background: #fafafa; }
@media (max-width: 640px) {
	.gsp-tree-count { font-size: 12px; }
}

/* Auswahl-Merkmale: Liste mit Mehrfachauswahl, danach Gewichtung */
.gsp-feat-select { align-items: flex-start; }
.gsp-feat-select .gsp-feat-label { padding-top: 8px; }
.gsp-feat-select .gsp-feat-controls { flex: 0 1 470px; justify-content: flex-end; align-items: flex-start; }
.gsp-feat-multi { flex: 1 1 220px; min-width: 200px; }
.gsp .gsp-feat-multi button.gsp-multi-btn { min-height: 38px !important; padding-top: 7px !important; padding-bottom: 7px !important; font-size: 14px !important; }
.gsp-feat-multi .gsp-multi-opt { font-size: 14px; padding: 7px 12px; }
@media (max-width: 640px) {
	.gsp-feat-select .gsp-feat-controls { flex: 1 1 auto; width: 100%; }
	.gsp-feat-multi { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Rückrufformular [gerlach_rueckruf]                                  */
/* ------------------------------------------------------------------ */
.gsp-rr-intro { margin: 0 0 26px; }
.gsp-rr-intro .gsp-hint { margin: 0; }
.gsp-rr-sec { margin-top: 28px; }
.gsp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gsp-chip { position: relative; cursor: pointer; margin: 0; }
.gsp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gsp-chip span {
	display: block; padding: 10px 18px; border: 1px solid var(--gsp-linie); background: #fff;
	font-size: 15px; line-height: 1.3; color: var(--gsp-anthrazit); transition: background .15s, color .15s, border-color .15s;
}
.gsp-chip:hover span { border-color: var(--gsp-anthrazit); }
.gsp-chip input:checked + span { background: var(--gsp-violett); border-color: var(--gsp-violett); color: #fff; }
.gsp-chip input:focus-visible + span { outline: 2px solid var(--gsp-violett); outline-offset: 2px; }
.gsp-chips-small .gsp-chip span { font-size: 14px; padding: 8px 14px; }
.gsp-rr-sub { margin-top: 18px; padding: 18px 20px; background: #f7f6f8; border-left: 3px solid var(--gsp-violett); }
.gsp-rr-redirect { margin-top: 18px; padding: 22px 24px; border: 1px solid var(--gsp-linie); border-left: 3px solid var(--gsp-violett); }
.gsp-rr-redirect p { margin: 0 0 16px; }
.gsp-rr-rest { margin-top: 28px; }
.gsp-rr-section-title {
	font-family: "Raleway", inherit; font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--gsp-anthrazit);
	margin: 34px 0 6px; padding-top: 24px; border-top: 1px solid var(--gsp-linie);
}
.gsp-rr .gsp-full { margin-top: 22px; }
.gsp-rr-submitrow { margin-top: 26px; }
.gsp .gsp-rr-submitrow button.gsp-btn-submit { width: 100%; margin: 0; }
.gsp a.gsp-btn {
	display: inline-block; text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
	border-radius: 0 !important; box-shadow: none !important; background: var(--gsp-violett) !important; color: #fff !important;
	border: 1px solid var(--gsp-violett) !important; font-weight: 600 !important; font-size: 15px !important; padding: 12px 28px !important; margin: 0;
}
.gsp a.gsp-btn:hover, .gsp a.gsp-btn:focus { background: var(--gsp-violett-dunkel) !important; border-color: var(--gsp-violett-dunkel) !important; color: #fff !important; }
@media (max-width: 640px) {
	.gsp-chip span { padding: 9px 14px; }
	.gsp-rr-sub { padding: 16px; }
}
