#cssmenu {
  min-height: 40px;
  position: relative;
  top: 0px;
  right: 5px;
  z-index: 1000;
}

#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#cssmenu #menu-button {
  margin: 0px 0 0 0;
  position: absolute;
  top: -60px;
  right: 20px;
  z-index: 100;
}

#cssmenu:after,
#cssmenu > ul:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

#cssmenu #menu-button {
  display: none;
}

#cssmenu {
  text-align: right;
  width: auto;
  margin: 0px;
  float: right;
}

#cssmenu > ul > li {
  float: left;
  padding: 0px 10px 0px 20px;
  position: relative;
  font-family: 'Open Sans', Arial;
}

#cssmenu > ul > li:last-child {
  padding-right: 0px;
}

#cssmenu > ul > li:last-child:after {
  border-right: 1px solid transparent;
}

#cssmenu.align-center > ul {
  font-size: 0;
  text-align: center;
}

#cssmenu.align-center > ul > li {
  display: inline-block;
  float: none;
}

#cssmenu ul ul {
  text-align: left;
}

#cssmenu.align-right > ul > li {
  float: right;
}

#cssmenu > ul > li > a {
  padding: 10px 0px 2px 0px;
  color: #000;
  text-decoration: none;
  font-family: 'Open Sans', Arial;
  font-size: 12px;
  line-height: 75px;
  font-size: 15px;
  color: #000000;
  text-decoration: none;
  transition: all 500ms ease-in-out;
  position: relative;
  overflow: hidden;
  padding: 10px 0px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

@media (min-width: 1280px) and (max-width: 1400px) {
  #cssmenu > ul > li > a {
    font-size: 13px;
  }  
} 

@media (min-width: 1001px) and (max-width: 1279px) {
  #cssmenu > ul > li > a {
    font-size: 12px;
  }  
}

#cssmenu > ul > li > a:after {
  display: block;
  content: '';
  position: relative;
  left: 0;
  top: -18px;
  margin: 0 auto;
  height: 2px;
  width: 0;
  -webkit-transition: width 0.25s ease;
  transition: width 0.25s ease;
  border-bottom: 2px solid #2a4b74;
}

#cssmenu > ul > li > a:hover:after {
  display: block;
  content: '';
  position: relative;
  left: 0;
  top: -18px;
  margin: 0 auto;
  height: 2px;
  width: 100%;
}

#cssmenu > ul > li:hover > a {
  color: #0000;
}

#cssmenu > ul > li.has-sub > a {
  padding: 10px 0px 2px 0px;
}

#cssmenu > ul > li.has-sub {
  position: relative;
}

#cssmenu > ul > li.has-sub:after {
  position: absolute;
  content: '\e814';
  right: -5px;
  top: 40px;
  color: #000000;
  font-family: "fontello";
}

#cssmenu > ul > li.has-sub > a:after {
  display: block;
  content: '';
  position: relative;
  left: 0;
  top: -18px;
  margin: 0 auto;
  height: 2px;
  width: 0;
  -webkit-transition: width 0.25s ease;
  transition: width 0.25s ease;
  border-bottom: 2px solid #2a4b74;
}

#cssmenu > ul > li.has-sub > a:hover:after {
  display: block;
  content: '';
  position: relative;
  left: 0;
  top: -18px;
  margin: 0 auto;
  height: 2px;
  width: 100%;
}

#cssmenu > ul > li.has-sub > a:before {
  position: absolute;
  top: 19px;
  right: 14px;
  display: block;
  width: 2px;
  height: 8px;
  content: '';
  -webkit-transition: all .25s ease;
  -moz-transition: all .25s ease;
  -ms-transition: all .25s ease;
  -o-transition: all .25s ease;
  transition: all .25s ease;
}

#cssmenu > ul > li.has-sub:hover > a:before {
  top: 15px;
  height: 0;
}

#cssmenu ul ul {
  position: absolute;
  left: -9999px;
  padding-top: 0px;
  border-radius: 5px; /* Abgerundete Ecken */
}

#header.scrolled #main-navigation #cssmenu ul ul {
  padding-top: 0px;
}

#cssmenu.align-right ul ul {
  text-align: right;
}

