@import url("https://fonts.verwaltungsportal.de/import/?family=Work+Sans:400,400i,500,500i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Nothing+You+Could+Do:400");

body {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  color: #444444;
  background: #ffffff;
  font-size: 1rem;
  /* 1rem = 16px */
  line-height: 1.5;
}

@media (min-width: 992px) {
  body {
    font-size: 1.125rem;
    background: #ffffff url("../img/hintergrund.png") top 110px left no-repeat;
  }
}

a {
  color: #005f89;
}

a:hover,
a:focus {
  color: #005f89;
  text-decoration: underline;
}

b,
strong {
  font-weight: 500;
}

#overflow {
  overflow: hidden;
}

/* ----------------------------------------------- logo ----------------------------------------------- */

#logo {
  position: relative;
  display: block;
  background-color: #ffffff;
  padding: 15px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  #logo {
    z-index: 12;
  }
}

#logo img {
  display: block;
  margin: 0 auto;
  max-width: 212px;
}

@media (max-width: 991px) {
  #logo img {
    max-width: 150px;
    width: 100%;
    margin-left: 0;
  }
}

/* ----------------------------------------------- banner ----------------------------------------------- */

#slider {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 992px) {
  #slider {
    max-height: 550px;
  }

  #headerpic a.nivo-prevNav {
    left: 65px;
  }

  #headerpic a.nivo-nextNav {
    right: 65px;
  }
}

#headerpic {
  padding: 0px 0px;
  position: relative;
}

.slider-mask {
  display: none;
}

#headerpic .nivo-controlNav {
  bottom: 15px;
}

@media (max-width: 991px) {
  #headerpic {
    padding-top: 114px;
  }
}

@media (min-width: 576px) {

  #headerpic .nivo-controlNav {
    bottom: 25px;
  }
}

@media (min-width: 992px) {

  #headerpic .nivo-controlNav {
    bottom: 50px;
  }
}

/* ------------------------------------ ticker ----------------------------------- */

.newsticker {
  margin-bottom: 30px;
  padding: 15px 0;
  border-top: 1px solid #dbe2e1;
  border-bottom: 1px solid #dbe2e1;
}

@media (min-width: 992px) {
  .newsticker {
    margin-bottom: 50px;
  }
}

.newsticker,
.newsticker a {
  color: #005f89;
}

/* ------------------------------------------------ content ----------------------------------------------- */

#content {
  text-align: left;
}

main {
  padding-top: 30px;
  padding-bottom: 30px;
  position: relative;
  margin-bottom: 30px;
}

@media (min-width: 992px) {
  main {
    padding-top: 55px;
    padding-bottom: 95px;
  }
}

@media (min-width: 1200px) {
  main {
    padding-bottom: calc(110px + (175 - 110) * (100vw - 1200px) / (1200 - 320));
  }
}

#contentbottom_left {
  position: relative;
  z-index: 2;
}

