@import url('https://fonts.verwaltungsportal.de/css/?family=Josefin+Sans:300,300i,400,400i,600,600i,700,700i');

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

@media (min-width: 768px) {
    body {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    body {
        font-size: 1.25rem;
    }
}

a {
    color: #ff2e17;
}

a:hover {
    color: #ff2e17;
}

#content a {
    font-weight: 300;
}

#content strong {
    font-weight: 600;
}

/* ----------------------------------------------- contact ----------------------------------------------- */

.contact {
    color: #e1aa16;
    font-size: 1rem;

}

@media (max-width: 991px) {
    #menu .contact {
        padding: 15px;
    }
}

#menubar{
    background: #fff;
    border-top: 3px solid #cdcdcd;
}

@media (min-width: 992px) {
    nav .contact {
        padding-top: 0px;
        padding-bottom: 6px;
    }
}

.contact p {
    margin: 0;
    display: inline-block;
}

.contact p+p {
    margin-left: 15px;
}

@media (min-width: 992px) {
    .contact p+p {
        margin-left: 25px;
    }
}

.contact a {
    color: #e1aa16;
}

.contact .mailtab::before {
    content: '';
    display: block;
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    height: 40px;
    width: 50px;
    background: url(../img/icon_mail_clean.png) center no-repeat, #e1aa16;
    border-radius: 0 0 3px 3px;
    margin-right: 10px;
}

#name{
    display: block;
    margin-top: 35px;
}
@media(min-width:992px){
    #name{
        margin-top: 50px;
    }
}

.mailtab {
    background: #fbf2dc;
    border-radius: 3px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

@media (max-width: 991px) {
    #topbar .mailtab {
        padding-left: 20px;
        margin-right: 0px;
        background: #fbf2dc;
        border-radius: 3px;
        height: 40px;
        text-align: center;
        max-width: 100%;
        color: #e1aa16;
    }

    #topbar .mailtab a {
        color: #e1aa16;
    }
}

.contact .fontab::before {
    content: '';
    display: block;
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    height: 40px;
    width: 50px;
    background: url(../img/icon_phone_clean.png) center no-repeat, #e1aa16;
    border-radius: 0 0 3px 3px;
    margin-right: 10px;
}

.fontab {
    background: #fbf2dc;
    border-radius: 3px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

@media (max-width: 991px) {
    #topbar .fontab {
        padding-left: 20px;
        margin-right: 0px;
        background: #fbf2dc;
        border-radius: 3px;
        height: 40px;
        text-align: center;
        max-width: 100%;
        color: #e1aa16;
    }

    #topbar .fontab a {
        color: #e1aa16;
    }
}

/* ----------------------------------------------- topbar ----------------------------------------------- */

#topbar {
    background: #f6f6f6;
}
@media(min-width:992px){
    #topbar{
        padding-bottom: 25px;
    }
}

#logo {
    display: inline-block;
    position: absolute;
    top: 17px;
    z-index: 52;
}

#logo1 {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    -webkit-box-shadow: 0px -2px 10px 0px rgba(82, 82, 82, 0.2);
    -moz-box-shadow: 0px -2px 10px 0px rgba(82, 82, 82, 0.2);
    box-shadow: 0px -2px 10px 0px rgba(82, 82, 82, 0.2);
    display:block;
}

@media(min-width:992px){
    #logo1{
        padding-top: 50px;
    }
    #logo2{
        padding-top: 30px;
    }
}

#logo2 {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    -webkit-box-shadow: 0px -2px 10px 0px rgba(82, 82, 82, 0.2);
    -moz-box-shadow: 0px -2px 10px 0px rgba(82, 82, 82, 0.2);
    box-shadow: 0px -2px 10px 0px rgba(82, 82, 82, 0.2);
    display:block;
}

#logo1 img,
#logo2 img {
    display: block;
    margin: 0 auto;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 210px;
        width: 100%;
    }
}



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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        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: #2e3c48;
        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: #fbf2dc;
        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) {

    nav#menu .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#menu .navbar-nav>li {
        flex-grow: 1;
    }

    nav#menu .dropdown-menu {
        position: absolute;
        top: 100%;
        z-index: 1000;
    }

    nav#menu .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
    }

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

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

