@charset "UTF-8";
/* Kontaktseite (kontakt.php, Kontaktformular) und Bestätigungsseite (danke.php).
   Wird über $extra_head nur auf diesen Seiten geladen; styles.css bleibt unverändert.
   Farben: var(--blau) / var(--grau) / var(--fokus) aus styles.css, mit Rückfallwerten.
   Kontraste: Weiß auf #5e737e ≈ 5:1, Weiß auf #41749d ≈ 5:1, #1a1a1a auf Weiß ≈ 17:1,
   #9b1c1c auf Weiß ≈ 8:1. Fokus wie auf der übrigen Website (weißer Ring mit dunklem Saum
   auf Grau, dunkler Ring mit weißem Saum auf Weiß). */

/* ---------- Adressblock und Danke-Seite ---------- */
#grau .kontakt-adresse {
  text-align: left;
  overflow-wrap: anywhere;
}
#grau .kontakt-danke {
  text-align: center;
  font-size: 1.125rem;
}
#grau .kontakt-weiter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Kontaktformular ---------- */
#kf {
  box-sizing: border-box;
  max-width: var(--lesebreite, 46rem);
  margin: 0 auto 1.5rem;
  padding: clamp(20px, 3vw, 36px);
  background-color: #fff;
  color: var(--text, #1f2a30);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(29, 59, 82, .06), 0 8px 24px rgba(29, 59, 82, .10);
  font-size: 1.0625rem;
  line-height: 1.45;
}
#kf .kf-direkt {
  margin: 0 0 1.5rem;
}
#kf .kf-feld {
  margin: 0 0 1.4rem;
}
#kf label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: bold;
}
#kf .kf-hinweis {
  margin: -0.1rem 0 0.45rem;
  font-size: 1rem;
}
#kf input[type="text"],
#kf input[type="email"],
#kf input[type="tel"],
#kf textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
  color: #1a1a1a;
  background-color: #fff;
  border: 2px solid #5e737e;
  border-radius: 10px;
}
#kf textarea {
  min-height: 12rem;
  resize: vertical;
}
#kf input,
#kf textarea {
  scroll-margin-top: 7rem; /* beim Sprung aus der Fehlerliste bleiben Beschriftung, Hinweis und Fehlertext unter der Kopfzeile sichtbar */
}
#kf input.kf-kurz {
  max-width: 10rem;
}

/* Fehlerzustand */
#kf input[aria-invalid="true"],
#kf textarea[aria-invalid="true"] {
  border: 3px solid #9b1c1c;
}
#kf .kf-feldfehler {
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.7rem;
  color: #9b1c1c;
  background-color: #fff;
  border-left: 6px solid #9b1c1c;
  border-radius: 2px;
  font-weight: bold;
}
#kf .kf-zusammenfassung,
#kf .kf-meldung {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  color: #1a1a1a;
  background-color: #fff;
  border: 4px solid #9b1c1c;
  border-radius: 4px;
}
#kf .kf-zusammenfassung:focus,
#kf .kf-meldung:focus {
  outline: 3px solid var(--fokus, #111);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
}
#kf .kf-zusammenfassung h3,
#kf .kf-meldung h3 {
  margin: 0 0 0.6rem;
  padding: 0;
  color: #9b1c1c;
  background: none;
  text-align: left;
  font-size: 1.25rem;
  font-weight: bold;
}
#kf .kf-zusammenfassung ul {
  margin: 0;
  padding-left: 1.25rem;
}
#kf .kf-zusammenfassung li {
  margin: 0 0 0.4rem;
}
#kf .kf-meldung p {
  margin: 0;
}
#kf .kf-zusammenfassung a,
#kf .kf-meldung a {
  color: #9b1c1c;
  font-weight: bold;
  text-decoration: underline;
}
#kf .kf-zusammenfassung a:focus-visible,
#kf .kf-meldung a:focus-visible {
  outline-color: var(--fokus, #111);
  box-shadow: 0 0 0 5px #fff;
}

/* Fokus der Eingabefelder: Rahmen der Website (styles.css) plus dunkle Feldkante */
#kf input:focus-visible,
#kf textarea:focus-visible {
  border-color: var(--fokus, #111);
}

/* Absende-Knopf */
#kf .kf-knopf {
  display: inline-block;
  box-sizing: border-box;
  min-height: 3rem;
  margin: 0.3rem 0 0;
  padding: 0.65rem 1.75rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.3;
  color: #fff;
  background-color: var(--blau, #41749d);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
#kf .kf-knopf:hover {
  background-color: var(--blau-dunkel, #335d80);
  transform: translateY(-2px);
}
#kf input[type="text"]:hover,
#kf input[type="email"]:hover,
#kf input[type="tel"]:hover,
#kf textarea:hover {
  border-color: var(--blau, #41749d);
}
#kf .kf-datenschutz {
  margin: 1rem 0 0;
  font-size: 1rem;
}

/* Honeypot: für Menschen unsichtbar, aber nicht display:none */
#kf .kf-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Nur für Screenreader */
.kf-unsichtbar {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media screen and (max-width: 600px) {
  #kf .kf-knopf {
    width: 100%;
  }
}
