/* Haupt-Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #333;
  z-index: 999;
  display: flex;
  justify-content: flex-end; /* rechtsbündig */
  align-items: center;
  padding: 10px 20px;/*5%;*/
}

.navbar2 {
	position: sticky;
	top: 0;
	background-color: #333;
	z-index: 998;
}

/* Menü-Links */
.navbar .nav-menu {
  display: flex;
  gap: 15px;
  align-items: center;
}

.navbar a,
.subnavbtn {
  color: #f2f2f2;
  text-decoration: none;
  padding: 8px 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar a:hover,
.subnav:hover .subnavbtn {
  background-color: black;
}

.subnav {
  position: relative;
}

.subnav-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: black;
  z-index: 1000;
}

.subnav-content a {
  display: block;
  color: white;
  padding: 8px 12px;
}

.subnav-content a:hover {
  background-color: #eee;
  color: black;
}

.subnav:hover .subnav-content {
  display: block;
}

/* Hamburger-Menü */
.menu-icon {
  display: none;
  cursor: pointer;
  margin-left: auto;
}

/*.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  overflow: hidden;
}*/

.bar {
  width: 25px;
  height: 3px;
  background-color: #f2f2f2;
  margin: 4px 0;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-icon {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 10px;
  }

  .nav-menu a,
  .subnavbtn {
    text-align: right;
    padding: 10px;
    border-top: 1px solid #444;
  }

  .nav-menu.active {
    display: flex;
  }

  .subnav-content {
    position: static;
  }
}




/*
.subnav {
  float: left;
  overflow: hidden;
}

.subnav .subnavbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.subnav2 .subnavbtn2 {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.navbar a:hover, .subnav:hover .subnavbtn {
  background-color: black;
}

.navbar a:hover, .subnav:hover .subnavbtn2 {
  background-color: yellow;
}

.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: red;
  width: 100%;
  z-index: 1;
}

.subnav-content2 {
  display: none;
  position: absolute;
  left: 0;
  background-color: red;
  width: 100%;
  z-index: 1;
}

.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
}

.subnav-content2 a {
  float: left;
  color: white;
  text-decoration: none;
}

.subnav-content a:hover {
  background-color: #eee;
  color: black;
}

.subnav-content2 subnavbtn2:hover {
  background-color: #eee;
  color: black;
}

.subnav:hover .subnav-content, .subnav-content2 {
  display: block;
}
*/
