/* ============================================================
   Hero (Startseite) — Nachbau der Oxygen intro-section
   Werte 1:1 aus universal.css / 12.css (Element-IDs) übernommen.
   Breakpoints: 1920 / 1399 / 767 / 479 px (+ max-height 780px)
   ============================================================ */

.hero {
  overflow: hidden;
  width: 100%;
}

.hero .section-inner {
  max-width: 100%;
  padding: 0;
}

/* --- Intro-Wrapper (Original: .intro-section) --- */
.hero-intro {
  width: 100%;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding-top: 100px; /* Original: @1920 */
}

/* --- Slider-Gerüst (Original: .ct-slider / .unslider / container+ul) --- */
.hero-slider {
  width: 100%;
  height: 954px;
}

.hero-slider-frame {
  position: relative;
  padding: 0 40px;
}

.hero-slider-track {
  position: relative;
  overflow: hidden;
}

/* Slides: fade — inaktive absolut/unsichtbar, aktive im Fluss */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  opacity: 0;
  transition: .5s ease;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide.is-active {
  position: relative;
  z-index: 10;
  opacity: 1;
  transition: none;
}

/* --- Spaltenlayout pro Slide --- */
.hero-slide-columns {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

/* Linke Spalte: Text-Inhalt */
.hero-slide-col-content {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 50%;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right; /* Original: @1920 */
  padding: 300px 20px 20px;
}

.hero-slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 700px;
  position: relative;
  z-index: 10;
}

.hero-slide:nth-child(n+3) .hero-slide-content {
  margin-right: -68px; /* Original: Slides 3-6 @1920 */
}

/* Headline */
.hero-slide-headline {
  font-weight: 400;
  color: #fdfeff;
  margin: 0 -350px 12px 0;
  text-align: left;
  position: relative;
  bottom: 50px;
  opacity: 0;
  transition: 1s ease;
  transition-delay: .4s;
}

.hero-slide:first-child .hero-slide-headline {
  margin-right: -250px;
}

.hero-slide.is-active .hero-slide-headline {
  opacity: 1;
  bottom: 0;
}

.hero-slide-headline span {
  display: inline-block;
  color: #32b4a2;
}

/* Text */
.hero-slide-text {
  font-size: 26px;
  color: #fdfeff;
  text-align: left;
  margin: 0 0 14px 60px;
  min-width: 700px;
  max-width: 100%;
  position: relative;
  opacity: 0;
  transition: 1s ease;
  transition-delay: .75s;
}

.hero-slide.is-active .hero-slide-text {
  margin-left: 0;
  opacity: 1;
}

/* Button (ergänzt btn-xl-primary/btn-el-right aus base.css) */
.hero-slide-btn {
  display: block;
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-transform: capitalize;
  position: relative;
  bottom: -50px;
  opacity: 0;
  transition: .5s ease;
  transition-delay: 1s;
}

.hero-slide:first-child .hero-slide-btn {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-slide.is-active .hero-slide-btn {
  opacity: 1;
  bottom: 0;
}

.hero-slide-btn:before {
  content: "";
  background: var(--btn-arrow-image);
  background-size: contain;
  width: 20px;
  height: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  position: absolute;
  transition: var(--global-transition);
}

.hero-slide-btn:hover:before {
  right: 15px;
}

/* Rechte Spalte: Wellen + Bild */
.hero-slide-col-visual {
  display: flex;
  flex-direction: column;
  width: 50%;
  text-align: left;
  align-items: center;
  padding: 20px 0 20px 20px; /* padding-right:0 @1920 */
}

.hero-slide-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  position: relative;
  margin-left: -150px;
  margin-right: -40px; /* Original: @1920 */
}

.hero-waves {
  width: 100%;
  max-width: 800px;
  opacity: .3;
  transition: 1s;
  transition-delay: 1s;
}

.hero-slide:first-child .hero-waves {
  opacity: .7;
}

/* SVG bleibt inline (wie im Original) — der Zeilen-Descender
   macht den Wrapper ~9px höher, das Bild zentriert sich identisch. */
.hero-waves-svg {
  width: 100%;
}

.hero-wave {
  opacity: 0;
  transition: opacity .1s;
}

@keyframes heroFadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: .3; }
}

