/* === SLIDER === */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* Wichtig: Kein Margin oder Padding, kein Flex! */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption */
.caption {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.7em 1.4em;
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center;
  z-index: 3;
}
.caption h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
/* === Headline über dem Slider === */
.site-headline {
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(111, 107, 107, 0.55);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  max-width: 90%;
  width: fit-content;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Mobil etwas kleiner */
@media (max-width: 900px) {
  .site-headline {
    font-size: 0.9rem;
    position: absolute;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(111, 107, 107, 0.55);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 400;
    text-align: center;
    min-width: 80%;
  /* width: fit-content; */
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  }
}

.caption h1 {

  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}


/* Pfeile */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.6em 1em;
  cursor: pointer;
  z-index: 4;
  transition: background 0.3s;
}
.nav:hover { background: rgba(0, 0, 0, 0.7); }
.nav.prev { left: 20px; }
.nav.next { right: 20px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}
.dot {
  width: 30px;
  height: 5px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active, .dot:hover {
  background: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  #home { 
    height: 70vh; 
  }
  .nav:hover { 
    background: rgba(0, 0, 0, 0.7); 
  }
  .nav.prev { 
    left: 20px;
    font-size: 0.8rem; 
}
  .nav.next { 
    right: 20px;
    font-size: 0.8rem; 
}
  .caption { 
    font-size: 1.1rem; 
    bottom: 30px; 
  }
  .dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}
}

@media (max-width: 600px) {
  #home { 
    height: 55vh; 
  }
  .caption { 
    font-size: 0.9rem; 
    bottom: 30px; 
  }
   .nav:hover { 
    background: rgba(0, 0, 0, 0.7); 
  }
  .nav.prev { 
    left: 20px;
    font-size: 0.8rem; 
}
  .nav.next { 
    right: 20px;
    font-size: 0.8rem; 
}
  .dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 4;
}
}
