@import url('https://fonts.verwaltungsportal.de/import/?family=Montserrat:400,500,600,400i,500i,600i');
@import url("https://fonts.verwaltungsportal.de/import/?family=Comfortaa:400,400i,600,600i,700,700i");

body {
    font-family: "Montserrat", sans-serif;
    color: #454849;
    background: #ffffff;
    font-size: 0.9rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

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

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

a {
    color: #023e8a;
}

a:hover,
a:focus {
    color: #023e8a;
    text-decoration: underline;
}

#content a {
    font-weight: 500;
}

b, strong {
    font-weight: 600;
}

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

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

@media (max-width: 767px) {
    #logo {
        margin: 10px 0;
    }
}

#logo img {
    width: 100%;
    max-width: 90px;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    #logo img {
        max-width: 180px;
    }
}

@media (max-width: 991px) {
    #logo img {
        display: inline-block;
    }
}

@media (max-width: 1399px) {
    #logo img {
        max-width: 60%;
    }
}

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

@media (max-width: 991px) {
    #logo {
        background: #fff;
        text-align: center;
        padding: 10px;
    }
}

#logo h2 {
    color: #4f626d;
    font-size: 2.5rem;
}

#logo h3 {
    color: #4f626d;
    font-size: 1.375rem;
}

a#logo:focus,
a#logo:hover {
    text-decoration: none;
}

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

#headerpic, #slider {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

#slider {
    max-height: 300px;
}

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

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

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

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

@media (min-width: 1400px) {
    #slider {
        width: 60%;
        margin-left: 0;
    }

    .theme-default .nivo-controlNav {
        width: 70%;
    }
}

#bannerOverlay .row {
    max-width: 1400px;
}

@media (min-width: 1400px) {
    #bannerOverlay {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 30px;
        z-index: 53;
        pointer-events: none;
    }
}

.slider-mask {
    display: none;
}

@media (min-width: 1400px) {
    .slider-mask {
        display: block;
        background: url('../img/slider-mask.png') center right no-repeat;
        background-size: auto 100%;
        width: 60%;
    }
}

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

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

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

    body:not(.index) #content {
        padding-top: 30px;
    }

    body>* {
        padding-left: 250px;
    }
}

@media (min-width: 1200px) {
    body>* {
        padding-left: 300px;
    }
}

.container {
    width: 100%;
    max-width: 1170px;
}

#content .tab {
    padding: 40px 20px 30px 20px;
    background: #fff;
    -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.18);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.18);
}

@media (max-width: 991px) {
    #content .tab {
        margin-top: 25px;
    }
}

#content .tabHeadline {
    margin-bottom: 40px;
    font-size: 2rem;
}

#content .tabContent a {
    text-decoration: underline;
}

#content .tabContent a:focus,
#content .tabContent a:hover {
    text-decoration: none;
}

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

.h4link a:link, .h4link a:hover, .h4link a:focus, .h4link a:visited, H6, H5, H4, H3, H2, H1 {
    color: #023e8a;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Comfortaa", sans-serif;
}

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

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

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

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

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;
}

/* --------------------------------------------------- news ------------------------------------------------ */

#news .tab {
    background-color: #023e8a;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 30px;
    color: #ffffff;
}

#news .tab a {
    color: #fff;
}

#news h1,
#news h2,
#news h3 {
    color: #ffffff;
    margin: 0 0 20px 0;
    position: relative;
    word-break: break-word;
    hyphens: auto;
}

#news h1::before,
#news h2::before,
#news h3::before {
    content: '';
    display: block;
    background: #fff;
    width: 100%;
    height: 2px;
    position: absolute;
    bottom: -20px;
    left: 0;
}

@media (min-width: 768px) {

    #news h1,
    #news h2,
    #news h3 {
        margin: 0 0 25px 0;
    }
}

@media (min-width: 1200px) {

    #news h1,
    #news h2,
    #news h3 {
        -webkit-hyphens: manual;
        -moz-hyphens: manual;
        -ms-hyphens: manual;
        hyphens: manual;
    }
}

#news .tab_link_entry {
    font-size: 1rem;
    position: relative;
    width: 100%;
}

#news .tab_link_title a {
    line-height: 1.2;
    font-weight: 600;
    font-size: 1.125rem;
    display: block;
    margin-bottom: 8px;
}

