/* ════════════════════════════════════════════════════════
   GP-143: Kontaktformular (templates/kontakt.html)
   Aufbau wie die Registrierung: Titel, kurzer Text, weiße Karte.
   Kopfzeile und Knöpfe aus kopfzeile.css. Ohne Login abrufbar (SecurityConfig).
════════════════════════════════════════════════════════ */

.kontakt, .kontakt *, .kontakt *::before, .kontakt *::after { box-sizing: border-box; }
body.kontakt {
  margin: 0; min-height: 100vh; padding-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #f7faf8 0%, #f3f8f4 100%);
  color: #1a1a1a;
}
.kontakt h1, .kontakt p { margin: 0; }
.kontakt .container { max-width: 560px; margin: 40px auto; padding: 0 24px; }
.kontakt h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.kontakt .subtitle { font-size: 0.92rem; line-height: 1.55; color: #555; margin-bottom: 24px; }
.kontakt .card { background: #fff; border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,0.07); padding: 32px 36px; }
.kontakt .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kontakt label { display: block; font-size: 0.82rem; font-weight: 600; color: #444; margin-bottom: 5px; }
.kontakt input[type=text], .kontakt input[type=email], .kontakt textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 7px;
  font-family: inherit; font-size: 0.92rem; outline: none; transition: border-color 0.2s; margin-bottom: 14px;
}
.kontakt textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.kontakt input:focus, .kontakt textarea:focus { border-color: #4a7c59; }
.kontakt .optional { font-weight: 400; color: #aaa; font-size: 0.78rem; }
.kontakt .card .knopf--breit { margin-top: 4px; }
.kontakt .hinweis { font-size: 0.8rem; line-height: 1.5; color: #777; margin-top: 14px; }
.kontakt .hinweis a, .kontakt .alternative a { color: #4a7c59; font-weight: 600; text-decoration: none; }
.kontakt .hinweis a:hover, .kontakt .alternative a:hover { text-decoration: underline; }
.kontakt .alternative { text-align: center; margin-top: 18px; font-size: 0.85rem; color: #666; }
.kontakt .fehler { background: #fdf2f2; border: 1px solid #f5c6c6; color: #c0392b; border-radius: 8px; padding: 11px 14px; margin-bottom: 20px; font-size: 0.88rem; line-height: 1.5; }
.kontakt .danke h1 { color: #2f5a3d; margin-bottom: 10px; }
.kontakt .danke p { font-size: 0.95rem; line-height: 1.55; color: #444; margin-bottom: 18px; }
.kontakt .danke p:last-child { margin-bottom: 0; }

/* Honeypot: für Menschen unsichtbar, auch für Screenreader und die Tab-Taste */
.kontakt .feld-website { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Im Dialog des Footers: ohne Kopfzeile, Footer und Hintergrundverlauf */
body.kontakt.eingebettet { min-height: 0; padding-bottom: 0; background: #f5f9f6; }
body.kontakt.eingebettet .container { margin: 0 auto; padding: 28px 24px; }

@media (max-width: 640px) {
  .kontakt .container { margin: 24px auto; padding: 0 14px; }
  .kontakt .row { grid-template-columns: 1fr; gap: 0; }
  .kontakt .card { padding: 24px 20px; }
}
