#topnavigation {
  dipslay: inline-block;
  float: right;
  margin-top: 5px;
/*  margin-right: 15px;*/
}

#topnavigation ul {
  list-style-type: none;
  margin-top: 5px;
  margin-bottom: 5px;
}

#topnavigation ul li {
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
  padding-right: 25px;
  font-family: HelveticaNeueLTPro45-Light, sans-serif;
  letter-spacing: 0.05em;
}

#topnavigation a,
#topnavigation li a {
  color: #0184ce;
  text-decoration: none;
}

#topnavigation li a:hover {
  font-weight: 400;
  color: #0184ce;
  text-decoration: none;
}

#topnavigation .topnav {
  display: inline-block;
  float: left;
}

#topnavigation .top-socialmedia {
  display: inline-block;
  float: left;
  margin-top: 7px;
}

#navigation {
  clear: both;
  float: right;
  height: 50px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  padding-bottom: 0px;
}

#navigation .navbar {
  padding: 0 !important;
  position: relative;
}

#navigation .navbar-collapse {
  background-color: #fff;
}

#navigation .container {
  padding-right: 0px;
  margin-top: 0px;
}

ul#main-menu {
  margin-left: 0;
  align-items: right;
  justify-content: right;
}

ul#main-menu > li {
  margin-right: 1.2rem;
  hyphens: auto;
  font-family: HelveticaNeueLTPro45-Light, sans-serif;
  letter-spacing: 0.025em;
  font-size: 16px;
}

ul#main-menu > li:last-child {
  margin-right: 0;
}

ul#main-menu > li:last-child a {
  padding-right: 0;
}

.nav-link {
  text-transform: uppercase;
  color: #000 !important;
  padding: 10px 15px 10px 15px !important;
  position: relative;
/*  letter-spacing: 0.025em;*/
}

.nav-item:last-child .nav-link {
  padding: 10px 0px 10px 15px !important;
}

.nav-link:hover,
.nav-link.active {
  color: #0184ce !important;
}

#navigation .dropdown-menu {
  color: #000;
  /*margin-left: 0rem !important;*/
  margin-left: -0.5rem !important;
  margin-top: 0px !important;
  padding: 0.5rem 1rem 1rem;
  font-size: 16px;
  min-width: 15rem !important;
  max-width: 15rem !important;
  border-radius: 0;
  border: 0px solid rgba(0, 0, 0, 0.15);
}
#navigation .dropdown-menu li {
  padding: 4px 0;
  font-family: HelveticaNeueLTPro45-Light, sans-serif;
}
#navigation .dropdown-menu li:last-child {
  padding: 4px 0 0px;
  border-bottom: 0px solid #000;
}
#navigation .dropdown-menu a {
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s;
}

#navigation .dropdown-menu a:after {
  content: "";
  width: 17px;
  height: 17px;
  background-image: url("../Images/arrow-right-light.svg");
  display: block;
  background-repeat: no-repeat;
  position: absolute;
  display: inline-flex;
  margin-left: 5px;
  margin-top: 3px;
  transition: all 0.3s;
}

#navigation .dropdown-menu a:hover:after {
  margin-left: 10px;
}

#navigation .dropdown-menu a:hover,
#navigation .dropdown-menu a.active {
  color: #0184ce;
}

/* Notfall Button */
.notfallTel {
  border: 1px solid #0184ce;
  padding: 0 10px;
  margin-top: 5px !important;
  display: inline-block;
  padding-bottom: 3px;
  text-align: center;
}

.notfallTel:hover {
  color: #fff !important;
  background-color: #0184ce;
}

ul#main-menu a.active.has-submenu ~ .dropdown-menu {
  /* left: 12.9rem !important; */
  left: auto !important;
}

.main-menu-btn {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  text-indent: 28px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* hamburger icon */
.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 2px;
  width: 24px;
  background: #bbb;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}
.main-menu-btn-icon:before {
  content: "";
  top: -7px;
  left: 0;
}
.main-menu-btn-icon:after {
  content: "";
  top: 7px;
  left: 0;
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(1, 132, 206, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(1, 132, 206, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M6 6 24 24 M24 6 6 24'/%3e%3c/svg%3e") !important;
  animation: close-btn 0.4s forwards;
}

@keyframes close-btn {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(180deg);
  }
}

.navbar-light .navbar-toggler {
  border-color: transparent !important;
}

.navbar-toggler {
  border-radius: 0;
  padding: 0 0.25rem;
}

/* x icon */
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
  height: 0;
  background: transparent;
}
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
  top: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
  top: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* hide menu state checkbox (keep it visible to screen readers) */
#main-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
/* hide the menu in mobile view */
#main-menu-state:not(:checked) ~ #main-menu {
  display: none;
}
#main-menu-state:checked ~ #main-menu {
  display: block;
}

