@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');
body {
  color: #fff;
  margin: 0;
  padding: 0;
  width: 100vw;
  background: rgb(0,0,0);
  font-size: 2vw;
  overflow-x: hidden;
  font-family: "greycliff-cf", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.mainheader {
  font-size: .65rem;
  position: fixed;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
  height: 3em;
  width: calc(100vw - 5em);
  margin: 2.5em 2.5em 0 2.5em;
}

.mainheader .logo img {
  width: auto;
  height: 3em;
}

.mainheader .navigation {
  width: 2em;
  z-index: 100;
}

label.menue {
  display: block;
  position: relative;
  float: right;
  width: 2em;
  height: 3em;
}

input#menue {display:none}


.line {
   position: absolute;
   height: .63em; width: 2em;
   background: #fff;
   display: block;
   transition: 0.5s;
   transform-origin: center;
   right: 0;
}

.line:nth-child(1) { top: 0.04em; }
.line:nth-child(2) { top: 1.2em; }
.line:nth-child(3) { top: 2.37em; }

#menue:checked + .menue .line:nth-child(1){
   transform: translateY(1.15em) rotate(-45deg);
}

#menue:checked + .menue .line:nth-child(2){
   opacity:0;
}

#menue:checked + .menue .line:nth-child(3){
   transform: translateY(-1.15em) rotate(45deg);
}

nav.topmenue {
    margin-top: 3em;
    height: auto;
    max-height:0;
    overflow: hidden;
    transition: all 0.5s;
    font-size: 2.5em;
    text-align: right;
    width: auto;
    right: 0;
    padding-right: 1.5em;
    position: absolute;
    background-color: rgba(0,0,0,.5);
}

#menue:checked + .menue  + nav.topmenue {
    max-height: 600px;
}

nav.topmenue ul {
  list-style: none;
  margin: .2em 0;
}

nav.topmenue li {
  padding: .25em 0;
}

nav.topmenue a{
text-decoration: none;
}


nav {
  position: relative;
  width: 100vw;
  text-align: center;
  font-size: 20px;
  line-height: 2em;
  margin-top: 2vh;
}
nav section {
  text-transform: uppercase;
  letter-spacing: .2rem;
}
nav span {
  margin: 5px;
}
a:link, a:visited {
  text-decoration: none;
  color: #fff;
}
a:hover {
  opacity:.5;
}

.hero {
 width: 100vw;
 aspect-ratio: 4 / 5;
 position: relative;
 overflow: hidden;
}

.hero > figure {
  animation: imageAnimation var(--duration) linear infinite;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center center;
  color: transparent;
  left: 0px;
  opacity: 0;
  position: absolute;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 0;
  margin: 0;
}

.hero:after {
    content: '';
    background: transparent url(../images/pattern.png) repeat top left;
    width: 100vw;
    height: 100vh;
    position: absolute;
    opacity: .5;
}


.hero .verlauf {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  aspect-ratio: 6 / 4;
  background: #000000;
  background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  overflow: hidden;
  pointer-events: none;
}




main {
  display: flex;
  flex-direction: column;
  font-size: .65rem;
  margin: 2.5em;
  width: calc(100vw - 5em);
}

.ohnehero {
  padding-top: 6rem;
}

main section {
  font-size: 1.5rem;
}
.projects {
  display: grid;
  grid-template-columns:  1fr;
  gap: 2em;
  margin-top: 2em;
  position: relative;
}

.project {
  aspect-ratio: 1 / 1;
  background: #020202;
  width: 100%;
  border-radius: 1em;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transition: opacity .2s;
}

.project:hover {
  opacity: .6;

}

.project img {
  width: 100%;
  justify-content: cover;
  transform: scale(1,1);
  transition: transform .5s;
}

.project:hover img {
  transform: scale(1.05,1.05);
}

.project-container {
  position: absolute;
  top: -.5em;
  left: -.5em;
  background-color: rgba(30,30,30,.98);
  width: calc(100% + 1em);
  border-radius: .5em;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1s ease-out;
  box-shadow: 5em 5em 5em 5em rgba(0,0,0,0.4);
  border: 1px solid #222;
}

