@import url("https://fonts.verwaltungsportal.de/css/?family=Lato:300,400,500,600,700%7CMerienda:300,400,500,600,700");

body {
   font-family: "Lato", sans-serif;
   color: #4d4d4d;
   background: #ffffff;
   font-size: 1rem; /* 1rem = 16px */
   line-height: 1.5;

}

a {
   color: #0f78ad;
}

a:hover,
a:focus {
   color: #0f78ad;
   text-decoration: underline;
}

#content a {
   color: #0f78ad;
   text-decoration: underline;
}

b,
strong {
   font-weight: 600;
}

a:focus {
    outline: 3px solid #d85b00 !important;
}

button:focus {
    outline: 3px solid #d85b00 !important;
}

form:focus {
    outline: 3px solid #d85b00 !important;
}

#newsletter_input:focus,
#newsletter_submit:focus,
#search_input:focus,
#search_submit:focus {
    outline: 3px solid #d85b00 !important;
}

.tabContent img {
   display: block;
}
/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
   display: inline-block;
}

#logo img {
   display: block;
}

@media (min-width: 992px) {
   #logo {
      position: absolute;
      top: -41px;
      right: 0;
      z-index: 8;
   }
}

@media (max-width: 991px) {
   #logo img {
      max-width: 80px;
      width: 100%;
      position: relative;
      top: 20px;
      z-index: 8;
   }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
   #burgerButton {
      font-size: 0;
      border: none !important;
      position: relative;
      z-index: 1002;
      display: block;
      width: 46px;
      height: 40px;
      border-radius: 2px;
      cursor: pointer;
      background-color: #ffffff;
      padding: 3px;
   }
   #burgerButton:before,
   #burgerButton:after,
   #burgerButtonInner {
      background-color: #2778a1;
      border-radius: 2px;
      position: absolute;
      width: 40px;
      height: 3px;
      left: 2px;
      -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"]:before {
      opacity: 0;
   }
   #burgerButton[aria-expanded="true"]:after {
      -webkit-transform: rotate(45deg) translate(-4px, -6px);
      transform: rotate(45deg) translate(-4px, -6px);
   }
   #burgerButtonInner {
      top: 10px;
   }
   #burgerButton:before {
      top: 18px;
   }
   #burgerButton:after {
      top: 26px;
   }
   #burgerButton:before,
   #burgerButton:after {
      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.collapse.in {
      left: 0;
      opacity: 1;
      pointer-events: auto;
   }
   .navbar-header {
      height: 50px;
      width: 60px;
      border-radius: 2px;
      padding: 6px 8px;
      background-color: #ffffff;
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 101;
      -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
      box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
   }
   .navbar-collapse.in:after {
      content: "";
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: -1;
      display: block;
      width: 90px;
      background-color: rgba(0, 0, 0, 0.5);
   }
}

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

/* menu desktop */

@media (min-width: 992px) {
   .horizontally {
      position: absolute;
      background-color: rgba(255, 255, 255, 0.9);
      border-top: 30px solid #008fd7;
      border-bottom: 5px solid #058d49;
      top: 0;
      left: 0;
      right: 0;
      z-index: 8;
   }
   nav.horizontally .navbar-nav {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -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 {
      flex-grow: 1;
   }
   nav.horizontally .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 1000;
   }
   nav.horizontally .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
      position: absolute;
      left: 100%;
      top: 0;
   }
   nav.horizontally .navbar-nav > li,
   nav.horizontally .navbar-nav > li > .dropdown-menu > li {
      position: relative;
   }

   /* Fade in Hover Start */
   /* .navbar-default .navbar-nav li[class*="toplevel"] > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"] > 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 .open > .dropdown-menu,
   .navbar-default .navbar-nav li[class*="toplevel"]:hover > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:hover > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"] > ul[style*="block"] {
      pointer-events: auto !important;
      opacity: 1 !important;
   }
   .navbar-default .navbar-nav li[class*="toplevel"]:focus-within > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:focus-within > ul {
      pointer-events: auto !important;
      opacity: 1 !important;
   }
   .navbar-default .nav .open > .dropdown-menu {
      pointer-events: none !important;
      opacity: 0 !important;
   } */

   /* Pseudo */

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

   /* 3rd */

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

   /* Fade in Hover End */
}

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

.navbar-default .navbar-nav > li > a {
   color: #2b2b2b;
   font-weight: 400;
   text-align: center;
   padding: 10px 35px 15px 35px;
   font-family: "Lato";
   position: relative;
   font-size: 1rem;
   line-height: 1.2;
   text-decoration: none;
}

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

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

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 992px) {
   .navbar-default .navbar-nav > li > a {
      display: block;
   }
}

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

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.open > a,
.navbar-nav > li.open > a:hover,
.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: #fff;
   background-color: #058043;
}

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

