/*
Theme Name: Divi Child Theme
Description: A child theme to house custom coding which modifies the Divi parent theme by Elegant Themes. Includes default line numbers where the code was taken from in the parent theme.
Author: PERIMETRIK®
Author URI: https://perimetrik.de
Template: Divi
*/

/******************************************************
    01. Schriften
    02. Farben
    03. Allgemeine Schriftgrößen
    04. Allgemeine WordPress Enstellungen
    05. Header & Navigation
    06. Footer
    07. Image-Einstellungen
    08. Divi-Einstellungen
    09. Key Visual
    10. PCM Einstellungen
    11. DSGVO Datenauszug
    12. Search Result Page
    13. Mobile Abstände
    14. TB Layout Abstände
    15. Divi Breakpoints Beispiele
*******************************************************/

/******************************************************
    01. Schriften
*******************************************************/

/* lato-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('/wp-content/themes/Divi-child/fonts/lato-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/Divi-child/fonts/lato-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/Divi-child/fonts/lato-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: url('/wp-content/themes/Divi-child/fonts/lato-v24-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  src: url('/wp-content/themes/Divi-child/fonts/raleway-v34-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/Divi-child/fonts/raleway-v34-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: url('/wp-content/themes/Divi-child/fonts/raleway-v34-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/Divi-child/fonts/raleway-v34-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/Divi-child/fonts/raleway-v34-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



h1, h2, h3, h4, h5, h6{
    font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif !important;
}
body{
    font-weight: 300;
}
body, input, textarea, select{
    font-family: 'Raleway',Helvetica,Arial,Lucida,sans-serif !important;

}
#main-header, #et-top-navigation{
    font-family: 'Raleway',Helvetica,Arial,Lucida,sans-serif !important;
    font-weight: 500;
}
.et_pb_button{
    font-family: 'Raleway',Helvetica,Arial,Lucida,sans-serif !important;
}

/******************************************************
    02. Farben
*******************************************************/

:root {
  --red: #8f0a0b;
  --white: #ffffff;
  --black: #000000;
  --grey: #f2f2f2;
}

/******************************************************
    03. Allgemeine Schriftgrößen
*******************************************************/

/* H-Tags */

    h1 { font-size: clamp(26px, 2.969vw, 38px) !important; }
    h2 { font-size: clamp(22px, 2.5vw, 32px) !important; }
    h3 { font-size: clamp(18px, 2.031vw, 26px) !important; }
    h4 { font-size: clamp(16px, 1vw, 18px) !important; }
    h5 { font-size: clamp(14px, 0.889vw, 16px) !important; }
    h6 { font-size: clamp(12px, 0.778vw, 14px) !important; }

/* Fließtext */

    .et-db body, body, .et_pb_text { font-size: clamp(14px, 1.25vw, 16px) !important; line-height: 1.4em !important; }
    .html-footer{ font-size: clamp(12px, 1.094vw, 14px) !important; line-height: 1.6em !important; }
    .et_pb_button { font-size: clamp(12px, 1.172vw, 15px) !important; line-height: 1.4em !important; }

    .post-title h3 { font-size: clamp(16px, 1.406vw, 18px) !important; line-height: 1.2em; }
    .post-position h5 { font-size: clamp(16px, 1.25vw, 16px) !important; line-height: 1.2em; }
    .post-institution { font-size: clamp(13px, 1.094vw, 14px) !important; line-height: 1.2em; font-weight: 500;}
    .post-topic { font-size: clamp(13px, 1.094vw, 14px) !important; line-height: 1.2em; font-style: italic; }
    .post-website { font-size: clamp(13px, 1.094vw, 14px) !important; line-height: 1.4em; }
    .post-terms { font-size: clamp(12px, 1.094vw, 14px) !important; }
    .post-date { font-size: clamp(12px, 1.094vw, 14px) !important; }
    .post-excerpt, .post-topic { font-size: clamp(12px, 1.094vw, 14px) !important; line-height: 1.4em; }

    h2.et_pb_module_header{ font-size: clamp(16px, 1vw, 18px) !important; }
    .member .post-title h2{ font-size: clamp(16px, 1.406vw, 18px) !important; line-height: 1.2em; }
    .member .post-position h3 { font-size: clamp(16px, 1.25vw, 16px) !important; line-height: 1.2em; }

/******************************************************
    04. Allgemeine WordPress Enstellungen
*******************************************************/

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


strong {
    font-weight: 500 !important;
}

