/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111;
  --surface: #1a1a1a;
  --text: #f0f0f0;
  --muted: #888;
  --accent: #fff;
  --nav-h: 60px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a { opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

.nav-brand {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  font-weight: 300;
  text-transform: lowercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s;
}

/* ===== Hero ===== */
#top {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: url('../images/zuzia-windy.gif') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2rem;
}

.hero-content blockquote {
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #eee;
}

.hero-content cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  font-style: normal;
}

/* ===== Gallery Section ===== */
#galerie {
  padding: 5rem 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Masonry grid via CSS columns */
.gallery-grid {
  columns: 4;
  column-gap: 6px;
}

@media (max-width: 1100px) { .gallery-grid { columns: 3; } }
@media (max-width: 700px)  { .gallery-grid { columns: 2; } }
@media (max-width: 420px)  { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.92);
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

/* ===== Lightbox ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
  transition: opacity 0.25s;
}

#lb-img.loading { opacity: 0.3; }

#lb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
  background: none;
  border: none;
}

#lb-close:hover { opacity: 1; }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  user-select: none;
}

.lb-arrow:hover { opacity: 1; }
#lb-prev { left: 0.5rem; }
#lb-next { right: 0.5rem; }

#lb-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

/* ===== Static pages (Impressum / Datenschutz) ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
}

.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.page-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  letter-spacing: 0.02em;
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #ccc;
}

.page-content p {
  color: #ccc;
  margin-bottom: 0.8rem;
  line-height: 1.75;
}

.page-content a { color: #aaa; text-decoration: underline; }
.page-content a:hover { color: #fff; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid #222;
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a { opacity: 0.75; }
footer a:hover { opacity: 1; }
footer .sep { margin: 0 0.75rem; }

/* ===== Mobile nav ===== */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    font-size: 1rem;
  }
  .nav-hamburger { display: flex; }
  .nav-brand { position: static; transform: none; }
}