.navbar-default .navbar-nav > li > .dropdown-menu,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
   background-color: rgba(255, 255, 255, 0.95);
   -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
   box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
   margin-top: 0;
}

@media (max-width: 991px) {
   .navbar-default .navbar-nav > li > .dropdown-menu {
      padding: 15px;
   }
}

@media (min-width: 992px) {
   .navbar-default .navbar-nav > li > .dropdown-menu,
   .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
      padding-top: 0;
      padding-bottom: 0;
   }
   .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
      margin-top: -18px;
      margin-left: 10px;
   }
}

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

.navbar-default .navbar-nav > li > .dropdown-menu > li > a,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a {
   color: #2d2d2d;
   font-weight: 400;
   text-align: left;
   padding: 3px 25px;
   font-size: 1;
   line-height: 1.2;
   position: relative;
   text-decoration: none;
}

@media (min-width: 992px) {
   .navbar-default .navbar-nav > li > .dropdown-menu > li > a::before {
      content: "›";
      position: absolute;
      display: block;
      left: 13px;
      font-size: 21px;
      top: -2px;
   }
}

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

.navbar-nav > li > .dropdown-menu > li:focus > a,
.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 {
   background: transparent;
   color: #0d833f;
}

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

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

@media (min-width: 992px) {
   #slider {
      max-height: 400px;
   }
   body.index #slider {
      max-height: 600px;
   }
   #headerpic a.nivo-prevNav {
      left: 65px;
   }
   #headerpic a.nivo-nextNav {
      right: 65px;
   }
   .slider-mask {
      display: block;
      background: url("../img/mask.png"), url("../img/mask2.png");
      background-size: contain, contain;
      background-position: bottom center, top 90px center;
      background-repeat: no-repeat, no-repeat;
   }
   #headerpic {
      background-color: #317ea5;
   }
   
   .nivo-directionNav a { 
      color: #ffffff !important; 
   } 
   
   a.nivo-control { 
      color: #ffffff !important; 
   }
   
   a.nivo-control.active { 
      color: #ffffff !important; 
   }
}

#headerpic {
   margin: 0 auto;
   position: relative;
   width: 100%;
}

.slider-wrapper,
#slider {
   height: 100%;
}

#slogan {
   position: absolute;
   font-size: 2.1875rem;
   font-family: "Merienda";
   z-index: 7;
   top: 130px;
   left: 0;
   right: 0;
   color: #fff;
   text-shadow: 0 1px #000000;
}

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

main {
   text-align: left;
   padding-top: 25px;
   hyphens: auto;
}

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

#fancybox-wrap #fancybox-title {
  hyphens: auto;
}

/*---------- bg-left ----------*/

#bg-left {
   color: #2b2b2b;
}

@media (max-width: 991px) {
   #bg-left {
      border-right: unset;
   }
}

#bg-left a {
   color: #d43008;
}

#bg-left .tabHeadline {
   color: #d43008;
   font-size: 1.125rem;
   font-family: "Lato";
   font-weight: bold;
}

#info,
#time,
#events {
   margin-top: 25px;
   border: 5px solid;
   border-image-source: linear-gradient(to left, #9aacd6, #009241);
   border-image-slice: 1;
   padding: 15px;
}

#events .tab_link_title a {
   color: #2b2b2b;
   font-weight: bold;
}

#events,
#events .tab_link_mandat a {
   color: #2b2b2b;
}

#events .tab_link_mehr {
   font-size: 0;
}

#events .tab_link_mehr a {
   font-size: 1rem;
   position: relative;
   display: inline-block;
   padding-right: 15px;
}

#events .tab_link_mehr a::before {
   content: "››";
   display: block;
   position: absolute;
   right: 0;
}

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

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
   color: #008039;
   font-weight: normal;
   line-height: 1.2;
   font-family: "Lato", sans-serif;
   display: inline-block;
}

h1,
.h1,
.legacy_h1 {
   font-size: 1.7rem;
}

@media (min-width: 768px) {
   h1,
   .h1,
   .legacy_h1 {
      font-size: 1.75rem;
   }
}

h2,
.h2,
.legacy_h2 {
   font-size: 1.6rem;
}

@media (min-width: 768px) {
   h2,
   .h2,
   .legacy_h2 {
      font-size: 1.7rem;
   }
}

h3,
.h3,
.legacy_h3 {
   font-size: 1.6rem;
}

h4,
.h4,
.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
.legacy_h4 {
   font-size: 1.5rem;
}

h5,
.h5,
.legacy_h5 {
   font-size: 1.4rem;
}

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

#newslinks,
#newsmandate {
   border: 1px solid #2e3c48;
}

/* ------------------------------------------------ options ---------------------------------------------- */

#options {
   background: url("../img/mask-bottom.png") no-repeat top center;
   background-size: cover;
   padding-top: 108px;
   padding-bottom: 50px;
   margin-top: 50px;
   border-bottom: 5px solid;
   border-image-source: linear-gradient(to left, #99acd5, #039242);
   border-image-slice: 1;
}