.hero-wave-1 { animation: heroFadeInOut 3s .5s infinite; }
.hero-wave-2 { animation: heroFadeInOut 3s 1s infinite; }
.hero-wave-3 { animation: heroFadeInOut 3s 1.5s infinite; }

.hero-slide-image {
  width: 100%;
  height: auto;
  max-width: 755px;
  position: absolute;
  top: 49.5%;
  transform: translateY(-50%);
  left: 100px;
  opacity: 0;
  transition: left 1.2s ease, opacity 1.5s ease;
  transition-delay: .25s;
}

.hero-slide.is-active .hero-slide-image {
  left: 20px;
  opacity: 1;
}

/* --- Pfeile (Original: .unslider-arrow) --- */
.hero-arrow {
  position: absolute;
  z-index: 998;
  left: auto;
  right: calc(50% - 694px);
  width: 45px;
  height: 45px;
  margin-top: -16px;
  padding: 0;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  overflow: hidden;
  text-indent: -999em;
  background: var(--secondary-1000) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAQAAABuQZ3IAAAAi0lEQVR4AU3OISBEQQBAwS0AACS9NxqQgCZpkiYBVddFvWhAAUABAPQCAGC4g/0vTnrBqCfDIZl70J+kMUBPpEwT4FNXxBxz4F1HxHyr4EVTxBLb4EFNxEon4CJSlVNw9AcV9sC16h8osgke1P1ArgXwouVvdQq86ww/GQefusNf7kBviBlxpT8k+gL/Wox4r1d4MwAAAABJRU5ErkJggg==") no-repeat scroll 50% 50% / 7px 11px;
  transition: background .15s;
}

.hero-arrow:hover {
  background-color: var(--primary-1000);
}

.hero-arrow--next {
  top: 49%;
}

.hero-arrow--prev {
  top: calc(50% + 50px);
  transform: rotate(-180deg);
}

/* --- Scroll-Link "Mehr Information" --- */
.hero-scroll-link {
  position: absolute;
  left: 50px;
  bottom: 50px;
  z-index: 15;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  opacity: .8;
  text-align: left;
  text-decoration: none;
  transition: .5s;
}

.hero-scroll-icon {
  width: 40px;
  height: 40px;
  z-index: 1;
  display: block;
}

.hero-scroll-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-scroll-text {
  font-style: italic;
  color: #fdfeff;
}

/* ============================================================
   Breakpoints
   ============================================================ */

@media (max-width: 1399px) {
  .hero-slide-col-content {
    padding-top: 220px;
    padding-left: 0;
    align-items: flex-start;
  }

  .hero-slide-col-visual {
    padding-left: 0;
    text-align: center;
    align-items: flex-end;
  }

  .hero-slide-visual {
    margin-right: 0;
    width: 120%;
  }

  .hero-arrow {
    right: 10px;
  }
}

@media (max-width: 767px) {
  .hero-slider-frame {
    padding: 0 20px;
  }

  .hero-slide-columns {
    margin-top: 150px;
  }

  .hero-slide-col-content {
    padding-top: 140px;
    padding-left: 0;
    min-width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-slide:first-child .hero-slide-col-content {
    padding-right: 0;
  }

  .hero-slide-content {
    max-width: 100%;
  }

  .hero-slide-headline {
    margin-right: 0;
    font-size: 54px;
  }

  .hero-slide-text {
    font-size: 18px;
    min-width: 100%;
  }

  .hero-slide-col-visual {
    position: absolute;
    min-width: 100%;
  }

  .hero-slide-visual {
    width: 400px;
    margin-right: -10px;
  }

  .hero-slide:first-child .hero-slide-visual {
    width: 65%;
  }

  .hero-slide.is-active .hero-slide-image {
    left: 0;
  }

  .hero-scroll-link {
    right: 50px;
    left: auto;
  }
}

@media (max-width: 479px) {
  .hero-intro {
    min-height: 1px;
  }

  .hero-slide-col-content {
    padding-right: 0;
  }

  .hero-slide-headline {
    font-size: 37px;
  }

  .hero-slide-visual {
    width: 65%;
  }

  .hero-scroll-link {
    margin-bottom: 15px;
  }
}

@media only screen and (max-height: 780px) {
  .hero-scroll-link {
    display: none;
  }
}
