@import url('https://fonts.verwaltungsportal.de/import/?family=Open+Sans:400,400i,600,600i%7COswald:600,600i,700,700i');

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    color: #57564c;
    background: #f7f7f7;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

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

a {
    color: #387ba8;
}

a:hover,
a:focus {
    color: #387ba8;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

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

#topbar {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #e2edf4;
    font-size: 0.875rem;
}

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

#name {
    font-weight: 700;
    display: block;
}

@media (max-width: 767px) {
    #name {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
}

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

@media (min-width: 992px) {
    #style {
        margin-left: 30px;
    }
}

#style button {
    padding: 0;
    border: none;
    color: #58585a;
    display: inline-block;
    width: 29px;
    height: 29px;
    font-weight: 400;
    text-align: center;
    background: #f1f6fa;
    position: relative;
    line-height: 1;
    font-size: 17px;
}


#style button {
    padding: 0;
}

#style button+button {
    margin-left: 3px;
}

#style button:hover,
#style button:focus {
    color: #ffffff;
    background: #30719d;
}

/* ----------------------------------------------- search ----------------------------------------------- */

form[id^="search"] {
    height: 29px;
    background: #f1f6fa;
    display: block;
    position: relative;
    margin-top: 3px;
    margin-bottom: 3px;
}

@media (min-width: 992px) {
    form[id^="search"] {
        margin-left: 30px;
        max-width: 270px;
        width: 100%;
    }
}

form [id^="search_input"] {
    color: #58585a;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 29px;
    padding-left: 14px;
    padding-right: 54px;
    height: 29px;
    width: 100%;
    font-size: 17px;
}

form [id^="search_submit"] {
    width: 40px;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    font-size: 0;
    border-left: 1px solid rgba(88, 69, 58, 0.3);
    transition: background 200ms linear, top 200ms linear, bottom 200ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    background-color: #ebe4d3;
    top: 0;
    bottom: 0;
}

[id^="search_input"]::-ms-input-placeholder {
    color: #58453a !important;
    font-style: italic;
}

[id^="search_input"]::-webkit-input-placeholder {
    color: #58453a !important;
    font-style: italic;
}

[id^="search_input"]::-moz-placeholder {
    opacity: 0.8;
    font-style: italic;
}

[id^="search_input"]:-moz-placeholder {
    opacity: 0.8;
    font-style: italic;
}

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

