@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Raleway:wght@200;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #0a0a0a;
  --dark:   #111111;
  --border: #1e1e1e;
  --gold:   #b8976a;
  --white:  #e8e2d9;
  --muted:  #b0aaa0;
  --nav-h:  60px;
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  min-height: 100vh;
}

/* ── Top Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.08em;
  padding: 0 28px 0 0;
  border-right: 1px solid var(--border);
  margin-right: 24px;
  white-space: nowrap;
}

.nav-brand span {
  font-style: italic;
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li a,
.nav-links li span {
  display: block;
  padding: 8px 16px;
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links li a:hover {
  color: var(--gold);
}

.nav-links li span.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* ── Main Content ── */
main {
  margin-top: var(--nav-h);
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Gallery Grid – 3 Spalten, scrollbar ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, 125px);
  gap: 3px;
  max-width: 925px;
  margin: 0 auto;
  justify-items: center;
  justify-content: center;
  border: 4px solid rgba(180, 180, 180, 0.20);
  padding: 12px;
  box-shadow: 0 0 40px rgba(232, 226, 217, 0.08), inset 0 0 30px rgba(0,0,0,0.3);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  width: 125px;
  height: 225px;
  background: var(--border);
  cursor: pointer;
  border: 2px solid rgba(232, 226, 217, 0.30);
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: grayscale(15%);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: fill;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  animation: zoomIn 0.3s ease;
  cursor: default;
  border: 4px solid rgba(232, 226, 217, 0.92);
}

@keyframes zoomIn {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-close {
  position: fixed;
  top: 20px; right: 26px;
  font-size: 1.8rem;
  color: var(--muted);
  cursor: pointer;
  border: 2px solid rgba(232, 226, 217, 0.30);
  background: none;
  border: none;
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover { color: var(--gold); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.4rem;
  width: 44px; height: 44px;
  cursor: pointer;
  border: 2px solid rgba(232, 226, 217, 0.30);
  transition: color 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.lightbox-nav:hover { color: var(--gold); border-color: var(--gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── Impressum ── */
.impressum-content {
  max-width: 680px;
  margin: 0 auto;
  justify-items: center;
  justify-content: center;
  line-height: 1.9;
  font-size: 0.92rem;
  color: var(--white);
  opacity: 0.85;
}

.impressum-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--gold);
  margin: 32px 0 10px;
  letter-spacing: 0.06em;
}

.impressum-content p { margin-bottom: 10px; }

.impressum-content a {
  color: var(--gold);
  text-decoration: none;
}

.impressum-content a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-brand {
    display: none;
  }
  .nav-links li a,
  .nav-links li span {
    padding: 8px 10px;
    font-size: 0.65rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 125px);
    gap: 2px;
  }
  main {
    padding: 12px 8px 40px;
  }
}

/* ── Nav mobile fix ── */
@media (max-width: 700px) {
  nav {
    height: auto;
    padding: 8px 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links li a,
  .nav-links li span {
    padding: 5px 7px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .nav-brand {
    display: none;
  }
}
