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

:root {
  --bg:       #ffffff;
  --surface:  #f5f5f5;
  --border:   #e8e8e8;
  --text:     #1c1c1c;
  --muted:    #909090;
  --accent:   #E94E1B;       /* Logo-Orange */
  --header-h: 88px;
  --gap:      14px;          /* Abstand zwischen Galerie-Bildern */
  --side-pad: 3rem;          /* Rand links/rechts */
  --max-w:    1600px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* deaktiviert "Bild sichern" Long-Press auf iOS */
}
button { cursor: pointer; }

/* ── Header ────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* Logo */
.logo {
  display: grid;
  gap: 2px;
  line-height: 1;
  flex-shrink: 0;
}

.logo-name {
  font-size: 1.7rem;
  font-weight: 200;
  letter-spacing: 0.03em;
  color: var(--text);
}

.logo-type {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-align: right;
  margin-top: 1px;
}

/* Navigation */
#site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

#site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

#site-nav ul a {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

#site-nav ul a:hover,
#site-nav ul a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-instagram {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.nav-instagram:hover { color: var(--accent); }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Hero (2:1) ──────────────────────────────────────────── */
.hero {
  position: relative;
  width: calc(100% - 2 * var(--side-pad));
  max-width: calc(var(--max-w) - 2 * var(--side-pad));
  margin: calc(var(--header-h) + 1.5rem) auto 0;
  aspect-ratio: 2 / 1;
  max-height: 78vh;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.12) 60%,
    rgba(0,0,0,0.42) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  display: grid;
  gap: 0.4rem;
}

.hero-name {
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.4vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: right;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

.hero-empty {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

/* ── Gallery Sections ──────────────────────────────────────── */
.gallery-section {
  padding: 5rem var(--side-pad) 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  padding-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.15rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}

.section-sub {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

/* Gallery item */
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .item-overlay { opacity: 1; }

.item-caption {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.92);
}

/* Video-Placeholder (wenn kein Poster vorhanden) */
.video-placeholder {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(255,255,255,0.75);
}

/* Video item */
.gallery-item.is-video .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.3s;
  pointer-events: none;
}
.gallery-item.is-video:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ── Film-Sektion (zentriert, untereinander) ─────────────── */
#film {
  max-width: 980px;
}

#film .gallery-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6rem;
  padding-bottom: 2rem;
}

.film-card {
  display: flex;
  flex-direction: column;
}

.film-card .gallery-item {
  width: 100%;
  cursor: pointer;
  background: #0a0a0a;
}

.film-card .gallery-item img,
.film-card .video-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* Größerer Play-Button in der Film-Sektion */
.film-card .gallery-item.is-video .play-btn {
  width: 76px;
  height: 76px;
}
.film-card .gallery-item.is-video .play-btn svg {
  width: 24px;
  height: 24px;
}

/* Overlay (Title-Caption beim Hover) ausblenden — wir haben den Titel ja unten */
.film-card .gallery-item .item-overlay { display: none; }

/* Info-Block unter dem Clip */
.film-info {
  margin-top: 1.6rem;
  text-align: left;
  max-width: 760px;
}

.film-info h3 {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.film-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.film-description {
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.8;
  color: var(--text);
}

@media (max-width: 700px) {
  #film .gallery-grid { gap: 4rem; }
  .film-info { margin-top: 1.2rem; }
  .film-info h3 { font-size: 0.95rem; letter-spacing: 0.2em; }
  .film-description { font-size: 0.88rem; line-height: 1.7; }
}

/* Empty state */
.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px dashed var(--border);
}
.gallery-empty svg { opacity: 0.25; }
.gallery-empty p {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--muted);
}
.gallery-empty code {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  background: var(--surface);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
}

/* ── Kontakt ───────────────────────────────────────────────── */
.section-contact {
  padding: 5.5rem var(--side-pad) 5rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-contact h2 {
  font-size: 1.15rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.contact-intro {
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}

.contact-mail {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 200;
  letter-spacing: 0.06em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 1.8rem;
}
.contact-mail:hover { border-color: var(--accent); color: var(--accent); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}
.contact-details a {
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s;
}
.contact-details a:hover { color: var(--text); }

.contact-address {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.contact-links a:hover { color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem var(--side-pad);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-links { display: flex; gap: 1.8rem; }
.footer-links a:hover { color: var(--accent); }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.lb-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 86vh;
}

#lb-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
#lb-img[hidden] { display: none; }

.lb-video {
  width: min(88vw, calc(82vh * 16 / 9));
  aspect-ratio: 16 / 9;
  position: relative;
}
.lb-video iframe,
.lb-video video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
  background: #000;
  object-fit: contain;
}
.lb-video[hidden] { display: none; }

.lb-btn {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  padding: 0.85rem;
  transition: color 0.2s;
}
.lb-btn:hover { color: var(--accent); }

.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev  { top: 50%; left: 1.2rem;  transform: translateY(-50%); }
.lb-next  { top: 50%; right: 1.2rem; transform: translateY(-50%); }

.lb-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
#lb-caption {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}
#lb-counter {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --side-pad: 1.5rem;
    --gap: 10px;
    --header-h: 64px;
  }

  .nav-burger { display: flex; }

  #site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  #site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  #site-nav ul li { border-bottom: 1px solid var(--border); }
  #site-nav ul a {
    display: block;
    padding: 0.95rem 0;
    font-size: 0.82rem;
  }
  .nav-instagram { margin-top: 1.2rem; }

  .logo-name { font-size: 1.35rem; }
  .logo-type { font-size: 0.85rem; }

  .gallery-section { padding: 3.5rem var(--side-pad) 1.5rem; }
}

@media (max-width: 600px) {
  :root { --gap: 6px; --side-pad: 1rem; }

  .hero { aspect-ratio: 3 / 2; min-height: 280px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 0.2rem; }
  .lb-next { right: 0.2rem; }
}

/* ── Image load shimmer ────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -400% 0; }
  to   { background-position:  400% 0; }
}
.gallery-item img {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 400% 100%;
}
.gallery-item img.loaded {
  background: none;
  animation: none;
}