/* 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: #ffffff;
        border: none !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButtonInner2,
    #burgerButton:after,
    #burgerButtonInner {
        background-color: #387ba8;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner2 {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        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: #e2edf4;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        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);
        transition: width 300ms linear, opacity 300ms linear;
    }

    .navbar-toggle[aria-expanded="true"]::before {
        opacity: 1;
        width: 90px;
    }

    .dropdown-toggle-button-wrapper {
        top: 6px;
        right: 0;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 3px;
    }
}

@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) {
    #menu {
        background-color: #ffffff;
        padding: 27px 0 5px 0;
        transition: all 0.3s 0s ease;
    }

    .is-sticky #menu {
        padding: 10px 0;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between !important;
        align-items: center !important;
    }

    nav.horizontally li[class*="toplevel"]>ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        padding: 10px 25px;
        padding-top: 20px;
        padding-bottom: 20px;
        max-height: 60vh;
        overflow: visible;
        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;
    }

    nav.horizontally li[class*="toplevel"]>ul::after {
        content: "";
        display: block;
        position: absolute;
        width: 100vw;
        z-index: -1;
        -moz-transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        left: 50%;
        top: 0;
        bottom: 0;
        background: rgba(226, 237, 244, 0.9);
        -webkit-box-shadow: 0 8px 8px 0 rgba(84, 73, 73, 0.1);
        box-shadow: 0 8px 8px 0 rgba(84, 73, 73, 0.1);
    }

    nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
    nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
        -webkit-column-count: 4;
        -moz-column-count: 4;
        column-count: 4;
        -webkit-column-gap: 30px;
        -moz-column-gap: 30px;
        column-gap: 30px;
        max-width: 992px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
        height: auto;
    }

    nav.horizontally li[class*="secondlevel"] {
        float: none;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        display: table !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        top: 100%;
        z-index: 1003;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        top: 100%;
    }

    .nav li[class*="toplevel"].open>.dropdown-menu {
        pointer-events: none !important;
        opacity: 0 !important;
    }

    #mCSB_1_scrollbar_vertical {
        left: 50%;
        margin-left: calc(962px/2);
    }
}

@media (min-width: 1200px) {

    nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
    nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
        max-width: 1200px;
        padding-top: 25px;
        padding-bottom: 45px;
    }

    #mCSB_1_scrollbar_vertical {
        margin-left: calc(1170px/2);
    }
}

nav.horizontally li[class$="_end"], nav.horizontally li[class$="_start"] {
    display: none;
}

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

.navbar-default .navbar-nav>li>a {
    color: #58585a;
    font-weight: 700;
    text-align: left;
    padding: 12px 5px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
}

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

    nav.horizontally .navbar-nav>li>a.dropdown-toggle {
        padding-right: 35px;
    }
}

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

    .navbar-default .navbar-nav>li>a {
        padding: 15px 0;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        text-align: 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:hover>a,
.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: #387ba8;
}

.navbar-nav>li:focus-within>a {
    color: #387ba8;
}

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

@media (max-width: 991px) {
    .navbar-default li[class*="toplevel"]>.dropdown-menu, .navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
        padding: 10px;
        background: rgba(248, 229, 229, 0.8);
    }
}

@media (min-width: 992px) {
    .navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
        display: block;
    }
}

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

.navbar-default li[class*="secondlevel"]>a, .navbar-default li[class*="thirdlevel"]>a {
    color: #58585a;
    text-align: left;
    padding: 8px 35px 8px 15px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

.navbar-default li[class*="secondlevel"]>a {
    font-weight: 600;
    text-transform: uppercase;
}

.navbar-default li[class*="thirdlevel"]>a {
    font-weight: 400;
}

@media (min-width: 992px) {
    .navbar-default li[class*="secondlevel"]>a {
        padding: 20px 0 2px;
    }

    .navbar-default li[class*="thirdlevel"]>a {
        padding: 5px 0 5px 10px;
    }
}

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

.navbar-nav li[class*="secondlevel"]:hover>a,
.navbar-nav li[class*="secondlevel"]>a:hover,
.navbar-nav li[class*="secondlevel"]>a:focus,
.navbar-nav li[class*="secondlevel"].open>a,
.navbar-nav li[class*="secondlevel"].open>a:hover,
.navbar-nav li[class*="secondlevel"].open>a:focus,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:focus,
.navbar-nav li[class*="thirdlevel"]>a:hover,
.navbar-nav li[class*="thirdlevel"]>a:focus,
.navbar-nav li[class*="thirdlevel"].open>a,
.navbar-nav li[class*="thirdlevel"].open>a:hover,
.navbar-nav li[class*="thirdlevel"].open>a:focus,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:focus {
    color: #387ba8;
}

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

@media (max-width: 991px) {
    #bannerOverlay {
        padding-top: 15px;
        padding-bottom: 15px;
        background: #ffffff;
    }
}

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        left: 0;
        top: -5px;
        right: 0;
        z-index: 60;
    }
}

#logo {
    display: inline-block;
}

@media (min-width: 992px) {
    #logo {
        margin-left: 100px;
    }
}

#logo img {
    display: block;
}

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

@media (min-width: 992px) and (max-width: 1199px) {
    #logo img {
        max-width: 230px;
        width: 100%;
        margin-top: -14px;
    }
}

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

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: 800px;
    }

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

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

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

#headerpic .theme-default .nivo-controlNav {
    z-index: 99;
}

@media (min-width: 992px) {
    #headerpic .theme-default .nivo-controlNav {
        top: 118px;
        bottom: unset;
    }
}

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

.slider-mask {
    display: block;
    background: linear-gradient(to top, #f7f7f7 20%, rgba(255, 255, 255, 0) 90%), url('../img/banner-bogen.png') center top / 100% auto no-repeat;
}

/* ------------------------------------------------- tabs1 ------------------------------------------------- */

