body {
  font-family: sans-serif;
  margin: 0;
  background: #f5f5f5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background: white;
  border-bottom: 1px solid #ddd;
}

header img {
  max-height: 80px;
  height: auto;
  width: auto;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* exakt 5 Spalten */
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  justify-items: center;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 5px;
  text-align: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb span {
  display: block;
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
}


@media (max-width: 1000px) {
  .galerie {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .galerie {
    grid-template-columns: 1fr;
  }
}
