@font-face {
    font-family: ProtoMono;
    src: url("fonts/ProtoMono-Regular.woff") format("woff");
}

@font-face {
    font-family: AlteHaasGrotesk;
    src: url("fonts/AlteHaasGrotesk.woff") format("woff");
}


html, body {
  overflow: hidden;
  margin: 0;
}

body {
  font-family: "ProtoMono", sans-serif;
  font-size: 0.82rem;
  background: #161616; 
  user-select: none;
}

a {
  color: #00ff00;
  transition: color 0.3s;
}

.p-legal { 
  
  position: relative;
  color: white;
  margin-left: 2.4rem;
  max-width: 33vw;


}

.mobile-br {
  display: none;
}



.p-legal:last-child {
  margin-bottom: 1rem;
}

.p-legal:first-child {
  margin-top: 7rem;
}

.p-wrapper {
  overflow-y: scroll;
  width: 100%;
  height: 100%;
  position: absolute;
}



.no-scroll {
  overflow: hidden;
}

header {
    display: flex;
    z-index: 999;
    flex-direction: column;
    position: fixed;
    left: 0;
    width: 100%;
   
}

header a {
  text-decoration: none;
}

.nav-wrapper { 
    display: flex;
    width: 12rem;
    justify-content: space-between;
    transform: translateX(3.4rem) translateY(1.9rem);
    background: linear-gradient(to right, lightgrey, #00ff00);
}

nav {
    display: flex;
    z-index: 99;
    color: #424242;
    font-size: 0.95rem;
}

nav a, footer a, .work, .about, .close-project {
    color: #424242;
    text-decoration: underline; 
}

nav a:hover, footer a:hover, .work:hover, .about:hover, .about-overlay-nav:hover, .close-project.active:hover, .close-visual:hover, .socials:hover{
    animation: underline-blink 0.4s step-start infinite;
    cursor: pointer;
}

@keyframes underline-blink {
  0%, 100% {
     text-decoration-color: #141414;
  }
  50% {
    text-decoration-color: rgba(0, 0, 0, 0);
  }
}


footer {
    display: flex;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 20rem;
    z-index: 106;
    justify-content: space-between;
    background: linear-gradient(to right, lightgrey, #00ff00);
    font-size: 0.95rem;  
}

main {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.about-overlay-backdrop {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 105;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backdrop-filter: grayscale(0)  blur(0px);
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;align-items: center;
  justify-items: center;
}


.about-overlay-backdrop.active {
 visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
  backdrop-filter: grayscale(100)  blur(20px);
}


.about-overlay {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 7rem;
  z-index: 106;
  width: 100%;
  padding-left: 4.8rem;
  padding-right: 4.8rem;

  color: white;
  box-sizing: border-box;    
}

.about-overlay p {
    z-index: 1;
    padding: 0.8rem;
      font-size: 0.82rem;
    line-height: 1.03rem;
    background: #161616;
    margin-block-start: 0;
}

.about-text-wrapper {
  display: flex;
  width: 100%;
  background: #161616;
z-index: 106;
justify-content: space-between;
}

.about-text {
  z-index: 106;
  display: flex;
  width: 50%;

}

.about-text p {
  max-width: 85%;

}

.about-text ul {
  list-style-type: none
}

.about-overlay-nav {
    font-size: 0.95rem;
    z-index: 105;
    width: fit-content;
    align-self: flex-start;
    height: 1.2rem;
    text-align: left;
    color: #424242;
    text-decoration: underline;
    background: linear-gradient(to right, lightgrey, #00ff00);
}

.about-overlay-nav:hover {
    text-decoration: underline;
    cursor: pointer;
}

.geolocation {
  display: none;
  position: fixed;
  right: 0;
  display: flex;
  flex-direction: column;
}


.socials {
  text-align: right;
  background: linear-gradient(to right, lightgrey, #00ff00);
  paint-order: stroke fill;
  z-index: 0;
  position: relative;
  isolation: isolate;
  width: fit-content;

    right: 0;
  transform: translateY(2.4rem);
  align-self: flex-end;
}




.name-logo {
    font-family: AlteHaasGrotesk, sans-serif;
    text-transform: uppercase;
    font-size: 4rem;
    color: white;
    height: 2.8rem;
    z-index: 102;
    box-sizing: content-box;
    pointer-events: none; 
    display: flex;
    justify-content: space-between;
    position: relative;
    text-shadow: 0 0 2px #ffffff;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
    isolation: isolate;
}


#projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(33%, 1fr));
gap: 0rem;
   margin-top: 7.8rem;
}

.project-row {
  overflow: hidden;
  color: #424242;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  transition:   height 0.2s;
  aspect-ratio: 16 / 9;
  width: auto;
  height: auto;
}

.project-row.expanded {
  position: fixed;
  top: 0;
  left: 0;
 
  z-index: 99;
  background: black;
}
.project-main {
   aspect-ratio: 16 / 9; 
  display: flex;
  width: 100%;
  height: 100%;

  box-sizing: border-box;
  /* border-radius: 1.2rem; */
  transition: scale 0.2s;
  display: flex;
  flex-direction: column;
   animation: pulse 1.5s ease-in-out infinite;

}



.project-data {
 display: flex;
 flex-direction: column;
   position: absolute;
isolation: isolate;
  z-index: 0;
  color: white;
}

.project-data:first-child {
  margin: 0!important;
}

.project-data * {
  margin: 0rem;
}

.project-name, .project-tags, .project-year {
  background:  #161616;
  color: white;
  width: fit-content;
  transition: color 0.2s, opacity 0.2s, transform 0.2s, font-size 0.2s;
  box-shadow: 0 0 5px rgb(0,0,0,0.4);
}

.project-row:hover .project-tags,
.project-row:hover .project-year
 {
display: flex;
opacity: 1;

}

.project-overlay {
  flex-direction: column;
  pointer-events: none;
  width: 100dvw;
  height: 100dvh;
  position: fixed;
    overflow-y: scroll;
    transform: translateY(100%);
      transition: all 0.4s ease, transform 0.4s ease;
      opacity: 0;
     /* background: #141414; */
       backdrop-filter: grayscale(100)  blur(15px) brightness(0.33);

}


.project-overlay.active {
  display: flex;
      transform: translateY(0%);
      opacity: 1;
      z-index: 90;
      pointer-events: auto;
}

.close-project {
   display: none;
     position: absolute;
  top: 7rem;
left: 9rem;
padding: 1rem;               /* vergrößert die Klickfläche */
      opacity: 0;

}

.close-visual {
     background: linear-gradient(to right, lightgrey, #00ff00);
     z-index: 103;
       width: fit-content;
       transition: opacity 0.3s ease;
       font-size: 0.9rem;


}

.close-project.active {
  opacity: 1;
  display: flex;
  z-index: 104;
}

.project-hero {
  margin-top: 3rem;
  align-self: center;
  width: 75%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.project-hero video, .project-hero img {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-meta-wrapper{
    position: absolute;
display: flex;
flex-direction: column;
z-index: 12;
color: white;
text-align: center;
     width: fit-content;
    max-width: 66dvw;
     text-shadow: 0 0 25px black;
     width: fit-content;
     padding: 0.3rem;
}

.project-overlay-title  {
  font-size: 2rem;
  margin-bottom: 0.6rem;
    backdrop-filter: brightness(0.5) blur(5px);
}

.project-overlay-tags, .project-overlay-year {
    font-size: 0.9rem;
    bottom: 2rem;
       backdrop-filter: brightness(0.5) blur(5px);
       width: fit-content;
       align-self: center;
}


.project-main video,
.project-main img {
  display: flex;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-video {
display: flex;
}

.project-tags, .project-year {
  opacity: 0;
  transition: opacity 0.2s;
}


img, video {
  transition: scale 0.2s;
}

.project-row:hover img,
.project-row:hover video {
  scale: 1.02;
}


.project-year {
    text-align: right;
}


.project-images {
    width: 100%;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    overflow: scroll;
}


.project-details {
  display: flex;
  flex-direction: column;
}

.project-details a:hover {
  color: white;
}

.project-details span {
  display: inline;
}

.gallery-grid {
  width: 75%;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
  box-sizing: border-box;
}


.gallery-grid:last-child {
  margin-bottom: 3rem;
}

.gallery-grid-item {
  width: 100%;
  height: 100%;
  background: #161616;
  object-fit: cover;
  grid-column: span 1;
  overflow: hidden;

}

.gallery-grid-item:hover {
  cursor: pointer;
}

.gallery-grid-item img,
.gallery-grid-item video {

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid-item.landscape {
  grid-column: span 2;
  aspect-ratio: 8 / 5;
  width: 100%;

}

.project-overlay-description {
  color: white;
  padding: 2rem;
  box-sizing: border-box;
  width: 66vw;
}
.zoom-overlay {
  display: flex;
  position: absolute;
  height: 100vh;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: grid;
  place-items: center;
  backdrop-filter: grayscale(100)  blur(8px);
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;align-items: center;
}


.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
  
}
.zoom-overlay__content {
  display: flex;
  max-width: 90vw;
  height: 90%;
  place-items: center;
}
.zoom-overlay__content img,
.zoom-overlay__content video {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow:0 0 50px #424242;
  max-height: 100vh;
}
body.zoom-lock { overflow: hidden; }


/* LQIP-Zustand: weichgezeichnet + leicht größer, damit keine Rand-Artefakte sichtbar sind */
.img-lqip {
  filter: blur(5px);
  transform: scale(1.04);
  transition: filter .25s ease, opacity .2s ease, transform .25s ease;
  will-change: filter, transform, opacity;
}

/* Nach Swap: Blur weg, Scale zurück */
.img-ready {
  filter: blur(0);
  transform: none;
}

.img-cf { position: relative; width: 100%; height: 100%; }
.img-cf > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-hi { opacity: 0; transition: opacity .25s ease; }
.img-hi--on { opacity: 1; }
/* deine .img-lqip (Blur/leichtes Scale) bleibt wie gehabt */

@media (max-width: 768px) {

  nav, footer {
    font-size: 0.8rem;
  }

  footer {
    width: 60%;
  }


 #projects {

  overflow-x: none;
  grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  gap: 0rem;
}

.project-main {
  font-size: 0.8rem;
   aspect-ratio: 16 / 9; 
}

.name-logo {
  font-size: 1.8rem;
}

.nav-wrapper {
  transform: translateY(1rem);
  width: 8rem;
}

.date {
  transform: translateY(-0.7rem);
}

#projects {
  padding: 0;
   margin-top: 6.8rem;
}

.geolocation {

  position: fixed;
  right: 0;
  top: 2.3rem;
}

.date {

  right: 0;
  transform: translateY(-0.6rem);
  align-self: flex-end;
}

#location {
 
  transform: translateY(-0.5rem) translateX(-1.3rem);
}

.nav-wrapper { 
   width: 8rem;
   justify-content: space-between;
   transform: translateX(0.6rem) translateY(0.6rem);
}

.about-overlay {
  height: 100%;
   top: 6rem;
padding-left: 1.2rem;
padding-right: 1.2rem;
    width: 100%;
        font-size: 0.8rem;
        padding-bottom: 8rem;
}

.about-overlay p {
    z-index: 1;
    padding: 0.8rem;
    line-height: 1.03rem;
    background: #161616;
    margin-block-start: 0;
    overflow-y: scroll;
}

.about-text-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #161616;
        overflow-y: scroll;

justify-content: space-between;

}

.about-text {
  display: flex;
  width: 100%;

}

.about-text p {
  max-width: 85%;

}

.about-text ul {
  list-style-type: none;
  padding: 0.8rem;
  
}



.project-overlay {
  flex-direction: column;
  pointer-events: none;
  width: 100dvw;
  height: 100dvh;
  position: fixed;
    overflow-y: scroll;
    transform: translateY(100%);
      transition: opacity 0.4s ease, transform 0.4s ease;
      opacity: 0;
}

.project-overlay.active {
  display: flex;
  background: #141414;
      transform: translateY(0%);
      opacity: 1;
      z-index: 99;
      pointer-events: auto;
}

.close-project {
   display: none;
     position: absolute;
  top: 5rem;
left: 1.5rem;
padding: 1rem;               /* vergrößert die Klickfläche */
      opacity: 0;

}

.close-visual {
     background: linear-gradient(to right, lightgrey, #00ff00);
     z-index: 103;
       width: fit-content;
       transition: opacity 0.3s ease;
       font-size: 0.8rem;


}
.project-hero video, .project-hero img {
aspect-ratio: 16 / 9;

}

.project-details {
  font-size: 0.80rem;
}

.project-overlay-title {
  font-size: 2rem;
}

.project-hero {
  margin-top: 6.5rem;
  margin-bottom: 2.5rem;
  width: 90%;
 }

 .project-meta-wrapper{
    max-width: 85dvw;
      transform: translateY(3.2rem);

}
 
 .project-overlay-title  {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.project-overlay-tags, .project-overlay-year {
    font-size: 0.82rem;

}




.gallery-grid {
  width: 92%;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0rem;
  gap: 0.33rem;

}

.project-overlay-description {
  width: 100%;
  overflow-x: hidden;
}

.project-overlay-description a {
  width: 25%;
  display: inline;
}

.p-legal {
  margin-left: 1.2rem;
  margin-right: 1.2rem;
  max-width: 100%;
}

.zoom-overlay {
  height: 100dvh;
}

.zoom-overlay.active {
  position: fixed;
  
}

.zoom-overlay__content {
  height: auto;
}

.zoom-overlay__content img,
.zoom-overlay__content video {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.about-overlay-nav {
  font-size: 0.8rem;
}

.project-row:hover .project-tags,
.project-row:hover .project-year
 {
display: none;

}

li {
  margin-bottom: 1.4rem;
}

.mobile-br {
  display: block;
}

.desktop-spacing {
  display: none;
}


}