/* ------------------------------------ navigation ----------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
  #burgerButton {
    font-size: 0;
    border: none !important;
    position: absolute;
    z-index: 1002;
    display: block;
    width: 46px;
    height: 40px;
    border-radius: 2px;
    cursor: pointer;
    background-color: #ffffff;
    padding: 3px;
    right: 15px;
    top: 50%;
    margin-top: -20px;
  }

  #burgerButtonInner2,
  #burgerButton:after,
  #burgerButtonInner {
    background-color: #007e9e;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 3px;
    -webkit-transition: transform 200ms linear, opacity 200ms linear;
    -moz-transition: transform 200ms linear, opacity 200ms linear;
    -ms-transition: transform 200ms linear, opacity 200ms linear;
    -o-transition: transform 200ms linear, opacity 200ms linear;
    transition: transform 200ms linear, opacity 200ms linear;
  }

  #burgerButton[aria-expanded="true"] #burgerButtonInner {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  #burgerButton[aria-expanded="true"] #burgerButtonInner2 {
    opacity: 0;
  }

  #burgerButton[aria-expanded="true"]:after {
    -webkit-transform: rotate(45deg) translate(-4px, -6px);
    transform: rotate(45deg) translate(-4px, -6px);
  }

  #burgerButtonInner {
    top: 10px;
  }

  #burgerButtonInner2 {
    top: 18px;
  }

  #burgerButton:after {
    top: 26px;
    content: "";
    display: block;
  }

  .navbar-nav {
    margin: 20px 0;
  }

  .navbar-collapse {
    top: 0;
    background: #ffffff;
    position: fixed;
    left: -100%;
    bottom: 0;
    z-index: 100;
    height: auto !important;
    -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    -webkit-transition: left 300ms linear, opacity 300ms linear;
    -moz-transition: left 300ms linear, opacity 300ms linear;
    -ms-transition: left 300ms linear, opacity 300ms linear;
    -o-transition: left 300ms linear, opacity 300ms linear;
    transition: left 300ms linear, opacity 300ms linear;
  }

  .navbar-collapse[aria-expanded="true"],
  .navbar-collapse.in {
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-header {
    line-height: 1;
    border-radius: 2px;
    padding: 0 15px;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    -webkit-box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
  }

  .navbar-toggle::before {
    content: "";
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    z-index: -1;
    display: block;
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-transition: width 300ms linear, opacity 300ms linear;
    -moz-transition: width 300ms linear, opacity 300ms linear;
    -ms-transition: width 300ms linear, opacity 300ms linear;
    -o-transition: width 300ms linear, opacity 300ms linear;
    transition: width 300ms linear, opacity 300ms linear;
  }

  .navbar-toggle[aria-expanded="true"]::before {
    opacity: 1;
    width: 70px;
  }

  .navbar-default .navbar-nav > li > .dropdown-menu {
    position: relative;
  }
}

@media (max-width: 575px) {
  .navbar-collapse {
    width: calc(100% - 70px);
  }
}

@media (min-width: 575px) and (max-width: 991px) {
  .navbar-collapse {
    width: 60%;
  }

  .navbar-collapse.collapse.in:after,
  .navbar-toggle[aria-expanded="true"]::before {
    width: 40%;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally .navbar-nav {
    padding: 10px 20px;
    background: #ffffff;
    width: 100%;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-pack: justify !important;
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
  }

  nav.horizontally .navbar-nav > li {
    position: relative;
  }

  nav.horizontally .navbar-nav > li > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  .navbar-default .navbar-nav li[class*="toplevel"] > ul {
    display: block !important;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 300ms linear;
    -moz-transition: opacity 300ms linear;
    -ms-transition: opacity 300ms linear;
    -o-transition: opacity 300ms linear;
    transition: opacity 300ms linear;
  }

  .navbar-default .navbar-nav li[class*="toplevel"]:hover > ul {
    pointer-events: auto !important;
    opacity: 1 !important;
    top: 100%;
  }

  .navbar-default .navbar-nav li[class*="toplevel"]:focus-within > ul {
    pointer-events: auto !important;
    opacity: 1 !important;
    top: 100%;
  }

  .nav li[class*="toplevel"].open > .dropdown-menu {
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

#menu {
    background-color: #fff;
}

@media (min-width: 1200px) {
  #menu {
    top: 45px;
  }

  nav.horizontally .navbar-nav {
    padding: 16px 40px;
  }
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default .navbar-nav > li > a {
  color: #444444;
  font-weight: 400;
  text-align: left;
  padding: 8px 15px 8px 15px;
  position: relative;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 991px) {
  .navbar-default .navbar-nav > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  nav.horizontally .navbar-nav > li > a.dropdown-toggle {
    padding-right: 35px;
  }
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > a {
    padding: 13px 0;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }

  .navbar-default .navbar-nav > li + li {
    margin-left: 20px;
  }
}

@media (min-width: 1200px) {
  .navbar-default .navbar-nav > li + li {
    margin-left: 30px;
  }
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li.open > a,
.navbar-default .navbar-nav > li.open > a:hover,
.navbar-default .navbar-nav > li.open > a:focus,
.navbar-nav > li[class$="_over"] > a,
.navbar-nav > li[class$="_over"] > a:hover,
.navbar-nav > li[class$="_over"] > a:focus {
  color: #007e9e;
}

.navbar-nav > li:focus-within > a {
  color: #007e9e;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

.navbar-default .navbar-nav > li > .dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #dbe2e1;
  padding: 10px 0 10px 25px;
}

.navbar-default .navbar-nav > li > .dropdown-menu,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
  padding-top: 4px;
  padding-bottom: 4px;
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > .dropdown-menu {
    margin-left: 4px;
    margin-top: 40px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar-default .navbar-nav > li > .dropdown-menu::before {
    content: "";
    position: absolute;
    display: block;
    height: 40px;
    left: 0;
    right: 0;
    top: -40px;
  }

  .navbar-default .navbar-nav > li > .dropdown-menu::after {
    content: "";
    position: absolute;
    display: block;
    left: -1px;
    top: -21px;
    background: url("../img/subnav.png") center no-repeat;
    width: 27px;
    height: 21px;
  }

  .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
    display: block !important;
  }
}

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

.navbar-default .navbar-nav > li > .dropdown-menu > li::before {
  content: "";
  display: block;
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: 25px;
  width: 1px;
  background: #dbe2e1;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a,
.navbar-default
  .navbar-nav
  > li
  > .dropdown-menu
  > li
  > .dropdown-menu
  > li
  > a {
  color: #444444;
  font-weight: normal;
  text-align: left;
  position: relative;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 991px) {
  nav .navbar-nav > li > .dropdown-menu > li > a.dropdown-toggle2 {
    padding-right: 35px;
  }
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > .dropdown-menu > li > a,
  .navbar-default
    .navbar-nav
    > li
    > .dropdown-menu
    > li
    > .dropdown-menu
    > li
    > a {
    font-size: 1.1875rem;
  }
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a {
  padding: 9px 15px 9px 25px;
}

.navbar-default
  .navbar-nav
  > li
  > .dropdown-menu
  > li
  > .dropdown-menu
  > li
  > a {
  padding: 7px 15px 7px 35px;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: -6px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #007e9e;
  -webkit-transition: background 300ms linear;
  -moz-transition: background 300ms linear;
  -ms-transition: background 300ms linear;
  -o-transition: background 300ms linear;
  transition: background 300ms linear;
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav > li > .dropdown-menu > li:hover > a,
.navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li.open > a:focus,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:hover,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:focus,
.navbar-nav
  > li
  > .dropdown-menu
  > li
  > .dropdown-menu
  > li[class$="_over"]
  > a,
.navbar-nav
  > li
  > .dropdown-menu
  > li
  > .dropdown-menu
  > li[class$="_over"]
  > a:hover,
.navbar-nav
  > li
  > .dropdown-menu
  > li
  > .dropdown-menu
  > li[class$="_over"]
  > a:focus {
  color: #007e9e;
}

.navbar-nav > li > .dropdown-menu > li:focus-within > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li:focus-within > a {
  color: #007e9e;
}

.navbar-nav > li > .dropdown-menu > li:hover > a::before,
.navbar-nav > li > .dropdown-menu > li > a:hover::before,
.navbar-nav > li > .dropdown-menu > li > a:focus::before,
.navbar-nav > li > .dropdown-menu > li.open > a::before,
.navbar-nav > li > .dropdown-menu > li.open > a:hover::before,
.navbar-nav > li > .dropdown-menu > li.open > a:focus::before,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a::before,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:hover::before,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:focus::before {
  background: #007e9e;
}

.navbar-nav > li > .dropdown-menu > li:focus-within > a::before {
  background: #007e9e;
}

/* ------------------------------------------ h1 - h6, newslink ----------------------------------------- */

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
  color: #005f89;
  font-weight: 400;
  line-height: 1.2;
  font-family: "Nothing You Could Do", sans-serif;
}

