/* Slider-Container */

:root {


  --cd-font-black: #1a1a1a;
  --cd-color-grey: #707070;
  --cd-background-white: #ffffff;
  --cd-background-grey: #f2f2f2;
}

.slider {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 38.95rem;
  overflow: hidden;
  /*z-index: -1;*/
  padding-bottom: 3rem;
  margin-bottom: 50px;
  margin-top: -106px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Indikatoren */
.indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.indicator {
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--cd-background-white);
  border-radius: 50%;
  border: 1px solid;
  border-color: var(--cd-color-grey);
  cursor: pointer;
}

.indicator.active {
  background-color: var(--cd-color-grey);
}

/* Container für Text und Button */
.slider-elements {
  position: absolute;
  bottom: 4rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 3;
  gap: 1rem;
}

/* Text-Element (links) */
.slider-text-box {
  padding: 1rem 1.5rem;
  background-color: #fff;
  opacity: 85%;
  border-radius: 38px;
  text-align: left;
  display: inline-block;
  font-weight: 100;
  text-decoration: none;
  max-width: 70%;
  color: var(--cd-font-black);
  flex-shrink: 1;
}

/* Button (rechts) */
.slider-next {
  width: 3.8rem;
  height: 3.8rem;
  background-color: #fff;
  opacity: 85%;
  border: none;
  border-radius: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  flex-shrink: 0;
}

/* Hover-Effekte */
.slider-text-box:hover,
.slider-next:hover {
  background-color: var(--cd-background-white);
  opacity: 1;
}

/* Unterstrichene erste Zeile */
.slider-text-box .highlight {
  text-decoration: underline;

}

p.highlight {
  margin-bottom: 0px !important;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .slider-text-box {
    max-width: 60%;
  }

  .slider-text-box p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .slider-text-box p {
    font-size: 0.8rem;
  }
}