/**
* Block Name: hero
*/

/* General */

section.hero {
  overflow: hidden;
}

section.hero.swiper {
  border-bottom: 3px var(--Rot) solid;
  min-height: 600px;
}

section.hero.bild {
  border-bottom: 6px var(--Rot) solid;
  max-height: 600px;
}

section.hero .hero_image {
  height: 100%;
  max-height: 600px;
  overflow: hidden;
  width: 100%;
  position: relative;
}

section.hero .hero_image.mobile {
  /* do not remove, affects slide_content when resizing from mobile */
  position: absolute;
  z-index: -1;
}

/* Title General */

section.hero .title {
  z-index: 2;
  color: var(--Weiss) !important;
  line-height: 62px;
  text-shadow: 0px 3px 3px rgba(18, 33, 49, 0.3),
    0px 9px 4px rgba(18, 33, 49, 0.13089),
    0px 6px 14px rgba(18, 33, 49, 0.183246),
    0px 18px 30px rgba(18, 33, 49, 0.26178);
}

/* Swiper */

section.hero .swiper-container {
  height: 600px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 3px var(--Rot) solid;
}

section.hero .swiper-pagination {
  position: absolute;
  top: 300px;
  left: 15px;
  width: 150px;
  text-align: left;
  height: 20px;
}

section.hero .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 100%;
  background: transparent;
  border: 1px solid var(--Weiss);
  opacity: 1;
  margin: 0 5px;
}

section.hero .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.5);
}

section.hero .swiper-slide {
  overflow: hidden;
  width: 100% !important;
}

section.hero .slide_content {
  top: -260px;
  border-top: 1px solid var(--Weiss);
  position: absolute;
  width: 100%;
  z-index: 1;
}

section.hero .slide_content h4 {
  color: var(--Weiss);
  max-width: 100%;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

section.hero .slide_content h4 mark {
  background-color: var(--Rot);
  color: var(--Weiss);
  padding: 2px 4px;
  line-height: 1.7;
}

section.hero.swiper .logo {
  z-index: 1;
  right: 0;
  top: 445px;
}

/* Swiper End */

/* Bild */

section.hero.bild .bild_container {
  height: 600px;
}

section.hero.bild .title {
  top: -200px;
}

section.hero.bild .logo {
  top: -155px;
  right: 0;
}

/* Article Category Dependent Color Styling */

/* Aqua */

section.hero .swiper-slide.aqua .slide_content h4 mark {
  background-color: var(--AquaBlau);
}

article.category-aqua section.hero.bild,
article.category-aqua-fr section.hero.bild {
  border-color: var(--AquaBlau);
}

article.category-aqua section.hero.bild .logo svg path,
article.category-aqua-fr section.hero.bild .logo svg path {
  fill: var(--AquaBlau);
}

/* Fitness */

section.hero .swiper-slide.fitness .slide_content h4 mark {
  background-color: var(--FitnessGrun);
}

article.category-fitness section.hero.bild,
article.category-fitness-fr section.hero.bild {
  border-color: var(--FitnessGrun);
}

article.category-fitness section.hero.bild .logo svg path,
article.category-fitness-fr section.hero.bild .logo svg path {
  fill: var(--FitnessGrun);
}

/* Ice */

section.hero .swiper-slide.ice .slide_content h4 mark {
  background-color: var(--IceTurkis);
}
article.category-ice section.hero.bild,
article.category-ice-fr section.hero.bild {
  border-color: var(--IceTurkis);
}

article.category-ice section.hero.bild .logo svg path,
article.category-ice-fr section.hero.bild .logo svg path {
  fill: var(--IceTurkis);
}

/* Events */

section.hero .swiper-slide.events .slide_content h4 mark {
  background-color: var(--EventsLila);
}

article.category-events section.hero.bild,
article.category-events-fr section.hero.bild {
  border-color: var(--EventsLila);
}

article.category-events section.hero.bild .logo svg path,
article.category-events-fr section.hero.bild .logo svg path {
  fill: var(--EventsLila);
}

/* Wellness */

section.hero .swiper-slide.wellness .slide_content h4 mark {
  background-color: var(--WellnessOrange);
}

article.category-wellness section.hero.bild,
article.category-wellness-fr section.hero.bild {
  border-color: var(--WellnessOrange);
}

article.category-wellness section.hero.bild .logo svg path,
article.category-wellness-fr section.hero.bild .logo svg path {
  fill: var(--WellnessOrange);
}

/* media */

@media (max-width: 992px) {
  section.hero.swiper .slide_content {
    top: -250px;
    left: 10px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
	max-width: 90%;
  }

  section.hero.swiper .swiper-pagination {
    top: 315px;
    left: 5px;
  }

  section.hero.bild .logo {
    -webkit-transform: scale(0.5);
    -ms-transform: scale(0.5);
    transform: scale(0.5);
    top: -120px;
    right: -60px;
  }

  section.hero.swiper .logo {
    transform: scale(0.5);
    top: 483px;
  }

  section.hero .title {
    font-size: 35px;
  }
}

@media (max-width: 576px) {
  section.hero.bild {
    height: auto;
    margin-top: 60px;
  }

  section.hero.bild .title {
    top: auto;
    bottom: 0;
  }

  section.hero.bild .logo {
    transform: scale(0.3);
    top: auto;
    bottom: -55px;
  }

  section.hero.swiper {
    margin-top: 60px;
    height: auto;
  }

  section.hero.swiper .swiper-pagination {
    top: 310px;
  }

  section.hero.swiper .logo {
    transform: scale(0.3);
    top: 500px;
    right: -55px;
  }

  section.hero.swiper .slide_content h4 {
    width: 100vw;
  }
}

/* iPhone specific */

@supports (-webkit-hyphens: none) {
  section.hero .hero_image {
    max-height: none;
  }

  section.hero.swiper .slide_content h4 {
    padding-right: 15px;
  }
}
