/* Layoutabgleich der rekonstruierten Divi-Seiten. Herstellerdateien bleiben unverändert. */
@media (min-width: 981px) {
  /* Die Quellmodule enthalten eigene Innenabstände; zusätzliche Divi-Standard-
     abstände vergrößern sonst auch die contain-Hintergrundbilder. */
  .page-id-1917 #et-main-area .et_pb_section_0,
  .page-id-3812 #et-main-area .et_pb_section_0 {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Formular 5: Beschriftungen links, Eingaben rechts. Nur einfache
     halbbreite Felder; Gruppen, Bedingungen und Formular 8 bleiben unberührt. */
  #frm_form_5_container .frm_form_field.frm_half:has(> label.frm_primary_label) {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: start;
    column-gap: 0;
    margin-bottom: 8px;
  }
  #frm_form_5_container .frm_form_field.frm_half > label.frm_primary_label {
    grid-column: 1;
  }
  #frm_form_5_container .frm_form_field.frm_half > input,
  #frm_form_5_container .frm_form_field.frm_half > select,
  #frm_form_5_container .frm_form_field.frm_half > textarea,
  #frm_form_5_container .frm_form_field.frm_half > .frm_error,
  #frm_form_5_container .frm_form_field.frm_half > .frm_description {
    grid-column: 2;
  }
}
@media (max-width: 980px) {
  /* Mobil bleibt die Beschriftung über dem Eingabefeld. */
  #frm_form_5_container .frm_form_field.frm_half {
    margin-bottom: 14px;
  }
}

/* Dezente Eingabeflächen des Lieferformulars; Formular 8 besitzt eigene Styles. */
#frm_form_5_container .frm_form_field > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#frm_form_5_container .frm_form_field > textarea,
#frm_form_5_container .frm_form_field > select {
  background-color: #f7f7f7;
  border-color: #ddd;
}
/* Der Einleitungstext der ersten Lieferformulargruppe steht im Original
   mit etwas Luft vor dem ersten Feld. */
#frm_form_5_container #frm_field_96_container { margin-bottom: 8px; }
@media (max-width: 980px) {
  #frm_form_5_container #frm_field_96_container { margin-bottom: 14px; }
}

/* Der eigene Inhaltsfooter ersetzt den zusätzlichen Divi-Standardfooter. */
#main-footer { display: none; }

/* Die im wiederhergestellten Inhalt vorhandene Bild-Text-Zeile braucht ihre
   eigene Darstellung, die nicht aus den alten Theme-Optionen importiert wird. */
.bild-text-zeile { display: flex; align-items: center; gap: 8px; }
.bild-text-zeile > img { width: 60px; height: 60px; object-fit: contain; flex: 0 0 60px; }
.bild-text-zeile > p:empty { display: none; }
.bild-text-zeile .textblock { font-size: 12px; line-height: 1.3; }
.bild-text-zeile .textblock p { padding-bottom: 0; }
@media (min-width: 981px) {
  .et_pb_section:has(.bild-text-zeile) { padding-bottom: 50px !important; }
  .et_pb_section:has(.bild-text-zeile) + .et_pb_section + .et_pb_section { padding-top: 0; }
  .et_pb_section:has(.bild-text-zeile) + .et_pb_section {
    padding-top: 0;
    padding-bottom: 0;
  }
}
@media (min-width: 981px) {
  /* Beide benachbarten Codemodule besitzen eigene Maße; Divis Standard-
     Section-Padding erzeugt hier dreimal zusätzliche 4% der Fensterbreite. */
  .et_pb_section:has([data-sb-logo-band]) { padding-top: 0; padding-bottom: 0; }
  .et_pb_section:has([data-sb-sorglos]) { padding-top: 0; }
}
