/* Giant Security – Divi-Kontaktformulare, 0.4.18
 * Ausschließlich visueller Skin wie die Job-Suchmaske.
 * WICHTIG: Divi 5 besitzt eigene Breiten-/Spaltenvorgaben.
 * Kein display/flex/gap/width/max-width/field-padding für Form, Field, Row oder Column.
 * Diese Regeln dürfen das vorhandene 50/50-Raster NICHT beeinflussen.
 */
.et_pb_contact_form_container {
  --gs-form-fg: #171717;
  --gs-form-placeholder: #777;
  --gs-form-border: #dedede;
  --gs-form-white: #fff;
  color: var(--gs-form-fg);
}

/* Eingabeelemente: 58 px, Weiß, ruhige Suchmasken-Kontur, Pillenform. */
.et_pb_contact_form_container .et_pb_contact_form :is(
  input.input:not([type="checkbox"]):not([type="radio"]):not(.et_pb_contact_hidden_files):not(.et_pb_contact_captcha),
  select.input
) {
  box-sizing: border-box !important;
  width: 100% !important; /* nur Kontrolle innerhalb ihrer Divi-Spalte */
  min-height: 58px !important;
  padding: 14px 22px !important;
  border: 1px solid var(--gs-form-border) !important;
  border-radius: 32px !important;
  background-color: var(--gs-form-white) !important;
  box-shadow: none !important;
  color: var(--gs-form-fg) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}
.et_pb_contact_form_container .et_pb_contact_form select.input {
  padding-right: 40px !important;
  cursor: pointer;
}
.et_pb_contact_form_container .et_pb_contact_form textarea.input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 160px !important;
  padding: 18px 22px !important;
  border: 1px solid var(--gs-form-border) !important;
  border-radius: 20px !important;
  background-color: var(--gs-form-white) !important;
  box-shadow: none !important;
  color: var(--gs-form-fg) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  resize: vertical;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}
.et_pb_contact_form_container .et_pb_contact_form :is(input.input, textarea.input)::placeholder {
  color: var(--gs-form-placeholder) !important;
  opacity: 1 !important;
}
.et_pb_contact_form_container .et_pb_contact_form :is(input.input:not(.et_pb_contact_hidden_files), select.input, textarea.input):focus-visible {
  outline: none !important;
  border-color: #111 !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,.10) !important;
}
.et_pb_contact_form_container .et_pb_contact_form :is(input.input, select.input, textarea.input):disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* Pflichtfeld-/Validierungsanzeige unverändert in der Funktion. */
.et_pb_contact_form_container .et_pb_contact_form :is(input.et_pb_required_border, textarea.et_pb_required_border, select.et_pb_required_border),
.et_pb_contact_form_container .jpd-app-field-error :is(input.input, select.input, textarea.input) {
  border-color: #b42318 !important;
}