.tab {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab i,
.tab em {
    opacity: 0.75;
}

#tabs {
    background: #ffffff;
    margin-bottom: 30px;
}

#tabs>.row {
    margin: 0;
}

@media (min-width: 768px) {
    #tabs>.row>div {
        position: relative;
    }

    #tabs>.row>div+div::before,
    #tabs>.row>div+div::after {
        content: "";
        display: block;
        position: absolute;
    }

    #tabs>.row>div+div::before {
        top: 0;
        left: 0;
        bottom: 20px;
        width: 1px;
        background: #ffffff;
        z-index: 11;
    }

    #tabs>.row>div+div::after {
        top: 0;
        left: 1px;
        bottom: 20px;
        width: 1px;
        background: rgba(0, 0, 0, 0.1);
        z-index: 1;
    }
}

#tabs .tab {
    font-size: 0.9375rem;
    padding: 30px 30px 40px 30px;
}

#tabs .tab h1,
#tabs .tab h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

#tabs .tab img {
    display: block;
    margin: -30px -30px 10px -30px;
    width: calc(100% + 61px);
    max-width: calc(100% + 61px);
    border-bottom: 20px solid #ffffff;
    position: relative;
    z-index: 10;
}

#tabs .tab a {
    display: inline-block;
    padding: 8px 18px;
    line-height: 1.2;
    border: 1px solid #d4c7a8;
    color: #58453a;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
}

#tabs .tab a:hover,
#tabs .tab a:focus {
    background: #f9f2e0;
}

#tabs .tab a::after {
    content: "\203A";
    margin-left: 4px;
    position: relative;
    bottom: 1px;
}

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

main {
    position: relative;
    z-index: 50;
    background: url('../img/footer-bogen.png') center bottom / 100% auto no-repeat;
}

@media (min-width: 768px) {
    main {
        margin-top: -95px;
    }
}

@media (min-width: 992px) {
    main {
        margin-top: -235px;
    }

    body:not(.index) main {
        margin-top: -135px;
    }
}

#contentBG {
    text-align: left;
    padding: 30px 15px 40px 15px;
    background: #ffffff;
}

@media (min-width: 992px) {
    #contentBG {
        padding: 30px 30px 60px 30px;
    }
}

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

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
    color: #387ba8;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Oswald", sans-serif;
}


h1,
.h1,
.legacy_h1,
:is(#news, #events) h2 {
    font-size: 1.7rem;
}

@media (min-width: 768px) {

    h1,
    .h1,
    .legacy_h1,
    :is(#news, #events) h2 {
        font-size: 2rem;
    }
}

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

/* ------------------------------------------------- tabs2 ------------------------------------------------- */

#tabs2 {
    position: relative;
    padding-bottom: 75px;
}

#tabs2 .tab {
    margin-top: 30px;
}

#tabs2 .tab1 {
    background: #387ba8;
}

@media (min-width: 992px) {
    #tabs2 .tab1 {
        margin-top: 0;
    }
}

#tabs2 .tab2 {
    background: #ffffff;
}

#tabs2 .tabHeadline {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    padding: 28px 80px 28px 30px;
    font-family: "Oswald", sans-serif;
    background-repeat: no-repeat;
    background-position: bottom right;
    hyphens: none;
    display: block;
}

#tabs2 .tab1 .tabHeadline {
    color: #ffffff;
    background-color: #30719d;
}

#tabs2 .tab2 .tabHeadline {
    color: #58585a;
    background-color: #e2edf4;
}

#tabs2 #tab1 .tabHeadline {
    background-image: url('../img/icon1.png');
}

#tabs2 #tab2 .tabHeadline {
    background-image: url('../img/icon2.png');
}

#tabs2 #tab3 .tabHeadline {
    background-image: url('../img/icon3.png');
}

#tabs2 #tab3 img {
    vertical-align: middle;
    margin: 2px 0;
}

#tabs2 .tabContent {
    padding: 30px;
    font-size: 0.875rem;
}

