/* VitaSystemic Widerruf 1.0.4
   Eigenes Innenlayout, bewusst von Avada/Theme-Abständen entkoppelt. */

#vsw-root,
#vsw-root *,
.vsw-box,
.vsw-box * {
  box-sizing: border-box !important;
  font-family: "Noto Sans", Arial, sans-serif !important;
}

/* Äußerer Rahmen: keine Typografie-/Spacing-Logik des Themes übernehmen. */
#vsw-root.vsw-box,
.vsw-box {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  line-height: 1.4 !important;
}

/* Der eigentliche Innencontainer liefert den Abstand zum Rahmen. */
#vsw-root .vsw-inner {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 24px 30px 26px !important;
  white-space: normal !important;
}

#vsw-root h1,
#vsw-root h2,
#vsw-root h3,
#vsw-root h4,
#vsw-root p,
#vsw-root label,
#vsw-root input,
#vsw-root select,
#vsw-root textarea,
#vsw-root button,
#vsw-root small,
#vsw-root dt,
#vsw-root dd {
  font-family: "Noto Sans", Arial, sans-serif !important;
  white-space: normal !important;
}

#vsw-root h2,
.vsw-box h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1.25 !important;
}

#vsw-root h3,
.vsw-box h3 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

/* Intro: bewusst schmaler als das Formular, damit er sauber umbrechen kann. */
#vsw-root .vsw-intro {
  display: block !important;
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto 14px !important;
  padding: 0 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  line-height: 1.45 !important;
}

#vsw-form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
}

#vsw-root .vsw-step {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#vsw-root .vsw-step[hidden] {
  display: none !important;
}

/* Felder bewusst kompakt: Avada-Abstände werden vollständig überschrieben. */
#vsw-root .vsw-field {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
}

#vsw-root .vsw-field label {
  display: block !important;
  width: auto !important;
  margin: 0 0 3px !important;
  padding: 0 !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

#vsw-root .vsw-field input[type="text"],
#vsw-root .vsw-field input[type="email"],
#vsw-root .vsw-field select,
#vsw-root .vsw-field textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(0,0,0,.20) !important;
  border-radius: 4px !important;
  background: #fff !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
}

#vsw-root .vsw-field select {
  min-height: 38px !important;
}

#vsw-root .vsw-field textarea {
  min-height: 76px !important;
  resize: vertical !important;
}

#vsw-root .vsw-field input:focus,
#vsw-root .vsw-field select:focus,
#vsw-root .vsw-field textarea:focus {
  outline: 2px solid currentColor !important;
  outline-offset: 2px !important;
}

#vsw-root .vsw-optional,
#vsw-root .vsw-note,
#vsw-root small {
  opacity: .75;
}

#vsw-root .vsw-note {
  display: block !important;
  margin: 2px 0 10px !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

#vsw-root .vsw-button {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 0 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

/* Erster Schritt: einzelner Button exakt mittig. */
#vsw-root #vsw-next {
  display: block !important;
  margin: 4px auto 0 !important;
}

#vsw-root .vsw-button-secondary {
  background: transparent !important;
  border: 1px solid currentColor !important;
}

/* Zweiter Schritt: beide Buttons als zentrierte Gruppe. */
#vsw-root .vsw-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

#vsw-root .vsw-step > p {
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

#vsw-root .vsw-summary {
  display: grid !important;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) !important;
  gap: 5px 12px !important;
  margin: 10px 0 !important;
  padding: 0 !important;
}

#vsw-root .vsw-summary dt {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
}

#vsw-root .vsw-summary dd {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-wrap: anywhere !important;
}

#vsw-root.vsw-error,
.vsw-box.vsw-error {
  border-left: 4px solid currentColor;
}

@media (max-width: 640px) {
  #vsw-root .vsw-inner {
    padding: 20px 18px 22px !important;
  }

  #vsw-root .vsw-intro {
    max-width: 100% !important;
  }

  #vsw-root .vsw-summary {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }

  #vsw-root .vsw-summary dd {
    margin-bottom: 5px !important;
  }
}


/* VitaSystemic Widerruf 1.0.5 – typografische und visuelle Feinabstimmung */

/* Grundtext bleibt Noto Sans Regular. */
#vsw-root,
#vsw-root p,
#vsw-root label,
#vsw-root input,
#vsw-root select,
#vsw-root textarea,
#vsw-root button,
#vsw-root small,
#vsw-root dt,
#vsw-root dd {
  font-family: "Noto Sans", Arial, sans-serif !important;
  font-weight: 400 !important;
}

/* Nur die Hauptüberschrift verwendet ZCOOL XiaoWei Regular. */
#vsw-root h2,
.vsw-box h2 {
  font-family: "ZCOOL XiaoWei", serif !important;
  font-weight: 400 !important;
}

/* Feldnamen im Formular: normal, linksbündig. */
#vsw-root .vsw-field label {
  font-weight: 400 !important;
  text-align: left !important;
}

/* Bestätigungsansicht: Feldnamen und Inhalte linksbündig in zwei Spalten. */
#vsw-root .vsw-summary {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
  align-items: start !important;
  text-align: left !important;
}

#vsw-root .vsw-summary dt,
#vsw-root .vsw-summary dd {
  font-weight: 400 !important;
  text-align: left !important;
  line-height: 1.4 !important;
}

/* Pillen-Buttons. */
#vsw-root .vsw-button {
  border-radius: 999px !important;
  padding: .62rem 1.25rem !important;
  transition: filter .15s ease, transform .15s ease !important;
}

/* Hervorgehobene Aktion. */
#vsw-root .vsw-button:not(.vsw-button-secondary) {
  background: #afc5b9 !important;
  color: #1f2a25 !important;
  border: 1px solid #afc5b9 !important;
}

#vsw-root .vsw-button:not(.vsw-button-secondary):hover,
#vsw-root .vsw-button:not(.vsw-button-secondary):focus {
  filter: brightness(.96) !important;
}

/* Sekundäre Aktion ebenfalls als Pill, aber zurückhaltend. */
#vsw-root .vsw-button-secondary {
  background: transparent !important;
  color: inherit !important;
  border: 1px solid currentColor !important;
}

/* Auf kleinen Displays Zusammenfassung wieder einspaltig. */
@media (max-width: 640px) {
  #vsw-root .vsw-summary {
    grid-template-columns: 1fr !important;
  }
}
