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



/*======================================================================== */
/* Fix: Typografie und Text Spacing
/*======================================================================== */

/* Removes default bottom padding */
.custom-spacing h1,
.custom-spacing h2,
.custom-spacing h3,
.custom-spacing h4,
.custom-spacing h5,
.custom-spacing h6 {
  padding: 0;
}

/* Sets default top margin for all text module items */
.custom-spacing * + * {
  padding: 0;
  margin-top: 0.8em;
}

/* Sets top paragraph margin where para follows a heading */
.custom-spacing h1 + p,
.custom-spacing h2 + p,
.custom-spacing h3 + p,
.custom-spacing h4 + p,
.custom-spacing h5 + p,
.custom-spacing h6 + p {
  margin-top: 1em;
}

/* Sets top heading margin where heading follows a paragraph */
.custom-spacing p + h1,
.custom-spacing p + h2,
.custom-spacing p + h3,
.custom-spacing p + h4,
.custom-spacing p + h5,
.custom-spacing p + h6 {
  margin-top: 0.75em;
}

/* Sets top  margin for unordered lists */
.custom-spacing * + ul {
  margin-top: 1em;
  margin-left: 1em;
}

/* Sets top and left margins for list items in UL */
.custom-spacing ul li {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0.5em;
  margin-top: 0.5em;
}

/* Sets top and left margins for ordered lists */
.custom-spacing * + ol {
  margin-top: 1em;
  padding-left: 1em;
}

/* Sets margins and other styling for blockquote */
.custom-spacing blockquote {
  padding-bottom: 1.2em;
  padding-top: 0.5em;
  padding-left: 1em;
  margin-top: 3em;
  font-weight: 700;
}


/*======================================================================== */
/* Fix: Projekte-Grid auf der Startseite
/*======================================================================== */

.project-grid-home img {
	width: 140px;
	height: 140px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.project-grid-home article {
	margin-bottom: 20px;
}

.project-grid-home article .entry-featured-image-url {
	display:inline-block;
	float: left;
	margin-right: 20px;
	margin-bottom: 0;
}

.project-grid-home article {
	margin-bottom: 40px;
}

/*======================================================================== */
/* Fix: Home-Swiper und die Textbox darüber ziehen
/*======================================================================== */

#home-swiper {
	margin-bottom: 150px;
}

#intro-text {
	position: absolute;
	padding: 0;
	left: 50%;
	right: auto;
	margin: 0 auto;
	top: 600px;
	z-index: 100;
	transform: translate(-50%, calc(-100% + 100px));
}

/*======================================================================== */
/* Fix: News-Box auf der Startseite stylen mit Gradient
/*======================================================================== */

#home-news-box .et_pb_slide_overlay_container {
	background: rgb(9,55,78);
	background: linear-gradient(0deg, rgba(9,55,78,1) 0%, rgba(9,55,78,0) 100%);
}

#home-news-box .et_pb_slider_container_inner {
	vertical-align: bottom;
}

#home-news-box .et_pb_slide_description {
	opacity: 1;
	animation: unset;
	padding: 6% 0;
}

/*======================================================================== */
/* Fix: Hauptmenü > Breakpoint für Burger-Menü verändert
/*======================================================================== */

@media (max-width: 1200px) {
    .et_pb_fullwidth_menu .et_mobile_nav_menu, .et_pb_menu .et_mobile_nav_menu {
        display: flex;
        float: none;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    
    .et_pb_fullwidth_menu .et_pb_menu__menu, .et_pb_menu .et_pb_menu__menu {
        display: none;
    }
    .et_pb_fullwidth_menu .et_pb_menu__wrap, .et_pb_menu .et_pb_menu__wrap {
        justify-content: flex-end;
    }
    .et_mobile_menu {
        list-style-type:none !important;
        top:100%;
    }
}

/*======================================================================== */
/* Fix: Hauptmenü > Submenü-Box näher ans Parent holen
/*======================================================================== */

.et_pb_menu .et_pb_menu__menu>nav>ul>li>ul {
    top: calc(100% - 20px);
    left: 0;
}

/*======================================================================== */
/* Fix: Footer Menü > Kein Burger-Icon auf Smartphone */
/*======================================================================== */

@media (max-width: 1200px) {
footer .et_pb_menu .et_pb_menu__menu {
	display: flex !important;
}
footer .et_pb_menu .et_mobile_nav_menu {
		display: none!important;
	}
}


/*======================================================================== */
/* Fix: Button Style Gutenberg überschreiben
/*======================================================================== */

.wp-block-button .wp-element-button, .wp-block-button__link {
	background-color: #F06E00;
	border-radius: 0;
	font-size:16px;
	padding: calc(0.667em + 0px) calc(1.333em + 10px);
	transition: background-color 300ms ease 0ms;
}

a.wp-element-button:hover {
	background-color: #09374E;

}

/*======================================================================== */
/* Fix: Blog Post ganze Fläche Klickbar machen
/*======================================================================== */


.et_pb_blog_grid .et_pb_post, .et_pb_posts .et_pb_post {
position: relative;
}

/*make the title link spread over the entire post*/

.et_pb_blog_grid .et_pb_post .entry-title a:after, .et_pb_posts .et_pb_post .entry-title a:after {
position: absolute;
display: block;
content: "";
width: 100%;
height: 100%;
left: 0;
top: 0;
}

/*change the mouse cursor into a pointer*/

.et_pb_blog_grid .et_pb_post:hover, .et_pb_posts .et_pb_post:hover {
cursor: pointer;
}


/*======================================================================== */
/* Blog Post Hover > Scale
/*======================================================================== */


.et_pb_post {
	transform: scale(1.00);
  transition: transform 300ms ease 0ms;
}

.et_pb_post:hover {
	transform: scale(1.05);
  transition: transform 300ms ease 0ms;
}

/*======================================================================== */
/* Tabellen-Styles anpassen
/*======================================================================== */


.wp-block-table {
	margin-top: 2em;
}

.wp-block-table td {
	border: none;
	padding-left:0;
	vertical-align: text-top;
}

.wp-block-table tr {
	border-top: 1px solid #DCDAD8;
	transition: background-color 300ms ease 0ms;
}

.wp-block-table tr:hover {
	background-color: rgba(220, 218, 216, 0.25);
}


/*======================================================================== */
/* Helper Classen > in Divi genutz > Sollten selbsterklären sein
/*======================================================================== */

.disable-links a {
	pointer-events: none;
	text-decoration: none;
} 

.hyphens-auto {
	hyphens: auto;
	-webkit-hyphenate-limit-before: 6;
	-webkit-hyphenate-limit-after: 4;
	-ms-hyphenate-limit-chars: 10 6 4;
	hyphenate-limit-chars: 10 6 4;
}

.ratio-3x2,
.ratio-3x2 .et_pb_slide {
	aspect-ratio: 3 / 2;
}

