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

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #616161;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #990100 #ffffff;
}

body {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    color: #636363;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #990100;
}

a:is(:hover, :focus) {
    color: #990100;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

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

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

#logo {
    display: inline-block;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: -30px;
    }
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 70px;
        width: 100%;
        padding-top: 5px;
    }
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        background: #990100;
        position: static !important;
        padding: 0 0 10px 0;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #990100;
        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"]::before {
        opacity: 0;
    }

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

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton::before {
        top: 24px;
        content: "";
    }

    #burgerButton:after {
        top: 32px;
        content: "";
    }

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #990100;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .dropdown-toggle-button-wrapper {
        top: 5px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    .sticky-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
    }

    nav.horizontally {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        top: 0;
        max-width: 1930px;
        width: 100%;
        z-index: 101;
        background: rgba(199, 0, 10, 0.7);
        transition: 150ms linear background, 150ms linear box-shadow;
    }

    .is-sticky nav.horizontally {
        background: #990100;
        box-shadow: 0 7px 12px 0 rgba(0, 0, 0, 0.08);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        position: relative;
    }

    nav.horizontally .navbar-nav::before {
        content: "";
        transform: skewX(26deg);
        position: absolute;
        top: 0;
        bottom: 0;
        left: -85px;
        right: -100vw;
        z-index: -1;
        background: #990100;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
    text-align: left;
    padding: 10px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"] {
        margin-bottom: 2px;
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 15px 12px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
        min-height: 90px;
    }
}

@media (min-width: 1200px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 1px;
    }

    nav.horizontally a[class*="toplevel"] {
        font-size: 1.125rem;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #ffffff;
    background: #990100;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
}

@media (max-width: 991px) {
    nav.horizontally [class*="secondlevel"]>ul {
        margin: 10px;
    }
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 26px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-left: 26px;
        margin-top: -24px;
    }

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before,
    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::after {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        width: 0;
        height: 0;
        border-style: solid;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        left: 35px;
        top: -14px;
        border-width: 0 15px 15px 15px;
        border-color: transparent transparent #ffffff transparent;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        left: -14px;
        top: 6px;
        border-width: 15px 15px 15px 0;
        border-color: transparent #ffffff transparent transparent;
    }

    nav.horizontally [class*="toplevel"]>ul::after {
        height: 26px;
        left: 0;
        right: 0;
        top: -26px;
    }

    nav.horizontally [class*="secondlevel"]>ul::after {
        width: 26px;
        top: 0;
        bottom: 0;
        left: -26px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    color: #636363;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 7px 20px;
    }
}

@media (min-width: 1200px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        font-size: 1.125rem;
    }
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    color: #ffffff;
    background-color: #c7000a;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

/* #region ------------------------------------ banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 45vw, 450px);
    overflow: hidden;
}

@media (min-width: 768px) {
    body.index #headerpic .nivo-controlNav {
        bottom: 25px;
        left: 55%;
        width: 45%;
        pointer-events: none;
    }

    body.index #headerpic .nivo-controlNav :is(a, button) {
        pointer-events: auto;
    }

    body.index #headerpic a.nivo-prevNav {
        left: 58%;
    }

    body.index #headerpic .nivo-directionNav a {
        top: auto;
        bottom: 30px;
    }

    body.index #slider {
        max-height: clamp(450px, 74vw, 740px);
    }
}

@media (min-width: 992px) {
    body.index #headerpic .nivo-controlNav {
        left: 50%;
        width: 50%;
    }

    body.index #headerpic a.nivo-prevNav {
        left: calc(50% + 65px);
    }

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

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

#headerpic {
    padding: 0;
    overflow: visible;
    position: relative;
}

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

.slider-mask {
    display: none;
}

/* #endregion --------------------------------- banner ------------------------------------------ */

/* #region --------------------------------- banner overlay ------------------------------------- */

@media (max-width: 767px) {
    #bannerOverlay {
        padding: 30px 0;
        background: #990100;
    }
}

@media (min-width: 768px) {
    #bannerOverlay {
        position: absolute;
        z-index: 52;
        left: 0;
        bottom: -30px;
        right: 0;
        pointer-events: none;
        font-size: 1.125rem;
    }

    #slogan {
        position: relative;
        padding: 30px 50px 30px 0;
        pointer-events: auto;
        background: #990100;
    }

    #slogan::after,
    #slogan::before {
        content: "";
        position: absolute;
        bottom: 0;
    }

    #slogan::after {
        transform: skewX(-8deg);
        top: 0;
        left: -20vw;
        right: -30px;
        z-index: -1;
        background: #990100;
    }

    #slogan::before {
        right: -42px;
        left: 0;
        height: 30px;
        background: #252525;
        z-index: -1;
        transform: skewX(-60deg);
    }
}

@media (min-width: 1200px) {
    #slogan::after {
        left: calc((100vw - 1100px) / -2);
    }
}

#slogan {
    color: #ffffff;
}

#slogan :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    text-transform: uppercase;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

#slogan :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    font-style: normal;
    display: block;
    font-size: clamp(1.625rem, 3vw, 1.875rem);
}

#slogan a {
    color: #ffffff;
}

/* #endregion ------------------------------ banner overlay ------------------------------------- */

/* #region -------------------------------------- tabs ------------------------------------------ */