.navbar-nav:not(.sm-collapsible) .nav-link .sub-arrow {
  display: none;
  color: transparent !important;
}

.navbar-nav.sm-collapsible .sub-arrow {
  border: 0px solid rgba(0, 0, 0, 0);
  top: 22px;
}

.navbar-nav .dropdown-toggle::after {
  display: none !important;
}

/* submemnu */
.frame-type-menu_subpages ul,
.frame-type-menu_pages ul {
  margin-left: -35px !important;
  list-style-type: none;
}

.frame-type-menu_subpages ul li,
.frame-type-menu_pages ul li {
  text-transform: uppercase;
  font-size: 40px;
  /*font-weight: "extralight";*/
  line-height: 120%;
  width: calc(100% - 52px);
  font-family: HelveticaNeueLTPro35-Thin, sans-serif;
  letter-spacing: 0.05em;
}

.frame-type-menu_subpages.smaller ul li a,
.frame-type-menu_pages.smaller ul li a {
  font-size: 19px;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#inhalt .frame-type-menu_subpages ul li:before,
#inhalt .frame-type-menu_pages ul li:before {
  display: none;
}

.frame-type-menu_subpages ul li a:after,
.frame-type-menu_pages ul li a:after {
  display: inline-flex;
  content: "";
  background-image: url("../Images/arrow-right-light.svg");
  background-size: 40px 40px;
  height: 40px;
  width: 40px;
  margin-left: 20px;
  margin-top: 0px;
  position: absolute;
  transition: all 0.3s;
}

.frame-type-menu_subpages.smaller ul li a:after,
.frame-type-menu_pages.smaller ul li a:after {
  background-size: 20px 20px;
  height: 20px;
  width: 20px;
  margin-left: 10px;
  margin-top: 3px;
}

.frame-type-menu_subpages ul li a:hover:after,
.frame-type-menu_pages ul li a:hover:after {
  margin-left: 30px;
}

.frame-type-menu_subpages.smaller ul li a:hover:after,
.frame-type-menu_pages.smaller ul li a:hover:after {
  margin-left: 20px;
}

.frame-type-menu_subpages ul li a,
.frame-type-menu_pages ul li a {
  text-decoration: none;
  color: #000;
}

.frame-type-menu_subpages ul li a:hover,
.frame-type-menu_pages ul li a:hover {
  color: #0184ce;
}

.frame-type-menu_subpages ul li:nth-child(4),
.frame-type-menu_pages ul li:nth-child(4) {
  hyphens: auto;
  -webkit-hyphens: auto;
}


/* submemnu footer */
footer .frame-type-menu_subpages ul, 
footer .frame-type-menu_pages ul {
  margin-left: 0 !important;
  padding-left: 0;
}

footer .frame-type-menu_subpages ul li, 
footer .frame-type-menu_pages ul li {
  font-size: 16px;
  color: #fff;
  text-transform: none;
  margin-right: 0;
  line-height: 22px;
  width: 100%;
}

footer .frame-type-menu_subpages ul li a, 
footer .frame-type-menu_pages ul li a {
  color: #fff;
}

footer .frame-type-menu_subpages ul li a:hover, 
footer .frame-type-menu_pages ul li a:hover {
  color: #000;
}

footer .frame-type-menu_subpages ul li a:after,
footer .frame-type-menu_pages ul li a:after {
  display: none;
}


/* Topnav in slicknav CSS */
.navbar a.topnav-link.nav-link1 {
  text-transform: uppercase;
  color: #000 !important;
  padding: 10px 0 10px 10px !important;
  position: relative;
  text-decoration: none;
  /*font-size: 24px;*/
  font-size: 1.3rem;
}

.navbar .topnav-item {
  margin-bottom: 0 !important;
  margin-top: 29px;
}

.navbar .top-socialmedia {
  position: absolute;
  top: 350px;
  margin-left: 10px;
  font-size: 24px;
}

.navbar .facebook {
  margin-right: 25px;
}

/*@media screen and (max-width: 1440px) {
  .nav-link {
    padding: 10px 18px 10px 18px !important;
  }
}*/