/* Upload als ein einzelnes, zurückhaltendes Feld; kein zusätzliches Layout-Raster. */
.et_pb_contact_form_container .et_pb_contact_field[data-type="file"] {
  border: 1px solid var(--gs-form-border) !important;
  border-radius: 20px !important;
  background: #fff !important;
  padding: 17px 21px !important;
}
.et_pb_contact_form_container .et_pb_contact_field[data-type="file"] > .et_pb_contact_form_label {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  color: #171717 !important;
}
/* Der Helper erzeugt manchmal eine zweite graue Box. */
.et_pb_contact_form_container .et_pb_contact_field[data-type="file"] .et_pb_files_container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.et_pb_contact_form_container .et_pb_contact_field[data-type="file"] .et_pb_file_upload_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 45px !important;
  padding: 10px 21px !important;
  margin: 0 10px 7px 0 !important;
  background: #111 !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.et_pb_contact_form_container .et_pb_contact_field[data-type="file"] .et_pb_file_upload_button:hover {
  color: #111 !important;
  background: #fff !important;
}
.et_pb_contact_form_container .et_pb_file_upload_button::after,
.et_pb_contact_form_container .et_pb_file_upload_button::before {
  display: none !important;
  content: none !important;
}
.et_pb_contact_form_container :is(.et_pb_file_chosen_desc, .et_pb_accepted_files_desc) {
  color: #626262 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
.et_pb_contact_form_container .et_pb_accepted_files_desc {display:block;}
.et_pb_contact_form_container .et_pb_files_list {overflow-wrap:anywhere;}

/* Datenschutz: kein Form-Layout verändern. */
.et_pb_contact_form_container .et_pb_contact_field[data-type="checkbox"] :is(.et_pb_contact_field_options_title, .et_pb_contact_field_options_list label) {
  color: #171717 !important;
  line-height: 1.55 !important;
}
.et_pb_contact_form_container .et_pb_contact_field_desc {
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* Buttons wie in der Suchmaske. Kein Einfluss auf ihren Divi-Wrapper. */
.et_pb_contact_form_container :is(.et_pb_contact_submit, .jpd-app-next, .jpd-app-back) {
  min-height: 48px !important;
  padding: 11px 24px !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.et_pb_contact_form_container :is(.et_pb_contact_submit, .jpd-app-next) {background:#111 !important;color:#fff !important;}
.et_pb_contact_form_container :is(.et_pb_contact_submit, .jpd-app-next):hover {background:#fff !important;color:#111 !important;}
.et_pb_contact_form_container .jpd-app-back {background:#fff !important;color:#111 !important;}
.et_pb_contact_form_container .jpd-app-back:hover {background:#f3f3f3 !important;}
.et_pb_contact_form_container .et_pb_contact_submit::before,
.et_pb_contact_form_container .et_pb_contact_submit::after {display:none !important;content:none !important;}
.et_pb_contact_form_container :is(button, input, select, textarea):focus-visible {outline-offset:3px;}

/* Nur die Optik der Schritt-Navigation, keine Positionierung oder Spaltenbreite. */
.dipi-layout-content[data-layout-id="2026101957"] .jpd-app-progress-step.is-current .jpd-app-progress-label {color:#111;font-weight:700;}
.dipi-layout-content[data-layout-id="2026101957"] .jpd-app-progress-step.is-current .jpd-app-progress-bar,
.dipi-layout-content[data-layout-id="2026101957"] .jpd-app-progress-step.is-completed .jpd-app-progress-bar {background:#111;}
.dipi-layout-content[data-layout-id="2026101957"] .jpd-app-controls button {border-radius:999px !important;}

@media (prefers-reduced-motion: reduce) {
 .et_pb_contact_form_container :is(input, select, textarea) {transition:none !important;}
}

/* 0.4.27 – Einheitliche SVG-Häkchen, ohne gestapelte Icon-Systeme.
 * Textfelder: dasselbe grüne SVG-Häkchen wie im Dropdown.
 * Dropdowns: genau ein grünes SVG-Häkchen und ein Chevron im weißen
 * Overlay; dieser überdeckt Divi-/Browser-Pfeile ohne das Select zu ersetzen.
 * Das Flex-/Spaltenmodell und der native Select bleiben unverändert.
 */
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field.gs-field-validated {
  position: relative;
}
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field.gs-field-validated:not(.jpd-app-field-error)
  :is(input.input, select.input, textarea.input):not([type="checkbox"]):not([type="radio"]):not(.et_pb_contact_hidden_files):not(.et_pb_contact_captcha):not(.et_pb_required_border):not(.jpd-app-invalid):not([aria-invalid="true"]) {
  border-color: #15803d !important;
  box-shadow: inset 0 0 0 1px #15803d !important;
}
/* Textfelder nutzen jetzt das IDENTISCHE SVG-Häkchen wie das Dropdown.
 * Altes, abweichendes Schriftzeichen/Wrapper-Pseudoelement ist entfernt.
 * Positionierung ausschließlich als Overlay, ohne Divi-Spalten zu verändern. */
.et_pb_contact_form_container .et_pb_contact_form
 .et_pb_contact_field:not([data-type="select"]) .gs-field-check-icon {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  right: 19px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 21 !important;
  color: #15803d !important;
  pointer-events: none !important;
}
.et_pb_contact_form_container .et_pb_contact_form
 .et_pb_contact_field[data-type="text"] .gs-field-check-icon {
  top: 26px !important;
  transform: none !important;
}
.et_pb_contact_form_container .et_pb_contact_form
 .et_pb_contact_field .gs-field-check-icon[hidden] {display: none !important;}
.et_pb_contact_form_container .et_pb_contact_form
 .et_pb_contact_field .gs-field-check-icon svg {
  display:block !important;
  width:22px !important;
  height:22px !important;
  fill:none !important;
  stroke:currentColor !important;
  overflow:visible !important;
}
/* Divi-Pseudoelemente von Textfeldern dürfen kein zweites Häkchen erzeugen. */
.et_pb_contact_form_container .et_pb_contact_form
 .et_pb_contact_field.gs-field-validated:not([data-type="select"])::after {
  content: none !important;
  display: none !important;
}
.et_pb_contact_form_container .et_pb_contact_form
 .et_pb_contact_field.gs-field-validated:not([data-type="select"]):not(.jpd-app-field-error)
 :is(input.input, textarea.input):not([type="checkbox"]):not([type="radio"]):not(.et_pb_contact_hidden_files):not(.et_pb_contact_captcha) {
  padding-right: 54px !important;
}
/* Vorrang für echte Fehlermeldungen. */
.et_pb_contact_form_container .et_pb_contact_form
 .et_pb_contact_field:is(.jpd-app-field-error, :has(.et_pb_required_border), :has(.jpd-app-invalid), :has([aria-invalid="true"]))::after {
  display: none !important;
}
/* Das von Divi/Divi Helper erzeugte Select-Symbol entfernen. */
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"] {
  position: relative;
}
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"]::before,
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"]::after,
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field.gs-field-validated[data-type="select"]::after {
  content: none !important;
  display: none !important;
}
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"] select.input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: #fff !important;
  background-image: none !important;
  padding-right: 106px !important;
  cursor: pointer;
}
/* Undurchsichtige Icon-Zone statt eines transparenten Overlays:
 * verdeckt auch hartnäckige native/Divi-Pfeile bei Safari.
 * pointer-events:none erhält die komplette Klickfläche des Selects. */
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"] .gs-select-decoration {
  position: absolute !important;
  z-index: 20 !important;
  top: 50% !important;
  right: 2px !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 13px !important;
  width: 100px !important;
  height: calc(100% - 4px) !important;
  max-height: 56px !important;
  padding: 0 19px 0 0 !important;
  border-radius: 0 999px 999px 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  pointer-events: none !important;
  line-height: 1 !important;
}
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"] .gs-select-decoration svg {
  display: block !important;
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  overflow: visible !important;
}
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"] .gs-select-decoration .gs-select-check {
  color: #15803d !important;
  width: 22px !important;
  height: 22px !important;
}
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"] .gs-select-decoration .gs-select-check[hidden] {
  display: none !important;
}
.et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field[data-type="select"] .gs-select-decoration .gs-select-chevron {
  color: #444 !important;
}
@media (forced-colors: active) {
  .et_pb_contact_form_container .et_pb_contact_form .et_pb_contact_field.gs-field-validated :is(input.input, select.input, textarea.input) {
    outline: 2px solid Highlight !important;
  }
}
