:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #201f1c;
  --muted: #77736c;
  --line: #e9e4dc;
  --accent: #b9905a;
  --accent-dark: #8e6b40;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  padding: 20px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 2px solid var(--text);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.brand-name {
  letter-spacing: 0.25em;
  font-size: 18px;
  font-weight: 700;
}

.brand-sub {
  letter-spacing: 0.18em;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 38px) 60px;
}

.hero {
  text-align: center;
  padding: 70px 16px 54px;
  border-bottom: 1px solid var(--line);
  min-height: 300px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Ladebereich */

.hero-loading {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.hero-loading p {
  margin: 0;
  font-size: 15px;
}

.loading-bar {
  width: min(320px, 80%);
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.loading-bar-fill {
  width: 35%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  animation: loadingBar 1.2s ease-in-out infinite;
}

@keyframes loadingBar {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

/* Galerie-Kopf */

.hero-content[hidden] {
  display: none;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 68px);
  margin: 8px 0 8px;
}

.date {
  font-size: 18px;
  margin: 0 0 18px;
  color: var(--muted);
}

.intro {
  max-width: 620px;
  margin: 0 auto 28px;
  color: #4f4b45;
  line-height: 1.65;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

/* Bilder */

.gallery-section {
  padding-top: 42px;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  font-size: 26px;
  margin: 0 0 4px;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.status {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

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

.card {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  position: relative;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
  background: #eee;
}

.card:hover img {
  transform: scale(1.025);
}

.card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Großansicht */

dialog {
  width: min(1100px, 94vw);
  max-height: 92vh;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background: #161616;
  color: white;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

#lightboxImage {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  margin: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 0;
}

#lightboxName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .loading-bar-fill {
    animation: none;
    width: 100%;
  }

  .card img {
    transition: none;
  }
}

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

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

  .hero {
    padding-top: 48px;
  }

  .lightbox-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #lightboxName {
    white-space: normal;
  }

  .button {
    width: 100%;
  }
}