/*
 Theme Name:     Divi Child
 Theme URI:      https://workout-verlag.de/
 Description:    Divi Child Theme for our clients
 Author:         Torsten Landsiedel
 Author URI:     https://workout-verlag.de/
 Template:       Divi
 Version:        1.0.0
*/

/* +--------------------
 * | Menu
 * +--------------------
 */

.et_menu_container li.highlight a {
	background: #B19A70;
	padding: 10px !important;
	color: #fff !important;
	border: 2px solid #B19A70;
}

.et_menu_container li.highlight a:hover {
	background: #fff;
	color: #B19A70 !important;
	opacity: 1 !important;
	border: 2px solid #B19A70;
}

@media only screen and (min-width: 981px) {
  .et-fixed-header #top-menu li.highlight.current-menu-ancestor > a, 
  .et-fixed-header #top-menu li.highlight.current-menu-item > a, 
  .et-fixed-header #top-menu li.highlight.current_page_item > a {
    color: #fff !important;
  }
  .et_menu_container li.highlight {
    padding-bottom: 1.5em;
  }
}

@media only screen and (min-width: 981px) {
  .et-fixed-header #top-menu li.highlight.current-menu-ancestor > a:hover, 
  .et-fixed-header #top-menu li.highlight.current-menu-item > a:hover, 
  .et-fixed-header #top-menu li.highlight.current_page_item > a:hover {
    color: #B19A70 !important;
  }
}

/* +--------------------
 * | Changing the Column Stacking Order On Mobile
 * +--------------------
 */

@media all and (max-width: 980px) {
	/*** wrap row in a flex box ***/
	.custom_row {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: wrap; /* Safari 6.1+ */
		flex-wrap: wrap;
	}
	/*** custom classes that will designate the order of columns in the flex box row ***/
	.first-on-mobile {
		-webkit-order: 1;
		order: 1;
	}
	.second-on-mobile {
		-webkit-order: 2;
		order: 2;
	}
	.third-on-mobile {
		-webkit-order: 3;
		order: 3;
	}
	.fourth-on-mobile {
		-webkit-order: 4;
		order: 4;
	}
	/*** add margin to last column ***/
	.custom_row:last-child .et_pb_column:last-child {
		margin-bottom: 30px;
	}
}

/* Leistungen mobil auch zweispaltig */
@media (max-width: 479px) {
  .leistungen.et_pb_row .et_pb_column.et_pb_column_1_4 {
    width: 47.25% !important;
	margin: 0 5.5% 0 0;
  }
  .leistungen.et_pb_row_4col > .et_pb_column.et_pb_column_1_4:nth-child(2n) {
    margin-right: 0;
  }
}


/* +--------------------
 * | Center default footer correctly
 * +--------------------
 */

#et-footer-nav .bottom-nav li:last-child {
  padding-right: 0;
}

.et-social-icons li:first-child {
  margin-left: 0;
}