/*
Theme Name: Rittmeyer Beri – Divi Child
Description: Divi Child-Theme mit der aus Carpress Beri übertragenen Gestaltung.
Author: Rittmeyer Beri
Template: Divi
Version: 0.1.0
Text Domain: divi-beri
*/

/* Divi lädt dieses Child-Stylesheet selbst. Die Regeln liegen hier, damit sie
   auch im Divi Theme Builder nicht von Carpress-Dateien abhängen. */

@font-face {
  font-family: "Beri Ubuntu";
  src: url("assets/fonts/ubuntu-v20-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Beri Ubuntu";
  src: url("assets/fonts/ubuntu-v20-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Beri Ubuntu Condensed";
  src: url("assets/fonts/ubuntu-condensed-v16-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --beri-blue: #006d97;
  --beri-link: #305088;
  --beri-text: #343434;
  --beri-navy: #2b4779;
}

body {
  font-family: "Beri Ubuntu", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--beri-text);
}

body, #page-container, .et_pb_text, .et_pb_blurb_description,
.et_pb_post .post-content, input, textarea, select, button {
  font-family: "Beri Ubuntu", sans-serif;
}

#main-header {
  #logo {
    max-height: 50px;
  }

  &.et-fixed-header {
    #logo {
      max-height: 40px;
    }
  }
}

#page-container {
  color: var(--beri-text);

  & a {
    color: var(--beri-link);
    transition: color .2s ease;

    &:hover { color: var(--beri-blue); }
  }

  & h1, & h2, & h3, & h4, & h5, & h6 {
    font-family: "Beri Ubuntu Condensed", sans-serif;
    color: #333;
    line-height: 1.3;
    font-weight: 400;
    padding: 20px 0;
  }

  & h4, & h5, & h6 {
    font-family: "Beri Ubuntu Condensed", sans-serif;
  }

  & h1:not(:first-of-type),
  & h2:not(:first-of-type),
  & h3:not(:first-of-type),
  & h4:not(:first-of-type),
  & h5:not(:first-of-type),
  & h6:not(:first-of-type) {
    padding-top: 20px;
  }

  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  h4, h5, h6 { font-size: 20px; }

}

/* Standard-Divi-Header; bei einem Theme-Builder-Header die Klasse beri-header
   auf die äußere Sektion setzen. */
#main-header, .beri-header {
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 10px 10px rgba(0, 0, 0, .1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

#top-menu a, #mobile_menu a, .beri-header a {
  font-family: "Beri Ubuntu Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 400;
}
#top-menu a { color: #777; }
#top-menu .current-menu-item > a,
#top-menu .current-menu-ancestor > a,
#page-container .beri-header .current-menu-item > a { color: var(--beri-blue); }

#main-header {
  .current-menu-item {
    a {
      color: var(--beri-blue) !important;
    }
  }
}

#page-container {
  & .mobile_menu_bar:before { color: var(--beri-blue); }
  & #mobile_menu, & .et_mobile_menu { border-top-color: var(--beri-blue); }
}

/* Standard-Footer von Divi; für Theme-Builder-Footer beri-footer verwenden. */
#main-footer, .beri-footer { background-color: #233a62; }
#main-footer, #main-footer p, #main-footer a,
#page-container .beri-footer, #page-container .beri-footer a { color: #fff; }
#main-footer a:hover, #page-container .beri-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
#main-footer .footer-widget, #main-footer .footer-widget li,
#page-container .beri-footer { font-size: 14px; }

/* Divi-Buttons statt der alten Bootstrap-Klassen .btn/.pagination. */


/* Klassennamen für entsprechende Divi-Sektionen/Module manuell vergeben. */
#page-container {
  & .beri-hero {
    & h1, & h2 {
      color: var(--beri-blue);
      font: 400 36px/1.3 "Beri Ubuntu Condensed", sans-serif;
    }
    & p { color: var(--beri-text); font-size: 16px; line-height: 1.5; }
    & a { color: var(--beri-blue); }
  }

  & .beri-news {
    background: linear-gradient(to right, #fefefe, #f6f6f6);
    box-shadow: 0 20px 30px rgba(0, 0, 0, .2);
    border: 1px solid #126d98;
    border-radius: 10px;
    padding: 20px;

    & h2, & h3 {
      color: #126d98;
      border-bottom: 1px dotted rgba(0, 0, 0, .3);
      margin-bottom: 20px;
    }
    & ul { list-style: none; font-size: 14px; padding-left: 0; }
  }

  & .beri-page-title h1 {
    font: 400 44px/1 "Beri Ubuntu Condensed", sans-serif;
  }
}

/* Wiederverwendbare Gutenberg-Klassen aus carpress-beri/style.css. */
#page-container {
  & .wp-block-heading { color: var(--beri-blue); }
  & .wp-block-separator {
    border: 0;
    border-top: 1px solid rgba(0, 109, 151, .13);
  }
  & .wp-block-image:not(.blank) {
    margin: 30px auto;

    & img {
      margin-bottom: 10px;
      border: 1px solid rgba(255, 255, 255, .2);
      border-radius: 10px;
      box-shadow: 0 20px 20px rgba(0, 0, 0, .1);
    }
  }
  & .wp-block-image .wp-element-caption {
    font-size: 14px;
    font-style: italic;
    text-align: center;
  }
  & .wp-block-video {
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 20px rgba(0, 0, 0, .1);
  }
  & .wp-block-table.specs td,
  & .wp-block-table.addons td {
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
  }
  & .wp-block-table.specs td:first-child,
  & .wp-block-table.addons td:first-child {
    padding-left: 0;
    font-weight: 700;
  }
  & .wp-block-table.specs td:nth-child(2) {
    text-align: right;
    padding-right: 0;
  }
  & .wp-block-table.addons td:first-child { width: 30%; vertical-align: top; }
  & .wp-block-table.addons td:nth-child(2) { padding-right: 0; font-size: 14px; }
  & .wp-block-table.specs tr:last-child td,
  & .wp-block-table.addons tr:last-child td { border-bottom: 0; }
  & .wp-block-table .wp-element-caption {
    margin-top: 10px;
    font-size: 12px;
    font-style: italic;
    text-align: right;
  }
  & .frame--red {
    border: 1px solid white;
    border-radius: 10px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, .2);
    padding: 20px;
    background: linear-gradient(120deg, rgba(0, 0, 0, .05), transparent);
  }
}

@media (max-width: 767px) {
  #page-container {
    & .beri-hero h1, & .beri-hero h2 { font-size: 28px; }
    & .beri-page-title h1 { font-size: 34px; }
  }
}

/* */

.et_pb_post_content:not(:has(.et-l--post)) {
  margin: 0 auto;
  padding: 70px 0;
  width: 80%;
  max-width: 1080px;
}