/*
 * Divi-Defaults per CSS statt per Divi Global Presets (DB-gebunden, nicht
 * portabel zwischen Projekten). Divis eigenes, pro Modul generiertes CSS ist
 * ID-verankert und schlägt diese Klassen-Regeln bereits per Spezifität –
 * das ist gewollt, damit ein Redakteur im Builder jeden dieser Defaults pro
 * Modul überschreiben kann. Deshalb hier: kein `!important`, keine
 * ID-Selektoren. Beides würde Builder-Overrides brechen.
 */

body {

  font-family: var(--text-font, sans-serif);
  line-height: var(--text-lh, 1.2em);
  font-size: var(--text-fs, 1em);

  &:not(.et-fb) p,
  &.et-fb .et-fb-post-content p,
  /*&:not(.et-fb) *:not(.et_pb_module_header) span,*/
  &.et-fb .et-fb-post-content span,
  &:not(.et-fb) li,
  &.et-fb .et-fb-post-content li {
    /*font-size: var(--p-fs);
    font-weight: 300;*/
    line-height: var(--p-lh);
  }

  a,
  a:focus,
  a:hover {
    color: var(--main-color);
  }

  h1 {
    font-family: var(--hl-font);
    font-size: var(--h1-fs);
    font-weight: 600;
    line-height: var(--h1-lh);
    padding-bottom: 15px;
    letter-spacing: -1px;
  }

  h2 {
    color: var(--text-color);
    font-family: var(--hl-font);
    font-size: var(--h2-fs);
    font-weight: 700;
    line-height: var(--h1-lh);
    padding-bottom: 5px;
    letter-spacing: -1px;
  }

  h3 {
    padding: 20px 0;
    font-weight: 700;
    font-size: var(--h3-fs);
    line-height: 1.3em;
  }

  h4 {
    padding: 20px 0 10px 0;
    font-weight: 700;
  }

  h1,
  h2,
  h3,
  h4 {
    word-wrap: normal;
    hyphens: auto;
  }

  /* Bessere Formatierung für nummerierte Listen in Divi */
  .et_pb_module ol {
    list-style-position: outside;
    margin-left: 1.4em;
    padding-left: 0;
    counter-reset: item;
  }

  .et_pb_module ol li {
    position: relative;
    margin-bottom: 0.6em;
    /* etwas Abstand zwischen Punkten */
    padding-left: 0.4em;
    /* etwas Abstand nach der Zahl */
  }

  .et_pb_module ol li::marker {
    font-weight: bold;
  }

  blockquote {
    border-color: var(--main-color);
  }

  .icon::before {
    content: attr(data-icon-uft);
    font-family: FontAwesome !important;
    font-weight: 900;
  }

  /* fixex */
  @media (max-width: 980px) {
    .et_pb_column {
      margin-bottom: 20px;
    }

    .et_pb_row.fixed-gap {
      display: flex;
      gap: 20px;
    }

    .et_pb_row.fixed-gap>.et_pb_column {
      margin: 1px !important;
    }
  }
}

.blog-news .et_pb_ajax_pagination_container>div a,
/* blog prev | next */
a.more-link,
/* post read more  */
.et_pb_module a.et_pb_button,
button.et_pb_button,
input.et_pb_button,
.dipe-cf7 .wpcf7 input[type=submit],
.juicer-button {
  background: var(--main-color);
  border-color: var(--main-color);
  border-radius: var(--border-radius);
  color: var(--negativ-color);
  font-size: var(--btn-fs);
  font-weight: 700;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 1.3;
  border-width: 1px;

  /*&::after {
    font-size: calc(var(--btn-fs) + 10px);
    font-weight: 700;
    display: none;
  }*/

  &.active,
  &:hover {
    background: var(--negativ-color);
    border-color: var(--main-color);
    color: var(--main-color);
    padding-top: 9px;
    padding-bottom: 9px;
    border-width: 1px;
  }

  /*
 &[data-icon],
  &.more-link {
    padding-left: 40px;
  }*/

  /* negative button */
  &.et_pb_bg_layout_dark {
    background: var(--negativ-color);
    color: var(--main-color);

    &.active,
    &:hover {
      background: var(--main-color);
      color: var(--negativ-color);
    }
  }

  /* secondary button */
  &.sec_button {
    background: var(--negativ-color);
    border-color: var(--sec-color);
    color: var(--text-color);

    &:hover {
      background: var(--sec-color);
      color: var(--negativ-color);
    }
  }

  /* secondary button */
  &.sec_button.et_pb_bg_layout_light {
    background: var(--sec-color);
    border-color: var(--sec-color);
    color: var(--negativ-color);

    &:hover {
      background: var(--negativ-color);
      color: var(--text-color);
    }
  }

  /* whithe button */
  &.neg_button {
    background: var(--negativ-color);
    border-color: var(--negativ-color);
    color: var(--main-color);

    &:hover {
      background: var(--negativ-color);
      color: var(--main-color);
    }
  }
}

.et_pb_module a.et_pb_button {
  min-width: 200px;
}

@media (max-width: 767px) {
  .et_pb_module a.et_pb_button {
    width: 100%;
  }
}

/*** END Default ***/