#tabs2 .tab1 .tabContent {
    color: #ffffff;
}

#tabs2 .tab1 .tabContent a {
    color: #ffffff;
    text-decoration: underline;
}

#tab2 .tabContent {
    padding: 15px;
}

#tab2 iframe {
    max-width: 250px;
    min-height: 220px;
  }
/* ----------------------------------------------- scrollTop ----------------------------------------------- */

#scrollTopBtn {
    position: absolute;
    left: 15px;
    bottom: 0;
    right: 15px;
    display: block;
    color: #ffffff;
    background: #387ba8;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    padding: 14px 70px 14px 20px;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
    margin-top: 30px;
}

#scrollTopBtn:hover,
#scrollTopBtn:focus {
    background: #234d69;
}

#scrollTopBtn::after {
    content: "";
    display: block;
    position: absolute;
    width: 55px;
    right: 0;
    top: 6px;
    bottom: 6px;
    border-left: 1px solid rgba(0, 0, 0, 0.3);
}

#scrollTopBtn::before {
    content: "\00BB";
    position: absolute;
    right: 25px;
    top: 4px;
    color: #ffffff;
    font-weight: 700;
    font-size: 30px;
    font-family: "Oswald", sans-serif;
    transform: rotate(-90deg);
}

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

#news,
#events {
    padding: 40px 15px;
    font-size: 0.9375rem;
}

@media (min-width: 992px) {

    #news,
    #events {
        padding: 60px 30px;
    }
}

#news h2,
#events h2 {
    margin-bottom: 20px;
}

#news :is(h1, h2, h3, h4, h5, h6, b, strong) {
    color: #fff;
}

@media (min-width: 992px) {

    #news h2,
    #events h2 {
        margin-bottom: 35px;
    }
}

:is(#news, #events) h2 :is(i, em) {
    font-size: 1.125rem;
    font-style: normal;
}

@media (min-width: 576px) {

    #news .tab_link_entries,
    #events .tab_link_entries {
        display: flex !important;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    #news .tab_link_entry,
    #events .tab_link_entry {
        width: calc(50% - 15px);
        position: relative;
    }

    #news .tab_link_entry:nth-of-type(2n+1),
    #events .tab_link_entry:nth-of-type(2n+1) {
        margin-right: 30px;
    }
}

@media (max-width: 575px) {

    #news .tab_link_entry+.tab_link_entry,
    #events .tab_link_entry+.tab_link_entry {
        margin-top: 20px;
        padding-top: 20px;
    }

    #news .tab_link_entry+.tab_link_entry {
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    #events .tab_link_entry+.tab_link_entry {
        border-top: 1px solid rgba(88, 96, 58, 0.2);
    }
}

@media (min-width: 576px) {
    #news .tab_link_entry+.tab_link_entry:not(:nth-of-type(2))::before {
        background: rgba(255, 255, 255, 0.25);
    }

    #events .tab_link_entry+.tab_link_entry:not(:nth-of-type(2))::before {
        background: rgba(88, 96, 58, 0.2);
    }

    #news .tab_link_entry+.tab_link_entry:not(:nth-of-type(2))::before,
    #events .tab_link_entry+.tab_link_entry:not(:nth-of-type(2))::before {
        content: "";
        display: block;
        height: 1px;
        display: block;
        position: absolute;
        top: 28px;
        left: 0;
        right: 0;
    }

    #news .tab_link_entry+.tab_link_entry:not(:nth-of-type(2n+2))::before,
    #events .tab_link_entry+.tab_link_entry:not(:nth-of-type(2n+2))::before {
        right: -15px;
    }

    #news .tab_link_entry+.tab_link_entry:not(:nth-of-type(2n+3))::before,
    #events .tab_link_entry+.tab_link_entry:not(:nth-of-type(2n+3))::before {
        left: -15px;
    }

    #news .tab_link_entry+.tab_link_entry:not(:nth-of-type(2)),
    #events .tab_link_entry+.tab_link_entry:not(:nth-of-type(2)) {
        padding-top: 60px;
    }
}

#news .tab_spacer,
#events .tab_spacer {
    display: none;
}

