/* Grundlayout */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #fff8dc;
  color: #333;
}

header {
  background-color: #fdf3cc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 3rem;
}

.ticker {
  background-color: #ffefb0;
  color: #a00;
  font-weight: bold;
  padding: 0.5rem;
  position: absolute;
  width: 100%;
  top: 0;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  z-index: 10;
}

.ticker span {
  display: inline-block;
  animation: ticker 15s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.logo-zentriert {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem 2rem;
}

.logo-zentriert img {
  max-height: 300px;
  width: auto;
}

/* Galeriebereiche */
.galerie-block {
  max-width: 800px;
  margin: 2rem auto;
  border-top: 2px solid #ddd;
  padding-top: 1rem;
}

section ul {
  text-align: center;
  padding-left: 0;
  list-style-position: inside;
}

h2 {
  text-align: center;
  margin-top: 2rem;
}

.bilder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.bilder img {
  width: 100px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.bilder img:hover {
  border-color: #aaa;
}

.bilder img.active {
  border-color: #666;
}

/* Großbildbereich */
.bild-gross {
  text-align: center;
  margin-top: 1rem;
  display: none;
}

.bild-gross.active {
  display: block;
}

.bild-gross img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Standortkarte */
iframe {
  width: 100%;
  height: 400px;
  border: 0;
  margin: 2rem 0;
}

/* Buchungsbutton */
.button-buchung {
  display: block;
  max-width: 90%;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #ffc107;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 2rem 1rem;
  background-color: #f5e9bc;
}

/* 🔧 Mobilfreundliche Darstellung */
@media (max-width: 768px) {
  .bilder img {
    width: 80px;
  }

  .bild-gross img {
    max-width: 90vw;
  }

  section ul {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .button-buchung {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .bilder img {
    width: 70px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .ticker {
    font-size: 0.9rem;
  }

  .logo-zentriert img {
    max-height: 190px;
  }

  .button-buchung {
    padding: 0.8rem;
  }
}
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #ffc107;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #ffdb58;
}
// "Zurück nach oben"-Button ein-/ausblenden
window.addEventListener("scroll", function () {
  const btn = document.getElementById("backToTop");
  if (window.scrollY > 400) {
    btn.style.display = "block";
  } else {
    btn.style.display = "none";
  }
});

// Klickfunktion: sanft nach oben scrollen
document.getElementById("backToTop").addEventListener("click", function () {
  window.scrollTo({ top: 0, behavior: "smooth" });
});