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

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

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

a {
    color: #5f0b0b;
}

#content a {
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #5f0b0b;
    text-decoration: underline;
}

b,
strong {
    font-weight: 700;
}

a:focus,
input:focus,
button:focus,
form:focus {
    outline: 3px solid #5f0b0b !important;
}

#overflow {
    position: relative;
    overflow: hidden;
}

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

#topbar {
    padding-top: 10px;
    padding-bottom: 10px;
    background: #004f9f;
}

#logo {
    position: absolute;
    bottom: -90px;
}

@media (max-width: 575px) {
    #logo {
        bottom: -70px;
    }

    #logo img {
        scale: 0.8;
    }
}

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

    #logo {
        bottom: -35px;
    }

    .is-sticky #logo {
        bottom: -17px;
    }
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

/* ------------------------------------------------ kontrast ---------------------------------------------- */

#contrast_style {
    padding-right: 30px;
}

#contrast_style button {
    color: #000000;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.6);
    display: inline-block;
    width: 36px;
    height: 36px;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
}

#contrast_style button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    -webkit-transition: opacity 150ms linear;
    -moz-transition: opacity 150ms linear;
    -ms-transition: opacity 150ms linear;
    -o-transition: opacity 150ms linear;
    transition: opacity 150ms linear;
}

#contrast_style *+* {
    margin-left: 10px;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.6);
}

#contrast_style button:nth-of-type(1)::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, 1) 50%);
}

#contrast_style button:nth-of-type(3)::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 79, 159, 1) 50%);
}

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

@media (min-width: 992px) {
    #style {
        display: inline-block;
        height: 36px;
        padding-left: 50px;
        background: url('../img/schriftgroesse-icon.png') center left no-repeat;
    }

    #style button {
        font-size: 1rem;
        padding: 0 0 2px 0;
        border: none;
        color: #191919;
        display: inline-block;
        width: 36px;
        height: 36px;
        font-weight: 700;
        text-align: center;
        background: #ffffff;
        position: relative;
        line-height: 1;
        -webkit-box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
        box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
    }

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

    #style button:hover,
    #style button:focus,
    #contrast_style button:hover,
    #contrast_style button:focus {
        color: #191919;
        background: #d8c458;
    }

    #style+* {
        margin-left: 40px;
    }
}

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

form[id^="search"] {
    height: 36px;
    background: #ffffff;
    display: inline-block;
    position: relative;
    -webkit-box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    form[id^="search"] {
        margin-top: 15px;
    }
}

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

form [id^="search_input"] {
    color: #666666;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 36px;
    padding-left: 14px;
    padding-right: 60px;
    height: 36px;
    width: 100%;
    display: block;
}

form [id^="search_submit"] {
    width: 50px;
    background: url('../img/lupe-icon.png') center center no-repeat;
    border: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 0px;
    bottom: 0;
    right: 0;
    font-size: 0;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    background-color: #d8c458;
}

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

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

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

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

.is-sticky #menu {
    background-color: #ffffff;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    #menu {
        padding: 10px 0;
    }

    #burgerButton {
        font-size: 13px;
        display: block;
        width: 48px;
        height: 48px;
        border-radius: 2px;
        padding: 8px 0 0 0 !important;
        cursor: pointer;
        background: #ffffff;
        border: none !important;
        border-radius: 4px;
        color: #004f9f;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        text-align: center;
        -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);
    }

    #burgerButtonInner {
        margin-bottom: 26px;
        display: inline-block;
    }

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

    .navbar:focus-within #burgerButtonInner {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner2 {
        -webkit-transform: rotate(-45deg) translate(2px, -4px);
        transform: rotate(-45deg) translate(2px, -4px);
    }

    .navbar:focus-within #burgerButtonInner2 {
        -webkit-transform: rotate(-45deg) translate(2px, -4px);
        transform: rotate(-45deg) translate(2px, -4px);
    }

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

    .navbar:focus-within #burgerButton:after {
        -webkit-transform: rotate(45deg) translate(-10px, -10px);
        transform: rotate(45deg) translate(-10px, -10px);
    }

    #burgerButtonInner2,
    #burgerButton:after {
        -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;
    }

    .navbar:focus-within #burgerButtonInner2,
    .navbar:focus-within #burgerButton:after {
        -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;
    }

    #burgerButtonInner2 {
        top: 26px;
    }

    #burgerButton:after {
        top: 36px;
    }

    #burgerButtonInner2,
    #burgerButton:after {
        content: "";
        display: block;
        position: absolute;
        background: #004f9f;
        border-radius: 2px;
        width: 38px;
        height: 3px;
        left: 5px;
        font-size: 0;
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        padding: 30px 0;
        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;
        width: calc(100% - 90px);
    }

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