#cssmenu ul ul li {
  height: 0;
  -webkit-transition: all .25s ease;
  -moz-transition: all .25s ease;
  -ms-transition: all .25s ease;
  -o-transition: all .25s ease;
  transition: all .25s ease;
}

#cssmenu li:hover > ul {
  left: auto;
  right: 0;
}

#cssmenu li:hover > ul::before {
  content: '';
  position: absolute;
  top: -10px; /* Pfeilposition anpassen */
  right: 10px; /* Pfeilposition anpassen */
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #2a4b74; /* Pfeilfarbe passend zur Hintergrundfarbe des Menüs */
}

#cssmenu.align-right li:hover > ul {
  left: auto;
  right: 0;
}

#cssmenu li:hover > ul > li {
  min-height: 35px;
  height: auto;
  overflow: visible;
}

#cssmenu ul ul ul {
  margin-left: 100%;
  top: 0;
}

#cssmenu.align-right ul ul ul {
  margin-left: 0;
  margin-right: 100%;
}

#cssmenu ul ul li a {
  padding: 10px 10px;
  width: 240px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  background: #2a4b74;
  display: block;
  
}

#cssmenu ul ul li:first-child a {
  border-top: 1px solid transparent;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

#cssmenu ul ul li:last-child a {
  border-bottom: 0px;
  padding-bottom: 30px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

#cssmenu ul ul ul li a {
  border-left: 1px solid rgba(0,0,0,0.3);
}

#cssmenu ul ul li:last-child > a,
#cssmenu ul ul li.last-item > a {
  padding-bottom: 0px;
  min-height: 45px;
}

#cssmenu ul li:hover > a {
  color: #2a4b74;
}

#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover {
  color: #fff;
  background: #2a4b74;
}

#cssmenu ul ul li.has-sub > a:after {
  position: absolute;
  top: 16px;
  right: 11px;
  width: 8px;
  height: 2px;
  display: block;
  background: transparent;
  content: '';
}

#cssmenu ul li a.act {
  color: #2a4b74;
  font-weight: 600;
}

#cssmenu ul li li a.act {
  color: #fff;
  border-bottom: 0;
  position: relative;
}

#cssmenu.align-right ul ul li.has-sub > a:after {
  right: auto;
  left: 11px;
}

#cssmenu.small-screen {
  width: 100%;
  min-height: 1px; position: fixed; top: 15px; left: 0px; z-index: 100000000000000000000;
}
#cssmenu.small-screen ul {
  width: 100%;
  min-height: 100px;
  display: none;
  background: rgba(255,255,255,.95);
  top: 138px;
  left: 0px;
  padding-bottom: 120px;
  padding-top: 20px;
  padding-left: 5%;
  padding-right: 5%;
  height: auto;
  height: 700px;
  max-height: 700px;
  overflow-y: scroll;
}

#header.sticky #cssmenu.small-screen ul {
  top: 80px;
}

#cssmenu.small-screen ul ul {
  padding-bottom: 40px;
  padding-top: 5px;
  top: 0px;
  min-height: auto;
  height: auto;
  max-height: auto;
  overflow-y: visible;
  margin-top: 0px;
}

#header.sticky #cssmenu.small-screen ul ul {
  top: 0px;
}

#cssmenu.small-screen.align-center > ul {
  text-align: left;
}
#cssmenu.small-screen ul li {
  width: 100%;
  border-bottom: 0;
  padding: 0px;
}

#cssmenu.small-screen ul ul li {
  width: 100%;
  border-bottom: 0;
}
#cssmenu.small-screen ul ul li,
#cssmenu.small-screen li:hover > ul > li {
  height: auto;
}
#cssmenu.small-screen ul li a,
#cssmenu.small-screen ul ul li a {
  width: 100%;
  border-bottom: 0;
  font-family: 'Work Sans', Arial;
  text-decoration: none;
  padding: 15px 10px;
  color: #000;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  text-align: left;
  line-height: 25px;
  font-size: 18px;
}

#cssmenu.small-screen ul ul li a {
  border-bottom: 0;
  padding: 10px 10px;
}

#cssmenu.small-screen ul li a:hover,
#cssmenu.small-screen ul ul li a:hover {
  text-decoration: none;
  background: none;
}