.navbar-default .navbar-nav>li>a {
    color: #878790;
    font-weight: 400;
    text-align: center;
    padding: 10px 5px 15px 5px;
    position: relative;
    font-size: 1.15rem;
    line-height: 1;
}

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

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

    .navbar-default .navbar-nav>li>a {
        padding: 18px 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;
    }
}

.navbar-default .navbar-nav>li>a::before {
    content: "";
    height: 2px;
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
    background-color: #e1aa16;
    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;
}

/* -------------------------------------------- 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: #e1aa16;
    background-color: transparent;
}

.navbar-nav>li>a:hover::before,
.navbar-nav>li>a:focus::before,
.navbar-nav>li.open>a::before,
.navbar-nav>li.open>a:hover::before,
.navbar-nav>li.open>a:focus::before,
.navbar-nav>li[class$="_over"]>a::before,
.navbar-nav>li[class$="_over"]>a:hover::before,
.navbar-nav>li[class$="_over"]>a:focus::before {
    opacity: 1;
}

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

.navbar-default .navbar-nav>li>.dropdown-menu,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    background-color: #ffffff;
    -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);
}

@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: 18px;
        padding-bottom: 18px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        left: 50%;
        -moz-transform: translate(-50%, 0);
        -webkit-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        margin-top: 0px;
        border-radius: 4px;
        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: #878790;
    font-weight: 400;
    text-align: center;
    padding: 8px 25px;
    font-size: 1.125rem;
}

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

.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 {
    background: #fbf2dc;
    color: #e1aa16;
}

.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: #e1aa16;
    color: #ffffff;
}

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

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

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

    body.index #slider {
        max-height: 590px;
    }

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

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

#headerpic {
    margin: 0 auto;
    position: relative;
    width: 100%;
    max-height: 590px;
}



body:not(.index) #headerpic {
    max-height: 450px;
}

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

.slider-mask {
    display: none;
}



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

#content {
    text-align: left;
    padding-bottom: 30px;
    padding-top: 30px;
}

@media (min-width: 992px) {
    #content {
        padding-bottom: 60px;
        padding-top: 60px;
    }
}

/* ------------------------------------------ h1, #content .legacy_h1, .legacy_h1 - h6, #content .legacy_h6, .legacy_h6, newslink ----------------------------------------- */

.h4link a:link,
.h4link a:hover,
.h4link a:visited,
h6, #content .legacy_h6, .legacy_h6,
h5, #content .legacy_h5, .legacy_h5,
h4, #content .legacy_h4, .legacy_h4,
h3, #content .legacy_h3, .legacy_h3,
h2, #content .legacy_h2, .legacy_h2,
h1, #content .legacy_h1, .legacy_h1 {
    color: #e1aa16;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Josefin Sans", sans-serif;
}

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

@media (min-width: 768px) {

    h1, #content .legacy_h1, .legacy_h1,
    .h1 {
        font-size: 1.875rem;
    }
}

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

@media (min-width: 768px) {

    h2, #content .legacy_h2, .legacy_h2,
    .h2 {
        font-size: 1.7rem;
    }
}

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

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

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

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

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

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

#footer {
    border-top: 2px solid #e1aa16;
    padding-top: 30px;
    padding-bottom: 30px;
    color: #878790;
}

@media (max-width: 767px) {
    #footer .row>.col-xs-12:not(:first-child)::before {
        background: #000000;
        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;
    }
}

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

#footer .termin,
#footer .termin a,
#footer .termin a:hover {
    color: #e1aa16;
    font-weight: 400;
}

#innerfooter {
    background-color: #e1aa16;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 1rem;
}

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

#innerfooter a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#innerfooter a+a::before {
    content: "•";
    margin: 0 15px;
    color: #fff;
}

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

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

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

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

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

#vernetzt span {
    color: #878790;
}

#vernetzt span span {
    display: block;
}

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