/*---------------------------------------------------------------------------------

 Theme Name:   Divi Child Theme
 Theme URI:    https://lukas-fischer.de/
 Description:  Child Theme für Divi erstellt von Lukas Fischer.
 Author:       Lukas Fischer
 Author URI:   https://lukas-fischer.de
 Template:     Divi
 Version:      1.1.9


------------------------------ ADDITIONAL CSS HERE ------------------------------*/


/* Allgemein: Trennlinien für alle Menüebenen */
#top-menu .sub-menu li {
  border-bottom: 2px solid #C00000; /* oder dein gewünschtes Rot */
  padding: 8px 12px;
}

/* Letztes Element: keine Linie */
#top-menu .sub-menu li:last-child {
  border-bottom: none;
}

/* 3. Ebene (Sub-Sub-Menü) – saubere Position rechts */
#top-menu .sub-menu li ul.sub-menu {
  top: 0 !important;
  left: 100% !important;
  position: absolute !important;
  z-index: 9999 !important;
  background: #fff;
  min-width: 260px; /* ggf. anpassen */
  border-left: 2px solid #C00000; /* vertikale Linie links für Struktur */
}

/* Optional: Breite der Links angleichen */
#top-menu .sub-menu li ul.sub-menu li a {
  width: 100%;
  display: block;
  padding: 6px 20px;
}





/* Erste und zweite Ebene im Dropdown-Menü: Trennlinie zwischen Listenelementen */ #top-menu .sub-menu li { border-bottom: 2px solid #e0e0e0; /* dezente graue Linie */ padding: 8px 12px; }

/* Letztes Element ohne Linie */
#top-menu .sub-menu li:last-child {
  border-bottom: none;
}


/* Increase inner width of drop-down menu */
.et-menu li li a {
    padding: 6px 20px; 
    width: 360px !important;
}

#top-menu .sub-menu li a {
    width: 360px !important;
}




/* Increase width of drop-down menu*/
.nav li ul {
    position: absolute;
    padding: 20px 0; 
    width: 380px;
    
}

.wp-block-list li {
  font-size: 17px !important;
  line-height: 2 !important; /* Erhöht den Abstand zwischen den Punkten */
  margin-bottom: 15px !important; /* Fügt zusätzlichen Abstand zwischen den Listenelementen hinzu */
}

.dp-dfg-header .entry-title {
  margin-top: 10px !important; /* kannst du nach Wunsch anpassen */
}




.df-animation { 
    animation: animation-example; 
    animation-duration: 2s; 
    animation-delay: 0s!important;
}
@keyframes animation-example {
    0% {opacity: 0; transform: translatey(50px);}
    100% {opacity: 1; transform: translatey(0);}
}
.df-activebutton {
     filter: brightness(50%);
}





/* Abstand für h3 nach unten im Blog*/

h2.wp-block-heading {
  margin-bottom: 16px;
}


h3.wp-block-heading {
  margin-bottom: 16px;
}

/* Abstand für h4 nach unten im Blog*/

h4.wp-block-heading {
  margin-bottom: 16px;
}

/*Kontaktformular*/

.et_contact_bottom_container {
    float: none;
    text-align: right;
    display: block !important;
  margin-top:30px;
  margin-left:20px;
}

@media (min-width: 768px) and (max-width: 991.98px){
  .et_contact_bottom_container {
     margin-top: -17px;
  }
}

@media (min-width: 300px) and (max-width: 767.98px){
  .et_contact_bottom_container {
     margin:25px;
    text-align:center;
  }
}




/*design back to top button*/

.et_pb_scroll_top.et-pb-icon {
	    background: rgba(233,85,13,0.67);
		bottom: 280px;
		right: 20px;
    	border-radius: 25px;
}

.et_pb_scroll_top.et-pb-icon:hover {
	    background: #e9550d;
		bottom: 280px;
		right: 20px;
    	border-radius: 25px;
}

.et_pb_scroll_top.et-visible {
    opacity: 1;
    -webkit-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
    -moz-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
    -o-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
    animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
} 


/*mobil reihenfolge ändern anleitung:

display: flex;
flex-wrap: wrap;   ->  in mobile custom css der entsprechenden row einfügen

dann: order:1; order:2; usw bei den entsprechenden spalten in die mobile custom css einfügen

*/


/*place button modules next to each other in the same column -> klasse .inline-buttons in divi row einfügen, damit aktiv*/

.inline-buttons .et_pb_button_module_wrapper {
    display: inline-block;
}

.inline-buttons {
text-align: center !important;
}




/* CSS for buttons - Attention Grabber - Pulse */
#page-container .et-l .et_pb_section .dl-pulse {
  animation: button-pulse 2.0s infinite;
}

@keyframes button-pulse {

  0%,
  30%,
  60%,
  100% {
    transform: scale(1);
  }

  8%,
  12% {
    transform: scale(1.03);
  }
}

#page-container .et-l .et_pb_section .dl-pulse:hover {
  animation: none;
}




/*prevent horizontal scroll on mobile*/

@media all and (max-width: 980px) {
	html,
	body {
		overflow-x: hidden;
	}
	body {
		position: relative
	}
}

@media all and (max-width: 980px) {
#page-container {overflow:hidden;}	
}
