/* Kompakte Form-Anordnung: Label links, Input rechts */
.contact-container form {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 3px solid #0077b6;
  border-radius: 10px;
  background-color: #f9fcff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Jede Zeile als flex container, minimaler Abstand */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem; /* Abstand minimiert */
}

/* Labels links, gleiche Breite */
.form-row label {
  width: 150px;
  font-weight: 600;
  color: #0077b6;
}

/* Inputs / Select / Textarea füllen Rest */
.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #0077b6;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #005f8c;
  box-shadow: 0 0 5px rgba(0,119,182,0.3);
}

/* Button */
button[type="submit"] {
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button[type="submit"]:hover {
  background-color: #005f8c;
}

/* Honeypot unsichtbar */
.honeypot {
  display: none;
}

/* Mobile Layout: Labels über Inputs */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.3rem; /* kompakter */
  }
  .form-row label {
    width: auto;
    margin-bottom: 0.2rem; /* kompakt */
  }
  button[type="submit"] {
    width: 100%;
  }
}





/* Pflichtfeld-Labels rot */
.contact-container form label.required {
  color: #d32f2f; /* kräftiges Rot */
  font-weight: 600;
}

/* Sternchen bei Pflichtfeldern */
.contact-container form label.required::after {
  content: " *";   /* optional, falls du noch ein Sternchen hinzufügen willst */
  color: #d32f2f;
}









/* Zeile für Submit + Checkbox */
.submit-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px; /* Abstand zwischen Button und Checkbox */
  margin-bottom: 0.3rem; /* kompakter Abstand */
}

/* Submit-Button */
.submit-checkbox-row button {
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.submit-checkbox-row button:hover {
  background-color: #005f8c;
}

/* Checkbox */
.submit-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-left: 0;
}

/* Label neben Checkbox */
.submit-checkbox-row label {
  font-weight: 500;
  color: #0077b6;
}

.submit-checkbox-row label a {
  color: #0077b6;
  text-decoration: underline;
}

.submit-checkbox-row label a:hover {
  color: #005f8c;
}

/* Mobile: Button über Checkbox */
@media (max-width: 600px) {
  .submit-checkbox-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .submit-checkbox-row button {
    width: 100%;
  }
}