@media (min-width: 576px) {
    #news .tab_link_entries {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

#news {
    padding-top: 30px;
}

#news .tab,
#news .tab_link,
#news .tab_link>div {
    height: 100%;
    min-height: 100%;
}

#news .tab_link_entry {
    background: #ffffff;
    border-radius: 3px;
    padding: 160px 30px 30px 30px;
    word-break: break-word;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

@media (min-width: 576px) and (max-width: 767px) {
    #news .tab_link_entry {
        width: calc(50% - 15px);
    }

    #news .tab_link_entry:nth-child(2n+1) {
        margin-right: 15px;
    }

    #news .tab_link_entry:nth-child(2n+2) {
        margin-left: 15px;
    }
}

@media (min-width: 768px) {
    #news .tab_link_entry {
        width: calc(33.33% - 20px);
    }

    #news .tab_link_entry+.tab_link_entry {
        margin-left: 30px;
    }
}

@media (max-width: 767px) {
    #news .tab_link_entry+.tab_link_entry {
        margin-top: 30px;
    }
}

@media (min-width: 992px) and (max-width:1199px) {
    #news .tab_link_entry {
        width: calc(50% - 15px);
    }

    #news .tab_link_entry:nth-child(2n+1) {
        margin-right: 15px;
    }

    #news .tab_link_entry:nth-child(2n+2) {
        margin-left: 15px;
    }
    #news .tab_link_entry+.tab_link_entry {
        margin-top: 30px;
        margin-left: 0;
    }
}

@media (min-width: 576px) {
    #news .tab_link_entry:nth-child(2) {
        margin-top: 0;
    }
}

@media (max-width: 991px) {
    #news .tab_link {
        margin-top: 30px;
    }
}

#news .tab_link_title a::before,
#news .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 120px;
    overflow: hidden;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

#news .tab_link_title a::before {
    content: "";
    background: url("../img/news-standard.png") center / cover no-repeat;
    border: 1px solid rgba(0, 0, 0, 0.01) !important;
    border-bottom: none !important;
    top: -160px;
    background-size: contain;
}

#news .tab_preview_picture img {
    position: absolute;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 350px;
    width: auto;
    height: auto;
    -ms-interpolation-mode: bicubic;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

#news .tab_date {
    font-size: 1rem;
    font-weight: 400;
    position: absolute;
    right: -15px;
    top: 105px;
    z-index: 1;
    display: inline-block;
    padding: 6px 20px;
    background: #90e0ef;
    color: #3d3d3d;
}

#news .tab_link_title a {
    color: #03045e;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.tab_link_entries+div,
.tab_link_entries .tab_spacer,
.tab_link_entry>div:nth-last-child(2) {
    display: none;
}

#news .mehrBtn {
    margin: 20px 0;
}

#news .mehrBtn a {
    display: inline-block;
    background: #90e0ef;
    padding: 10px 15px;
    color: #3d3d3d;
}

/* ----------------------------------------------- events ----------------------------------------------- */

#events {
    background-position: center;
    background-size: cover;
    padding: 30px 0 50px 0;
}

#events #eventBG {
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
}

#events #calenderbase {
    position: relative;
}

#events #calenderbase>div {
    width: 100%;
}

@media (min-width: 992px) {
    #events #calenderbase>div {
        width: 50%;
    }

    #events #clr-events-hide {
        padding-left: 30px;
    }
}

#events #clr-events-hide>p {
    display: none;
}

#events .tab_link_entry {
    margin-bottom: 20px;
}

#events .tab_link_title a {
    color: #444444;
    font-weight: 700;
}

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

@media (min-width: 992px) {
    #events #calenderbase .tab_link_mehr {
        position: absolute;
        bottom: -25px;
        right: -40px;
    }
}

#events #calenderbase .tab_link_mehr a {
    display: inline-block;
    color: #3d3d3d;
    background: #90e0ef;
    padding: 10px 15px;
}

#events #calenderbase .tab_link_mehr a::before {
    content: 'Alle Veranstaltungen »';
    font-size: 1rem;
}

#events #calenderbase .tab_link_mehr a:focus,
#events #calenderbase .tab_link_mehr a:hover {
    text-decoration: none;
    color: #fff;
    background: #023e8a;
}

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