@media (max-width: 991px) {
   #options {
      background-image: unset;
      background-color: #317ea5;
      padding-top: 50px;
   }
}

#search {
   height: 33px;
   background: #fff;
   border-radius: 15px;
   display: inline-block;
   position: relative;
}
#search_input {
   color: #bdcdcd;
   font-size: 16px;
   font-style: normal;
   background: transparent;
   padding: 0;
   border: 0;
   line-height: 33px;
   padding-right: 10px;
   padding-left: 35px;
   height: 33px;
   width: 100%;
}
#search_submit {
   width: 50px;
   background: #fff url("../img/lupe-icon.png") center no-repeat;
   border-radius: 50%;
   border: 5px solid #0f78ad;
   padding: 0;
   cursor: pointer;
   line-height: 50px;
   position: absolute;
   top: -10px;
   left: -25px;
   height: 50px;
   font-size: 0;
   -webkit-transition: background-color 300ms linear;
   -moz-transition: background-color 300ms linear;
   -ms-transition: background-color 300ms linear;
   -o-transition: background-color 300ms linear;
   transition: background-color 300ms linear;
}
#search_input::-ms-input-placeholder {
   color: #bdcdcd !important;
}
#search_input::-webkit-input-placeholder {
   color: #bdcdcd !important;
}
#search_input::-moz-placeholder {
   opacity: 1;
}
#search_input:-moz-placeholder {
   opacity: 1;
}

@media (min-width: 0px) {
   #style {
      background-color: #317ea5;
   }
   #style button {
      border: 1px solid #fff;
      color: #fff;
      display: inline-block;
      width: 38px;
      height: 38px;
      font-weight: 400;
      text-align: center;
      background-color: #0f78ad;
      position: relative;
      line-height: 1;
   }
   #style button + button {
      margin-left: 8px;
   }
   #style button:hover {
      background-color: #0a4d6f;
   }
}

@media (min-width: 0px) {
   #contrast_style {
      line-height: 0;
   }
   #contrast_style button {
      padding: 0;
      border: none;
      background: transparent;
      display: inline-block;
   }
   #contrast_style button + button {
      margin-left: 8px;
   }
}

@media (max-width: 991px) {
   #contrast_style,
   #style {
      margin-top: 25px;
   }
}

#style span,
#contrast_style span {
   color: #fff;
   font-size: 1rem;
   margin-right: 10px;
}

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

footer {
   background-color: #efefef;
   padding-top: 30px;
   padding-bottom: 30px;
   color: #2d2d2d;
   font-size: 1rem;
}

@media (max-width: 767px) {
   footer .row > .col-xs-12:not(:first-child)::before {
      background: #2d2d2d;
      content: " ";
      height: 1px;
      width: 100%;
      display: block;
      margin: 25px 0;
      opacity: 0.2;
   }
   footer .row > .col-xs-12.hidden-xs ~ .col-xs-12::before,
   footer .row > .col-xs-12.hidden-sm ~ .col-xs-12::before {
      display: none;
   }
}

#innerfooter ul {
   padding: 0;
}

#innerfooter li {
   display: inline-block;
}

#innerfooter a {
   color: #2d2d2d;
   text-decoration: none;
   display: inline-block;
   font-weight: 400;
}

#innerfooter a:hover,
#innerfooter a:focus {
   text-decoration: none;
   color: #2f83ac;
}

@media (min-width: 1200px) {
   #innerfooter li + li {
      margin-left: 30px;
   }
}

@media (max-width: 767px) {
   #innerfooter li {
      display: block;
      text-align: center;
      padding: 5px;
      margin: 0;
   }
   #innerfooter li + li::before {
      display: none;
   }
   #innerfooter li + li {
      margin: 0;
   }
}

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

#vernetzt {
   text-align: right;
   font-size: 0.875rem;
   color: #ffffff;
   line-height: 1.3;
   margin: 0 auto;
   font-weight: 300;
}

@media (min-width: 768px) {
   #vernetzt {
      float: right;
      margin: 0;
   }
}

#vernetzt b {
   color: #becdda;
   font-weight: 400;
}

#vernetzt span {
   color: #ffffff;
}

#vernetzt span span {
   display: block;
}

#vernetzt img {
   margin-left: 18px;
}

#vernetzt:hover,
#vernetzt:active,
#vernetzt:focus {
   text-decoration: none;
}

/*--------- arrows ----------*/

@media (min-width: 992px) {
   #slider + .nivo-controlNav {
      bottom: 25px !important;
   }
   .nivo-directionNav a {
      top: 60% !important;
   }
   .theme-default .nivo-controlNav {
      bottom: 25px !important;
   }
}

.dropdown-toggle-button-wrapper {
   top: 8px !important;
}
