/* ================================
   Contact Section Styling
==================================== */

body {
  font-family: "Roboto", sans-serif;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

/* Main container for the contact section */
.contact-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

/* Zentraler Container mit weißem Hintergrund, großzügigem Padding, abgerundeten Ecken und modernem Schatten */
.contact-section .container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Überschriften im Kontaktbereich – modern und mit dekorativem Unterstrich */
.contact-section h1 {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2d2d2d;
  border-bottom: 2px solid #645f5ea6;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Fließtext im Kontaktbereich */
.contact-section p {
  font-size: 1.2rem;
  color: #2d2d2d;
  text-align: center;
  margin-bottom: 2rem;
}

/* Label-Styling */
.contact-section form .form-label {
  font-size: 1rem;
  color: #2d2d2d;
  font-weight: 500;
}

/* Input-, Textarea- und Select-Felder */
.contact-section form .form-control {
  border: 1px solid #000;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

/* Focus-Effekt für Formularfelder */
.contact-section form .form-control:focus {
  border-color: #d9eb81;
  box-shadow: none;
}

/* Stil für den Primär-Button im Kontaktformular */
.contact-section form .btn-primary {
  background-color: #6c757d;
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 1.5rem auto 0; /* Zentriert den Button */
}

/* Hover-Effekt für den Button */
.contact-section form .btn-primary:hover {
  background-color: #5a6268;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Anrede-Feld (Select) auf 50% Breite zentrieren */
.contact-section form .form-select#anrede {
  width: 15%;
  margin: 0 0 1rem 0;
}

/* Mehr Abstand für den Datenschutz-Checkbox-Bereich */
.contact-section form .form-check {
  margin: 2rem 0;
}

.contact-section form .anrede-container {
  text-align: left;
}

/* ================================
     Responsive Anpassungen
==================================== */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-section h1 {
    font-size: 2rem;
  }

  .contact-section p {
    font-size: 1rem;
  }
}
