/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

a[data-glm-button-selector="#elektrotechnik-portfolio"] span {
	padding: 5px;
	background-color: #003399;
	color:#fff;
}
.portfolio-item-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.3s ease;

}
#mfn-visualbuilder .portfolio-item-content, .mfn-current-editing.portfolio-item-content {
	height:auto !important;
	opacity:1 !important;
	overflow:visible !important;
	display:block;
}
.portfolio-item-content:not(.active) {
	padding:0px !important;
}
.portfolio-item-content.active {
  opacity: 1;
}
.portfolio-titletext h1, .portfolio-titletext h2, .portfolio-titletext h3 {
	cursor: pointer;
}

/* Akkorden */
.accordion .question > .title:before {
	border-width: 0px 0px 0px 0px !important;
}
.accordion .question.active > .title {
	border-width: 0px 0px 0px 0px !important;
}
.accordion .question > .answer {
	box-shadow: none !important;
}
.mcb-section .mcb-wrap .mcb-item-7dbfe7fc1 .accordion .question .title {
    display: flex;
    justify-content: center;
	text-underline-offset: 0.2em; 
}
.mcb-section .mcb-wrap .mcb-item-2pohnz6m .accordion .question .title {
	display: flex;
    justify-content: center;
	text-underline-offset: 0.2em; 
}

/* Kunden */
#bild-container::before {
  content: "";
  display: block;
  height: 140px; /* Abstand nach oben */
  margin-top: -80px;
  visibility: hidden;
}

.kachel-1,
.kachel-2,
.kachel-3,
.kachel-4,
.kachel-5,
.kachel-6 {
  cursor: pointer;
}

/* Contact Form */
.wpcf7-list-item {
	margin: 0 0 0 0em !important;
}
/* Mobil ab 768px runter */
@media (max-width: 768px) {
	.mfn-menu-item-megamenu > .container {
		        max-width: 100% !important;
	}
  /* Mega-Menü Container */
  #mfn-megamenu-20 {
     position: fixed;       /* fixiert über dem Content */
    top: 106px;
    left: 0 !important;
    width: 100% !important;           /* volle Breite */
           max-height: 100%;        /* volle Höhe */
	  padding-bottom:100px;
    overflow-y: auto;      /* Inhalt scrollbar */
    background-color: #fff; /* Hintergrundfarbe */
    z-index: 9999;         /* sicher über allem */
    transform: translateX(-100%); /* komplett links versteckt */
    transition: transform 0.3s ease-in-out;
  }
	#mfn-megamenu-20 > .mfn-builder-content > .section {
		margin-top:0px
	}
  /* Menü wird geöffnet, wenn der Parent <li> .mfn-li-hover hat */
  li.mfn-li-hover > #mfn-megamenu-20 {
    transform: translateX(0)
  }

  /* Optional: Hintergrund scrollen verhindern */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
	    html .mfn-menu-item-megamenu {
        max-width: 100vw;
    }
}
