.formular {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #f9f9f9 !important;
  /* zwingend hell */
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  color: #000 !important;
  /* Text schwarz */
}


.form-gruppe {
  margin-bottom: 1rem;
}

.form-gruppe label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #000 !important;
}

.form-gruppe input,
.form-gruppe select,
.form-gruppe textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #fff !important;
  /* zwingend weiß */
  color: #000 !important;
  /* Text schwarz */
  caret-color: #000 !important;
  /* Cursor schwarz */
}

.form-gruppe h3 {
  font-weight: bold;
  font-size: 2rem;
  text-decoration: underline;
}


.submit-btn {
  background-color: #0073aa !important;
  /* blau */
  color: white !important;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #005c8c !important;
  color: white !important;
}


.anschrift-zeile {
  display: flex;
  gap: 1rem;
}

.anschrift-zeile .form-feld {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.anschrift-zeile .form-feld label {
  margin-bottom: 0.3rem;
  font-weight: bold;
  display: block;
  color: #000 !important;
}

.terms-zeile {
  display: flex;
  gap: 1rem;
}

.terms-zeile .form-feld {
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: center;
  /* Vertikal zentrieren */
  gap: 0.5rem;
  /* Abstand zwischen Checkbox und Label */
  margin-bottom: 0.3rem;
}

.terms-zeile .form-feld label {
  font-weight: bold;
  color: #000 !important;
}

.terms-zeile input[type="checkbox"] {
  width: auto;
  /* verhindert Stretch */
  flex-shrink: 0;
  /* Checkbox wird nicht kleiner */
}





/* MODAL-GRUNDLAGEN */
.modal {
  display: flex; /* <-- wichtig: aktiviert Flexbox */
  justify-content: center;
  align-items: center;

  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden; /* Anfangszustand: versteckt */
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  text-align: left;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}
.close:hover {
  color: black;
}

.popup-link {
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
}


.terms-zeile {
  display: flex;
  gap: 1rem;
}

.terms-zeile .form-feld {
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: center; /* Vertikal zentrieren */
  gap: 0.5rem; /* Abstand zwischen Checkbox und Label */
  margin-bottom: 0.3rem;
}

.terms-zeile .form-feld label {
    font-weight: bold;
    color: #000 !important;
}

.terms-zeile input[type="checkbox"] {
  width: auto; /* verhindert Stretch */
  flex-shrink: 0; /* Checkbox wird nicht kleiner */
}