/* =========================================
   WIR.SCHLADMING – IMAGE TEXT HERO
========================================= */

.image-text-hero {
  --hero-height: clamp(500px, 85svh, 800px);

  position: relative;
  width: 100%;
  background: var(--cream-soft);
  color: var(--ink);
  overflow: hidden;
  overflow: clip;
}

.image-text-hero > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.image-text-hero .image-text-hero-row {
  min-height: var(--hero-height);
  align-items: center;
}

.image-text-hero .image-text-hero-copy-col,
.image-text-hero .image-text-hero-media-col {
  position: relative;
  min-width: 0;
}

/* =========================================
   TEXT
========================================= */

.image-text-hero .image-text-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 45px clamp(24px, 3vw, 58px) 45px clamp(28px, 6vw, 140px);
}

.image-text-hero .image-text-hero-subheadline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.05vw, 1.125rem) !important;
}

.image-text-hero .image-text-hero-subheadline span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.image-text-hero .image-text-hero-subheadline span + span::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--lime);
}

/* =========================================
   HEADLINE
========================================= */

.image-text-hero .image-text-hero-headline {
  position: relative;
  margin: 0 0 38px;
  color: var(--dark-deep);
  font-size: clamp(2.8rem, 3vw, 4.2rem) !important;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.image-text-hero .image-text-hero-headline strong {
  position: relative;
  display: inline-block;
  max-width: 100%;
  color: inherit;
  font-family: inherit !important;
  font-weight: inherit !important;
}

/* Gerade Underline mit abgerundeten Ecken */

.image-text-hero .image-text-hero-headline strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 7px;
  border-radius: 100px;

  background: linear-gradient(90deg, var(--purple), var(--purple-deep));

  transform: scaleX(1);
  transform-origin: left center;

  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ausgangszustand: ohne Rückwärtsanimation */

.image-text-hero.is-underline-pending .image-text-hero-headline strong::after {
  transform: scaleX(0);
  transition: none;
}

/* =========================================
   BESCHREIBUNG
========================================= */

.image-text-hero .image-text-hero-text {
  max-width: 500px;
  margin-bottom: 28px;
}

.image-text-hero .image-text-hero-text p {
  font-size: clamp(1.125rem, 1.2vw, 1.3rem) !important;
}

.image-text-hero .image-text-hero-text > :last-child {
  margin-bottom: 0;
}

/* =========================================
   BUTTON
========================================= */

.image-text-hero .image-text-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 50px;
  padding: 12px 26px;

  border: 1px solid var(--lime);
  border-radius: 2px;

  background-color: var(--lime);
  background-image: linear-gradient(var(--dark), var(--dark));
  background-position: left center;
  background-size: 0 100%;
  background-repeat: no-repeat;

  color: var(--dark) !important;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;

  transition:
    background-size 0.35s ease,
    color 0.35s ease;
}

.image-text-hero .image-text-hero-button svg {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  transition: transform 0.3s ease;
}

.image-text-hero .image-text-hero-button:hover,
.image-text-hero .image-text-hero-button:focus-visible {
  background-size: 100% 100%;
  color: var(--cream-soft) !important;
  text-decoration: none;
}

.image-text-hero .image-text-hero-button:hover svg {
  transform: translateX(5px);
}

.image-text-hero .image-text-hero-button:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 4px;
}

/* =========================================
   MEDIA
========================================= */

.image-text-hero .image-text-hero-media-col {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.image-text-hero .image-text-hero-media-shell {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  flex-shrink: 0;
  isolation: isolate;
}

.image-text-hero .image-text-hero-media-accent {
  position: absolute;
  z-index: 0;
  top: 28%;
  right: 0;
  bottom: 6%;
  width: 31%;

  background: linear-gradient(
    160deg,
    var(--petrol) 0%,
    var(--purple-deep) 65%,
    var(--purple) 100%
  );
}

.image-text-hero .image-text-hero-media-frame {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 94%;
  height: 100%;
  overflow: hidden;
  background: var(--petrol);

  clip-path: polygon(14% 0, 100% 0, 87% 100%, 0 100%);
}

/* =========================================
   SLICK SLIDER
========================================= */

.image-text-hero .image-text-hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-text-hero .image-text-hero-slider .slick-list,
.image-text-hero .image-text-hero-slider .slick-track,
.image-text-hero .image-text-hero-slider .slick-slide,
.image-text-hero .image-text-hero-slider .slick-slide > div {
  height: 100%;
}

.image-text-hero .image-text-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-text-hero .image-text-hero-slide .image-text-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.image-text-hero
  .image-text-hero-slider:not(.slick-initialized)
  .image-text-hero-slide:not(:first-child) {
  display: none;
}

/* =========================================
   SLIDER DOTS
========================================= */

.image-text-hero .image-text-hero-dots {
  position: absolute;
  z-index: 5;
  right: 22%;
  bottom: 28px;
  width: auto;
}

.image-text-hero .image-text-hero-dots .slick-dots {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  margin: 0;
  padding: 5px 9px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--dark-deep);
}

.image-text-hero .image-text-hero-dots .slick-dots li {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

.image-text-hero .image-text-hero-dots .slick-dots button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--cream-soft);
  cursor: pointer;
}

.image-text-hero .image-text-hero-dots .slick-dots button::before {
  content: none;
}

