/*
=================================
Navi und Canvas Area
=================================
*/

/* Menü Icon (Mainnav Trigger): Wechsel vom Hamburger zum Kreuz. */

.btn.emu-icon-menu {
  background-color: hsl(216, 49%, 10%);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: block;
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  transition: border-radius .5s;
  width: 48px;
  z-index: 30;
}

@media only screen and (min-width: 768px) {
  .btn.emu-icon-menu {
    top: 1rem;
    right: 1rem;
  }
}

.emu-line {
  background-color: #fff;
  position: absolute;
  left: 14px;
  height: 2px;
  width: 20px;
  border-radius: 2px;
  display: block;
  transition: 0.5s;
  transform-origin: center;
}

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

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

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

.emu-icon-menu.checked .emu-line:nth-child(1) {
  transform: translateY(7px) rotate(-45deg);
}

.emu-icon-menu.checked .emu-line:nth-child(2) {
  opacity: 0;
}

.emu-icon-menu.checked .emu-line:nth-child(3) {
  transform: translateY(-7px) rotate(45deg);
}

/* Navbar (Off Canvas), kommt von rechts. */

.emu-navbar {
  background: #f2f3f8;
  flex: 1 1 auto;
  position: fixed;
  top: 0;
  width: 19.5rem;
  right: -20rem;
  height: 100%;
  -webkit-transform: translate(0px, 0px);
  -moz-transform: translate(0px, 0px);
  -o-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  transform: translate(0px, 0px);
  -webkit-transition: 0.25s ease;
  -moz-transition: 0.25s ease;
  -o-transition: 0.25s ease;
  transition: 0.25s ease;
  box-shadow: -5px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 20;
}

.emu-navbar.active {
  -webkit-transform: translate(-20rem, 0px);
  -moz-transform: translate(-20rem, 0px);
  -o-transform: translate(-20rem, 0px);
  -ms-transform: translate(-20rem, 0px);
  transform: translate(-20rem, 0px);
}

/* Menu Styles */

.emu-menu {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.emu-menu a,
.emu-menu .btn {
  border-bottom: none;
  line-height: 1;
  text-decoration: none;
  display: block;
  padding: 0.7rem 1rem;
  transition-property: none;
}

.emu-menu input,
.emu-menu select,
.emu-menu a,
.emu-menu button {
  margin-bottom: 0;
}

.emu-menu input {
  display: inline-block;
}

/* Hauptnavigation (Primary Nav) Menüpunkte. */

.emu-primarynav {
  display: flex;
  flex-flow: column nowrap;
  text-transform: uppercase;
  font-size: 1.125rem;
  margin-top: 8rem;
}

.emu-primarynav li {
  border-top: 1px solid #1e467b;
  display: inline-block;
  list-style: outside none none;
}

.emu-primarynav>li:last-child {
  border-bottom: 1px solid #1e467b;
}

.emu-primarynav a {
  padding: 1rem 1.5rem;
  color: #1e467b;
  position: relative;
  letter-spacing: 1px;
  text-decoration: none;
}

.emu-primarynav a:hover,
.emu-primarynav a:focus {
  background-color: #285ea6;
  color: #eee;
  /*transition: all 0.35s ease;*/
}

.emu-primarynav li.active a {
  background-color: #193b67;
  color: #eee;
  cursor: default;
}

.emu-primarynav li.active a:focus {
  color: red;
}