/*======================================
Theme Name: Child-Theme
Theme URI: http://www.leadohm.de/wp-content/themes/generatepress-child/
Description: GeneratePress Child Theme
Version: 1.0
Author: Manuel Zink
Template: generatepress
======================================*/

/*========================*/
/*       Navigation       */
/*========================*/
nav#generate-slideout-menu.main-navigation.offside {
  width: 300px;
}

.offside-js--is-left.slide-opened .slideout-overlay button.slideout-exit {
  left: 300px;
}

.main-navigation ul ul {
  box-shadow: none !important;
}

#generate-slideout-menu ul {
  display: block;
}

.slideout-navigation.main-navigation .main-nav ul ul {
  padding: 0 20px;
}

.slideout-navigation .dropdown-menu-toggle {
  opacity: 0;
  margin-left: -0.8em;
  visibility: hidden;
}

/*========================*/
/*      MasterSlider      */
/*========================*/
.masterslider-outer-wrapper {
  padding-left: 5vw;
  padding-right: 5vw;
  box-sizing: border-box;
}

.masterslider-wrapper {
  max-width: 850px;
  width: 100%;
  margin: 20px auto 150px;
  padding: 10px;
  background-color: #fff;
  box-sizing: border-box;
}

.masterslider-wrapper .master-slider {
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}

/*========================*/
/*         Zitat          */
/*========================*/
.zitat {
  padding: 40px 20px 20px 70px;
  position: relative;
  font-size: 1.5em;
  color: #1d1d1d;
  border: none;
}

.zitat:before {
  content: '\FF02';
  font-size: 55px;
  width: 60px;
  line-height: 100px;
  font-weight: 550;
  text-align: left;
  color: #551a8b;
  position: absolute;
  top: 0;
  left: 0;
}

/*========================*/
/*     Buch-Sektion       */
/*========================*/
.scroll-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  padding: 0;
  box-sizing: border-box;
  gap: 0.5rem;
}

.scroll-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
  background: transparent;
}

.scroll-button {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #1d1d1d;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.scroll-button:hover,
.scroll-button:focus {
  color: #551a8b;
  background: #fff;
  outline: 2px solid #551a8b;
  transform: scale(1.1);
}

.scroll-hints {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  opacity: 0.6;
  font-style: italic;
  font-weight: bold;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll > * {
  flex: 0 0 auto;
  width: clamp(250px, 30vw, 400px);
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.horizontal-scroll img {
  height: 400px;
  width: auto;
  object-fit: cover;
}

.gb-element-762c6e87 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/*========================*/
/*        Accordion        */
/*========================*/
.aab__accordion_title,
.aab__accordion_subheading,
.aab__accordion_body,
.aab__accordion_component,
.aab__accordion_component p {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

/*========================*/
/*     Video Layouts      */
/*========================*/

.mobile-video-wrapper {
  display: block; /* Für Test-Zwecke dauerhaft sichtbar machen */
  position: relative;
  overflow-x: hidden;
  margin-bottom: 2rem;
}

.mobile-video-scroll {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 1em;
  padding-left: 1rem;
}

.mobile-video-scroll .video-box {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}

.mobile-video-scroll .video-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.mobile-video-scroll .video-box figcaption {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5em;
  line-height: 1.4;
}

.gb-element-swipehint-video {
  text-align: center;
  font-size: 1rem;
  opacity: 0.6;
  font-style: italic;
  font-weight: bold;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 0.5em;
}


/*========================*/
/*     Media Queries       */
/*========================*/
@media (max-width: 768px) {
  .mobile-hint {
    display: inline;
  }

  .desktop-hint,
  .scroll-buttons-container .scroll-button,
  .desktop-video-accordeon {
    display: none;
  }

  .mobile-video-wrapper {
    display: block !important;
  }

  .wp-block-aab-horizontal-accordion .aahb_accordion_body {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .wp-block-aab-horizontal-accordion-item {
    flex-wrap: wrap !important;
  }

  .aahb_accordion_body > div {
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .mobile-hint {
    display: none;
  }

  .desktop-hint {
    display: inline;
  }

  .gb-element-swipehint-video {
    display: none;
  }
	
	.mobile-video-wrapper {
    display: none;
  }
}
