/* Basis-Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  margin: 0;
  position: relative;
  text-align: center;
}

/* Diagonale Linien als statisches Hintergrundmuster */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.05) 75%,
      transparent 75%,
      transparent
  );
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

header, nav, main {
  margin: 0 auto;
  max-width: 800px;
  padding: 10px;
}

header h1 {
  text-align: center;
}

/* Link-Styling */
a:link, a:visited {
  color: #ffd700;
  text-decoration: none;
}

a:hover, a:active {
  color: #ffffff;
}

p a:link, p a:visited {
  color: #ffd700;
}

p a:hover, p a:active {
  color: #ffffff;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
}

nav ul li a {
  color: #ffd700;
  text-decoration: none;
}

/* Sektionen und Titel */
section {
  margin-bottom: 20px;
}

section h2 {
  font-size: 1.5em;
  color: #ffd700;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
}

.nav-buttons li {
  margin: 0;
}

.nav-buttons a {
  display: inline-block;
  padding: 10px 15px;
  background-color: #444;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-buttons a:hover {
  background-color: #666;
  transform: translateY(-2px);
  color: #ffffff;
}

.nav-buttons a.active {
  background-color: #666666;
  color: #ffd700;
  font-weight: bold;
  border-radius: 20px;
}

/* Box-Styling */
.box {
  background-color: #333333;
  color: #ffffff;
  padding: 20px;
  border: 2px solid #555555;
  border-radius: 8px;
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

.box h2 {
  color: #ffd700;
  margin-top: 0;
}

.box p {
  margin: 5;
}

/* Kategorie-Buttons */
.category-buttons {
  margin: 20px 0;
}

.category-buttons button {
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  font-size: 1em;
  border: none;
  background-color: #555;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.category-buttons button:hover {
  background-color: #777;
}

/* Galerie-Styling */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.gallery img {
  width: 30%; /* Passt die Breite an, sodass drei Bilder pro Zeile angezeigt werden */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Overlay für die Bildvorschau */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #ffffff;
}

.overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

.overlay-controls {
  display: flex;
  justify-content: space-between;
  width: 50px;
  position: absolute;
  bottom: 20px;
}

.overlay-controls button {
  font-size: 1.5em;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.category-buttons button {
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  font-size: 1em;
  border: none;
  background-color: #555;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.category-buttons button:hover,
.category-buttons button.active {
  background-color: #ffd700; /* Gelbe Highlight-Farbe */
  color: #333; /* Dunklere Farbe für Text bei aktivem Zustand */
}
