/* ============================================================
   PORTFOLIO — style.css
   Colors: black / white / grey only
   Font: Space Grotesk
   ============================================================ */

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

:root {
  --black:  #111111;
  --white:  #ffffff;
  --grey-1: #f4f4f4;
  --grey-2: #e0e0e0;
  --grey-3: #aaaaaa;
  --grey-4: #555555;
  --nav-h:  64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}



/* space-grotesk-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/space-grotesk-v22-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/space-grotesk-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/space-grotesk-v22-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}









/* ============================================================
   NAVIGATION — sticky
   ============================================================ */
#navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-2);
  transition: box-shadow 0.25s;
}

#navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  padding: 0 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.10rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  color: var(--black) !important;
}

.nav-logo a{
  font-size: 1.10rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  color: var(--black) !important;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}

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

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  overflow: hidden;
}

/* Background layer — contains the three crossfade slides */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* --- SLIDESHOW SLIDES ---*/
.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-slide--1 { background-image: url('images/ot-1-1981-stahl-80x80x3cm.jpg'); }
.hero-slide--2 { background-image: url('images/annaeherung-iii-1984-marmor-stahl-100x200x60cm.jpg'); }
.hero-slide--3 { background-image: url('images/cpu-1-2005-mischtechnik-auf-kopie-43x60cm.jpg'); }
.hero-slide--4 { background-image: url('images/wald-1-2013-bleistift-auf-papier-114x150cm.jpg'); }



/* Placeholder shown inside each slide when no image is set */
.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(0, 0, 0, 0.22);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Text box */
.hero-box {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 2.5rem 3rem;
  max-width: 460px;
  border: 1px solid var(--grey-2);
  animation: fadeUp 0.8s ease both 0.1s;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--grey-4);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* Button group */
.hero-cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--black);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.hero-cta:hover {
  background: var(--black);
  color: var(--white);
}




/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 3rem;
  margin: 5rem 0 2.5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider span {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-3);
  white-space: nowrap;
  font-weight: 400;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-2);
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  padding: 0 3rem 6rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.about-col-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-label {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.about-body p {
  color: var(--grey-4);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
  font-weight: 300;
  max-width: 560px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.75rem;
}

.tag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--grey-2);
  padding: 0.3rem 0.85rem;
  color: var(--grey-4);
  font-weight: 400;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--grey-3);
  color: var(--black);
}

/* About image */
.about-image {
  width: 100%;
}

.about-image img {
  width: 100%;
  display: block;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--grey-1);
  border: 1px solid var(--grey-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(0, 0, 0, 0.2);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Portrait slideshow */
.portrait-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

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

.portrait-slide.active {
  opacity: 1;
}


.portrait-slide--1 { background-image: url('images/dieter-stolte-portrait-1.jpg'); }
.portrait-slide--2 { background-image: url('images/dieter-stolte-portrait-2.jpg'); }
.portrait-slide--3 { background-image: url('images/dieter-stolte-portrait-3.jpg'); }


.portrait-slide .about-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

/* Exhibitions row — spans full width below the two-column row */
.about-exhibitions {
  grid-column: 1 / -1;
  padding-top: 0;
  margin-top: 0;
}

.about-exhibitions-label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-3);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.exhibition-list {
  list-style: none;
  columns: 3;
  column-gap: 3rem;
}

.exhibition-list li {
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--grey-2);
  break-inside: avoid;
  color: var(--grey-4);
}

.ex-year {
  font-weight: 500;
  color: var(--black);
  margin-right: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.ex-title {
  color: var(--black);
}

.ex-venue {
  color: var(--grey-3);
}

/* Responsive — stack exhibitions to 1 column on mobile */
@media (max-width: 700px) {
  .exhibition-list {
    columns: 1;
  }
}

/* ============================================================
   WORK GRID
   ============================================================ */
.work {
  padding: 0 3rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-2);
  border: 1px solid var(--grey-2);
}

.work-item {
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
}

.work-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  width: 100%;
}



.work-thumb-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.work-item:hover .work-thumb-inner {
  transform: scale(1.04);
}

/* To use real images, replace the .work-thumb-inner div with:
   <img src="your-image.jpg" alt="Title" />
   and add these rules:
   .work-thumb img { width:100%; height:100%; object-fit:cover; display:block; } */

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.thumb-ph-icon {
  opacity: 0.18;
  color: var(--black);
}

.thumb-ph-text {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

.work-meta {
  padding: 1rem 1.25rem 2rem 1.25rem;
  border-top: 1px solid var(--grey-2);
}

.work-title {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.work-year {
  font-size: 0.72rem;
  color: var(--grey-4);
  margin-top: 0.25rem;
  font-weight: 300;
}




/* ============================================================
   MAP
   ============================================================ */
.map-section {
  padding: 0 3rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

#map {
  width: 100%;
  height: 790px;
  border: 1px solid var(--grey-2);
  background: var(--grey-1);
  z-index: 0;
}

/* Leaflet popup overrides — fit the portfolio design */
.leaflet-popup-content-wrapper {
  border-radius: 0 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13) !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--grey-2);
}

.leaflet-popup-tip-container {
  display: none;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 131px !important;
}

.map-popup-img {
  width: 131px;
  height: 100px;
  object-fit: cover;
  display: block;
  background: var(--grey-2);
}

.map-popup-body {
  padding: 0.5rem 0.65rem;
}

.map-popup-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
  font-family: 'Space Grotesk';
}

.map-popup-info {
  font-size: 0.68rem;
  color: var(--grey-3);
  font-weight: 300;
  font-family: 'Space Grotesk';
}

.map-popup-address {
  display: block;
  font-size: 0.65rem;
  color: var(--black) !important;
  margin-top: 0.4rem;
  line-height: 1.4;
  text-decoration: underline;
  padding-bottom: 0.1rem;
  transition: opacity 0.2s;
}

.map-popup-address:hover {
  opacity: 0.6;
}

.map-popup-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.map-popup-info {
  font-size: 0.75rem;
  color: var(--grey-3);
  font-weight: 300;
}


/* Custom pin marker */
.map-pin {
  width: 14px;
  height: 14px;
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--black);
  cursor: pointer;
  transition: transform 0.15s;
}

.map-pin:hover {
  transform: scale(1.4);
}

@media (max-width: 700px) {
  .map-section {
    padding: 0 1.5rem 4rem;
  }

  #map {
    height: 400px;
  }
}




/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--grey-2);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-name {
  font-size: 0.85rem;
  font-weight: 400;
}

.footer-name a {
  color: var(--grey-4);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--grey-3);
  font-weight: 300;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 900;
  pointer-events: none;
  transition: background 0.35s ease;
}

.lightbox-backdrop.open {
  background: rgba(0, 0, 0, 0.88);
  pointer-events: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 910;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 160px);
  height: calc(100% - 120px);
  max-width: 1100px;
}

.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#lightboxImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
  transition: opacity 0.25s ease;
}

#lightboxImg.loaded {
  display: block;
}

.lightbox-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: 340px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nav buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 920;
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* Close button */
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 920;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Caption bar */
.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.lightbox-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
}

.lightbox-year {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.lightbox-counter {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}


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

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-inner {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-2);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    align-items: flex-end;
    padding: 1.5rem;
  }

  .hero-box {
    padding: 1.5rem;
    max-width: 100%;
    margin-bottom: 7rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem 4rem;
  }

  .about-image {
    max-width: 280px;
  }

  .section-divider {
    padding: 0 1.5rem;
    margin: 3.5rem 1.5rem 2rem;
  }

  .work {
    padding: 0 1.5rem 5rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 1.75rem 1.5rem;
  }
}
