/* BASE STYLES */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
  touch-action: manipulation;
}

/* START SCREEN (INITIAL SICHTBAR) */
.reise-start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-size und background-position sind jetzt auf der <img>-Tag */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  background-color: #222;
}

/* Cover-Bild-Stil */
.cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Stellt sicher, dass das Bild hinter dem Overlay liegt */
}

/* SLIDESHOW CONTAINER (INITIAL VERSTECKT) */
.reise-slideshow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  z-index: 101;
}

/* STARTSCREEN OVERLAY */
.start-overlay {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  padding: 25px;
  background: rgba(0,0,0,0.75);
  color: white;
  text-align: center;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}

/* ANIMATIONEN */
@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slide.active {
  animation: fadeInZoom 2s ease-out forwards;
}

/* STARTSCREEN OVERLAY STYLE */
.start-content {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  padding: 20px;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  border-radius: 10px;
  z-index: 10;
  animation: fadeIn 1s ease;
}

/* SLIDE ANIMATION */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.3); /* Start mit 30% Zoom */
  transition:
    opacity 1.5s ease-in-out,
    transform 2s ease-in-out; /* 2s Animation */
  display: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1); /* Zur normalen Größe */
  display: block;
}

/* Rest bleibt wie vorher */

/* BILD-DARSTELLUNG */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* PROGRESSBAR */
.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #4CAF50; /* Heller grüner Balken */
  width: 0;
  z-index: 25;
  transition: width 6s linear; /* Standard-Transition */
  height: 5px; /* Dicker Balken */
  background: linear-gradient(90deg, #4CAF50, #8BC34A); /* Verlauf */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Leuchteffekt */
}

/* COUNTER */
.counter-display {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.9em;
  z-index: 20;
}

/* CONTROLS */
.controls {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

/* END SCREEN */
.reise-end-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 102;
}

/* Caption-Anzeige (wie Counter) */
.caption-display {
  position: fixed; /* Feste Position */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  padding: 15px;
  background: rgba(0,0,0,0.4);
  color: white;
  text-align: center;
  border-radius: 5px;
  font-size: 1.2em;
  z-index: 30; /* Höher als Progressbar (25) */
  opacity: 0;
  transition: opacity 0.5s ease;
}