.image-text-hero .image-text-hero-dots .slick-dots button span {
  display: block;
  width: 15px;
  height: 3px;
  border-radius: 100px;
  background: var(--cream);
  opacity: 0.6;
  transition:
    width 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.image-text-hero .image-text-hero-dots .slick-dots .slick-active button span {
  width: 26px;
  background: var(--lime);
  opacity: 1;
}

.image-text-hero .image-text-hero-dots button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -3px;
  border-radius: 100px;
}

/* =========================================
   VIDEO
========================================= */

.image-text-hero .image-text-hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--dark-deep);
}

.image-text-hero .image-text-hero-video-toggle {
  position: absolute;
  z-index: 5;
  right: 22%;
  bottom: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--dark-deep);
  color: var(--cream-soft);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.image-text-hero.is-video-ready .image-text-hero-video-toggle {
  display: flex;
}

.image-text-hero .image-text-hero-video-toggle:hover {
  background: var(--lime);
  color: var(--dark);
}

.image-text-hero .image-text-hero-video-toggle:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.image-text-hero .image-text-hero-video-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.image-text-hero
  .image-text-hero-video-toggle.is-playing
  .image-text-hero-video-icon::before {
  width: 12px;
  height: 14px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(
    to right,
    currentColor 0 4px,
    transparent 4px 8px,
    currentColor 8px 12px
  );
}

/* =========================================
   MEDIA LEFT
========================================= */

@media (min-width: 992px) {
  .image-text-hero--media-left .image-text-hero-media-col {
    order: 1;
  }

  .image-text-hero--media-left .image-text-hero-copy-col {
    order: 2;
  }

  .image-text-hero--media-left .image-text-hero-copy {
    padding-left: clamp(28px, 5vw, 85px);
    padding-right: clamp(28px, 6vw, 140px);
  }

  .image-text-hero--media-left .image-text-hero-media-accent {
    left: 0;
    right: auto;
  }

  .image-text-hero--media-left .image-text-hero-media-frame {
    left: 6%;
    width: 94%;
    clip-path: polygon(0 0, 86% 0, 100% 100%, 14% 100%);
  }

  .image-text-hero--media-left .image-text-hero-dots,
  .image-text-hero--media-left .image-text-hero-video-toggle {
    right: 10%;
  }
}

/* =========================================
   SMALL DESKTOP
========================================= */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .image-text-hero {
    --hero-height: clamp(470px, 62svh, 690px);
  }

  .image-text-hero .image-text-hero-copy {
    padding-left: clamp(30px, 5vw, 80px);
    padding-right: 24px;
  }

  .image-text-hero .image-text-hero-headline {
    font-size: clamp(2.5rem, 3.8vw, 3.4rem) !important;
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {
  .image-text-hero {
    --hero-height: clamp(340px, 50svh, 560px);
  }

  .image-text-hero .image-text-hero-row {
    min-height: 0;
    align-items: stretch;
  }

  .image-text-hero .image-text-hero-copy-col {
    order: 1;
  }

  .image-text-hero .image-text-hero-media-col {
    order: 2;
  }

  .image-text-hero .image-text-hero-copy {
    padding: 55px 30px 48px;
  }

  .image-text-hero .image-text-hero-headline {
    font-size: clamp(2.8rem, 5.8vw, 3.8rem) !important;
  }

  .image-text-hero .image-text-hero-media-shell {
    height: var(--hero-height);
  }

  .image-text-hero .image-text-hero-media-frame {
    width: 96%;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  }

  .image-text-hero .image-text-hero-media-accent {
    top: 24%;
    bottom: 5%;
    width: 34%;
  }

  .image-text-hero .image-text-hero-dots,
  .image-text-hero .image-text-hero-video-toggle {
    right: 14%;
    bottom: 22px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {
  .image-text-hero {
    --hero-height: clamp(280px, 44svh, 440px);
  }

  .image-text-hero .image-text-hero-copy {
    padding: 42px 20px 38px;
  }

  .image-text-hero .image-text-hero-subheadline {
    gap: 7px 10px;
    margin-bottom: 20px;
  }

  .image-text-hero .image-text-hero-headline {
    margin-bottom: 34px;
    font-size: clamp(2.3rem, 9vw, 3rem) !important;
  }

  .image-text-hero .image-text-hero-headline strong::after {
    bottom: -9px;
    height: 6px;
  }

  .image-text-hero .image-text-hero-text {
    margin-bottom: 24px;
  }

  .image-text-hero .image-text-hero-text p {
    font-size: 1.0625rem !important;
  }

  .image-text-hero .image-text-hero-button {
    padding: 12px 20px;
    gap: 18px;
  }

  .image-text-hero .image-text-hero-media-frame {
    width: 97%;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  }

  .image-text-hero .image-text-hero-dots,
  .image-text-hero .image-text-hero-video-toggle {
    right: 13%;
    bottom: 16px;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .image-text-hero .image-text-hero-button,
  .image-text-hero .image-text-hero-button svg,
  .image-text-hero .image-text-hero-headline strong::after,
  .image-text-hero .image-text-hero-dots button span,
  .image-text-hero .image-text-hero-video-toggle {
    transition: none;
  }

  .image-text-hero.is-underline-pending
    .image-text-hero-headline
    strong::after {
    transform: scaleX(1);
  }
}