::selection{
    background: var(--red);
    color: var(--white);
}
:-moz-selection {
    background: var(--red);
    color: var(--white);
}

#catapult-cookie-bar {
    z-index:999999999!important;
}

/* Silbentrennung */

body, h1, h2, h3 {
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; 
}

.title-border h2{
    border-bottom: 2px solid var(--red);
    margin-bottom: 20px;
    width: max-content;
    padding-bottom: 20px;
}

/* WP Nav */

.wp-pagenavi .current{
    background: var(--red);
    padding: 2px 8px;
}
.wp-pagenavi span.current{
    color: var(--white); !important;
}
.wp-pagenavi a, .wp-pagenavi span{
    color: var(--red); !important;
}
.wp-pagenavi a:hover{
    color: var(--black); !important;
}

/******************************************************
    05. Header & Navigation
*******************************************************/

@media only screen and ( max-width: 980px ) {
    #top-menu-nav, #top-menu {display: none;}
    #et_top_search {display: none;}
    #et_mobile_nav_menu {display: block;}
}

/* Mobile menü Scrollen */

.et_mobile_menu {   
    overflow-y:scroll!important;
    max-height:80vh!important;
    -overflow-scrolling:touch!important;
    -webkit-overflow-scrolling:touch!important;
}

.nav li a{
    font-weight: 400;
}
.nav li ul{
    width: 360px;
    border-top-width: 2px;
}
#top-menu li li a{
    width: 320px;
}
#top-menu li li ul {
    right: 360px !important;
    left: auto !important;
    top: -22px;
}
#top-menu .current-menu-item a::before {
    -webkit-transform: translateY(18px);
    transform: translateY(18px);
    opacity: 1.0;
}
/*#top-menu li a:hover:before {
-webkit-transform: translateY(18px);
transform: translateY(18px);
opacity: 1;
}*/
#top-menu li a:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    background: var(--red); /* Change your color here */
    width: 100%;
    height: 2px;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    opacity: 0;
    transition: 0.3s ease;
}
#top-menu li ul.sub-menu li a:before{
    opacity: 0;
}
#top-menu li ul.sub-menu li.current-menu-item a:before{
    opacity: 1;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    height: 0px;
}
#top-menu li ul.sub-menu li.current-menu-item > a{
    color: var(--red);
}

/*#main-header { box-shadow: none !important; }
#main-header.et-fixed-header { box-shadow: none !important; }*/

#main-header,
#main-header.et-fixed-header {
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5) !important;

}

.et-search-label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
input#pmk-header-search{
    border: 1px solid #dadada;
    height: 40px;
    border-radius: 5px;
    font-size: 14px !important;
    padding: 0 10px;
}

/******************************************************
    06. Footer
*******************************************************/

/* HTML Footer */

#footer-bottom{
    padding: 15px 0 15px;
}

/* Footer Kontaktformular */

footer .et_pb_contact p input{
    padding: 10px;
}

/* Kontaktformular */

.et_pb_contact_field_options_wrapper .et_pb_contact_field_options_title{
    display: none;
}
.et-pb-contact-message, .et-pb-contact-message{
    color: var(--white) !important;
}

/******************************************************
    07. Image-Einstellungen
*******************************************************/

/* Bild Portrait / Landscape / Quadrat  */

