.clearer {
  clear: both;
  height: 0.01px;
}

#fix {
  max-height: 1px !important;
}

#distance {
  height: 48px;
}

#distance2 {
  height: 128px;
}

#menucontainer {

  width: 100% !important;
  background-color: #B8BD33 !important;
  text-align: center;
}

#menucontainerinner {

}

#menucontainerfixed {
  width: 100%;
  position: fixed;
}

#logocontainer {
  background: #ffffff;
  width: 100%;
}

#logonavcontainer {
  background: #ffffff;
  width: 100%;
}

#logonavcontainerfixed {
  position: fixed;
}

.logo {
        position: relative;
        width: 20%;
        height: auto;
        margin: 0 1%;
        float: left;
        z-index: 100;
}

.schriftzug {
        position: relative;
        width: 76%;
        height: auto;
        margin-left: 1%;
        float: left;
        z-index: 100;
}

#menu>ul>li.menuhome>a>span {
    display: none;
}
#menu>ul>li.menuhome>a {
    background: transparent url(home.svg) no-repeat center 7px;
    width: 16px;
    height: 55px;
    padding: 8px 18px 25px 18px;
}

#menu>ul>li.menuhome>a:hover {
  background: #B8BD33 url(home2.svg) no-repeat center 7px;
}

#menu ul {
  margin: 0;
  padding: 0;
}

#menu .main-menu {
  display: none;
}

#tm:checked + .main-menu {
  display: block;
}

#menu input[type="checkbox"],

#menu ul span.drop-icon {
  display: none;
}

#menu li,
#toggle-menu,
#menu .sub-menu {
  border-style: solid;
  border-color: rgba(0, 0, 0, .05);
}

#menu li,
#toggle-menu {
  border-width: 0 0 1px;
}

#menu .sub-menu {
  background-color: #B8BD33;
  border-width: 1px 1px 0;
  margin: 0 1em;
}

#menu .sub-menu li:last-child {
  border-width: 0;
}

#menu li,
#toggle-menu,
#menu a {
  position: relative;
  display: block;
  color: #F5F5ED;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);
  text-decoration: none !important;
  margin: 0 auto !important;
}

#menu {
  margin: 0 auto !important;
}

#toggle-menu {
  background: #333333;
  color: #ffffff;
}

#toggle-menu,
#menu a {
  padding: 16px 24px;
}

#menu li:last-child {
  position: absolute;
  right: 10px !important;
  padding: 12px 24px !important;
  border: 3px solid #ffffff;
  -webkit-border-radius: 9px;
  -moz-border-radius: 9px;
  border-radius: 9px;
  font-weight: bold;
}

#menu a {
  transition: all .125s ease-in-out;
  -webkit-transition: all .125s ease-in-out;
}

#menu a:hover {
  background-color: #B8BD33;
  color: #FFDF5B;
}

#menu .sub-menu {
  display: none;
}

#menu input[type="checkbox"]:checked + .sub-menu {
  display: block;
}

#menu .sub-menu a:hover {
  color: #FFDF5B;
}

#menu li.menuactive>a {
  font-weight: bold;
  background-color: #B8BD33;
}

#toggle-menu .drop-icon,
#menu li label.drop-icon {
  position: absolute;
  right: 0;
  top: 0;
}

#menu label.drop-icon, #toggle-menu span.drop-icon {
  padding: 16px;
  font-size: 16px;
  text-align: center;
  background-color: rgba(0, 0, 0, .125);
  text-shadow: 0 0 0 transparent;
  color: rgba(255, 255, 255, .75);
}

@media only screen and (min-width: 1024px) {
  #menu .main-menu {
    display: block;
  }

  #toggle-menu,
  #menu label.drop-icon {
    display: none;
  }

  #menu ul span.drop-icon {
    display: inline-block;
  }

  #menu li {
    float: left;
    border-width: 0 1px 0 0;
  }

  #menu .sub-menu li {
    float: none;
  }

  #menu .sub-menu {
    border-width: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 12em;
    z-index: 3000;
  }

  #menu .sub-menu,
  #menu input[type="checkbox"]:checked + .sub-menu {
    display: none;
  }

  #menu .sub-menu li {
    border-width: 0 0 1px;
  }

  #menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }

 #menu .sub-menu .drop-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 16px;
  }

  #menu li:hover > input[type="checkbox"] + .sub-menu {
    display: block;
  }
}

@media screen and (max-width: 1023px) {

.logo {
        width: 50%;
        height: auto;
        margin: 0 25%;
}

.schriftzug {
        width: 100%;
        height: auto;
        margin-left: 1%;
}

#menucontainer {
  background: #8198DE !important;
}

#menu>ul>li.menuhome>a {
  color: #ffffff;
}

#menu a {
  color: #ffffff;
}

#menu {
  background-color: #B8BD33;
}

#menu .sub-menu {
  background-color: #B8BD33;
}

#menu .sub-menu a {
  background-color: #444444;
}

#menu li,
#toggle-menu,
#menu .sub-menu {
  border-style: solid;
  border-color: rgba(255, 255, 255, 1);
}

#menu li.menuactive>a {
  font-weight: bold;
  color: #444444;
}

#menu ul>li>ul>li>a {
  color: #ffffff !important;
}

#menu li.menuactive>ul.sub-menu>li.menuactive>a {
  font-weight: bold;
  color: #444444 !important;
}

#menu>ul>li.menuhome>a {
    background: transparent url() no-repeat center center;
    width: 16px;
    height: 22px;
    padding: 14px 24px;
}

}