/* menu desktop */

@media (min-width: 992px) {
    #menu {
        background: #ffffff;
        position: relative;
    }

    .horizontally .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
        justify-content: end;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
        flex-wrap: wrap;
        margin-bottom: -28px;
    }

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

    .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(255, 255, 255, 0.96);
        -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);
    }

    .horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
    .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;
    }

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

    .horizontally .dropdown-menu {
        display: block;
    }
}

@media (min-width: 1200px) {

    .horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
    .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);
    }
}

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

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

.navbar-default li[class*="toplevel"]>a {
    color: #191919;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px 15px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    .navbar-default li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .horizontally li[class*="toplevel"]>a.dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    .navbar-default li[class*="toplevel"]>a {
        padding: 20px 18px;
        border: 3px solid #004f9f;
        background-color: #ffffff;
        z-index: 1004;
    }

    .horizontally li[class*="toplevel"] {
        margin-right: 9px;
        margin-top: 40px;
    }
}

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

.navbar-default li[class*="toplevel"]:hover>a,
.navbar-default li[class*="toplevel"]>a:hover,
.navbar-default li[class*="toplevel"]>a:focus,
.navbar-default li[class*="toplevel"].open>a,
.navbar-default li[class*="toplevel"].open>a:hover,
.navbar-default li[class*="toplevel"].open>a:focus,
.navbar-default li[class*="toplevel"][class$="_over"]>a,
.navbar-default li[class*="toplevel"][class$="_over"]>a:hover,
.navbar-default li[class*="toplevel"][class$="_over"]>a:focus {
    color: #5f0b0b;
}

/* -------------------------------------- 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: #fdfcf5;
    }
}

@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: #191919;
    text-align: left;
    padding: 8px 35px 8px 15px;
    font-size: 1rem;
    line-height: 1.2;
    hyphens: auto;
    text-decoration: none;
}

.navbar-default li[class*="secondlevel"]>a {
    font-weight: 700;
    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: #004f9f;
}

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

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

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

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

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

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

    .index #headerpic .nivo-controlNav {
        bottom: 240px;
    }
}

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

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

#headerpic .theme-nivo a.nivo-imageLink {
    pointer-events: none;
}

.slider-mask {
    display: none;
}

@media (min-width: 992px) {
    .slider-mask {
        display: block;
        background: url('../img/overlay-dekorations-schraege.png') top -1px left no-repeat, url('../img/overlay-dekorations-schraege-unten.png') bottom -1px right no-repeat;
    }
}

@media (max-width: 600px) {
    #banner-texts-description.over-control-navigation:not(.over-teaser) {
        bottom: calc(1rem + 25px);
    }
}

/* ------------------------------------------------ tab ----------------------------------------------- */

#tabs {
    padding-top: 30px;
}

@media (min-width: 992px) {
    #tabs {
        padding-top: 0;
        position: relative;
        z-index: 60;
        margin-top: -220px;
    }
}

@media (max-width: 991px) {
    #tabs>.row>*+* {
        margin-top: 30px;
    }
}

#tabs .tab {
    background: #ffffff;
    position: relative;
    z-index: 1;
    padding: 40px 20px 120px 20px;
    height: 100%;
    min-height: 100%;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.05);
}

#tabs .tab::before {
    position: absolute;
    display: block;
    content: '';
    width: 100%;
    height: 320px;
    bottom: 0;
    left: 0;
    right: 0;
    clip-path: polygon(100% 75%, 0% 100%, 100% 100%);
    background-color: #d8c458;
}

#tabs .tab.tab2::before {
    display: none;
}

#tabs .tab.tab2 {
    font-size: 1.5625rem;
    background: #004f9f;
    padding-bottom: 40px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (min-width: 992px) {
    #tabs .tab.tab2 {
        padding-left: 40px;
        padding-right: 40px;
    }
}

#tabs .tab .tabHeadline {
    font-size: 1.5625rem;
    text-transform: uppercase;
    margin-bottom: 0;
    padding-bottom: 20px;
    hyphens: auto;

}

#tabs .tab.tab2 .tabHeadline {
    font-size: 2.1875rem;
    padding-bottom: 0;
    text-transform: none;
}

#tabs .tab.tab2,
#tabs .tab.tab2 .tabHeadline,
#tabs .tab.tab2 h1,
#tabs .tab.tab2 h2,
#tabs .tab.tab2 h3,
#tabs .tab.tab2 h4,
#tabs .tab.tab2 h5,
#tabs .tab.tab2 h6 {
    color: #ffffff;
}

#tabs .tab.tab2 a {
    color: #ffffff;
    text-decoration: underline;
}