@media screen and (max-width: 1380px) {
  /*.nav-link {
    padding: 10px 25px 10px 25px !important;
  }*/

  ul#main-menu > li {
    margin-right: -10px !important;
  }
}

@media screen and (max-width: 1325px) {
  /*ul#main-menu > li {
    margin-right: -30px !important;
  }*/
}

@media screen and (max-width: 1300px) {
  /*ul#main-menu > li {
    margin-right: -35px !important;
  }*/
}

/*@media screen and (max-width: 1280px) {
  ul#main-menu > li {
    margin-right: 0.6rem;
  }
}*/

@media screen and (max-width: 1280px) {
  ul#main-menu > li {
    margin-right: -2.5rem;
  }

  .txtimgbox .ce-bodytext h2 {
    line-height: 110%;
  }

  ul#main-menu .nav-link {
    word-break: break-word;
    width: 80%;
    padding-right: 0 !important;
    /*float: right;*/
  }

  .nav-item ul {
    top: 100% !important;
  }

  ul#main-menu > li {
    margin-right: -30px !important;
  }
}

@media screen and (min-width: 1200px) {
  ul#main-menu .nav-link {
    font-size: 16px;
  }
}






/*@media screen and (max-width: 1080px) {
  ul#main-menu > li { margin-right: 0rem; }
  ul#main-menu > li:last-child { margin-right: 0; }
}*/

@media screen and (max-width: 1199px) {
  /* #topnavigation {
    display: none;
  } */

  ul#main-menu .nav-link {
    width: 100%;
  }

  #navigation {
    margin-right: 13px;
    margin-top: 0px;
  }

  #navigation .navbar {
    padding: 0;
  }

  #navigation .navbar-collapse {
    position: fixed;
    width: 100%;
    top: 135px;
    left: 0;
    background: #fff;
    outline: 0px solid #fff;
    padding: 0.5rem;
    overflow-y: auto;
    height: 0;
    transition: all 0.3s !important;
    visibility: hidden;
  }

  #navbarNavDropdown.show {
    height: calc(100vh - 135px);
    visibility: visible;
  }

  #navbarNavDropdown.collapse:not(.show) {
    display: block !important;
  }

  .navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0);
    border-color: rgba(0, 0, 0, 0);
    outline: none;
  }

  ul#main-menu {
    width: 100%;
    height: auto; /*height: 100%;*/
    padding: 0.5rem 0;
    min-height: calc(100vh - 135px);
  }

  ul#main-menu > li {
    width: 100%;
  }

  ul#main-menu > li a.nav-link {
    font-size: 1.6rem;
    padding: 1.8rem 48px 0rem 10px !important;
  }

  ul#main-menu > li.nav-item:last-child {
    margin-bottom: 150px;
    margin-right: 0.15rem;
  }

  #navigation .dropdown-menu {
    margin-top: 0px !important;
    min-width: auto !important;
    max-width: none !important;
    box-shadow: none;
    border: 0;
  }

  #navigation .dropdown-menu li {
    padding: 6px 0 6px 8px;
  }

  #navigation .dropdown-menu li:last-child {
    padding: 6px 0 6px 8px;
  }

  #navigation .dropdown-menu li a {
    font-size: 1.3em;
    line-height: 1.5em;
    padding-left: 0;
  }

  .navbar-nav .sub-arrow::before {
    font-size: 2.5rem;
  }

  .navbar-nav .highlighted .sub-arrow::before {
    font-size: 4rem;
  }

  .navbar-nav.sm-collapsible .sub-arrow {
    margin: 2px 8px 0 0;
    line-height: 1.9rem;
    height: 100%;
  }

  .navbar-nav.sm-collapsible .highlighted .sub-arrow {
    margin: 8px 8px 0 0;
    line-height: 1.2rem;
    height: 100%;
  }

  /* ul#main-menu > li.nav-item:last-child .sub-arrow {
    margin: 0 15px 0 0;
  } */

  .nav-item.lev1 .nav-link:before {
    content: none;
    /*width:calc(100% - 30px);*/
  }
  .nav-item.lev1 .nav-link:hover:before,
  .nav-item.lev1.show .nav-link:before,
  .nav-item.lev1 .nav-link.active:before {
    width: 0;
  }

  .lev1 > a {
    font-weight: 600;
  }

  .lev1 > a .sub-arrow {
    font-weight: 400;
  }

  #navigation .nav-item.dropdown > .dropdown-menu li {
    visibility: hidden;
    opacity: 0;
    transition: 1s all;
  }

  #navigation .nav-item.dropdown.show > .dropdown-menu li {
    visibility: visible;
    opacity: 1;
  }

  #navigation .nav-item.dropdown > .dropdown-menu li:first-child {
    margin-top: 10px;
  }

  #navigation .dropdown-menu a:after {
    content: "";
    width: 17px;
    height: 17px;
    background-image: url("../Images/arrow-right-light.svg");
    display: block;
    background-repeat: no-repeat;
    position: absolute;
    display: inline-flex;
    margin-left: 5px;
    margin-top: 5px;
    transition: all 0.3s;
  }

  .navbar .topnav-item {
    margin-top: 0;
  }

  .navbar .top-socialmedia {
    position: relative;
    top: 100px;
  }

}

