/********** Navigation-Toggle **********/

/*Fullscreen Fläche*/

.overlay-navigation {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 100%, 0.2);
  display: none;
  opacity: 0;
}

nav,
nav ul {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  flex-basis: 20%;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  display: none;
}

/*Title*/

nav li a {
  position: relative;
  top: 46%;
  font-family: Type-1-Regular;
  text-decoration: none;
  font-size: 48px;
  color: #ffffff;
  transition: 0.3s;
  letter-spacing: 2px;
  line-height: 0%;
  display: block;
  text-align: center;
  opacity: 0;
}

nav li a:hover {
  color: #ff9944;
  text-decoration: line-through;
}

/*Line*/

nav li a:before {
  content: '';
  width: 70px;
  height: 2px;
  background-color: #ff9944;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 100;
  transform: translateX(-100%);
  opacity: 0;
  transition: all .2s linear;
}

/*Subtitle*/

nav li a:after {
  content: attr(data-content);
  transition: all .2s linear;
  opacity: 1.0;
  position: absolute;
  z-index: 100;
  display: block;
  margin-right: auto;
  margin-left: auto;
  left: 0;
  right: 0;
  bottom: -50px;
  font-family: Type-2-Regular;
  text-decoration: none;
  font-size: 36px;
  color: #d9e021;
  letter-spacing: 0px;
  line-height: 0%;
}

/*Background*/

nav li a:hover:before {
  transform: translateX(0);
  opacity: 1;
}

nav li a:hover:after {
  transform: translateY(15px);
  opacity: 1;
}

nav li:nth-of-type(1) {
  background-color: #29363b;
}

nav li:nth-of-type(2) {
  background-color: #ea495f;
}

nav li:nth-of-type(3) {
  background-color: #f4837d;
}

nav li:nth-of-type(4) {
  background-color: #fdcea9;
}

nav li:nth-of-type(5) {
  background-color: #99b998;
}

/*Burger-King*/

.open-overlay {
  position: fixed;
  right: 30px;
  top: 30px;
  z-index: 100;
  width: 38px;
  display: block;
  cursor: pointer;
}

.open-overlay span {
  display: block;
  height: 3px;
  background-color: #ffffff;
  cursor: pointer;
  margin-top: 8px;
}

.open-overlay:hover span {
  display: block;
  height: 3px;
  background-color: #FDCEA9;
  cursor: pointer;
  margin-top: 8px;
}

.animate-top-bar {
  -webkit-animation: animate-top-bar .6s linear 1 both;
  animation: animate-top-bar .6s linear 1 both;
}

.animate-bottom-bar {
  -webkit-animation: animate-bottom-bar .6s linear 1 both;
  animation: animate-bottom-bar .6s linear 1 both;
}

.animate-middle-bar {
  -webkit-animation: animate-middle-bar .6s linear 1 both;
  animation: animate-middle-bar .6s linear 1 both;
}

.animate-out-top-bar {
  -webkit-animation: animate-out-top-bar .6s linear 1 both;
  animation: animate-out-top-bar .6s linear 1 both;
}

.animate-out-bottom-bar {
  -webkit-animation: animate-out-bottom-bar .6s linear 1 both;
  animation: animate-out-bottom-bar .6s linear 1 both;
}

.animate-out-middle-bar {
  -webkit-animation: animate-out-middle-bar .6s linear 1 both;
  animation: animate-out-middle-bar .6s linear 1 both;
}

/*Keyframes*/

@-webkit-keyframes animate-top-bar {
  0% {
    background-color: #ffffff;
  }
  
  50% {
    transform: translateY(9px);
  }
  
  80% {
    transform: translateY(5px);
    background-color: #ffffff;
  }
  
  100% {
    transform: translateY(0);
    background-color: #FDCEA9;
  }
  
}

@keyframes animate-top-bar {
  0% {
    background-color: #ffffff;
  }
  
  50% {
    transform: translateY(9px);
  }
  
  80% {
    transform: translateY(5px);
    background-color: #ffffff;
  }
  
  100% {
    transform: translateY(0);
    background-color: #FDCEA9;
  }
  
}

@-webkit-keyframes animate-bottom-bar {
  0% {
    background-color: #ffffff;
  }
  
  50% {
    transform: translateY(-9px);
  }
  
  80% {
    transform: translateY(-5px);
    background-color: #ffffff;
  }
  
  100% {
    transform: translateY(0);
    background-color: #FDCEA9;
  }
  
}

@keyframes animate-bottom-bar {
  0% {
    background-color: #ffffff;
  }
  
  50% {
    transform: translateY(-9px);
  }
  
  80% {
    transform: translateY(-5px);
    background-color: #ffffff;
  }
  
  100% {
    transform: translateY(0);
    background-color: #FDCEA9;
  }
  
}

@-webkit-keyframes animate-middle-bar {
  0% {
    background-color: #ffffff;
  }
  
  80% {
    background-color: #ffffff;
  }
  
  100% {
    background-color: #FDCEA9;
  }
  
}

@keyframes animate-middle-bar {
  0% {
    background-color: #ffffff;
  }
  
  80% {
    background-color: #ffffff;
  }
  
  100% {
    background-color: #FDCEA9;
  }
  
}

@-webkit-keyframes animate-out-top-bar {
  0% {
    background-color: #FDCEA9;
  }
  
  50% {
    transform: translateY(9px);
  }
  
  80% {
    transform: translateY(5px);
    background-color: #FDCEA9;
  }
  
  100% {
    transform: translateY(0);
    background-color: #ffffff;
  }
  
}

@keyframes animate-out-top-bar {
  0% {
    background-color: #FDCEA9;
  }
  
  50% {
    transform: translateY(9px);
  }
  
  80% {
    transform: translateY(5px);
    background-color: #FDCEA9;
  }
  
  100% {
    transform: translateY(0);
    background-color: #ffffff;
  }
  
}

@-webkit-keyframes animate-out-bottom-bar {
  0% {
    background-color: #FDCEA9;
  }
  
  50% {
    transform: translateY(-9px);
  }
  
  80% {
    transform: translateY(-5px);
    background-color: #FDCEA9;
  }
  
  100% {
    transform: translateY(0);
    background-color: #ffffff;
  }
  
}

@keyframes animate-out-bottom-bar {
  0% {
    background-color: #FDCEA9;
  }
  
  50% {
    transform: translateY(-9px);
  }
  
  80% {
    transform: translateY(-5px);
    background-color: #FDCEA9;
  }
  
  100% {
    transform: translateY(0);
    background-color: #ffffff;
  }
  
}

@-webkit-keyframes animate-out-middle-bar {
  0% {
    background-color: #FDCEA9;
  }
  
  80% {
    background-color: #FDCEA9;
  }
  
  100% {
    background-color: #ffffff;
  }
  
}

@keyframes animate-out-middle-bar {
  0% {
    background-color: #FDCEA9;
  }
  
  80% {
    background-color: #FDCEA9;
  }
  
  100% {
    background-color: #ffffff;
  }
  
}

/**************************************** Mediascreen ****************************************/

@media (max-width: 1124px) {

  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    height: 20%;
  }
  
  nav ul li a {
    font-size: 28px;
  }
  
  nav li a:after {
    font-size: 18px;
    bottom: -25px;
  }
  
  nav li a:hover:after {
    transform: translateY(0);
  }
  
  .open-overlay {
    right: 30px;
  }
  
  nav li a:before {
    width: 50px;
  }
  
}