/* body {
    background-color: #f5f5f5;
} */

#submitBtn {
  background-color: #006532;
  color: #ffffff;
}

.form-wrapper {
  max-width: 800px;
  margin: 3rem auto;
  background-color: #fff8eb;
  font-family: 'Roboto';
}

/* Honeypot-Feld für Spam-Schutz unsichtbar machen */

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

#submitBtn:disabled {
  cursor: not-allowed;
}

/* Feedback-Texte per position:absolute aus dem Dokumentenfluss nehmen,
   damit ihr Erscheinen/Verschwinden nie die Höhe umliegender Elemente
   beeinflusst (= kein "Springen"). Der Feld-Container bekommt dafür
   einen festen unteren Abstand, in dem die Meldung "schwebt". */

.form-field {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-field .valid-feedback, .form-field .invalid-feedback {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: .2rem;
}

/* Sicherheitspuffer auf sehr schmalen Displays, falls Text trotz
   Kürzung durch große Systemschrift o.ä. zweizeilig werden sollte */

@media (max-width: 400px) {
  .form-field {
    margin-bottom: 2rem;
  }
}

/* Erfolgs-/Fehlermeldung als Overlay: fix positioniert, damit sie
   unabhängig von der Scroll-Position immer sichtbar bleibt (z.B. wenn
   der Formularkopf beim Ausfüllen/Scrollen nicht mehr im Bild ist) */

#formAlert {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2000;
  width: 90%;
  max-width: 500px;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3);
}

#formAlert .form-alert-close {
  margin-left: auto;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  padding: 0 .25rem;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  color: inherit;
  opacity: .65;
  cursor: pointer;
}

#formAlert .form-alert-close:hover {
  opacity: 1;
}

#formAlertMessage {
  flex: 1;
}

