/* ==========================================================
   PAGE: Flugplatz
   Video-Header, Flugplatzvorstellung, Hinweise, Anfahrt,
   Karte und Slideshow
   ========================================================== */

/* ---------------- Video-Header ---------------- */

.video-header {
  position: relative;
  height: clamp(260px, 31vw, 600px);
  overflow: hidden;
  display: flex;
  z-index: 1;
}

.video-header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.sound-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10;
}

/* ---------------- Platzvorstellung ---------------- */

.platzvorstellung {
  text-align: center;
  margin-top: 3rem;
}

.platz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  justify-content: center;
  margin-top: 2rem;
}

.platz-bild {
  max-width: none;
  width: 100%;
}

.platz-bild img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.platz-bild p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #555;
}

@media (min-width: 769px) {
  .verschoben-desktop {
    margin-top: 80px;
  }
}

/* ---------------- Flugplatz-Info ---------------- */

.flugplatz-info {
  width: min(1000px, calc(100% - (var(--site-gutter) * 2)));
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0;
  text-align: center;
}

.flugplatz-info p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ---------------- Slideshow ---------------- */

.slideshow-container {
  margin: 3rem auto;
  max-width: 2500px;
  overflow: hidden;
  position: relative;
}

.slideshow-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  touch-action: pan-y;
}

.slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(250px, 31vw, 600px);
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.slideshow-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.slideshow-buttons button {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  pointer-events: all;
  font-size: 1.5rem;
  border-radius: 50%;
}

/* ---------------- Feuer verboten / Platzhinweis ---------------- */

.platz-hinweis.mit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff4f4;
  border: 2px solid #cc0000;
  border-radius: 8px;
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verbot-icon {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.platz-hinweis.mit-icon p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #600;
}

/* ---------------- Anfahrt ---------------- */

.anfahrt-zum-platz {
  width: min(1200px, calc(100% - (var(--site-gutter) * 2)));
  max-width: 1200px;
  margin: 3rem auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  font-size: var(--font-medium);
  line-height: 1.7;
  color: #222;
}

.anfahrt-zum-platz h2 {
  font-size: var(--font-h3);
  margin-bottom: 1rem;
  text-align: center;
}

.anfahrt-zum-platz p {
  max-width: 800px;
  margin: 0 auto 1.2rem;
}

.anfahrt-zum-platz a.weiter-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* ---------------- Karte ---------------- */

.map-container-wrapper {
  width: min(1600px, calc(100% - (var(--site-gutter) * 2)));
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.map-container {
  width: 100%;
  height: 450px;
  margin: 2rem 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------- Mobil ---------------- */

@media (max-width: 768px) {
  .platz-grid {
    grid-template-columns: 1fr;
    align-items: center;
    margin-bottom: 1rem;
  }

  .platz-bild {
    width: min(520px, 100%);
    margin-inline: auto;
  }

  .platz-bild p {
    font-size: var(--font-normal);
  }

  .slideshow-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .anfahrt-zum-platz {
    font-size: var(--font-normal);
  }
}

@media (max-width: 767px) {
  .mobil-verschoben {
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .platz-hinweis.mit-icon {
    margin-left: 12px;
    margin-right: 12px;
    width: auto;
  }
}
