:root {
  --wtg-blue: #00519e;
  --accent: #cc071e;
  --accent-hover: #88250b;
  --panel-text: #e6edf3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f5;
}

/* GESAMTER SLIDER */

.hero-slider {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
background: transparent;
  border-radius: 0;
}

/* TRACK */

.hero-slider-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

/* EIN SLIDE */

.hero-slide {
  min-width: 100%;
  flex: 0 0 100%;
aspect-ratio: 16 / 6.4;
  display: flex;
  align-items: stretch;
  background: #f2f2f2;
}

/* BILD LINKS */

.hero-slide-media {
  position: relative;
border-radius: 10px 0 0 10px;
  overflow: hidden;
  width: 58%;
}

.hero-slide-media picture,
.hero-slide-media img {
  display: block;

  width: 100%;
  height: 100%;
}

.hero-slide-media img {
/*  object-fit: contain; */
  object-position: center center;

  background: #f2f2f2;
}

/* OVERLAY AUS */

.hero-slide-overlay {
  display: none;
}

/* TEXT RECHTS */

.hero-slide-content {
  width: 42%;

  display: flex;
}

.hero-slide-content-inner {
  width: 100%;
  height: 100%;
 border-radius: 0 10px 10px 0;
  padding: clamp(28px, 4vw, 56px);

  background: linear-gradient(
    180deg,
    rgba(0, 81, 158, 0.92) 0%,
    rgba(0, 81, 158, 1) 100%
  );

  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ÜBERSCHRIFT */

.hero-slide-title {
  margin: 0 0 24px;
color: white;
  font-size: clamp(1.8rem, 2.6vw, 2rem);
  line-height: 1.08;
  font-weight: 700;
}

/* TEXT */

.hero-slide-text {
  margin: 0;

  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  line-height: 1.75;

  color: var(--panel-text);

  max-width: 34ch;
}

/* BUTTON */

.hero-slide-button {
  display: inline-block;
width: fit-content;
  margin-top: clamp(20px, 3vw, 34px);
  padding: 14px 24px;

  background: var(--accent);

  color: #fff;
  text-decoration: none;
  font-weight: bold;

  border-radius: 12px;

  transition: background 0.2s ease;
}

.hero-slide-button:hover {
  color: black;
}

/* PFEILE */

.hero-slider-nav {
  position: absolute;
  top: 50%;

  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: rgba(0,0,0,0.35);

  color: #fff;
  font-size: 24px;

  cursor: pointer;

  z-index: 10;

  transition: background 0.2s ease;
}

.hero-slider-nav:hover {
  background: rgba(0,0,0,0.55);
}

.hero-slider-prev {
  left: 20px;
}

.hero-slider-next {
  right: 20px;
}

/* DOTS */

.hero-slider-dots {
  position: absolute;

  bottom: 18px;
  left: 0;

  width: 100%;

  text-align: center;

  z-index: 10;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;

  margin: 0 5px;

  border: none;
  border-radius: 50%;

  background: rgb(221 139 139 / 45%);

  cursor: pointer;
}

.hero-slider-dot.is-active {
  background: var(--accent);
}

/* TABLET */

@media (max-width: 1000px) {

  .hero-slide-content-inner {
    padding: 32px;
  }

  .hero-slide-title {
    font-size: 2rem;
  }

  .hero-slide-text {
    line-height: 1.65;
  }
}

/* MOBILE */

@media (max-width: 991px) {

  .hero-slide {
    flex-direction: column;

    aspect-ratio: auto;
  }

.hero-slide-media {
    width: 100%;
  border-radius: 0;
}

.hero-slide-media img {
    width: 100%;
    height: auto;
}



  .hero-slide-content {
    width: 100%;
  }

  .hero-slide-content-inner {
    padding: 32px 24px;
  }

  .hero-slide-title {
    font-size: 1.8rem;
  }

  .hero-slide-text {
    font-size: 1rem;
    line-height: 1.65;

    max-width: none;
  }

  .hero-slide-button {
    margin-top: 24px;
  }

  

  .hero-slider-prev {
    left: 12px;
  }

  .hero-slider-next {
    right: 12px;
  }

  .hero-slider-dots {
    position: static;

    padding: 14px;

    background: #eef1f3;
  }

  .hero-slider-dot {
    background: rgba(0,0,0,0.2);
  }
  
.hero-slide-content-inner {
/*  min-height: 500px; */

  padding: 32px 24px;
border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
}

.hero-slide-button {
  margin-top: auto;
}

    .hero-slider-track {
    align-items: flex-start;
  }

  .hero-slide {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible;
  }

    .hero-slide-media {
    width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
  }

  .hero-slide-media picture {
    display: block;
    width: 100%;
    height: auto !important;
  }

  .hero-slide-media img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
  }
    .hero-slide,
  .hero-slide-media,
  .hero-slide-media picture,
  .hero-slide-media img {
    height: auto !important;
    aspect-ratio: auto !important;
  }

  .hero-slide-media img {
    width: 100%;
    object-fit: contain !important;
  }
}

.hero-slider .hero-slide-content .hero-slide-text {
  font-size: clamp(0.95rem, 1.05vw, 1.15rem) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

@media (max-width: 768px) {
    .hero-slide {
    min-height: clamp(680px, 105vw, 820px);
  }
  
  .hero-slide-media {
    background: #fff;
   margin-top: 18px:
  }

  .hero-slide-media img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
  }

  .hero-slide-content-inner {
    border-radius: 0 0 10px 10px;
    padding: 34px 28px 40px;
    height: 500px;
    display: flex;
    flex-direction: column;
  }

  .hero-slide-title {
    font-size: clamp(1.5rem, 4vw, 2.7rem);
    line-height: 1.12;
    hyphens: auto;
  }
   .hero-slide-button {
    margin-top: auto;
  }
    .hero-slider-nav {
        display: none;
    }
}