.quadrat .et_pb_image_wrap{
    padding-top: 100%;
    display: block;
}
.landscape_3_2 .et_pb_image_wrap{
    padding-top: 66.67%;
    display: block;
}
.landscape_16_9 .et_pb_image_wrap{
    padding-top: 56.25%;
    display: block;
}
.portrait .et_pb_image_wrap{
    padding-top: 177.78%;
    display: block;
}
.landscape_16_9 .et_pb_image_wrap img,
.landscape_3_2 .et_pb_image_wrap img,
.portrait .et_pb_image_wrap img,
.quadrat .et_pb_image_wrap img{
    position: absolute;
    height: 100%;
    width: 100% !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.dp_oc_item{
  margin: 40px 0 40px 0;
}
.dp_oc_item img{
  box-shadow: 0px 2px 20px rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 10px;
}
.owl-stage-outer{
    padding: 0 31px;
}
.owl-carousel{
    padding: 0 10px;
    background: #fff;
}

/******************************************************
    08. Divi-Einstellungen
*******************************************************/

/* Toggle */

.et_pb_toggle {
    background: var(--white);
}
.et_pb_toggle_content .et_pb_button {
    float: right;
    background-color: var(--black); !important;
    border: 1px solid var(--white); !important;
    color: var(--white) !important;
}
.et_pb_toggle_content .et_pb_button:hover{
    background-color: var(--black) !important;
    border: 1px solid var(--white) !important;
    color: var(--white) !important;
}
.et_pb_toggle_close .et_pb_toggle_title::before {
    content: "\f107";
    font-family: FontAwesome !important;
    font-weight: 900;
    color: var(--white);
}

.et_pb_toggle_open .et_pb_toggle_title::before {
    content: "\f106";
    font-family: FontAwesome !important;
    font-weight: 900;
    color: var(--white);
    display: block !important;
}

/* Personenmodul */

.et_pb_team_member_image{
    max-width: 100%;
}

/* Blog Modul */

.et_pb_blog_grid .et_pb_post{
    transition: all .5s linear;
    -o-transition: all .5s linear;
    -moz-transition: all .5s linear;
    -webkit-transition: all .5s linear;   
}
.et_pb_blog_grid .et_pb_post:hover{
    background-color: var(--red) !important;
}
.et_pb_blog_grid .et_pb_post:hover .entry-title,
.et_pb_blog_grid .et_pb_post:hover .post-meta,
.et_pb_blog_grid .et_pb_post:hover .post-meta a,
.et_pb_blog_grid .et_pb_post:hover .post-meta .published,
.et_pb_blog_grid .et_pb_post:hover .post-content .post-content-inner,
.et_pb_blog_grid .et_pb_post:hover .post-content .post-content-inner p{
    color: var(--white) !important;
}
.et_pb_blog_grid .et_pb_post .entry-title{
    padding: 5% 12% 5% 12%;
}
.et_pb_blog_grid .et_pb_post .post-meta{
    padding: 0% 12% 5% 12%;
}
.et_pb_blog_grid .et_pb_post .post-content{
    padding: 0% 12% 5% 12%;
}

/* Blurb */

.et_pb_blurb_content {
  max-width: 100% !important;
  width: 100%;
}

/* Nach oben Button*/

.et_pb_scroll_top.et-pb-icon {
    text-align: center;
    background: var(--red);
    text-decoration: none;
    position: fixed;
    z-index: 99999;
    bottom: 125px;
    right: 0px;
    -webkit-border-top-left-radius: 50px;
    -webkit-border-bottom-left-radius: 50px;
    -moz-border-radius-topleft: 50px;
    -moz-border-radius-bottomleft: 50px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    display: none;
    cursor: pointer;
    font-size: 35px;
    padding: 5px;
    color: var(--white);
}

.et_pb_scroll_top:before {
    content: '6';
}

/******************************************************
    09. Key Visual
*******************************************************/


/******************************************************
    10. PCM Einstellungen
*******************************************************/

.et_pb_pcm_dynamic_content .et_pb_cpt_archive_grid .et_pb_row.et_pb_row_cpt,
.et_pb_pcm_dynamic_content .et_pb_cpt_archive_grid .et_pb_row.et_pb_row_cpt .et_pb_row,
.et_pb_pcm_dynamic_content .et_pb_cpt_archive_grid .et_pb_row,
.et-db #et-boc .et-l .et_pb_pcm_dynamic_content .et_pb_cpt_archive_grid .et_pb_row{
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0px;
    padding-bottom: 38px;
}
.et_pb_pcm_dynamic_content .et_pb_cpt_archive_list .et_pb_row.et_pb_row_cpt,
.et_pb_pcm_dynamic_content .et_pb_cpt_archive_list .et_pb_row.et_pb_row_cpt .et_pb_row,
.et_pb_pcm_dynamic_content .et_pb_cpt_archive_list .et_pb_row,
.et-db #et-boc .et-l .et_pb_pcm_dynamic_content .et_pb_cpt_archive_list .et_pb_row{
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0px;
    padding-bottom: 0px;
}

.et_pb_pcm_dynamic_content .pcm-post-preview:first-of-type{
    padding-top: 0px; 
}
.et_pb_pcm_dynamic_content .pcm-post-preview:last-of-type{
    padding-bottom: 0px; 
}
.et_pb_pcm_dynamic_content .pcm-post-preview{
    padding-top: 16px;
    padding-bottom: 16px;   
}