footer {
    background: #90e0ef url('../img/noten.png') center no-repeat;
    background-size: cover;
    color: #454849;
    border-top: #03045e 5px solid;
}

#footer {
    color: #454849;
    padding: 8px 15px 0 15px;
    position: relative;
}

@media (min-width: 1300px) {
    #footer {
        padding-left: 100px;
    }
}

#footer .footertab .tabHeadline {
    color: #454849;
    font-size: 1.25rem;
    font-weight: 600;
}

#innerfooter {
    line-height: 1.5;
    color: #454849;
    font-weight: normal;
    font-style: normal;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: #454849;
    display: inline-block;
    font-weight: 500;
}

#innerfooter a:hover,
#innerfooter a:focus {
    text-decoration: underline;
}

#innerfooter li {
    margin-left: 20px;
}

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

    #innerfooter li::before {
        content: "•";
        margin: 0 20px;
        color: #454849;
    }
}

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

#vernetzt {
    font-size: 0.812rem;
    max-width: 270px;
    line-height: 1.4;
    margin: 0 auto;
    text-align: center;
    display: block;
    color: #454849;
    text-decoration: none;
}

#vernetztLogo {
    margin: 0 auto -70px auto;
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    border-radius: 50%;
    height: 128px;
    width: 128px;
    border: 10px solid #caf0f8;
    padding-top: 20px;
}

#vernetzt a {
    color: #454849;
}

#vernetzt>span {
    padding: 85px 15px 15px 15px;
}

#vernetzt span {
    display: block;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        border: none !important;
        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: #023e8a;
        border-radius: 2px;
        position: absolute;
        width: 38px;
        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: 30px 0;
    }

    .navbar-collapse {
        top: 0;
        background: #fff;
        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 {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        background: #fff;
        -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .navbar-default .navbar-nav {
        width: 100%;
    }

    .navbar-default .navbar-nav>li {
        display: block !important;
        width: 100%;
        float: none;
    }

    .navbar-header {
        position: fixed
    }

    .navbar-default .navbar-nav>li:focus-within>ul,
    .navbar-default .navbar-nav>li>.dropdown-menu>li:focus-within>.dropdown-menu {
        display: block;
    }

    .navbar-collapse {
        width: 250px;
        padding-top: 80px;
        padding-bottom: 80px;
        top: 0;
        left: 0;
        height: 100vh;
    }
}

@media (min-width: 1200px) {
    .navbar-collapse {
        width: 300px;
    }
}

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

.navbar-default .navbar-nav>li>a {
    color: #474345;
    font-weight: 600;
    font-family: 'Comfortaa', sans-serif;
    text-align: center;
    padding: 14px 35px;
    background-color: transparent;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

/* -------------------------------------------- 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: #fff;
    background-color: #023e8a;
}

.navbar-default .navbar-nav>li:focus-within>a {
    color: #fff;
    background-color: #023e8a;
}

/* -------------------------------------- secondlevel dropdown-box -------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu {
    background: #f4fcfe;
    position: relative;
    width: 100%;
}

.navbar-default .navbar-nav>li>.dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0, transparent 8px), linear-gradient(to top, rgba(0, 0, 0, 0.06) 0, transparent 8px);
}

.navbar-nav li[class*="_over"]>.dropdown-menu, .navbar-nav li[class*="open"]>.dropdown-menu {
    display: block !important;
}

/* --------------------------------------------- secondlevel -------------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu>li>a {
    background-color: transparent;
    font-weight: 400;
    color: #474345;
    text-align: center;
    padding: 12px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

/* ------------------------------------------ secondlevel 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 {
    text-decoration: none;
    color: #03045e;
}

.navbar-nav>li>.dropdown-menu>li:focus-within>a {
    text-decoration: none;
    color: #03045e;
}


/* --------------------------------------- thirdlevel dropdown-box -------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    background-color: #90e0ef;
}

.menue_point_secondlevel_19738_over>.dropdown-menu {
    display: block;
}

/* --------------------------------------------- thirdlevel --------------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
    background-color: transparent;
    font-weight: normal;
    color: #4f626d;
    text-align: center;
    padding: 10px 5px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

/* ------------------------------------------ thirdlevel over ------------------------------------------ */

.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 {
    text-decoration: none;
    color: #03045e;
}

.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:focus-within>a {
    text-decoration: none;
    color: #03045e;
}