/* Reset & Basiseinstellungen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  text-align: center;
  z-index: 2;
  opacity: 1;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2%, rgba(0, 0, 0, 1) 100%);
  padding: 2vw 0 4vw;
}

header.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

header img {
  height: 18px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #000;
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.hero h2 {
  font-family: "freight-display-pro", serif;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.12em;
  font-size: 6vw;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  width: 100%;
}

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.in-view img {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption-wrapper {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.gallery-item.in-view .gallery-caption-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption,
.gallery-subcaption {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #fff;
  text-align: left;
}

.gallery-caption {
  font-size: 3rem;
}

.gallery-subcaption {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}




/* Bild-Wrapper als Positionierungs-Referenz */
.gallery-item .media {
  position: relative;
  display: block;
}

/* Bild bleibt wie gehabt – falls du die Höhe global setzt, kannst du das hier weglassen */
.gallery-item .media img {
  display: block;
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

/* Link-Button: immer oben rechts IM Bild */
.project-link {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 5; /* über Bild/Caption */
  background: rgba(255,255,255,0.18); /* weiß-transparent */
  border: 1px solid rgba(255,255,255,0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.project-link svg { width: 16px; height: 16px; }

.project-link:hover { 
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

/* Mobil feinjustieren (kleinerer Abstand/Knopf) */
@media (max-width: 768px) {
  .project-link {
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
  }
  .project-link svg { width: 14px; height: 14px; }
}
/* Icon standardmäßig verstecken … */
.project-link{
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;                 /* nicht klickbar, solange versteckt */
  transition: opacity .6s ease, transform .6s ease;
}

/* … und nur zeigen, wenn das Bild im Viewport ist */
.gallery-item.in-view .project-link{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}






/* Footer */
footer {
  background: #000;
  color: #666;
  font-size: 0.75rem;
  text-align: center;
  padding: 4rem 2rem 2rem;
}

footer p {
  margin-bottom: 0.5rem;
}

.mail-link {
  color: #666;       
  text-decoration: none; 
  transition: color 0.3s ease;
}

.mail-link:hover {
  color: #fff;        
}

/* Rotierendes Siegel */
.rotate-badge {
  position: fixed;
  right: 5rem;
  bottom: 5rem;
  z-index: 10;
  width: 150px;
  height: 150px;
  pointer-events: none;
  opacity: .95;
}

.rotate-badge img,
.rotate-badge svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: spin 50s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  header img {
    height: 14px;
  }
  
  .hero {
    height: 90vh;
  }

  .hero h2 {
    font-size: 13vw;
  }

  .gallery-item {
    padding: 13vw 0;
  }

  .gallery-item img {
    height: 40vh;
  }

  .gallery-caption-wrapper {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    padding-top: 1rem;
  }

  .gallery-caption {
    padding: 0 1rem;
    line-height: 1.2;
    font-size: 2em;
  }

  .gallery-subcaption {
    padding: 0 1rem;
    line-height: 1.2;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  footer {
    padding: 2rem 1rem;
  }

  .rotate-badge {
    width: 80px;
    height: 80px;
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

/* --- Carousel: Bild-Wrapper --- */
.gallery-item .media {
  position: relative;
}
.gallery-item .media img {
  display: block;
  width: 100%;
  height: 80vh;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
@media (max-width:768px) {
  .gallery-item .media img { height: 40vh; }
}

/* Carousel Viewport */
.carousel-vp {
  position: relative;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y; 
}

/* Dots im Bild */
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: .75rem;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 6;
  opacity: 0;
  transform: translate(-50%, 30px);
  transition: opacity .6s ease, transform .6s ease;
}
.gallery-item.in-view .carousel-dots {
  opacity: 1;
  transform: translate(-50%, 0);
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.28);
  transition: background .2s ease, transform .1s ease;
}
.carousel-dot.is-active { background: #fff; }
.carousel-dot:hover { transform: scale(1.15); }

@media (max-width:480px) {
  .carousel-dot { width: 7px; height: 7px; }
}




/* Impressum & Datenschutz */
.legal-container {
  max-width: 45%; 
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
}

.legal-container h1 {
  font-family: "freight-display-pro", serif;
  font-weight: 300;
  font-style: normal;
  font-size: 2.4rem; 
  letter-spacing: 0.12em; 
  text-transform: uppercase;
  margin: 2rem 0 1rem;
  line-height: 1.2;
}

.legal-container h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.8rem;
}

.legal-container p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
}

.legal-container a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-container a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .legal-container {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .legal-container {
    max-width: 100%;
    padding: 6rem 1.5rem 2rem;
    font-size: 0.85rem;
  }

  .legal-container h1 {
    font-size: 1.8rem;
  }
}





