.contact-form-container {
  /* Beispielhafte Stile */
  margin: 0 auto;        /* Zentrieren */
  max-width: 100%;      /* Breite beschränken */
  padding: 1rem;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 2rem;
  /* usw. */
}

/* ------------------------------------- */
/* FORMULAR-STYLE (mobile-first)         */
/* ------------------------------------- */

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Labels */
form label {
  display: inline-block;
  margin-top: 0,5rem;
  margin-bottom: -0.5rem;
  font-weight: 600;
}

/* Inputs, Textareas, Selects - mobile first */
form input[type="text"],
form input[type="email"],
form input[type="date"],
form textarea,
form select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  color: #333;
  background-color: #fff;
}



/* Placeholder-Stil */
::placeholder {
  color: #999;
}

/* CAPTCHA-Bereich */
.overall-captcha-wrapper {
  padding: 1rem;
  background-color: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
}

/* Captcha-Container (Bild + Link) */
.captcha-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.captcha-image-container {
  flex: 0 0 auto;
}

/* Link zum Neuladen des Captcha-Icons */
.captcha-refresh-container a {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  margin-left: 0.3rem;
}

/* Icon-Bildgröße */
.captcha-refresh-container a img {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  border: 0; /* WICHTIG für Barrierefreiheit (kein Fokus-Rand um Bild) */
}

/* Hover-Effekt auf Icon */
.captcha-refresh-container a:hover img {
  opacity: 0.8;
}

/* Hinweis-Text fürs Captcha */
.captcha-instruction {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #333;
}

/* Checkbox / Datenschutz Label */
label[for="datenverarbeitung"] {
  display: flex;
  align-items: flex-start; /* Checkbox & Text top-ausgerichtet */
  gap: 0.5rem;
  cursor: pointer; /* So kann man aufs Label klicken */
}

.checkbox-container {
  flex-shrink: 0;
}

.text-container {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
}

/* Pflichtfeld-Hinweis */
.required-note {
  font-size: 0.9rem;
  color: #666;
}

.required-asterisk {
  color: red;
  font-weight: 700;
}

/* Absende-Button */
form input[type="submit"] {
  width: auto;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  background-color: #28a745; /* Grün */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

form input[type="submit"]:hover,
form input[type="submit"]:focus {
  background-color: #218838;
}

/* Fehlerliste & Erfolgsmeldung */


/* role="alert" => Screenreader-Hinweis */
#errorList {
  margin: 1rem auto;
  padding: 0.8rem;
  list-style: none;
  background-color: #ffe4e4;
  border: 1px solid #ffa5a5;
  border-radius: 4px;
  color: #cc0000;
  font-size: 0.95rem;
}
#errorList li {
  margin: 0.3rem 0;
}

.success-message {
  margin: 1rem auto;
  padding: 0.8rem;
  background-color: #eaffea;
  border: 1px solid #a5ffa5;
  border-radius: 4px;
  color: #008000;
  font-size: 0.95rem;
  width: 90%;
}

/* ------------------------------------- */
/* RESPONSIVE / DESKTOP-ERWEITERUNGEN    */
/* ------------------------------------- */
/* Ab ~ 768px kannst du Layout anpassen */
@media (min-width: 768px) {
  .contact-form-container {
    /* Beispielhafte Stile */
    max-width: 80%;      /* Breite beschränken */
  }
}


.invisible-spacer {
  height: 70px;           /* Höhe einstellen, z. B. 50px */
  width: 100%;            /* Breite anpassen (optional) */
  background: transparent;/* Keine Hintergrundfarbe */
  visibility: hidden;     /* Element bleibt unsichtbar, belegt aber Platz */
}

.adressField {
  display: none;
}