body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #fdfdfd;
  color: #333;
}

header {
  text-align: center;
  padding: 2rem;
  background: #eee;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.hero img {
  width: 100%;
  display: block;
}

.about, .gallery {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

/* ===== GALERIE ===== */

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.gallery .item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery .item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery .item:hover img {
  transform: scale(1.05);
}

/* Titel Overlay */
.gallery .caption {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery .item:hover .caption {
  opacity: 1;
}

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  text-decoration: none;
}

/* ===== FOOTER ===== */

footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  margin-top: 2rem;
}
