html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}

body {
    max-width: 1200px;
    margin: 0 auto;
}


/* Banner */
.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Slideshow – immer mittig und begrenzt */
#slideshow {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto;
  object-fit: contain;
}

.button-bar {
    text-align: center;
    margin: 15px 0 25px 0;
}

.back-button {
    display: inline-block;

    background: #008000;
    color: #fff !important;

    padding: 10px 24px;

    font-size: 18px;
    font-weight: bold;

    text-decoration: none;

    border: 2px solid #fff;
    border-radius: 8px;
}

.back-button:hover {
    background: #00aa00;
}

.back-button:visited {
    color: #fff;
}


#slideshow {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
#slideshow.fade-in {
    opacity: 1;
}

#slideshow {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-y;
}

/* Landscape – Höhe begrenzen */
@media (orientation: landscape) {
  #slideshow {
    max-height: 60vh;
  }
}

/* Intro – gleiche Breite wie Slideshow */
.intro {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;      /* zentriert horizontal */
  text-align: center;     /* Text mittig */
  color: #ccc;            /* dezente Schriftfarbe */
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Galerie */
.gallery {
  padding: 20px 0;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-grid li {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.gallery-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* Handy */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0;
  }

  .gallery-grid img {
    height: 90px;
  }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
  }

  .gallery-grid img {
    height: 110px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
  }

  .gallery-grid img {
    height: 140px;
  }
}

#galerie-info {
    color: #ffff00;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}

/* Footer */
footer {
  padding: 10px;
  font-size: 20px;
  color: #17A2B8;
}
.galerie-name {
    display: block;
    color: #ffff00;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 8px 0 10px 0;
    min-height: 20px;
    font-family: Arial, sans-serif;
    text-transform: capitalize;
}

.besucherzaehler {
    color: #ffff00;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}