* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: sans-serif;
}
.slider {
  position: relative;
  width: 100%;
  height: 40vw;
  overflow: hidden;
}

/* Fade-Slides übereinander */
.slides {
  position: relative;
  width: 100%;
  height: 40vw;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40vw;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 40vw;
  object-fit: cover;
  object-position: center center;
}

/* Caption */
.caption {
  position: absolute;
  bottom: 20%;
  left: 5%;
  background: rgba(50,50,50,0.6);
  color: white;
  padding: 20px 30px;
  border-radius: 5px;
}
.caption h2 {
  margin: 0 0 10px 0;
  font-size: 2em;
}
.caption p {
  margin: 0;
  font-size: 1.1em;
}

/* Pfeile */
.arrow {
  position: absolute;
  top: 20vw;
  transform: translateY(-50%);
  background: #eb6e07;
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 2em;
  border-radius: 5px;
  z-index: 10;
}
.prev { left: 20px; }
.next { right: 20px; }

/* Punkte */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}
.dots button {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.dots button.active {
  background: white;
}