@media screen and (max-width: 992px) {
  #navigation .dropdown-menu li,
  #navigation .dropdown-menu li:last-child {
    padding: 6px 0 6px 0;
  }
}

@media screen and (min-width: 768px) {
  /* hide the button in desktop view */
  .main-menu-btn {
    position: absolute;
    top: -99999px;
  }
  /* always show the menu in desktop view */
  #main-menu-state:not(:checked) ~ #main-menu {
    display: block;
  }

  #navigation .dropdown-menu {
    /*padding: 25px;*/
    padding: 1em 1.5em;
  }
}

@media screen and (max-width: 680px) {
  #navigation {
    margin-top: 45px;
  }

  #topnavigation {
    position: absolute;
    right: 0;
  }
}

@media screen and (max-width: 576px) {
  #navigation {
    margin-top: 30px;
  }

  #navigation .navbar-collapse {
    top: 135px;
    max-height: calc(100vh - 135px);
  }

  ul#main-menu {
    min-height: calc(100vh - 120px);
  }

  #navigation .dropdown-menu {
    padding: 0.5rem 1rem 1rem 1.5rem;
  }

  ul#main-menu > li a.nav-link {
    font-size: 1.3rem;
  }

  ul#main-menu > li.service a.nav-link {
    font-size: 1.2rem;
  }

  #navigation .container {
    margin-top: 35px;
  }

  footer .frame-type-menu_subpages ul, 
  footer .frame-type-menu_pages ul {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
}

@media screen and (max-width: 391px) {
  ul.topnav {
    display: none !important;
  }

  #topnavigation {
    width: 100%;
    right: auto;
  }

  ul#main-menu > li.service {
    margin-top: 30px;
  }

  div#suche {
    width: 56%;
    margin-right: 10px;
    margin-left: auto;
  }

  .notfallTel {
    width: 36%;
    margin-left: 10px;
  }
}

@media screen and (max-width: 375px) {
  ul#main-menu > li a.nav-link {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 311px) {
  .navbar .top-socialmedia {
    top: 370px !important;
  }
}

@media screen and (max-width: 266px) {
  .navbar .top-socialmedia {
    top: 400px !important;
  }
}

@media screen and (max-width: 250px) {
  .navbar .top-socialmedia {
    top: 450px !important;
  }
}

/* Pagemenu */
#pagemenu {
}

.m1,
.m2,
.m3 {
  float: left;
  width: 33.333%;
}

#pagemenu:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

#pagemenu.sticky {
  position: fixed;
  z-index: 200;
}

/* Scroll position fix */
#wrap-header::before {
  height: 135px;
  content: "";
  display: table;
  clear: both;
}

/* Login/Memberbereich Submenu ab Stufe 2 */
ul.sub {
  border-top: 1px solid #999;
  max-width: 340px;
  margin-top: 15px;
}

ul.sub,
ul.sub2 {
  margin-left: 0px !important;
  padding: 0;
}

ul.sub li {
  list-style-type: none !important;
  margin-bottom: 0px;
  margin-top: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  font-size: 16px;
}

ul.sub li a,
ul.sub2 li a {
  padding: 5px 0px 5px 0px;
  line-height: 130%;
}

ul.sub li a {
  color: #1a1a1a;
  text-decoration: none !important;
  border-bottom: 1px solid #999;
  width: 100%;
  display: block;
}
ul.sub li a:hover {
  color: #f28c00 !important;
}

ul.sub2 li a {
  padding-left: 25px !important;
}
.sub_on,
.sub2_on {
  color: #f28c00 !important;
}

ul.sub3 {
  margin-left: -40px !important;
}
ul.sub3 li a {
  padding-left: 50px !important;
  margin-left: -0px;
}

.fa-sm {
  padding-right: 10px;
}
