@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;700&display=swap');

body, html {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: 'Work Sans', sans-serif;
  cursor: none;
}

body.no-scroll { overflow: hidden; }
body.can-scroll { overflow-y: auto; overflow-x: hidden; }

/* =======================
   HEADER NAVIGATION
======================= */
#header-nav {
  position: fixed;
  top: 40px; left: 40px; right: 40px;
  display: flex; justify-content: space-between;
  z-index: 100;
  pointer-events: none;
}
.nav-column { width: 25%; pointer-events: auto; }
#header-nav p, #extra-about { font-size: 14px; line-height: 1.5; margin: 0; color: #000; }
.highlight-name { color: magenta; font-weight: 500; }
#extra-about {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19,1,0.22,1);
  margin-top: 10px;
}
#extra-about.visible { max-height: 500px; opacity: 1; }
#extra-about p { margin-bottom: 12px; font-size: 14px; line-height: 1.7; }
.plus-icon { font-size: 24px; margin-top: 15px; cursor: pointer; display: inline-block; transition: transform 0.3s; }
.plus-icon:hover { transform: rotate(90deg); }
#header-nav a { color: #000; text-decoration: none; border-bottom: 1px solid #000; }
.text-right { text-align: right; }

/* =======================
   OVERLAY
======================= */
#project-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}
.overlay-content { display: flex; width: 90%; max-width: 1200px; gap: 60px; }
.overlay-gallery { flex: 1; position: relative; }
.overlay-gallery img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; }
.overlay-arrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  cursor: pointer;
  user-select: none;
}
.left-arrow { left: 12px; }
.right-arrow { right: 12px; }
.overlay-info { flex: 0 0 380px; }
#project-title { font-size: 16px; font-weight: normal; margin-bottom: 15px; }
#project-description { font-size: 13px; line-height: 1.6; }
.overlay-close { position: absolute; top: 40px; right: 40px; font-size: 32px; cursor: pointer; }

/* =======================
   HERO / SPHERE
======================= */
#hero { position: fixed; top:0; left:0; width:100vw; height:100vh; z-index:10; pointer-events:none; }
#scene { perspective: 2000px; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
#gallery { transform-style: preserve-3d; }

.tile { position: absolute; background-size: cover; background-position: center; pointer-events: auto; cursor: pointer; }
.tile.portrait { width: 300px; height: 420px; }
.project-label {
  position: absolute; bottom: -30px; left: 0;
  font-size: 11px; text-transform: lowercase; color: #000;
  opacity: 0; white-space: nowrap; pointer-events: none;
}

/* =======================
   CURSOR & BACK BUTTON
======================= */
.cursor-bubble {
  position: fixed;
  width: 14px; height: 14px; border-radius: 50%;
  z-index: 9999; pointer-events: none;
  background-color: magenta;
  transform: translate(-50%, -50%);
}
#back-button {
  position: fixed; bottom:40px; left:40px; z-index:1500;
  display: none;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  padding: 10px 20px; background:#fff; border:0;
  pointer-events:auto;
}

/* =======================
   SCROLL CONTAINER
======================= */
#scroll-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.scroll-spacer {
  width: 100%;
  height: 0;
}


/* =======================
   RESPONSIVE MOBILE
======================= */
@media (max-width: 768px) {
  .cursor-bubble { display:none; }
  body, html { cursor:auto; }

  #header-nav {
    position: relative; top:0; left:0; right:0;
    padding: 20px; flex-direction: column; gap: 20px; pointer-events:auto;
  }
  .nav-column { width: 100%; }
  .text-right { text-align:left; }

  /* HERO als flexibles Grid */
  #hero { position: relative; display:block; height:auto; pointer-events:auto; }
  #scene { perspective:none; height:auto; }
  #gallery {
    transform:none !important;
    position: relative !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
  }
  .tile {
    position: relative !important;
    transform: none !important;
    width: 48%; /* 2 Spalten auf Mobile */
    max-width: 300px;
    height: auto;
    margin: 0;
  }
  .project-label {
    opacity:1 !important;
    bottom:10px !important;
    text-align:center;
  }

  #back-button { display:none !important; }

  /* Overlay für Mobile */
  #project-overlay { align-items:flex-start; padding:20px; }
  .overlay-content { flex-direction: column; width:95%; max-width:none; gap:20px; }
  .overlay-gallery { width:100%; }
  .overlay-gallery img { max-height:50vh; object-fit:contain; }
  .overlay-info { flex:1 1 auto; width:100%; max-height:40vh; overflow-y:auto; }
  #project-title { font-size:16px; }
  #project-description { font-size:14px; line-height:1.5; }
}
#imprint {
  position: fixed;
  bottom: 40px;
  left: 40px;
  font-size: 11px;
  color: #999;
  z-index: 100;
}

#imprint a {
  color: #999;
  text-decoration: none;
}

#imprint a:hover {
  color: #666;
}
