@import url('https://fonts.verwaltungsportal.de/import/?family=Jost:300,400,500,600,700,800,300i,400i,500i,600i,700i,800i');
@import url('https://fonts.verwaltungsportal.de/import/?family=Schoolbell:400');
body {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    color: #2e2e2e;
    background: #f4f8f8;
    font-size: 1rem;  /* 1rem = 16px */
    line-height: 1.5;
}

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


a {
    color: #e95d00;
}

a:hover {
    color: #e95d00;
}

#content a, b, strong {
    font-weight: 600;
}

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

#topbar {
    color: #454c4c;
    background: url('../img/topbar.png') center top no-repeat;
    padding-bottom: 70px;
}

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

.logo {
    display: inline-block;
}

@media (max-width: 991px) {
    .logo {
        margin-bottom: 15px;
    }

    .logo img{
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .logo {
        margin-top: 10px;
        width: auto;
    }
}

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

.navbar-nav {
    background-color: #509617;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        -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);
    }
    #burgerButtonInner2, #burgerButton:after, #burgerButtonInner {
        background-color: #509617;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        -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: 16px;
    }
    #burgerButtonInner2 {
        top: 24px;
    }
    #burgerButton:after {
        top: 32px;
        content: "";
        display: block;
    }
    .navbar-nav {
        margin: 20px 0;
    }
    .navbar-collapse {
        top: 0;
        background: #509617;
        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 {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }
    .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.5);
        -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: 90px;
    }
}

@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 {
        margin: 0px auto 15px auto;
        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;
    }
}

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

.navbar-default .navbar-nav>li>a {
    color: #fff;
    font-weight: 400;
    text-align: center;
    padding: 10px 5px;
    font-size: 1.25rem;
    line-height: 1;
    text-transform: uppercase;
    font-family: 'Schoolbell', cursive;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a {
        padding: 40px 15px;
        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: #55a018;
}

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

.navbar-default .navbar-nav>li>.dropdown-menu {
    padding: 20px 15px;
    background-color: rgba(85,160,24,0.9);
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    padding: 20px 15px;
    background-color: rgba(239,186,25,0.9);
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>.dropdown-menu {
        margin-top: 15px;
        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::before {
        content: '';
    display: block;
    position: absolute;
    top: -12px;
    bottom: 0;
    left: 50%;
    margin-left: -12px;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #548235; 
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        margin-left: 30px;
        margin-top: -20px;
    }
}

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

.navbar-default .navbar-nav>li>.dropdown-menu>li>a {
    color: #fff;
    font-weight: 400;
    text-align: center;
    padding: 10px 30px;
    background-color: transparent;
    position: relative;
    font-size: 1.1875rem;
    text-transform: uppercase;
    border-bottom: 1px solid #448013;
    font-family: 'Schoolbell', cursive;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li:lastchild>a {
    border-bottom: 0px solid #448013;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
    color: #2c530c;
    font-weight: 400;
    text-align: center;
    padding: 10px 30px;
    background-color: transparent;
    position: relative;
    font-size: 1.1875rem;
    text-transform: uppercase;
    border-bottom: 1px solid #2c530c;
    font-family: 'Schoolbell', cursive;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:last-child>a {
    border-bottom: 0px solid #2c530c;
}



/* ------------------------------------------ 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 {
    color: #2c530c;
}
.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: #ffffff;
}
/* ----------------------------------------------- wechselbanner ----------------------------------------------- */

#slider, .slider-wrapper {
    max-height: 300px;
    overflow: hidden;
}

@media (min-width: 768px) {
    #headerpic .nivo-directionNav a {
        top: auto;
        bottom: 12px;
    }

    #headerpic .nivo-controlNav {
        pointer-events: none;
    }

    #headerpic .nivo-controlNav a {
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    #headerpic .nivo-directionNav a {
        bottom: 18px;
    }

    #slider, .slider-wrapper {
        max-height: 445px;
    }
}

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

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

.slider-mask {
    display: none;
}

