/* Appléritif · forms (contact, dealer request). Loaded by includes/forms.php only where a form shortcode is on the page.
   Uses only theme tokens (tokens.css / components.css); look follows the newsletter form (.formular-zeile). */
.clo-formular { display: grid; gap: 20px; max-width: 760px; margin-top: 8px; }
.clo-formular__zeile { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .clo-formular__zeile { grid-template-columns: 1fr 1fr; } }

.clo-feld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.clo-feld > label { font-size: var(--gr-klein); font-weight: 500; color: var(--gruen); letter-spacing: 0.02em; }
.clo-pflicht { color: var(--gruen); }
.clo-formular input[type="text"], .clo-formular input[type="email"], .clo-formular input[type="tel"],
.clo-formular select, .clo-formular textarea {
	width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 22px; border-radius: var(--radius-klein);
	border: 1.25px solid var(--gruen); background: #fff; color: var(--text); font: inherit; font-size: var(--gr-text); margin: 0;
}
.clo-formular textarea { padding: 14px 22px; min-height: 150px; line-height: 1.5; resize: vertical; }
.clo-formular select { appearance: none; -webkit-appearance: none; padding-right: 52px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23154623' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 22px center / 12px 8px no-repeat; }
.clo-formular input:focus-visible, .clo-formular select:focus-visible, .clo-formular textarea:focus-visible,
.clo-haken input:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }

/* Checkbox with consent text */
.clo-haken { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: var(--gr-klein); line-height: 1.5; font-weight: 400; color: var(--text); cursor: pointer; }
.clo-haken input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gruen); cursor: pointer; }
.clo-haken .link { padding-block: 0; }

/* Errors: no new colours, orange from the tokens as the signal, text stays green for contrast */
.clo-feld.hat-fehler input, .clo-feld.hat-fehler select, .clo-feld.hat-fehler textarea { border-color: var(--orange); border-width: 2px; }
.clo-feld.hat-fehler .clo-haken input { outline: 2px solid var(--orange); outline-offset: 2px; }
.clo-feld__fehler { margin: 0; font-size: var(--gr-klein); color: var(--gruen); font-weight: 500; padding-left: 14px; border-left: 3px solid var(--orange); }
.clo-formular__hinweis { background: var(--rose-hell); border-left: 3px solid var(--orange); border-radius: var(--radius-klein); padding: 14px 20px; }
.clo-formular__hinweis p { margin: 0; color: var(--gruen); }
.clo-formular__legende { margin: 0; color: var(--text-leise); }
.clo-formular p { margin: 0; }

/* Success */
.clo-formular--erfolg { background: var(--akzent-flaeche); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.clo-formular__erfolg { margin: 0; color: var(--gruen); }

/* Honeypot: out of sight, out of tab order and the accessibility tree (aria-hidden on the wrapper) */
.clo-formular__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Intro and contact line above the form */
.clo-seite--text .clo-formular-intro { max-width: 760px; margin-bottom: 28px; }
.clo-seite--text .clo-formular-intro p { margin: 0 0 12px; }