.project-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.project-container header {
  width: 100%;
  overflow: hidden;
  position: relative;
  font-size: 1rem;
}

.project-container header img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-container h2 {
  font-size: 2em;
  margin: 1.5rem 1.5rem .5rem 1.5rem;
  line-height: 1em;
}

.project-container h3 {
  font-size: 1.5em;
  font-weight: 200;
  margin: 0 1.5rem;
  bottom: .5em;
  left: 1.5rem;
}

.project-container article {
  padding: 1em;
}

video {
  width: 100%;
  background: #000;
}

.close {
  position: absolute;
  right: .5em;
  top: .5em;
  width: 3em;
  height: 3em;
  opacity: 0.6;
  z-index: 100;
}
.close:hover {
  opacity: 1;
}
.close:before, .close:after {
  position: absolute;
  right: 1.5em;
  content: ' ';
  height: 3em;
  width: .05em;
  background-color: #fff;
}
.close:before {
  transform: rotate(45deg);
}
.close:after {
  transform: rotate(-45deg);
}

footer {
  text-align: center;
  font-size: .65rem;
  margin: 2.5em;
  width: calc(100vw - 5em);

}






/* Mobile = Standard */

@media (min-width: 768px) {
    /* Tablet */
    html, body {
    }

    .mainheader {
      font-size: 1.1rem;
      width: calc(100vw - 7em);
      margin: 3.5em 3.5em 0 3.5em;
    }
    main {
      font-size: 1.1rem;
      width: calc(100vw - 7em);
      margin: 3.5em;
    }
  
  .ohnehero {
    padding-top: 12rem;
  }
  
    

    main section p {
      padding-right: 3em;
    }

    .hero {
     aspect-ratio: 16 / 9;
    }

    .hero > figure {
      aspect-ratio: 16 / 9;
    }
    .hero .verlauf {
      aspect-ratio: 16 / 4;
    }
    .projects {
      grid-template-columns:  1fr 1fr;
    }
}

@media (min-width: 1024px) {

  body {
  }
  .mainheader {
    font-size: 1.3rem;
    width: calc(100vw - 8em);
    margin: 4em 4em 0 4em;
  }

  main {
    font-size: 1.3rem;
    width: calc(100vw - 8em);
    margin: 2em 4em;
  }
  
  main section {
    font-size: 2rem;
  }
  
  nav.topmenue {
    font-size: 2rem;
  }
  
  .projects {
    grid-template-columns:  1fr 1fr 1fr;
  }
  
  .project-container {
    width: 75vw;
    left: 5vw;
  }
  
  .project-container h2 {
    font-size: 3em;
    line-height: 1em;
    position: absolute;
    bottom: 2em;
    left: 2.5rem;
    margin: 0;
    width: 50%;
    text-shadow: #000 .1em .1em .3em;
  }
  
  .project-container h3 {
    position: absolute;
    font-size: 2.5em;
    bottom: 1em;
    margin: 0;
    left: 2.5rem;
    text-shadow: #000 .1em .1em .3em;
  }
}

@media (min-width: 1440px) {

  html, body {
  }
  .mainheader {
    font-size: 1.5rem;
    width: 70vw;
    left: 15vw;
    margin: 4em 0;
  }
  main {
    font-size: 1.8rem;
    width: 70vw;
    margin: 0 auto;
  }
  
  main section {
font-size: 2.5rem;
}
    .project-container {
    width: 60vw;
  }
}


@keyframes
imageAnimation {  0% {
 animation-timing-function: ease-in;
 opacity: 0;
 transform: scale(1,1);
}
 8% {
 animation-timing-function: ease-out;
 opacity: 1;
}
 17% {
 opacity: 1
}
 25% {
 opacity: 0;
 transform: scale(1.2,1.2);
}
 100% {
 opacity: 0
}
}
