#cf7-anmeldung .cf7-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

#cf7-anmeldung .cf7-label {
  flex: 0 0 150px; /* feste Breite für Label */
  font-weight: 600;
  padding-right: 10px;
}

#cf7-anmeldung .cf7-input {
  flex: 1; /* nimmt den restlichen Platz ein */
}

#cf7-anmeldung .cf7-input textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 80px;
}

#cf7-anmeldung textarea#nachricht,
#cf7-anmeldung span.wpcf7-form-control-wrap.nachricht {
  width: 100%;
  background: #f5f5f5;
}

#cf7-anmeldung label {
  font-weight: 400;
}

#cf7-anmeldung br {
  display: block !important;
}

.cf7-row-vertical .wpcf7-form-control-wrap {
  position: relative;
  width: 100%;
}

#cf7-form-vertikal {
  max-width: 100%;
  margin: 0 auto;
}

#cf7-form-vertikal .cf7-row-vertical {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

body #page-container div#cf7-form-vertikal input {
  width: 100%;
}

/* Einheitliche Label-Breite */
#cf7-form-vertikal label {
    flex: 0 0 223px;
    padding: 6px 15px;
    box-sizing: border-box;
    text-align: left;
    background: #ebebeb;
    margin-right: 11px;
    font-family: 'Montserrat', sans-serif;
    line-height: normal;
    font-size: 16px;
}

/* Input nimmt Restbreite ein */
#cf7-form-vertikal input[type="text"],
#cf7-form-vertikal input[type="email"],
#cf7-form-vertikal input[type="tel"],
#cf7-form-vertikal textarea {
  flex: 1 1 auto;
  padding: 6px 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Responsive für kleine Bildschirme */
@media (max-width: 600px) {
  #cf7-form-vertikal .cf7-row-vertical {
    flex-direction: column;
    align-items: stretch;
  }

  #cf7-form-vertikal label {
    flex: none;
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
    padding-right: 0;
  }

  #cf7-form-vertikal input[type="text"],
  #cf7-form-vertikal input[type="email"],
  #cf7-form-vertikal input[type="tel"],
  #cf7-form-vertikal textarea {
    flex: none;
  }
}

/* --- NEU: Fehler Checkbox Block --- */

/* Container für die Fehler-Checkboxen und Überschrift */
.cf7-fehler-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Links bündig */
  margin-bottom: 20px;
}

/* Überschriften-Label: weniger Abstand unten */
.cf7-fehler-block > label {
  margin-bottom: 6px; /* kleiner Abstand */
  font-weight: 600;
  line-height: 1.2;
}

/* Container für die Checkboxen: vertikal, linksbündig */
.cf7-fehler-block .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Abstand zwischen Checkboxen */
  width: 100%;
}

/* Einzelne Checkbox-Zeile: linksbündig, Text rechts */
.cf7-fehler-block .wpcf7-checkbox label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

/* Checkbox selbst: feste Breite links, dann Text */
.cf7-fehler-block .wpcf7-checkbox input[type="checkbox"] {
  flex: 0 0 40px;
  width: 20px;
  height: 20px;
  margin: 0;
  margin-right: 8px;
  box-sizing: content-box;
}


.cf7-fehler-block .wpcf7-checkbox label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  padding-left: 0;   /* kein Innenabstand links */
  margin-left: 0;    /* kein Außenabstand links */
}

.cf7-fehler-block .wpcf7-checkbox input[type="checkbox"] {
  flex: 0 0 40px;
  width: 20px;
  height: 20px;
  margin-left: 0;    /* kein linker Außenabstand */
  padding-left: 0;   /* kein linker Innenabstand */
  box-sizing: content-box;
}

.cf7-fehler-block .wpcf7-checkbox {
  padding-left: 0;
  margin-left: 0;
}


#cf7-form-vertikal .cf7-row-vertical span.wpcf7-list-item {
    display: inline-block;
    margin: 0 -20px 2px;
}

.cf7-row-vertical.cf7-fehler-block label {
    width: 100%;
    background: none!important;
}

.label-title {
    width: 100%;
    display: block;
    margin-bottom: 22px;
    font-weight: 400!important;
    margin-left: -21px;
}

.label-title label {
    font-weight: 600!important;
}