@charset "utf-8";

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #111;
}

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  background: #fff;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 20px 0;
}

.center {
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

h2 {
  margin-top: 0;
}

.section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.merkmale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.merkmale span {
  background: #e9eef5;
  padding: 10px 14px;
  border-radius: 20px;
  font-weight: bold;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid a {
  display: block;
  text-decoration: none;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

ul {
  padding-left: 20px;
}

.dokumente a {
  color: #003399;
  text-decoration: none;
}

.dokumente a:hover {
  text-decoration: underline;
}

.gallery-body {
  background: #f5f5f5;
  color: #111;
}

.gallery-page {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.gallery-viewer {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

.gallery-viewer img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-btn,
.close-btn {
  background: #ffffff;
  color: #111;
  border: 1px solid #ddd;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
}

.nav-btn:hover,
.close-btn:hover {
  background: #f0f0f0;
}

.topbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page {
    padding: 12px;
  }

  h1 {
    font-size: 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-viewer {
    gap: 10px;
  }

  .nav-btn,
  .close-btn {
    padding: 10px 14px;
    font-size: 16px;
  }
}
