/**
 * ZUKE Lösungen – Formular „Lösung einreichen“ ([zuke_loesung_einreichen]).
 * Baut auf den Formular-Stilen des Child-Themes auf (.zk-contact-form*, Variablen
 * --zk-*); hier nur, was das lange Formular zusätzlich braucht: Abschnitte,
 * Checkbox-Raster, Hinweise, Zähler, Fragen, Datei-Feld.
 */

.zkl-einr {
	max-width: 860px;
	margin: 0 auto;
	text-align: left;
	background: #ffffff;
}
.zkl-einr .zk-contact-form__form { margin-top: 0; }

.zkl-einr__group {
	border: 0;
	margin: 0 0 40px;
	padding: 0 0 36px;
	min-width: 0;
	border-bottom: 1px solid var(--zk-line, #e5e7eb);
}
.zkl-einr__group:last-of-type { border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; }
.zkl-einr__legend {
	float: left; /* Legende als normaler Block, ohne Sonderlayout im Rahmen. */
	width: 100%;
	font-family: var(--zk-font-display, 'Oswald', sans-serif);
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--zk-ink, #0f172a);
	margin: 0 0 18px;
	padding: 0;
}
.zkl-einr__legend + * { clear: both; }
/* Avada gibt Absätzen im Textelement 20px Abstand nach unten — hier zu viel. */
.zkl-einr p.zkl-einr__intro {
	margin: 0 0 18px;
	font-family: var(--zk-font-body, 'Roboto', sans-serif);
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--zk-muted, #6b7280);
}
.zkl-einr p.zkl-einr__hint {
	margin: 0 0 4px;
	font-family: var(--zk-font-body, 'Roboto', sans-serif);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--zk-muted, #6b7280);
}
.zkl-einr p.zkl-einr__count {
	margin: 0;
	font-family: var(--zk-font-body, 'Roboto', sans-serif);
	font-size: 0.8rem;
	color: var(--zk-muted, #6b7280);
	text-align: right;
}

/* Checkbox-Gruppen (Kategorien, Zertifikate) */
.zkl-einr__checks {
	grid-column: 1 / -1;
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.zkl-einr__checks legend {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 6px;
}
.zkl-einr__checks legend + * { clear: both; }
.zkl-einr__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin-top: 10px;
}
.zkl-einr__option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: var(--zk-font-body, 'Roboto', sans-serif);
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--zk-text, #374151);
	cursor: pointer;
}
.zkl-einr__option input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--zk-green-500, #4CAF50);
}
.zkl-einr__other {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-family: var(--zk-font-body, 'Roboto', sans-serif);
	font-size: 0.95rem;
	color: var(--zk-text, #374151);
}
.zkl-einr__other input { flex: 1 1 240px; }

/* Felder außerhalb von .zk-contact-form__field brauchen dieselbe Optik. */
.zkl-einr__other input,
.zkl-einr__faq input,
.zkl-einr__faq textarea {
	font-family: var(--zk-font-body, 'Roboto', sans-serif);
	font-size: 1rem;
	color: var(--zk-ink, #0f172a);
	background: #ffffff;
	border: 1.5px solid var(--zk-line, #e5e7eb);
	border-radius: 8px;
	padding: 10px 14px;
	width: 100%;
	box-sizing: border-box;
}
.zkl-einr__other input:focus,
.zkl-einr__faq input:focus,
.zkl-einr__faq textarea:focus {
	outline: none;
	border-color: var(--zk-green-500, #4CAF50);
}

/* Häufige Fragen */
.zkl-einr__faq { display: grid; gap: 16px; }
.zkl-einr__faq-row { display: grid; gap: 6px; }
.zkl-einr__faq-row[hidden] { display: none; }
.zkl-einr__faq textarea { resize: vertical; min-height: 70px; }
.zkl-einr__more {
	justify-self: start;
	padding: 8px 0;
	background: none;
	border: 0;
	font-family: var(--zk-font-body, 'Roboto', sans-serif);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--zk-green-700, #236b23);
	cursor: pointer;
}
.zkl-einr__more:hover { text-decoration: underline; }
.zkl-einr__more[hidden] { display: none; }

/* Datei-Feld */
.zkl-einr__file input[type="file"] {
	padding: 14px;
	border-style: dashed;
	cursor: pointer;
}

/* Einwilligungen direkt unter den Kontaktfeldern */
.zkl-einr .zk-contact-form__consent { margin-top: 8px; }

@media (max-width: 600px) {
	.zkl-einr { padding: 24px 18px; }
	.zkl-einr__options { grid-template-columns: 1fr; }
	.zkl-einr__legend { font-size: 1.3rem; }
}
