.modern-contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.modern-contact-form {
  background: #fff;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 32px 0 rgba(32, 35, 50, 0.09), 0 1.5px 6px 0 rgba(0,0,0,0.03);
  max-width: 430px;
  width: 100%;
  font-family: inherit;
}

.modern-contact-title {
  font-size: inherit;
  font-weight: 600;
  margin-bottom: 1.6rem;
  text-align: center;
  color: #222a37;
}

.modern-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.modern-form-group label {
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #334158;
  letter-spacing: 0.01em;
}

.modern-form-group input,
.modern-form-group textarea {
  padding: 0.9rem 1.05rem;
  border: 1.5px solid #e2e7ef;
  background: #f8fafc;
  font-size: inherit;
  color: #222a37;
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}

.modern-form-group input:focus,
.modern-form-group textarea:focus {
  border-color: #7b47ff;
  background: #f4f1fd;
}

.modern-contact-btn {
  width: 100%;
  background: linear-gradient(90deg, #067CBD, #05A2DE);
  color: #fff;
  font-weight: 600;
  padding: 1rem 0;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(123, 71, 255, 0.09);
  font-size: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.modern-contact-btn:hover, .modern-contact-btn:focus {
  background: linear-gradient(90deg, #05A2DE, #067CBD);
  box-shadow: 0 4px 24px 0 rgba(123, 71, 255, 0.14);
}

@media (max-width: 600px) {
  .modern-contact-form {
    padding: 1.4rem 0.8rem;
    max-width: 100%;
  }
}

.modern-checkbox {
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  font-size: inherit;
}

.modern-checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.5rem;
  accent-color: #7b47ff;
}

.modern-checkbox a {
  color: #7b47ff;
  text-decoration: underline;
}

.modern-checkbox a:hover {
  color: #6039cb;
}

.modern-contact-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  margin: 0;
}

.modern-contact-info {
  flex: 1 1 0%;
  max-width: none;
  min-width: 0;
  padding: 2rem 2rem 2rem 0;
  /* Optional: Text noch größer wirken lassen */
}

.modern-contact-info h2 {
  
}

.modern-contact-info p {
  font-size: inherit;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.modern-contact-info a {
  color: #7b47ff;
  text-decoration: underline;
  word-break: break-all;
}

.modern-contact-wrapper {
  flex: 0 0 430px;   /* Formular bekommt eine feste Breite */
  max-width: 430px;
  min-width: 320px;
  margin-left: auto; /* Schiebt das Formular ganz nach rechts */
}

@media (max-width: 950px) {
  .modern-contact-row {
    flex-direction: column;
    gap: 1.8rem;
  }
  .modern-contact-info, .modern-contact-wrapper {
    padding: 0;
    max-width: 100%;
    margin: 0;
  }
  .modern-contact-wrapper {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
}
