/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 56px; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f7f5f0;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* ── Bildschutz ──
   Bilder ignorieren Zeiger-Events: Rechtsklick und Long-Press
   landen auf dem Container, nicht auf dem Bild — es gibt also
   kein "Bild speichern unter". Klicks funktionieren weiterhin,
   weil die Eltern-Elemente sie behandeln. */
img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Beim Drucken / PDF-Export keine Bilder */
@media print {
  img, .hero, .work-grid, .overlay { display: none !important; }
  body::before {
    content: 'Alle Fotografien © Olga Jaenick — Reproduktion nicht gestattet.';
    display: block;
    padding: 40px;
    font-size: 12px;
  }
}

/* ── Header ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 44px;
  pointer-events: none;
  transition: background 0.4s ease;
}
header.on-light {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
header * { pointer-events: all; }

/* ── Dot Navigation ── */
nav.dot-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.nav-item:hover .nav-label {
  opacity: 1;
  transform: translateX(0);
}
.nav-item:hover .dot {
  transform: scale(1.8);
}

/* Header color states */
header.on-image { color: #fff; }
header.on-image .dot { background: #fff; }
header.on-light { color: #1a1a1a; }
header.on-light .dot { background: #1a1a1a; }

/* ── Logo & header right ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  color: inherit;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.65; }
header.on-image .logo { color: #fff; }
header.on-light .logo { color: #1a1a1a; }

/* ── Language switcher ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.35;
  padding: 0;
  transition: opacity 0.2s;
}
.lang-btn.active { opacity: 1; }
.lang-btn:hover { opacity: 0.7; }
.lang-sep {
  font-size: 9px;
  color: inherit;
  opacity: 0.25;
}

/* ── Hero Slider ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
  background: #0e0e0e;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* slow drift on the visible slide */
.hero-slide.active img {
  animation: heroDrift 9s ease-out forwards;
}
@keyframes heroDrift {
  from { transform: scale(1.03); }
  to   { transform: scale(1.09); }
}
/* Dark scrim — stronger on hover */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
  z-index: 1;
  transition: background 0.4s ease;
  pointer-events: none;
}
.hero:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%);
}

/* Hero caption */
.hero-info {
  position: absolute;
  bottom: 56px;
  left: 60px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}
.hero-title {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-count {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 10px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-info.fading .hero-title,
.hero-info.fading .hero-count {
  opacity: 0;
  transform: translateY(8px);
}

/* Slide indicators */
.hero-nav {
  position: absolute;
  bottom: 64px;
  right: 60px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-bar {
  position: relative;
  width: 44px;
  height: 2px;
  background: rgba(255,255,255,0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
}
.hero-bar:hover { background: rgba(255,255,255,0.5); }
.hero-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-bar.active::after {
  animation: heroProgress var(--hero-duration, 6s) linear forwards;
}
.hero-bar.active.paused::after {
  animation-play-state: paused;
}
@keyframes heroProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scroll-indicator.hidden { opacity: 0; }
.scroll-indicator span {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Project tiles ── */
.work-section {
  background: #f7f5f0;
  padding: 84px 60px 110px;
}
.work-head {
  margin-bottom: 36px;
}
.work-head h2 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: #999;
  margin-bottom: 24px;
}
.work-head .section-sep { margin-bottom: 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tile {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  display: block;
}
.tile-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9e6e0;
}
.tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}
.tile:hover .tile-frame img {
  transform: scale(1.04);
  filter: brightness(0.92);
}
.tile-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.tile-name {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}
.tile-count {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a3a099;
  white-space: nowrap;
}

/* ── About / Contact pages ── */
.text-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  background: #f7f5f0;
}
.text-inner { max-width: 600px; }

/* About: gleiches Raster wie die Kacheln, Portrait in der dritten Spalte */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
  width: 100%;
}
.about-grid .text-inner {
  grid-column: 1 / 3;
  grid-row: 1;
}
.about-portrait {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  overflow: hidden;
  background: #e9e6e0;
  aspect-ratio: 1 / 1;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-portrait:hover img { transform: scale(1.04); }
.text-inner h2 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: #999;
  margin-bottom: 40px;
}
.text-inner p {
  font-size: 16px;
  line-height: 1.95;
  color: #444;
  margin-bottom: 22px;
  font-weight: 300;
}
/* Mail-Button */
.mail-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 16px 34px;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  background: transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.mail-btn:hover,
.mail-btn:focus-visible {
  background: #1a1a1a;
  color: #f7f5f0;
}
.section-sep {
  width: 32px;
  height: 1px;
  background: #ccc;
  margin-bottom: 40px;
}

/* ── Footer / Imprint ── */
footer {
  background: #111;
  color: #555;
  padding: 52px 60px;
}
.imprint-label {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 24px;
}
footer p {
  font-size: 11px;
  line-height: 2;
  color: #555;
}
footer p + p { margin-top: 16px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #222;
  font-size: 10px;
  color: #3a3a3a;
  letter-spacing: 0.1em;
}
.footer-logo {
  flex-shrink: 0;
  line-height: 0;
}
.footer-logo svg {
  height: 46px;
  width: auto;
  display: block;
  fill: #f7f5f0;
}

/* ── Overlay ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.overlay.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.overlay-shell {
  position: relative;
  width: min(88vw, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Top bar */
.overlay-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.overlay-series-title {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
}
.overlay-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  font-weight: 200;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.overlay-close:hover { color: #fff; }
/* Main image */
.overlay-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-img {
  max-height: 62vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 1px;
}
/* Arrow buttons */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  font-weight: 200;
  padding: 16px 20px;
  transition: color 0.2s;
  line-height: 1;
  z-index: 5;
}
.arrow-btn:hover { color: #fff; }
.arrow-btn.prev { left: -64px; }
.arrow-btn.next { right: -64px; }
/* Counter */
.overlay-counter {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}
/* Thumbnails */
.overlay-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.overlay-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s;
  flex-shrink: 0;
  border-radius: 1px;
}
.thumb.active { opacity: 1; }
.thumb:hover { opacity: 0.75; }

/* ── Responsive ── */
@media (max-width: 900px) {
  header { padding: 20px 24px; }
  .hero-info { left: 28px; bottom: 84px; }
  .hero-title { font-size: 30px; }
  .hero-nav { right: 28px; bottom: 40px; }
  .work-section { padding: 56px 24px 80px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .text-section { padding: 100px 24px 60px; }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .about-grid .text-inner { grid-column: 1 / 3; grid-row: 2; }
  .about-portrait { grid-column: 1; grid-row: 1; }
  footer { padding: 40px 24px; }
  .footer-top { gap: 24px; }
  .footer-logo svg { height: 34px; }
  .arrow-btn.prev { left: -8px; }
  .arrow-btn.next { right: -8px; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero-bar { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img { animation: none; }
  .scroll-line { animation: none; }
}