#tabs {
    padding: clamp(30px, 8vw, 80px) 0 clamp(30px, 3vw, 60px) 0;
    background: #f0f0f0 linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0) 15px);
}

#tabs>.row {
    row-gap: 30px;
}

#tabs .tab {
    height: 100%;
    min-height: 100%;
    padding: clamp(30px, 6vw, 70px) clamp(15px, 3vw, 40px) clamp(30px, 6vw, 60px) clamp(15px, 3vw, 40px);
    background: #ffffff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    #tabs .tab {
        font-size: 1.125rem;
    }
}

#tabs .tabHeadline {
    color: #c7000a;
    font-size: 1.5rem;
    text-transform: uppercase;
}

#tabs .tab .tab_link_entry {
    border: unset !important;
    display: grid;
}

#tabs .tab .tab_link_entry+.tab_link_entry {
    margin-top: 25px;
}

#tabs .tab .tab_link_title {
    order: 1;
}

#tabs .tab1 p,
#tabs .tab .tab_date,
#tabs .tab .tab_link_date {
    order: 2;
}

#tabs .tab .tab_link_mandat {
    order: 3;
}

#tabs .tab .vorschau {
    order: 4;
    opacity: 1;
}

#tabs .tab .tab_link_title a {
    color: #636363;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

#tabs .tab .tab_link_mandat a {
    color: #636363;
}

#tabs .tab .mehrLink {
    text-align: right;
    margin-top: 15px;
}

#tabs .tab .mehrLink a {
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    position: relative;
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5625rem);
    padding: 8px 25px;
    line-height: 1.2;
    background: #990100;
    border: 2px solid #990100;
    transition: color 300ms linear, background 300ms linear;
}

#tabs .tab .mehrLink a::after {
    content: ' \00BB';
}

#tabs .tab .mehrLink a:hover,
#tabs .tab .mehrLink a:focus {
    color: #990100;
    background-color: #ffffff;
}

#tabs .tab .tab_link_mehr,
#tabs .tab .tab_preview_picture,
#tabs .tab .tab_spacer {
    display: none;
}

/* #endregion ----------------------------------- tabs ------------------------------------------ */

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

#content {
    text-align: left;
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 75px);
}

/* ------------------------------------------- breaker ------------------------------------------ */

#breaker {
    background-attachment: fixed;
    padding-top: clamp(40px, 6vw, 100px);
    padding-bottom: clamp(40px, 6vw, 80px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    background-color: #990100;
}

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

#breaker::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(130deg, rgba(153, 1, 0, 0.9) 0%, rgba(153, 1, 0, 0.9) 50%, rgba(199, 0, 10, 0.8) 50%, rgba(199, 0, 10, 0.8) 100%);
}

#breaker .tab {
    color: #ffffff;
}

#breaker .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: clamp(15px, 3vw, 40px);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

#breaker .tab :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    font-style: normal;
    display: block;
    font-size: clamp(1.625rem, 3vw, 1.875rem);
}

#breaker .tab a {
    margin-top: clamp(15px, 3vw, 35px);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    position: relative;
    color: #990100;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5625rem);
    padding: 8px 25px;
    line-height: 1.2;
    background: #ffffff;
    border: 2px solid transparent;
    transition: color 300ms linear, background 300ms linear, border 300ms linear;
}

#breaker .tab a::after {
    content: ' \00BB';
}

#breaker .tab a:hover,
#breaker .tab a:focus {
    color: #ffffff;
    background-color: #c7000a;
    border-color: #ffffff;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #c7000a;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Source Sans 3", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.875rem, 5vw, 2.8125rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.625rem, 4vw, 2.1875rem);

}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.375rem, 3vw, 1.5625rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: 22px;
}

/* #region -------------------------------------- search ---------------------------------------- */

#searchbar {
    padding: 20px 0;
    background: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

#searchbar>.row {
    row-gap: 20px;
}

#search {
    background: #990100;
    display: flex;
}

#search_input {
    color: #ffffff;
    font-size: 1rem;
    font-style: normal;
    background: transparent;
    font-weight: 400;
    border: 0;
    width: 100%;
    padding: 11px 15px;
}

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

#search_submit {
    width: 55px;
    flex-shrink: 0;
    font-size: 0;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: #c7000a;
}

#search input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion ----------------------------------- search ---------------------------------------- */

/* #region ----------------------------------- footer ------------------------------------------- */

#footer {
    color: #636363;
    padding: clamp(30px, 4vw, 60px) 0 clamp(30px, 4vw, 50px) 0;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

#footer>.row {
    row-gap: 30px;
}

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

#footer .footerTab a {
    color: #990100;
    text-decoration: underline;
}

#footer .footerHeadline {
    color: #c7000a;
    font-size: 1.5625rem;
    margin-bottom: 4px;
}

@media (min-width: 1200px) {
    #footer>.row::after {
        content: '';
        pointer-events: none;
        position: absolute;
        display: inline-block;
        top: -60px;
        bottom: -50px;
        right: -19vw;
        width: 643px;
        clip-path: polygon(43% 0%, 100% 0%, 100% 100%, 0% 100%);
        background-color: #990100;
    }
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
    background-color: #990100;
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

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

    #f5 {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: block;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    padding: clamp(6px, 4vw, 36px) 15px;
}

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

#innerfooter a:is(:hover, :focus) {
    background: #c7000a;
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.4;
    text-decoration: none;
}

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

#vernetzt span span {
    display: block;
}