/*********************************************/
/* NAVIGATION */
/*********************************************/

@viewport {
  width: device-width;
  zoom:1;
}

nav img {
  height: 3.2rem;
}

nav a {
  font-size: 1.3rem;
  font-family: "Elephant", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 0.6rem 0;
}

nav a::before {
  content: "";
  width: 100%;
  height: 0.25rem;
  position: absolute;
  left: 0;
  bottom: 0;
  background: #fcfffbff;
  transition: 0.5s transform ease;
  transform: scale3d(0, 1, 1);
  transform-origin: 0 50%;

  background: #ffbe46;
  transform-origin: 100% 50%;
}

nav li a:hover::before {
  transform: scale3d(1, 1, 1);
  transform-origin: 0 50%;
}

.cta {
  color: #ffbe46;
}

/* --- SMALL NAV --- */
@media (max-width: 599px) {

  /* NAVIGATION mit X */
  #hamburg {
    display: none;
  }

  header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 1;
  }

  .logo-mini {
    display: block;
    position:fixed;
    top: 15px;
    left: 17px;
    z-index: 3;
  }

  .logo-mini img {
    width: 70px;
    -webkit-filter: drop-shadow(1px 1px 10px rgb(122, 122, 122));
    filter: drop-shadow(1px 1px 10px rgb(122, 122, 122));
  }

  label.hamburg {
    display: block;
    position:fixed;
    top: 15px;
    right: 15px;
    width: 55px;
    height: 50px;
    border: 1px solid #fcfffbff;
    background-color: hsla(0, 0%, 0%, 0.5);
    z-index: 3;
  }

  .line {
    position: absolute;
    left: 10px;
    height: 2px;
    width: 35px;
    background: #fcfffbff;
    border-radius: 2px;
    display: block;
    transition: 0.5s;
    transform-origin: center;
  }

  .line:nth-child(1) {
    top: 12px;
  }

  .line:nth-child(2) {
    top: 24px;
  }

  .line:nth-child(3) {
    top: 36px;
  }

  #hamburg:checked + .hamburg .line:nth-child(1) {
    transform: translateY(12px) rotate(-45deg);
  }

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

  #hamburg:checked + .hamburg .line:nth-child(3) {
    transform: translateY(-12px) rotate(45deg);
  }

  #hamburg:checked + .hamburg + nav.topmenu {
    max-height: 600px;
  }

  /* NAV TEXT */

  /* deactivation of big menue */
  #MenuMax {
    display: none;
  }
  
  nav.topmenu {
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s;
  }

  .topmenu {
    display: block;
    position: fixed;
    width: 100%;
    background-color: #0088aaff;
    box-shadow: 1px 1px 20px #262420ff;
    padding: 0;
    z-index: 2;
  }

  .topmenu ul {
    padding: 20px 0;
  }

  .topmenu ul li {
    margin-bottom: 0.4em;
    text-align: center;
  }
}


/* --- WIDE NAV --- */
@media (min-width: 600px) {
  /* deactivation of small menue */
  #MenuMini {
    display: none;
  }

  header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 1;
    background-color: hsla(0, 0%, 0%, 0.5);
  }

  nav {
    margin: 0.5rem 2rem;
  }

  nav ul {
    float: right;
    margin-top: 0.85rem;
  }

  nav li {
    display: inline-block;
    margin: 0 0.4rem;
  }
}