#cssmenu.small-screen ul li .act {
  color: #000;
}

#cssmenu.small-screen ul li a:hover {
}

#cssmenu.small-screen > ul > li {
  float: left;
}
#cssmenu.small-screen ul ul li a {
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  
}
#cssmenu.small-screen ul ul ul li a {
  padding-left: 30px;
  text-transform: none;
}
#cssmenu.small-screen ul ul ul ul li a {
  padding-left: 40px;
  border-left: 0;
}

#cssmenu.small-screen > ul > li > a:after {
  display: none;
}

#cssmenu.small-screen > ul > li.has-sub:after {
  display: none;
}

#cssmenu.small-screen ul ul li a {
  color: #000;
  background: none;
}
#cssmenu.small-screen ul ul li:hover > a,
#cssmenu.small-screen ul ul li.active > a {
  color: #000;
  
}
#cssmenu.small-screen ul ul,
#cssmenu.small-screen.align-right ul ul {
  position: relative;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: left;
}
#cssmenu.small-screen > ul > li.has-sub > a:after,
#cssmenu.small-screen > ul > li.has-sub > a:before,
#cssmenu.small-screen ul ul > li.has-sub > a:after,
#cssmenu.small-screen ul ul > li.has-sub > a:before {
  display: none;
}

#cssmenu.small-screen ul ul {
  top: 0px;
  background: transparent;
}

#cssmenu.small-screen ul ul ul li a {
  border-left: 0px;
}

#cssmenu.small-screen #menu-button {
  display: block;
  padding: 17px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  z-index: 99999;
  position: fixed; top: 70px; left: 0px;
}

#header.sticky #cssmenu.small-screen #menu-button {
  top: 30px; 
}

#cssmenu.small-screen #menu-button:after {
  position: absolute;
  top: 24px;
  right: 0px;
  display: block;
  height: 6px;
  width: 30px;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  content: '';
  box-sizing: content-box;
}
#cssmenu.small-screen #menu-button:before {
  position: absolute;
  top: 16px;
  right: 0px;
  display: block;
  height: 2px;
  width: 30px;
  background: #000;
  content: '';
  box-sizing: content-box;
}
#cssmenu.small-screen #menu-button.menu-opened:after {
  top: 23px;
  border: 0;
  height: 2px;
  width: 20px;
  background: #000;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
#cssmenu.small-screen #menu-button.menu-opened:before {
  top: 23px;
  background: #000;
  width: 20px;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#cssmenu.small-screen .submenu-button {
  position: absolute;
  z-index: 99;
  right: 15px;
  top: 10px;
  display: block;
  content: url(../images/Icons/menu-icon-pfeil.png);
  height: 35x;
  width: 35px;
}
#cssmenu.small-screen .submenu-button.submenu-opened {
  background: transparent;
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}
#cssmenu.small-screen ul ul .submenu-button {
  height: 35px;
  width: 35px;
}
#cssmenu.small-screen .submenu-button:after {
  position: absolute;
  top: 22px;
  right: 19px;
  width: 8px;
  height: 2px;
  display: block;
  background: #3B2F41;
  content: '';
}
#cssmenu.small-screen ul ul .submenu-button:after {
  top: 15px;
  right: 13px;
}
#cssmenu.small-screen .submenu-button.submenu-opened:after {
  background: #3B2F41;
}
#cssmenu.small-screen .submenu-button:before {
  position: absolute;
  top: 19px;
  right: 22px;
  display: block;
  width: 2px;
  height: 8px;
  background: #3B2F41;
  content: '';
}
#cssmenu.small-screen ul ul .submenu-button:before {
  top: 12px;
  right: 16px;
}
#cssmenu.small-screen .submenu-button.submenu-opened:before {
  display: none;
}
#cssmenu.small-screen.select-list {
  padding: 5px;
}



@media only screen and (max-width: 100px) {

#cssmenu.small-screen #menu-button {
  top: 10px; 
}  
	
#header.scrolled #cssmenu.small-screen #menu-button {
  top: 10px; 
}	
  
#cssmenu.small-screen ul {
  top: 45px;
}  

#header.scrolled #cssmenu.small-screen ul {
  top: 45px;
}	
  
}



  
