/* Kontaktformular (Block kwm/kontaktformular) im Stil des Entwurfs Kontakt.dc.html */
.kwm-kf { margin: 0; font-size: 16px; }
.kwm-kf__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kwm-kf__raster[hidden] { display: none; }
.kwm-kf__feld { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.kwm-kf__feld--halb { grid-column: auto; }
.kwm-kf__feld > label { font-size: 15px; font-weight: 500; color: #0E2A35; line-height: 1.4; }
.kwm-kf__pflicht { color: #B3261E; margin-left: 1px; }
.kwm-kf input[type="text"], .kwm-kf input[type="email"], .kwm-kf input[type="tel"], .kwm-kf select, .kwm-kf textarea {
	width: 100%; box-sizing: border-box; min-height: 50px; padding: 0 14px; border: 1px solid #C9D5DA; border-radius: 8px;
	font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: #13262E; background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.kwm-kf textarea { padding: 14px; min-height: 180px; resize: vertical; }
.kwm-kf select {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M1.5 4L6 8l4.5-4' stroke='%23005470' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.kwm-kf input:hover, .kwm-kf select:hover, .kwm-kf textarea:hover { border-color: #9DB3BC; }
.kwm-kf input:focus-visible, .kwm-kf select:focus-visible, .kwm-kf textarea:focus-visible {
	outline: 2px solid #F8B465; outline-offset: 2px; border-color: #005370;
}
.kwm-kf .is-fehler input, .kwm-kf .is-fehler select, .kwm-kf .is-fehler textarea { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.kwm-kf__fehler { margin: 0; font-size: 14px; line-height: 1.4; color: #B3261E; font-weight: 500; }
.kwm-kf__fehler::before { content: "! "; font-weight: 700; }
.kwm-kf__fehler[hidden] { display: none; }

.kwm-kf__einwilligung > label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400; color: #4A5C63; cursor: pointer; }
.kwm-kf__einwilligung input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #005370; cursor: pointer; }
.kwm-kf__einwilligung a { color: #005370; text-decoration: underline; text-underline-offset: 2px; }
.kwm-kf__einwilligung.is-fehler > label { color: #13262E; }

.kwm-kf__hinweis { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #4A5C63; }
.kwm-kf__absenden { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.kwm-kf button[type="submit"] {
	min-height: 52px; padding: 0 28px; border: 0; border-radius: 8px; background: #005370; color: #fff;
	font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .15s ease;
}
.kwm-kf button[type="submit"]:hover { background: #0E2A35; }
.kwm-kf button[type="submit"]:focus-visible { outline: 2px solid #F8B465; outline-offset: 3px; }
.kwm-kf button[type="submit"]:disabled { opacity: .7; cursor: progress; }

.kwm-kf__meldung { margin: 0 0 20px; padding: 16px 18px; border-radius: 8px; font-size: 16px; line-height: 1.5; }
.kwm-kf__meldung[hidden] { display: none; }
.kwm-kf__meldung:focus { outline: none; }
.kwm-kf__meldung.is-ok { background: #E8F3EE; color: #13432F; border: 1px solid #A9D2BD; }
.kwm-kf__meldung.is-fehler { background: #FBEAE9; color: #7A1A14; border: 1px solid #E8B4B0; }

/* Honeypot: für Menschen unsichtbar, für Screenreader ausgeblendet */
.kwm-kf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ALTCHA im schwebenden Modus: nur sichtbar, solange die Prüfung läuft */
.kwm-kf__altcha { grid-column: 1 / -1; }

@media (max-width: 600px) {
	.kwm-kf__raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.kwm-kf__feld--halb { grid-column: 1 / -1; }
	.kwm-kf button[type="submit"] { width: 100%; }
}
