body.seite-grafik {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #dbd9d9;
  color: #333;
}

/*body.no-scroll {
  overflow: hidden;
}*/

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

header {
  padding: 1rem 0; /* statt z. B. 3rem oder größer */
 text-align: center;
}

header h3 {
  font-size: 1.2rem;
  color: #666;
}

header h2, header h3 {
  margin: 0.5rem 0;
  font-weight: 500;
}


@media (max-width: 600px) {
  header {
    padding: 0.5rem 0;
  }

  header h2 {
    font-size: 1.4rem;
  }

  header h3 {
    font-size: 1rem;
  }
}

/* Scrollhinweis */
.scroll-hint {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin: 0.5rem 0;
  font-style: italic;
}
/*.scroll-hint {
  font-size: 0.8rem;
  margin: 0.3rem 0 0;
}*/


/*.scroll-wrapper {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 50%; 
  padding: 0 3rem 2rem 3rem;
}*/

.scroll-wrapper {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 50%; /* ZENTRIERUNG beim Scrollen */
  padding: 0.5rem 1.5rem; /* oben/unten 0.5rem, links/rechts 1.5rem */
  /*padding: 0 3rem 1rem 3rem;*/ 
    touch-action: pan-x; /* Nur horizontales Scrollen zulassen */
}


.scroll-wrapper::before,
.scroll-wrapper::after {
  content: '';
  flex: 0 0 3rem; /* Gleicht linken/rechten Rand aus */
}


.scroll-wrapper figure {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  max-width: 90vw;
}

.scroll-wrapper img {
  max-height: 300px; /* Desktop */
  max-width: 80%;
  height: auto;
  width: auto;
  border: 4px solid #e0e0e0;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

}

.scroll-wrapper img:hover {
  transform: scale(1.05);
}

.scroll-wrapper figcaption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #555;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  cursor: pointer;
}



.lightbox-close {
  z-index: 0 !important;
}

@media (max-width: 768px) {
  .lightbox img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
  }
}


/* hidden class */
.hidden {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  color: #999;
  border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 600px) {
  .scroll-wrapper img {
    max-width: 60vw;   /* Bild maximal 90% der Viewport-Breite */
    max-height: 40vh;  /* Bild maximal 60% der Viewport-Höhe */
    height: auto;
    width: auto;
  }
}

.thumbnail-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap;
  background: #fff;
}

.thumbnail-bar img {
  /*width: 30px;
  height: auto;*/
  height: 25px;
  width: auto;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.thumbnail-bar img:hover {
  transform: scale(1.1);
  border-color: #999;
}


/* Navigationsmenu oben links */

/* Hamburger-Button */


/* Hamburger Balken */
.menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X-Animation */
.menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* Overlay (halbtransparent beim Menü) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 100;
  transition: opacity 0.3s ease;
}

/* Navigation */
/* Navigation Kasten unterhalb des Buttons */
.main-nav {
  position: fixed;
  top: 3.5rem; /* unterhalb vom Hamburger */
  left: 1rem;
  width: 220px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  z-index: 1099;
  padding: 0 1rem;
}


galerie{
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin-bottom: 1rem;
}

.main-nav li::marker {
  display: none;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}


/* wenn aktiv: Kasten aufklappen */
.main-nav.active {
  max-height: 400px; /* genug Höhe für Links */
  padding: 1rem;
}
.overlay.active {
  display: block;
  opacity: 1;
}

.hidden {
  display: none;
}
.main-nav {
  z-index: 1001;
}
.overlay {
  z-index: 1000;
}

.arrow-prev,
.arrow-next {
  position: absolute;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 0;
  z-index: 1001;
  right: 20px; /* <-- HIER wird’s relevant */
  transform: translateY(-50%);
}

.arrow-prev {
  top: 40%;
}

.arrow-next {
  top: 50%;
}

 .arrow-prev::before,
.arrow-next::before {
  content: ''; 
}


/* Lightbox-Pfeile auf größeren Bildschirmen rechts unten, untereinander */

@media (max-width: 768px) {
 .arrow-prev,
 .arrow-next {
    display: none !important;
  }
}


  .arrow-prev:hover,
  .arrow-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }


