/* LHS Toolkit, Modul kontakt-ankauf. Ergänzt das Raster .lhs-formular der Website
   (4 Spalten, 40 px Innenabstand, weißer Grund). Farben: Blau #1e73be, Orange #e25303,
   Orange für Text/Flächen mit weißer Schrift #ce4c03 (4,51:1). */

.lhs-kf [hidden] {
	display: none !important;
}

.lhs-kf .lhs-kf-versteckt {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.lhs-kf p {
	margin: 0;
}

/* Abschnitt mit dem Formular hervorheben (Wunsch Daniel 10.11.2026: „man scrollt fast vorbei“;
   Markenblau als Fläche war zu kräftig, deshalb ein helles Blau). Der Seitenabschnitt, der das
   Formular enthält, bekommt #dceaf7 und oben eine 6-px-Kante im Markenblau; das Formular steht als
   weiße Karte darauf. :has() wird von allen aktuellen Browsern unterstützt; ältere zeigen den
   Abschnitt wie bisher. */
.wp-block-post-content > .wp-block-group.alignfull:has(form.lhs-kf) {
	background: #dceaf7 !important;
	border-top: 6px solid #1e73be;
}

.lhs-kf .lhs-formular {
	background: #ffffff;
	box-shadow: 0 6px 20px rgba(30, 115, 190, .15);
	color: #222222;
}

.lhs-kf.lhs-anliegen-ankauf .lhs-kf-kopf {
	display: none;
}

/* ---------- Kopfzeile: Anliegen, PLZ/Ort, Zeitraum ---------- */

.lhs-kf .lhs-kf-kopf,
.lhs-kf .lhs-kf-reihe {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px 24px;
	align-items: end;
}

.lhs-kf .lhs-kf-anliegen {
	grid-column: span 2;
}

.lhs-kf.lhs-kf-modus-ankauf .lhs-kf-anliegen {
	grid-column: span 2;
}

.lhs-kf .lhs-kf-hinweis-ankauf {
	padding: 10px 16px;
	border-left: 6px solid #1e73be;
	font-size: 16px;
}

/* ---------- Kontaktblock ---------- */

.lhs-kf .lhs-kf-kontakt {
	display: grid;
	gap: 22px;
}

.lhs-kf .lhs-kf-kontakt textarea {
	height: 8em;
	min-height: 0;
}

.lhs-kf .lhs-kf-absenden {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.lhs-kf .lhs-kf-teilfrage {
	display: block;
	margin: 0 0 10px;
	font-weight: 600;
	font-size: 16px;
}

/* ---------- Assistent ---------- */

.lhs-kf .lhs-kf-ankauf {
	display: grid;
	gap: 20px;
}

.lhs-kf .lhs-kf-fortschritt {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 15px;
	color: #50575e;
}

.lhs-kf .lhs-kf-balken {
	flex: 1;
	height: 6px;
	background: #e6e6e6;
}

.lhs-kf .lhs-kf-balken > span {
	display: block;
	height: 100%;
	width: 16%;
	background: #1e73be;
	transition: width .25s ease;
}

.lhs-kf .lhs-kf-schritt {
	display: grid;
	gap: 16px;
}

.lhs-kf .lhs-kf-frage {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
}

/* Die Frage bekommt beim Blättern den Fokus (für Bildschirmleser), soll aber keinen Rahmen zeigen. */
.lhs-kf .lhs-kf-frage:focus,
.lhs-kf .lhs-kf-frage:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.lhs-kf .lhs-kf-erklaerung {
	margin: -6px 0 4px;
	max-width: 62em;
	color: #3c434a;
}

.lhs-kf .lhs-kf-wahlen {
	display: grid;
	gap: 12px;
}

.lhs-kf .lhs-kf-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.lhs-kf .lhs-kf-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lhs-kf .lhs-kf-vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lhs-kf .lhs-kf-wahl {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 14px 18px;
	border: 2px solid #c3c4c7;
	border-radius: 0;
	background: #ffffff;
	color: #222222;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.lhs-kf .lhs-kf-wahl:hover {
	border-color: #1e73be;
}

.lhs-kf .lhs-kf-wahl:focus-visible {
	outline: 3px solid #1e73be;
	outline-offset: 2px;
}

.lhs-kf .lhs-kf-wahl.ist-gewaehlt {
	border-color: #1e73be;
	background: #eef5fb;
	box-shadow: inset 6px 0 0 #1e73be;
}

.lhs-kf .lhs-kf-wahl-bild {
	color: #1e73be;
	line-height: 0;
	margin-bottom: 6px;
}

.lhs-kf .lhs-kf-wahl-titel {
	font-weight: 700;
	font-size: 17px;
}

.lhs-kf .lhs-kf-wahl-text {
	font-size: 15px;
	line-height: 1.4;
	color: #50575e;
}

.lhs-kf .lhs-kf-wahlen.ist-fehler .lhs-kf-wahl {
	border-color: #ce4c03;
}

.lhs-kf .lhs-kf-fehler {
	color: #ce4c03;
	font-weight: 600;
}

.lhs-kf .lhs-kf-felder {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
}

.lhs-kf .lhs-kf-felder .lhs-kf-breit {
	grid-column: 1 / -1;
}

.lhs-kf .lhs-kf-felder textarea {
	height: 6em;
	min-height: 0;
}

.lhs-kf .lhs-kf-standort {
	max-width: 420px;
}

.lhs-kf .lhs-kf-zusammenfassung {
	padding: 10px 16px;
	background: #f6f7f7;
	border-left: 6px solid #1e73be;
}

.lhs-kf .lhs-kf-zusammenfassung:empty {
	display: none;
}

.lhs-kf .lhs-kf-navi {
	display: flex;
	gap: 16px;
	align-items: center;
}

.lhs-kf .lhs-kf-weiter,
.lhs-kf .lhs-kf-zurueck {
	margin: 0;
	padding: 14px 28px;
	border: 2px solid #ce4c03;
	border-radius: 0;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.lhs-kf .lhs-kf-weiter {
	background: #ce4c03;
	color: #ffffff;
}

.lhs-kf .lhs-kf-zurueck {
	background: #ffffff;
	color: #ce4c03;
}

.lhs-kf .lhs-kf-weiter:hover { background: #b34203; border-color: #b34203; }
.lhs-kf .lhs-kf-zurueck:hover { background: #fdece2; }
.lhs-kf .lhs-kf-weiter:focus-visible,
.lhs-kf .lhs-kf-zurueck:focus-visible { outline: 3px solid #1e73be; outline-offset: 2px; }

/* ---------- Fotos ---------- */

.lhs-kf .lhs-kf-fotos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.lhs-kf .lhs-kf-foto {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lhs-kf .lhs-kf-foto-bild {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #f0f0f1;
	overflow: hidden;
}

.lhs-kf .lhs-kf-foto-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lhs-kf .lhs-kf-foto-bild .lhs-kf-vorschau {
	position: absolute;
	inset: 0;
}

.lhs-kf .lhs-kf-foto.hat-foto .lhs-kf-foto-bild::after {
	content: "Ihr Foto";
	position: absolute;
	left: 0;
	top: 0;
	padding: 4px 10px;
	background: #1e73be;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
}

.lhs-kf .lhs-kf-foto figcaption {
	font-size: 15px;
	line-height: 1.4;
	min-height: 4.2em;
}

.lhs-kf .lhs-kf-schritt > .lhs-hinweis {
	margin-top: 8px;
}

.lhs-kf .lhs-kf-foto figcaption strong {
	display: block;
}

.lhs-kf .lhs-kf-foto .lhs-kf-datei {
	align-content: start;
}

/* ---------- Datei-Kästen ---------- */

.lhs-kf .lhs-kf-dateien {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 24px;
}

.lhs-kf .lhs-kf-datei {
	display: grid;
	gap: 6px;
}

.lhs-kf .lhs-kf-datei-knopf {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 53px;
	padding: 10px 16px;
	border: 2px dashed #8c8f94;
	background: #ffffff;
	color: #1e73be;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
}

.lhs-kf .lhs-kf-datei-knopf::before {
	content: "+";
	font-size: 22px;
	line-height: 1;
}

.lhs-kf .lhs-kf-datei-knopf:hover,
.lhs-kf .lhs-kf-datei-knopf:focus-within {
	border-color: #1e73be;
	background: #eef5fb;
}

.lhs-kf .lhs-kf-datei.ist-gefuellt .lhs-kf-datei-knopf {
	border-style: solid;
	border-color: #c3c4c7;
	color: #50575e;
	font-weight: 600;
	min-height: 40px;
}

.lhs-kf .lhs-kf-datei.ist-gefuellt .lhs-kf-datei-knopf::before {
	content: "↺";
	font-size: 16px;
}

/* Das echte Datei-Feld liegt unsichtbar über dem ganzen Kasten: Klick und Tastatur funktionieren wie gewohnt. */
.lhs-kf .lhs-kf-datei-knopf .wpcf7-form-control-wrap {
	position: static;
}

.lhs-kf .lhs-kf-datei-knopf input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.lhs-kf .lhs-kf-datei-knopf .wpcf7-not-valid-tip {
	position: absolute;
	top: 100%;
	left: 0;
	font-weight: 400;
}

.lhs-kf .lhs-kf-datei-name {
	font-size: 14px;
	word-break: break-all;
	color: #222222;
}

.lhs-kf .lhs-kf-datei-weg {
	justify-self: start;
	padding: 0;
	border: 0;
	background: none;
	color: #ce4c03;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 1024px) {
	.lhs-kf .lhs-kf-kopf,
	.lhs-kf .lhs-kf-reihe,
	.lhs-kf .lhs-kf-fotos,
	.lhs-kf .lhs-kf-vier,
	.lhs-kf .lhs-kf-drei {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.lhs-kf .lhs-kf-kopf,
	.lhs-kf .lhs-kf-reihe,
	.lhs-kf .lhs-kf-fotos,
	.lhs-kf .lhs-kf-felder,
	.lhs-kf .lhs-kf-dateien,
	.lhs-kf .lhs-kf-zwei,
	.lhs-kf .lhs-kf-drei {
		grid-template-columns: minmax(0, 1fr);
	}
	.lhs-kf .lhs-kf-vier {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.lhs-kf .lhs-kf-anliegen {
		grid-column: auto;
	}
	.lhs-kf .lhs-kf-frage {
		font-size: 21px;
	}
	.lhs-kf .lhs-kf-foto figcaption {
		min-height: 0;
	}
}
