/* Kontaktbereich */
.contact {
  padding: 0;
  background-color: #f9f9f9;
}

#contact {
  width: 100%;
}

.contact-header {
  margin-bottom: 30px;
  padding: 0 20px;
}

.contact-header h1 {
  margin: 0;
  padding: 0;
}

.contact-header h2 {
  margin: 10px 0;
  padding: 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0;
  max-width: 1200px;
  margin: 0;
  box-sizing: border-box;
}

.form-container {
  flex: 1 1 55%;
  min-width: 300px;
}

.map-container {
  flex: 1 1 40%;
  min-width: 300px;
  /*margin-top: 40px;*/
}

.map-container iframe {
  width: 100%;
  border-radius: 5px;
}



/*Zurück Button*/
 .thank-you-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 50px 20px;
            text-align: center;
        }
        
        .thank-you-container h1 {
            margin-bottom: 30px;
            color: #8a7e6f;
        }
        
        .thank-you-container p {
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 30px;
        }
        
        .back-button {
            display: inline-block;
            background-color: #8a7e6f;
            color: white;
            padding: 12px 24px;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .back-button:hover {
            background-color: #736859;
        }


/* reCAPTCHA mittig platzieren & skalieren */
.g-recaptcha {
    display: flex;
    justify-content: center;
    transform: scale(0.88); /* kleiner machen */
    transform-origin: center;
    margin: 0px 0;
}

/* Formular */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

form input,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-button-container {
  text-align: center;
}

7*form button {
  background-color: #621c7a;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #49135c;
}  





.privacy-checkbox-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 0; /* Remove padding that might push content to the right */
  box-sizing: border-box;
  text-align: left;
  width: 100%;
  justify-content: flex-start; /* Align content to the left */
  margin-left: 0; /* Ensure no left margin */
}

.privacy-checkbox-wrapper input[type="checkbox"] {
  /* Increase checkbox size */
  width: 22px !important;
  height: 22px !important;
  margin-top: 2px;
  
  /* Custom appearance */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  /* Basic styling */
  background-color: #FFFFFF; /* White background */
  border: 1px solid #999999;
  border-radius: 3px;
  cursor: pointer;
  
  /* Ensure proper positioning */
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 0; /* Ensure no left margin on checkbox */
  
  /* Fix for vertical alignment */
  vertical-align: top;
}

/* Style for the checkmark when checked */
.privacy-checkbox-wrapper input[type="checkbox"]:checked {
  background-color: #FFFFFF; /* Keep white background when checked */
}

/* Create the checkmark using ::after pseudo-element */
.privacy-checkbox-wrapper input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #C5A992; /* Beige/light brown checkmark color */
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Focus styling */
.privacy-checkbox-wrapper input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 169, 146, 0.3);
}

.privacy-checkbox-wrapper label {
  display: inline;
  font-weight: normal;
  margin-bottom: 0;
  line-height: 1.4;
  flex: 1;
  text-align: left; /* Ensure text in label is left-aligned */
  cursor: pointer;
  margin-top: 1px;
  color: #726F6C; /* Text color for the label */
}

/* Match the left alignment with other form elements */
form .form-group {
  padding-left: 0;
}

.privacy-checkbox-wrapper a {
  color: #726F6C;
  text-decoration: underline;
}

.privacy-checkbox-wrapper a:hover {
  color: #4a4a4a;
}




/* Reduzierter Abstand zur Karte ab 860px */
@media (max-width: 860px) {
  .map-container {
    margin-top: 00px; /* Reduzierter Abstand zwischen Formular und Karte */
  }
  
  #h3kontakt {
    margin-top: 0; /* Entfernt zusätzlichen Abstand über der Überschrift */
  }
  
  .contact-container {
    gap: 30px; /* Reduziert den Abstand zwischen Container-Elementen */
  }
}

/* Zusätzliche Verkleinerung des Abstands für sehr schmale Bildschirme */
@media (max-width: 480px) {
  .map-container {
    margin-top: 00px;
  }
  
  .contact-container {
    gap: 20px; /* Reduziert den Abstand zwischen Formular und Karte */
  }
}