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

:root {
  --bg:          #F8F7F4;
  --surface:     #FFFFFF;
  --text:        #1C1C1A;
  --text-light:  #6B6860;
  --accent:      #8B7355;
  --accent-dark: #6B5840;
  --border:      #E2DDD6;
  --nav-h:       72px;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding-right: 2rem;
  z-index: 101;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(139, 115, 85, 0.08);
}

.nav-links a.active { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139,115,85,0.06) 0%, transparent 70%),
    var(--bg);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

.hero-quote {
  max-width: 680px;
  margin: 2.5rem auto 0;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}

.hero-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-light);
}

.hero-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-scroll {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1s forwards;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

/* ===== SECTION LAYOUT ===== */
.section {
  padding: 6rem 2rem;
  max-width: 1320px;
  margin: 0 auto;
}

.section-full {
  padding: 6rem 0;
  background: var(--surface);
}

.section-full .section { padding-top: 0; padding-bottom: 0; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-rule {
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: 3rem;
}

/* ===== BIOGRAPHY ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.bio-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(15%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.bio-photo-caption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 0.06em;
}

.bio-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.bio-text p:first-of-type {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.7;
}

.bio-timeline {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.bio-timeline-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.bio-timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bio-timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.bio-timeline-item:last-child { border-bottom: none; }

.bio-timeline-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.bio-timeline-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== SUB-NAVIGATION (Gallery) ===== */
.gallery-nav {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.gallery-nav-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.gallery-nav-btn:hover { color: var(--text); }
.gallery-nav-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
  transition: opacity 0.3s var(--ease);
}

.gallery-grid.hidden { opacity: 0; pointer-events: none; display: none; }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 2px;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: saturate(0.9);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, 0);
  transition: background 0.3s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(28, 28, 26, 0.3);
}

.gallery-item-title {
  font-size: 0.78rem;
  color: white;
  letter-spacing: 0.04em;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  line-height: 1.4;
}

.gallery-item:hover .gallery-item-title {
  transform: translateY(0);
  opacity: 1;
}

/* Gallery load-more */
.gallery-more {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  background: none;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* ===== GRAFIK GALLERY ===== */
.grafik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.grafik-item {
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.grafik-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: saturate(0.9);
}

.grafik-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.1);
}

/* ===== PLACEHOLDER SECTIONS ===== */
.placeholder-box {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.placeholder-box .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.placeholder-box h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.placeholder-box p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Exhibition list preview */
.exhibition-cities {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.exhibition-city {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== KONTAKT ===== */
.kontakt-section {
  background: var(--text);
  color: white;
  padding: 6rem 2rem;
}

.kontakt-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.kontakt-left .section-label { color: var(--accent); }

.kontakt-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.kontakt-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.kontakt-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.kontakt-link:hover { color: white; }

.kontakt-link-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.kontakt-link:hover .kontakt-link-icon {
  border-color: var(--accent);
  background: var(--accent);
}

.kontakt-right {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 5rem;
}

.art24-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 2rem;
}

.art24-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.art24-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: white;
  margin-bottom: 0.75rem;
}

.art24-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.art24-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: white;
  border-radius: 3px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.art24-btn:hover { background: var(--accent-dark); }

/* ===== IMPRESSUM ===== */
.impressum-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.impressum-inner {
  max-width: 480px;
  margin: 0 auto;
}

.impressum-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}

.impressum-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.impressum-text a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.impressum-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ===== FOOTER ===== */
.footer {
  background: #141412;
  color: rgba(255,255,255,0.4);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.footer a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer a:hover { color: rgba(255,255,255,0.8); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85svh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  transition: opacity 0.25s;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }

.lightbox-caption {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80vw;
}

.lightbox-counter {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bio-photo-wrap { position: static; max-width: 360px; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 3rem; }
  .kontakt-right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 3rem; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0;
    height: auto;
    padding-right: 0;
    z-index: 200;
    display: flex;
    background: rgba(248, 247, 244, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 0.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; padding: 0.6rem 1.5rem; }
  .nav-toggle { display: flex; }

  .hero { min-height: 100svh; }
  .section { padding: 4rem 1.25rem; }
  .gallery-grid { columns: 1; }
  .grafik-grid { grid-template-columns: 1fr; }
  .bio-timeline-item { grid-template-columns: 5rem 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
