/*
 Theme Name:     Divi Child Theme
 Theme URI:      http://www.elegantthemes.com
 Description:    Child Theme for Divi Theme by Elegant Themes
 Author:         Divi.world
 Author URI:     http://divi.world
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Ab hier kannst du deine CSS-Anpassungen eintragen
------------------------------------------------------- */

/* Fonts */
h1, h2, h3 { text-wrap: balance; }

/* HEader */
.topbarlogos .et_pb_column {
	display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbarlogos .et_pb_module { display: inline-block; margin: 0 auto !important; }
.topbarlogos .et_pb_module img { height: 40px !important; }

/* Listen */
#left-area ol, .entry-content ol, .et-l--body ol, .et-l--footer ol, .et-l--header ol {
	list-style-position: outside;
	padding-left: 1.1em;
}

/* Customs */
a[href^="mailto:"] { text-transform: lowercase; }

/* Breadcrumb */
.breadcrumb_last {
	width: 250px;
  	white-space: nowrap;
  	overflow: hidden;
  	text-overflow: ellipsis;
}

/* Inline Menu */
.inline-menu .et_pb_menu__menu>nav>ul { display: flex; flex-wrap: wrap; padding-left: 0 !important; align-items: flex-start; justify-content: space-between;}
.inline-menu li, .inline-menu li a { margin: 0 !important; padding: 0 !important; }
.inline-menu li { width: calc(33.333% - 10px); margin-bottom: 15px !important; }
.inline-menu li a {
	padding: .5em .7em !important;
	// background: #0339A6;
	background: #fff;
	color: #000;
	width: 100%;
	line-height: 1.3em;
}

/* Inline Button */
.inline-btn > .et_pb_button_module_wrapper { display: inline-block; margin-right: 1em; margin-bottom: 1em !important; }
.inline-btn > .et_pb_button_module_wrapper:last-of-type { margin-right: 0; }

/* Inline Bilder */
.inline-img .et_pb_image {
	display: inline-block;
	margin-right: 35px !important;
}

/* Keyfacts */
.keyfact-in-blue { 
	color: #fff;
	font-size: 20px;
	line-height: 1.1em;
}

/* Termin Buchen Box */
.et_pb_module.et_pb_blurb.termin-buchen {
	border-radius: 9px;
	max-width: 450px;
	padding-left: 15px !important;
}
.et_pb_blurb.termin-buchen .et_pb_main_blurb_image { margin-bottom: 12px; }

/* AG Links */
.ag-links-wrapper a {
	display: inline-block;
	font-size: 16px;
	color: #fff;
    background-color: #0339a6;
    border-width: 0px !important;
    border-radius: 7px;
    margin-bottom: 7px;
    font-weight: 500;
    padding: .3em 1em;
    line-height: 1.7em !important;
}

