/*
 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.2
*/
 
/* +--------------------
 * | 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;
	}
}

/* Öffnungszeiten · FITNESS Inform Oberstdorf */
.tablepress.inform-oberstdorf-zeiten {
	--inform-zeiten-gold: #c1b87a;
	--inform-zeiten-linie: #5a574e;
	width: 100%;
	margin: 0;
	border: 1px solid var(--inform-zeiten-linie);
	border-collapse: separate;
	border-spacing: 0;
	font-size: 16px;
	line-height: 1.6;
}

.tablepress.inform-oberstdorf-zeiten > tbody > tr > :is(th,
td) {
	padding: 10px 18px;
	border: 0;
	border-top: 1px solid var(--inform-zeiten-linie);
	background: #353535;
	color: #f5f4f0;
	text-align: left;
	vertical-align: top;
}

.tablepress.inform-oberstdorf-zeiten > tbody > tr > :first-child:not([colspan]) {
	width: 43%;
	font-weight: 600;
}

.tablepress.inform-oberstdorf-zeiten > tbody > tr > :nth-child(2) {
	font-variant-numeric: tabular-nums;
}

.tablepress.inform-oberstdorf-zeiten > tbody > tr:first-child > :is(th,
td) {
	padding-top: 14px;
	padding-bottom: 14px;
	border-top: 0;
	background: var(--inform-zeiten-gold);
	color: #292929;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 800;
}

.tablepress.inform-oberstdorf-zeiten > tbody > tr > [colspan="2"] {
	background: #292929;
	color: var(--inform-zeiten-gold);
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 700;
}

.tablepress.inform-oberstdorf-zeiten > tbody > tr:last-child > [colspan="2"] {
	color: #e7e4dc;
	font-family: inherit;
	font-size: .875em;
	font-weight: 600;
}

@media (max-width: 480px) {
	.tablepress.inform-oberstdorf-zeiten {
		font-size: 14px;
	}

	.tablepress.inform-oberstdorf-zeiten > tbody > tr > :is(th,
	td) {
		padding-right: 10px;
		padding-left: 10px;
	}
}

/* Kursplan · FITNESS Inform Oberstdorf */
.tablepress.inform-oberstdorf-kursplan {
	--inform-kursplan-gold: #c1b87a;
	--inform-kursplan-dunkel: #292929;
	--inform-kursplan-flaeche: #353535;
	--inform-kursplan-linie: #605c50;
	--inform-kursplan-text: #f5f4f0;
	display: block;
	width: 100%;
	margin: 0;
	border: 0 !important;
	background: transparent;
	font-size: 15px;
	line-height: 1.45;
}

.tablepress.inform-oberstdorf-kursplan > tbody {
	display: grid;
	grid-template-columns: repeat(5,minmax(0,1fr));
	gap: 12px;
}

.tablepress.inform-oberstdorf-kursplan > tbody > tr {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: none; /* 1px solid var(--inform-kursplan-linie); */
	background: var(--inform-kursplan-dunkel);
}

.tablepress.inform-oberstdorf-kursplan > tbody > tr > :is(th,
td) {
	display: block;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	text-align: left;
}

.tablepress.inform-oberstdorf-kursplan > tbody > tr > :first-child {
	background: var(--inform-kursplan-gold);
	color: var(--inform-kursplan-dunkel);
	font-family: Montserrat, Arial, sans-serif;
	font-size: 14px;
	font-weight: 800;
}

.tablepress.inform-oberstdorf-kursplan > tbody > tr > td {
	border: 1px solid var(--inform-kursplan-linie);
	border-top: 0;
	background: var(--inform-kursplan-flaeche);
	color: var(--inform-kursplan-text);
	overflow-wrap: anywhere;
	white-space: pre-line;
	font-weight: 600;
}
/*
.tablepress.inform-oberstdorf-kursplan > tbody > tr > td:not(:last-child) {
	border-bottom: 1px solid var(--inform-kursplan-linie);
}*/

.tablepress.inform-oberstdorf-kursplan > tbody > tr > td:empty {
	display: none;
}

.tablepress.inform-oberstdorf-kursplan > tbody > tr > td:not(:first-child)::first-line {
	color: var(--inform-kursplan-gold);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
	.tablepress.inform-oberstdorf-kursplan > tbody {
		grid-template-columns: minmax(0,1fr);
		gap: 16px;
	}

	.tablepress.inform-oberstdorf-kursplan > tbody > tr > :is(th,
	td) {
		padding-right: 14px;
		padding-left: 14px;
	}
}

/* Desktop-Menü in Divi */
#top-menu li.menu-mitglied-werden > a,
.et-menu li.menu-mitglied-werden > a {
  position: relative;
  isolation: isolate;
  padding-left: 14px;
  padding-right: 14px;
  color: #242424 !important;
  font-weight: 700;
}

#top-menu li.menu-mitglied-werden > a::before,
.et-menu li.menu-mitglied-werden > a::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8px;
  left: 0;
  right: 0;
  height: calc(1em + 16px);
  background-color: #C1B879;
  border-radius: 4px;
}

/* Mobiles Divi-Menü */
.et_mobile_menu li.menu-mitglied-werden > a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  background-color: #C1B879;
  color: #242424 !important;
  font-weight: 700;
}

/* Bildunterschrift ausblenden */
.mfp-bottom-bar  {
	display:none;
}

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

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

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

/* +--------------------
 * | Gallery mobil 2 columns
 * +--------------------
 */

@media (max-width: 479px) {
    .et_pb_gallery_grid .et_pb_gallery_items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .et_pb_gallery_grid .et_pb_gallery_item {
        width: 100% !important;
        margin: 0 !important;
        clear: none !important;
    }
}

@media (max-width: 479px) {
    .et_pb_gallery_items::before,
    .et_pb_gallery_items::after {
        display: none;
    }
}