/* ----------------------------------------------- banner ----------------------------------------------- */
#banner {
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
}

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

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

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

.compact {
    padding: 15px;
    background-color: #ffffff;
    -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.20);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.20);
}

@media (min-width: 992px) {
    .compact {
        padding: 15px 15px 15px 15px;
        margin-top: 35px;
        margin-bottom: 15px;
    }
}

.newsticker {
    background: #f1f0ee;
    color: #2e2e2e;
    font-size: 0.9375rem;
    padding: 5px;
}

.newsticker a {
    color: #2e2e2e;
}
/* ------------------------------------------ tabs ----------------------------------------- */
.news {
    background: url(../img/bg-news.jpg);
}

.events {
    background: url(../img/bg-events.jpg);
}

.tab {
    color: #fff;
    margin-bottom: 20px;
    padding: 15px;
}

.tab .tabHeadline {
    color: #fff;
    font-size: 1.25rem;
    font-family: 'Schoolbell', cursive;
    position: relative;
    padding-left: 30px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tab .tabHeadline::before{
    content: '--';
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    color: #fff;
    font-size: 1.25rem;
}
.tab .tabContent a {
    color: #fff;
}
/* ------------------------------------------ search ----------------------------------------- */
.search {
    background: url(../img/bg-search.jpg);
}
#search {
    height: 33px;
    background: #fff;
    display: inline-block;
    position: relative;
}

#search_input {
    color: #2e2e2e;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 33px;
    padding-left: 10px;
    padding-right: 43px;
    height: 33px;
    width: 100%;
}

#search_submit {
    width: 33px;
    background: #fff url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    line-height: 33px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    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: #2e2e2e !important;
}

#search_input::-webkit-input-placeholder {
    color: #2e2e2e !important;
}

#search_input::-moz-placeholder {
    opacity: 1;
}

#search_input:-moz-placeholder {
    opacity: 1;
}

/* ------------------------------------------ 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: #509617;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Schoolbell', cursive;
}

h1, #content .legacy_h1, .legacy_h1, .h1 {
    font-size: 1.875rem;
    margin-left: 40px;
    position: relative;
}

h1::before{
    content: '--';
    display: block;
    position: absolute;
    top: 0px;
    left: -40px;
    color: #509617;
    font-size: 1.875rem;
} 

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

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

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

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

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

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

/* ----------------------------------------------- footer ----------------------------------------------- */
footer, #footerbar {
    max-width: 1200px;
    margin-left: auto;
margin-right: auto;
}

footer .row {
    width: 100%;
}

footer {
    background-color: #f7bf00;
    color: #2e2e2e;
    background: url('../img/bg-search.jpg') repeat;
    padding: 30px 15px;
    font-size: 1rem;
}

.footertab a{
    color: #2e2e2e;
    font-weight: 600;
}

#footerbar {
    background: #fff;
    margin-top: 15px;
}

@media (max-width: 575px) {
    #innerfooter {
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (min-width: 768px) {
    footer {
        padding: 55px 30px;
    }
}

#innerfooter {
    padding: 10px 0;
}

#innerfooter a {
    color: #2e2e2e;
    text-decoration: none;
    display: inline;
    font-weight: 400;
    font-size: 1rem;
}

#innerfooter a:hover {
    color: #e95d00;
}

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

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

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

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

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

#vernetzt b {
    font-weight: 500;
}

#vernetzt span {
    color: #42501e;
    display: block;
}

#vernetzt img {
    margin: 0 auto 5px auto;
    display: block;
}

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

/* ----------------------------------------------- styler ----------------------------------------------- */

@media (min-width: 992px) {
    #style {
        background: #509617;
        color: #fff;
        height: 50px;
        float: right;
        padding-left: 10px;
        margin-right: -15px;
    }
    #style button {
        color: #fff;
        font-weight: 400;
        background: transparent;
        border: none;
        padding: 0;
        line-height: 1;
        font-size: 1rem;
        height: 50px;
        width: 50px;
    }

    #style button:hover {
        background: #427c12;
    }
}