#news .tab_link_mehr,
#events .tab_link_mehr {
    margin-top: 30px;
}

#news .tab_link_mehr a,
#events .tab_link_mehr a {
    display: inline-block;
}

#news .tab_link_mehr a,
#events .tab_link_mehr a {
    display: inline-block;
    padding: 8px 18px;
    line-height: 1.2;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
}

#news .tab_link_mehr a::after,
#events .tab_link_mehr a::after {
    content: "\203A";
    margin-left: 4px;
    position: relative;
    bottom: 1px;
    font-size: 0.875rem;
}

#news .tab_link_mehr a {
    border: 1px solid #ffffff;
    color: #ffffff;
}

#events .tab_link_mehr a {
    border: 1px solid #e2edf4;
    color: #58585a;
}

#news .tab_link_mehr a:hover,
#news .tab_link_mehr a:focus {
    background: #e2edf4;
    color: #58585a;
}

#events .tab_link_mehr a:hover,
#events .tab_link_mehr a:focus {
    background: #e2edf4;
}

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

#events .tab_link_mehr a::before {
    content: "Alle Veranstaltungen";
    font-size: 0.875rem;
}

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

#news {
    background: #387ba8 url('../img/neuigkeiten.png') top right no-repeat;
}

#news,
#news h2 {
    color: #ffffff;
}

#news .tab_link_entry {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    border-bottom: none !important;
}

#news .tab_link_entry>* {
    width: 100%;
}

#news .tab_preview_picture {
    height: 140px;
    overflow: hidden;
    display: block;
    position: relative;
    margin-bottom: 0px;
    order: -1;
    background: #ffffff;
}

#news .tab_preview_picture img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 500px;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    transition: opacity 300ms linear;
}

#news .tab_date {
    background: #ffffff;
    color: #58453a;
    width: auto;
    display: inline-block;
    padding: 2px 8px;
    position: absolute;
    z-index: 1;
    margin-right: auto;
    top: 114px;
}

@media (min-width: 576px) {
    #news .tab_link_entry+.tab_link_entry:not(:nth-of-type(2)) .tab_date {
        top: 174px;
    }
}

#news .tab_link_title a {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.25rem;
    font-family: "Oswald", sans-serif;
    margin: 18px 0 4px 0;
    display: block;
}

#news .vorschau,
#news .tab_link_entry>div:nth-last-child(2) {
    display: none;
}

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

#events {
    background: #ffffff url('../img/grafik-Veranstaltungen.png') top 20px right no-repeat;
}

#events h2 :is(i, em) {
    color: #58585a;
}

#events .tab_link_title a {
    color: #58453a;
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.25rem;
    font-family: "Oswald", sans-serif;
    display: block;
}

#events .tab_link_mandat a {
    color: inherit;
}

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

#footer {
    color: #58585a;
    font-size: 0.9375rem;
    background: #e2edf4;
}

#footer>div:last-child {
    padding-top: 30px;
    padding-bottom: 30px;
}

.footerTab {
    line-height: 2;
}

#social img {
    position: relative;
    top: 5px;
    margin-left: 5px;
}

#social a img:focus,
#social a img:hover {
    filter: invert(32%) sepia(88%) saturate(1094%) hue-rotate(355deg) brightness(96%) contrast(93%);
}

#innerfooter {
    background: #387ba8;
    color: #ffffff;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 0.875rem;
}

#innerfooter ul {
    padding: 0;
}

@media (max-width: 767px) {
    #innerfooter ul {
        margin-top: 20px;
    }
}

#innerfooter li {
    display: block;
}

@media (min-width:500px) {
    #innerfooter li {
        display: inline-block;
    }

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

#innerfooter a {
    color: #ffffff;
}

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

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

#vernetzt {
    text-align: right;
    font-size: 0.8125rem;
    color: #58585a;
    line-height: 1.3;
    margin: 25px auto 0 auto;
    text-decoration: none;
}

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

#vernetzt span {
    color: #58585a;
}

#vernetzt span span {
    display: block;
}

#vernetzt span b {
    font-weight: 600;
}

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