#tabs .tab.tab2 b,
#tabs .tab.tab2 strong {
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1;
    hyphens: auto;
}

#tabs .tab_link_title a,
#tabs .tab_link_mandat a {
    color: inherit;
}

#tabs .tab_link_title a {
    font-weight: 600;
}

#tabs .tab_link_mehr {
    color: transparent;
    font-size: 0;
}

#tabs .tab_spacer {
    height: 15px;
}

/* ---------------------------------------------- button style -------------------------------------------- */

#tabs .tab_link_mehr a,
#gallery a {
    font-size: 0.875rem;
    color: #004f9f;
    border: 1px solid #004f9f;
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 700;
    background-color: #ffffff;
}

#tabs .tab_link_mehr a {
    position: absolute;
    left: 50%;
    bottom: 40px;
    white-space: nowrap;
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

#tabs .tab_link_mehr a:hover,
#tabs .tab_link_mehr a:focus,
#gallery a:hover,
#gallery a:focus {
    color: #ffffff;
    background: #004f9f;
}

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

.index main {
    background: #fdfcf5;
}

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

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

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

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
    color: #004f9f;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Source Sans 3", sans-serif;
}

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

#gallery h2 {
    text-transform: uppercase;
}

@media (min-width: 768px) {

    h1,
    .h1,
    .legacy_h1,
    #gallery h2 {
        font-size: 2.5rem;
    }
}

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

@media (min-width: 768px) {

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

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

@media (min-width: 768px) {

    h3,
    .h3,
    .legacy_h3 {
        font-size: 2rem;
    }
}

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

@media (min-width: 768px) {

    h4,
    .h4,
    .h4link a:link,
    .h4link a:hover,
    .h4link a:focus,
    .h4link a:visited,
    .legacy_h4 {
        font-size: 1.75rem;
    }
}

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

@media (min-width: 768px) {

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

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

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

/* ------------------------------------------------ tabs-2 ----------------------------------------------- */

#tabs-2 {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #fdfcf5;
    position: relative;
}

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

#tabs-2 .tab {
    position: relative;
    font-size: 18px;
    color: #191919;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.05);
}

#tabs-2 .tab::before {
    position: absolute;
    display: block;
    content: '';
    width: 100%;
    height: 200px;
    bottom: 0;
    left: 0;
    right: 0;
    clip-path: polygon(100% 75%, 0% 100%, 100% 100%);
    background-color: #d8c458;
}

#tabs-2 .tabHeadline {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    text-transform: uppercase;
    hyphens: auto;
}

#tabs-2 .tab a {
    display: inline-block;
    color: #004f9f;
    background-color: #ffffff;
    border: 1px solid #004f9f;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 20px;
}

#tabs-2 .tab a:hover,
#tabs-2 .tab a:focus {
    color: #ffffff;
    background-color: #004f9f;
}

/* ----------------------------------------------- gallery ----------------------------------------------- */

#gallery {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #ffffff;
    border-top: 4px solid #004f9f;
}

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

#gallery img {
    display: block;
    width: 100%;
}

#gallery .btgrid>.row {
    margin-left: -1px;
    margin-right: -1px;
}

#gallery .btgrid .row>div {
    padding-left: 1px;
    padding-right: 1px;
}

#gallery .tiny_p {
    background-color: #ffffff;
}

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

footer {
    border-top: 4px solid #004f9f;
    background-color: #fdfbf0;
}

#footer {
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 1rem;
}

#footer .tab1 .template-page {
    hyphens: auto;
}

@media (max-width: 991px) {
    #footer>.row>*+* {
        margin-top: 30px;
    }
}

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

#footer a {
    text-decoration: underline;
}

#footer .footerHeadline {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    text-transform: uppercase;
    margin-bottom: 6px;
    hyphens: auto;
}

@media (max-width: 767px) {
    #footer .tab2 {
        padding: 20px 0;
        border-top: 1px solid #004f9f;
        border-bottom: 1px solid #004f9f;
    }
}

@media (min-width: 768px) {
    #footer .tab2 {
        border-left: 1px solid #004f9f;
        border-right: 1px solid #004f9f;
    }
}

.tab2 iframe,
.tab2 .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    max-height: 244px;
}

#innerfooter {
    background-color: #004f9f;
    padding-top: 26px;
    padding-bottom: 26px;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
    line-height: 2;
}

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

    #innerfooter li+li::before {
        content: "•";
        margin: 0 6px;
        color: #ffffff;
    }
}

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

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

#innerfooter li a:hover,
#innerfooter li a:focus {
    color: #f5d87a;
}

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

#vernetzt {
    text-align: right;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 20px auto 0 auto;
    text-decoration: none;
}

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

#vernetzt span span {
    display: block;
}

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

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