@import url('https://fonts.verwaltungsportal.de/css/?family=Source+Serif+Pro:400,600,700');

body {
    font-family: 'Source Serif Pro', serif;
    color: #005fab;
    background: #1a6098;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #84a0b6;
}

a:hover {
    color: #84a0b6;
}

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

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

nav {
    background: #ffffff;
}

/* 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: #005fab;
        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: #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 {
        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 {
        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 .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;
    }

    .navbar-collapse {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-default .navbar-nav>li>ul,
    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        display: block;
        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;
    }

    nav .open>.dropdown-menu,
    nav .navbar-default .navbar-nav>li:hover>ul,
    nav .navbar-default .navbar-nav>li>.dropdown-menu>li:hover>.dropdown-menu,
    nav .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
    }
}

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

.navbar-default .navbar-nav>li>a {
    color: #005faa;
    font-weight: normal;
    text-align: center;
    padding: 10px 5px;
    font-family: 'Source Serif Pro', serif;
    line-height: 1;
    font-size: 1.25rem;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a {
        padding: 22px 5px 26px 5px;
        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: #84a0b6;
}

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

.navbar-default .navbar-nav>li>.dropdown-menu,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    padding: 20px 0;
    background-color: #84a0b6;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>.dropdown-menu {
        margin-top: 20px;
        right: auto;
        left: 50%;
        position: absolute;
        -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: "";
        position: absolute;
        display: block;
        left: 0;
        right: 0;
        height: 20px;
        top: -20px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu::after {
        content: "";
        left: 50%;
        top: -10px;
        position: absolute;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent #84a0b6 transparent;
        -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 {
        top: 0;
        margin-left: 10px;
        margin-top: -20px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        top: 0;
        bottom: 0;
        width: 10px;
        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: #ffffff;
    font-weight: 600;
    text-align: center;
    padding: 8px 15px;
    background-color: transparent;
    font-size: 1rem;
}

/* ------------------------------------------ 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,
.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;
    background-color: #95adc0;
}

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

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

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

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

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

#logo {
    pointer-events: auto;
    display: inline-block;
}

#logo img {
    display: block;
}

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

#bannerOverlay {
    padding: 5px 15px;
    line-height: 1;
    background: #ffffff;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        bottom: -130px;
        left: 95px;
        z-index: 50;
    }

    #bannerOverlay {
        padding: 0;
        background: transparent;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 75px;
        z-index: 53;
        pointer-events: none;
    }
    .tabWrapper {
        padding: 10px 0;
        background: linear-gradient(90deg,rgba(27, 91, 155, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    }
    .tabWrapper .tab {
        padding-left: 290px;
        color: #fff;
        font-size: 1.25rem;
    }
    .tabWrapper .tabHeadline {
        color: #fff;
        font-size: 1.5625rem;
    }
}

.slider-mask {
    display: none;
}

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

#content {
    text-align: left;
    padding: 30px 0;
    background-color: #ffffff;
}

@media (min-width: 576px) {
    #content {
        padding: 30px 15px 30px 15px;
    }
}

@media (min-width: 768px) {
    #content {
        padding: 30px 35px 40px 35px;
    }
}

@media (min-width: 992px) {
    .compact {
        border: 20px solid rgba(255, 255, 255, 1);
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

/* ------------------------------------------ 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: #005faa;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Source Serif Pro', serif;
}

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

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 #005faa;
}

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

#footer {
    background-color: #005fab;
    color: #ffffff;
    padding: 15px;
}

@media (min-width: 768px) {
    #footer {
        padding: 8px 35px;
    }
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
}

#innerfooter a+a::before {
    content: "|";
    margin: 15px;
    color: #4c97b5;
}

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

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

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

#vernetzt span {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}

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