h1 em,
h1 i,
h2 em,
h2 i,
h3 em,
h3 i {
  font-variant: normal;
  color: #005f89;
  font-weight: 400;
  font-size: 1.125rem;
  font-style: normal;
  display: block;
}

h1,
.h1,
.legacy_h1 {
  font-variant: small-caps;
  font-size: calc(32px + (50 - 32) * (100vw - 320px) / (1920 - 320));
}

h2,
.h2,
.legacy_h2 {
  font-size: calc(24px + (40 - 24) * (100vw - 320px) / (1920 - 320));
}

h3,
.h3,
.legacy_h3 {
  font-size: calc(23px + (35 - 23) * (100vw - 320px) / (1920 - 320));
}

h4,
.h4,
.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
.legacy_h4 {
  font-size: calc(22px + (30 - 22) * (100vw - 320px) / (1920 - 320));
}

h5,
.h5,
.legacy_h5 {
  font-size: calc(21px + (25 - 21) * (100vw - 320px) / (1920 - 320));
}

h6,
.h6,
.legacy_h6 {
  font-size: 1.25rem;
}

#newslinks,
#newsmandate {
  border: 1px solid #005f89;
}

/* ----------------------------------------------- footer ----------------------------------------------- */

footer {
  border-top: 1px solid #dbe2e1;
  position: relative;
  margin-top: 200px;
}

footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -201px;
  background-size: cover;
  background-position: top right, center;
  background-repeat: no-repeat;
  display: block;
  height: 200px;
  max-width: 734px;
  pointer-events: none;
}

footer::after {
  content: "";
  position: absolute;
  display: block;
  background: #ffffff url("../img/hintergrund-footer.png") bottom right
    no-repeat;
  right: 0;
  bottom: -10px;
  width: 952px;
  height: 876px;
  z-index: -1;
}

@media (min-width: 576px) {
  footer {
    margin-top: 250px;
  }

  footer::before {
    top: -251px;
    height: 250px;
  }
}

@media (max-width: 767px) {
  footer::after {
    right: 0;
    bottom: 95px;
  }
}

@media (min-width: 768px) {
  footer {
    margin-top: 300px;
  }

  footer::before {
    top: -301px;
    height: 300px;
  }
}

@media (min-width: 992px) {
  footer {
    margin-top: 0;
  }

  footer::before {
    width: 33.33%;
    height: 495px;
    right: auto;
    top: auto;
    bottom: 0;
  }
}

@media (min-width: 1200px) {
  footer::before {
    width: calc(400px + (50vw - 600px));
  }
}

#footer {
  padding-top: 30px;
  padding-bottom: 30px;
}

@media (min-width: 992px) {
  #footer {
    padding-top: 55px;
    padding-bottom: 40px;
  }
}

.footerHeadline {
  font-variant: small-caps;
  font-size: 1.375rem;
}

@media (min-width: 768px) {
  .footerHeadline {
    margin: 0 0 25px 0;
    font-size: 1.5625rem;
  }
}

.footerTab {
  font-size: 1rem;
  color: #444444;
}

.footerTab a {
  display: inline-block;
  position: relative;
  font-size: 1rem;
  font-weight: 400;
  color: #007e9e;
}

/* --------------------------------------------- vernetzt -------------------------------------------- */

#vernetzt {
  font-size: 0.875rem;
  color: #666666;
  justify-content: center;
  line-height: 1.3;
  margin: 30px auto 0 auto;
  text-decoration: none;
  display: inline-block;
}

@media (min-width: 992px) {
  #vernetzt {
    margin: 0 auto;
  }
}

#vernetzt span {
  color: #666666;
  display: block;
}

#vernetzt b {
  color: #007e9e;
}

#vernetzt img {
  margin-bottom: 6px;
}

/* ------------------------------------------- innerfooter ------------------------------------------ */

#innerfooter {
  border-top: 1px solid #dbe2e1;
  font-size: 1rem;
  padding: 22px 0;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: block;
}

#innerfooter a {
  color: #666666;
  text-decoration: none;
}

#innerfooter a:hover,
#innerfooter a:focus {
  color: #007e9e;
}

@media (min-width: 576px) {
  #innerfooter li {
    display: inline-block;
  }

  #innerfooter li + li::before {
    content: "\2022";
    margin: 0 15px;
    color: #666666;
  }
}

@media (min-width: 992px) {
  #innerfooter li + li::before {
    margin: 0 25px;
  }
}

/* ------------------------------------------- contrast ------------------------------------------ */

.contrast_light_font footer .row {
  background: transparent !important;
}
