/* ====== Grundlayout ====== */
body {
	margin: 0;
	font-family: "Open Sans";
	font-size: 18px;
	font-weight: 300;
}

header {
	position: relative;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ====== Desktop-Navigation ====== */
@media (min-width: 769px) {
  .hamburger {
	display: none;
	background-color: #CCC;
  }

  nav ul {
	display: flex;
	justify-content: center;
  }

  nav ul li {
    margin: 0 15px;
  }

  nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    position: relative;
    transition: all 0.3s ease;
  }
  
  nav ul li a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 8px;
	width: 100%;
	height: 1px;
	background-color: white;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
	color: #FFF;
  }

  nav ul li a:hover::after,
  nav ul li a.active::after {
    transform: scaleX(1);
  }
}

/* ====== Mobile-Navigation ====== */
@media (max-width: 768px) {
  .hamburger {
    display: block !important;
    position: relative;
    z-index: 9999;
  }
  nav ul {
    display: none;
    flex-direction: column;
  }
  nav.active ul {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 12px 0;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #888;
  }

  nav ul li a:hover {
	color: #FFF;
	font-weight: bold;
  }

  .hamburger {
	display: block;
	width: 30px;
	height: 25px;
	margin: 10px auto;
	cursor: pointer;
  }

  .hamburger span {
	display: block;
	height: 3px;
	margin: 5px 0;
	transition: 0.3s ease;
	background-color: #FFF;
  }

  .hamburger:hover span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger:hover span:nth-child(2) {
    opacity: 0;
  }

  .hamburger:hover span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