/* Zert Wrapper */
.zert-wrapper { padding: 10px; border-radius: 10px; border: 3px solid #f4f4f4; }
.zert-wrapper .et_pb_code_inner {
	display: flex;
	flex-wrap: wrap;
}
.zert-wrapper .et_pb_code_inner div { padding: 5px; width: 33.333%; height: auto; display: flex; flex-direction: column; align-items:center; ustify-content: flex-start; }

/* Akkordeon */
.et_pb_accordion .et_pb_accordion_item { margin-bottom: 1em; padding: 1em !important; }

/* Counter */
.custom_counter_title { font-size: 16px; line-height: 1.2em; text-transform: uppercase; color: #fff; font-weight: bold; }
.et_pb_number_counter .percent-value:before { font-size: 75%; }
.more-than .percent-value:before { content: '> '; }
.ca .percent-value:before { content: 'ca. '; }

/* Icon Row */
.icon-row-wrapper .et_pb_text_inner ,
.icon-row-wrapper .et_pb_text_inner p{
	font-size: 16px;
    line-height: 1.2em;
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
}

/* custom-logo-gallery */
.custom-logo-gallery .et_pb_column { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
.custom-logo-gallery .et_pb_column .et_pb_image { width: 250px; margin-right: 50px;}

/* Studien */
.studien-grid .dp-dfg-item .dp-dfg-header:hover { cursor: pointer; text-decoration: underline;}
.studien-grid .dp-dfg-item:not(.active) .dp-dfg-content { display: none; }
.studien-grid .dp-dfg-item .dp-dfg-header:after {
	content: '+';
	position: absolute;
	color: #0339a6;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	line-height: 1em;
	display: inline-block;
}
.studien-grid .dp-dfg-item.active .dp-dfg-header:after { content: '–'; }

/* Kooperationen Studienzentrum */
.kooperationen-wrapper .et_pb_blurb_content { max-width: none; }
.kooperationen-wrapper .et_pb_main_blurb_image { width: 150px; }
.kooperationen-wrapper .et_pb_main_blurb_image img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.kooperationen-wrapper .et_pb_blurb { margin-bottom: 45px !important; }
.kooperationen-wrapper .et_pb_blurb:last-child { margin-bottom: 0; }

/* Subpage Menu */
.subpagemenu:before { content: 'Hier finden Sie spezifischere Informationen'; font-weight: 600; margin-bottom: 5px; display: inline-block; }
.subpagemenu .et_pb_menu__wrap { justify-content: flex-start; }
.subpagemenu .et_pb_menu__menu { display: block !important; background: #0339a6; padding: 10px 15px; border-radius: 7px;}
.subpagemenu .et_pb_menu__menu a { color: #fff; }
.subpagemenu .et_pb_menu__menu a:before { content: '»'; margin-right: 5px; }
.subpagemenu .et_pb_menu__menu li { display: block !important; }
.subpagemenu .et_pb_menu__menu li:not(:last-child):after { content: ''; display: block; height: 1px; width: 50%; background: #fff; opacity: .5; }
.subpagemenu .et-menu { display: flex; flex-direction: column; }
.subpagemenu .et_mobile_nav_menu { display: none !important; }

/* Blogpost Single */
.wp-caption {
	border: 0px solid #ddd;
    text-align: left;
    background-color: transparent;
    margin-bottom: 10px;
    max-width: 100%;
    padding: 0;
}
.wp-caption p.wp-caption-text { padding: 0; }

/* Team */
.teamgrid .dp-dfg-skin-default .dp-dfg-image img {width: auto; aspect-ratio: 125/187; width: 125px; height: auto; object-fit: cover; object-position: top center;}
.teamgrid .dp-dfg-layout-grid .dp-dfg-image { margin: 10px 0; }
.teamgrid .dp-dfg-layout-grid .dp-dfg-item { display: flex; flex-direction: column;  }
.teamgrid .dp-dfg-skin-default .dp-dfg-item>* { padding: 0 0 10px 0; }
.et_pb_module.et_pb_text.team-headline { margin-bottom: 5px; }

/* Sprechstunden */
#sprechstunden .et_pb_row .et_pb_column_1_3 .et_pb_text { padding: 1em; background: #fff; height: 100%; }
#sprechstunden .et_pb_row .et_pb_column_1_3 .et_pb_text > div { display: flex; flex-direction: column; height: 100%; }
#sprechstunden .et_pb_row .et_pb_column_1_3 .et_pb_text > div > *:nth-last-child(2) { flex: 1; }

/* Patienteninformationen */
#patienteninformationen .et_pb_row .et_pb_column_1_3 { display: flex; flex-direction: column; background:#fff; padding: 1em; }
#patienteninformationen .et_pb_row .et_pb_column_1_3 > div:first-child { flex: 1; }

/* Tagesablauf */
.third-grid .et_pb_column { display: flex; flex-direction: row; align-items:flex-start; justify-content: flex-start; flex-wrap: wrap; }
.third-grid .et_pb_column > div { width: 30%; } 

/* Raster Klasse White */
.raster-white .et_pb_row .et_pb_column { display: flex; flex-direction: column; padding: 1em; }
.raster-white.et_pb_with_background .et_pb_row:not(.nobg) .et_pb_column:not(.et_pb_column_empty) { background:#fff; }
.raster-white:not(.et_pb_with_background) .et_pb_row:not(.nobg) .et_pb_column:not(.et_pb_column_empty) { background:#f4f4f4;  }
.raster-white .et_pb_row:not(.nobg) .et_pb_column > div:nth-last-child(2) { flex: 1; }

/* Akkordeon */
.et_pb_toggle_content ol li:not(:last-child) { margin-bottom: 1em; }
body.page-id-1314 .et_pb_toggle_content h3 { font-size: 16px; }

/* AGs */
.kontakt-block { display: inline-block; width: auto; margin: 0 25px 25px 0;  }
.kontakt-block img {aspect-ratio: 150/225; object-fit: cover; object-fit: top center; }
.team-ag img { max-width: 150px; aspect-ratio: 150/225; object-fit: cover; object-fit: top center;}

/* Sarkomchirurgie */
body.page-id-1534 .studien-grid .dp-dfg-item { display: none; }
body.page-id-1534 .studien-grid .dp-dfg-item.post-2957 { display: block; }
.sarkomkontakt .et_pb_button_module_wrapper:first-of-type { margin-top: 20px; }
.sarkomkontakt .et_pb_button_module_wrapper { margin-bottom: 10px !important; } 
.sarkomkontakt img { max-height: 100px; height:100%; width: auto; margin: 0 10px 10px 0; }
.sarkomkontakt img:first-child { margin-top: 50px; }
.sarkomkontakt img:last-child { max-height: 60px; }

/* Bauchspeicheldrüse / Pankreas */
body.page-id-2938 .studien-grid .dp-dfg-item { display: none; }
body.page-id-2938 .studien-grid .dp-dfg-item.post-2956 { display: block; }

/* Events / Veranstaltungen */
.ecs-event-list li { margin-bottom: 1em; }
.ecs-event-list li .entry-title { padding-bottom: 0; }

/* Impressum & Datenschutz */
.legals-wrapper h3 { margin-top: 15px; }

/* Mobile */
@media ( max-width: 1260px ) {
	.et_pb_number_counter .percent { height: 60px !important; }
	.et_pb_number_counter .percent p { font-size: 60px !important; line-height: 60px !important; }
}

@media ( max-width: 1050px ) {
	.et_pb_number_counter .percent { height: 40px !important; }
	.et_pb_number_counter .percent p { font-size: 40px !important; line-height: 40px !important; }
}

@media ( max-width: 980px ) {
	.et_pb_section_0 > .et_pb_row_0 { flex-direction: column; }
	.reverse-columns { display: flex; flex-direction: column-reverse; }
	.reverse-columns > div:last-child { margin: 15px 0 35px !important; }
}