.et_pb_pcm_dynamic_content p:empty{
    display: none;
}
.et_pb_pcm_dynamic_content .pcm_dynamic_content .et_pb_button_module_wrapper{
    margin-top: 20px;
}
.et_pb_pcm_dynamic_content .loop-archive-title{
    margin-bottom: 20px;
}

.et_pb_pcm_dynamic_content .term-group-box{
    margin-bottom: 20px;
    padding-top: 20px;
}

.et_pb_button.pcm_load_more{
    width: max-content;
    margin: 20px auto;
}

/******************************************************
    11. DSGVO Datenauszug
*******************************************************/

.sp-dsgvo form .lwb-col-6 input {
    padding: 10px;
    border-radius: 3px;
    border-color: var(--grey);
    font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
}
.sp-dsgvo form .lwb-col-3 label{
    font-family: 'Roboto Condensed',Helvetica,Arial,Lucida,sans-serif;
}
.sp-dsgvo form .lwb-col label span,
.sp-dsgvo form .lwb-col-12 label span{
    font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 300 !important;
}
.sp-dsgvo .lwb-row{
    margin-bottom: 10px;
}
.sp-dsgvo form fieldset input[type=submit]{
    font-size: 16px;
    background-color: var(--red);
    font-weight: 500;
    padding: .3em 1em;
    color: var(--white);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Roboto Condensed',Helvetica,Arial,Lucida,sans-serif;
}

/******************************************************
    12. Search Result Page
*******************************************************/

.et_pb_ajax_pagination_container .post-meta{
    font-family: 'Roboto Condensed',Helvetica,Arial,Lucida,sans-serif;
}
.et_pb_ajax_pagination_container .post-meta,
.et_pb_ajax_pagination_container .post-meta .author a,
.et_pb_ajax_pagination_container .post-meta .published{
    color: var(--black) !important;    
}

/*************************************
    13. Mobile Abstände
*************************************/
@media (max-width: 980px){
    .et-db #et-boc .et-l .et_pb_row, .et_pb_row{
        width: 90% !important;
        max-width: 90% !important;
    }
    #main-footer .container{
        width: 90% !important;
        max-width: 90% !important;
    }
    #main-header .container{
        width: 90% !important;
        max-width: 90% !important;
    }
    .et_pb_post_content .et_builder_inner_content.et_pb_gutters2 .et_pb_row,
    .et-db #et-boc .et-l .et_pb_post_content .et_builder_inner_content.et_pb_gutters2 .et_pb_row{
        width: 100% !important;
        max-width: 100% !important;
    }
}

/*************************************
    14. TB Layout Abstände
*************************************/

@media all and (min-width: 981px) {
    .et_pb_post_content .et_builder_inner_content.et_pb_gutters2 .et_pb_row,
    .et-db #et-boc .et-l .et_pb_post_content .et_builder_inner_content.et_pb_gutters2 .et_pb_row{
        width: 90% !important;
        max-width: 90% !important;
    }
}
.et_pb_post_content .et_builder_inner_content.et_pb_gutters2 .et_pb_section:first-child{
    padding: 0 !important;
}
.et_pb_post_content .et_builder_inner_content.et_pb_gutters2 .et_pb_row:first-child{
    padding-top: 0;
}
.et_pb_post_content .et_builder_inner_content.et_pb_gutters2 .et_pb_section{
    background: transparent !important;
}

.et_pb_post_content p:not(.has-background):last-of-type {
  padding-bottom: 20px;
}

/******************************************************
    15. Divi Breakpoints Beispiele
*******************************************************/

/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {

}
 
/*** Responsive Styles Tablet Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {

}
 
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {

}
 
/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {

}


.partner-carousel-scharf .owl-item .et_pb_dp_oc_custom_item,
.partner-carousel-scharf .owl-item .et_pb_dp_oc_custom_item .et_pb_module_inner,
.partner-carousel-scharf .owl-item .dp_oc_item {
  height: 206px;
}

.partner-carousel-scharf .owl-item .dp_oc_item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-carousel-scharf .owl-item .dp_oc_image_thumb {
  width: 100%;
  height: auto;
  display: block;
}

/* Schatten und Rundung auf die einheitliche Kachel verschieben */
.partner-carousel-scharf .owl-item .dp_oc_item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.30);
}

/* Die Bilddatei selbst bleibt scharf und ohne eigenen Kartenschatten */
.partner-carousel-scharf .owl-item .dp_oc_image_thumb {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Platz für den unteren Kartenschatten */
.partner-carousel-scharf .owl-stage-outer {
  padding-bottom: 24px;
}
