@import url("https://fonts.verwaltungsportal.de/css/?family=Work+Sans:400,400i,600,600i");
@import url("https://fonts.verwaltungsportal.de/css/?family=Shantell+Sans:300,300i,500,500i,600,600i");

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #cc3300 #ffffff;
    scrollbar-width: thin;
}

body {
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    color: #191919;
    background: #f1f1f1;
    font-size: clamp(1rem, 1vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
    background-attachment: fixed;
    background-size: cover;
}

a {
    color: #cc3300;
}

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

b,
strong {
    font-weight: 600;
}

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

#headerpic {
    height: 100%;
    position: fixed;
    width: 100%;
}

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

@media (min-width: 992px) {
    .theme-nivo .nivo-directionNav a {
        bottom: 10px !important;
        top: unset;
    }
}

/* ----------------------------------------------- compact ----------------------------------------------- */

.compact {
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .compact {
        padding: 20px clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px);
        margin-bottom: clamp(30px, 4vw, 40px);
    }
}

/* ----------------------------------------------- bannerTopOverlay ----------------------------------------------- */

#bannerTopOverlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    padding-bottom: 165px;
}

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

#topbar {
    padding: 14px 0 0 0;
}

#topbar>.row {
    row-gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#topbar span {
    color: #ffffff;
    font-size: 0.875rem;
    padding-right: 10px;
}

/* ------------------------------------------------ language ------------------------------------------------ */

#language {
    line-height: 0;
    display: flex;
    align-items: center;
    align-content: center;
}

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

@media (min-width: 768px) {
    #language {
        justify-content: end;
    }
}

#language>*+* {
    margin-left: 11px;
    padding-left: 11px;
    border-left: 1px solid #ffffff;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
    color: #000000;
    padding: 0;
    font-size: 0;
    border: unset !important;
    display: inline-block;
    text-align: center;
    width: 29px;
    height: 29px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.9);
    transition: background 300ms linear;
    position: relative;
    z-index: 1;
}

#contrast_style button:hover,
#contrast_style button:focus {
    background: #ffffff;
}

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

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

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

#style button {
    padding: 0;
    border: none;
    color: #191919;
    display: inline-block;
    min-width: 29px;
    min-height: 29px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    line-height: 1;
    transition: color 300ms linear, background 300ms linear;
}

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

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

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

form[id^="search"] {
    min-height: 35px;
    display: block;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 575px) {
    form[id^="search"] {
        margin-top: 18px;
        display: inline-block;
    }
}

@media (min-width: 576px) {
    form[id^="search"] {
        margin-left: 30px;
    }
}

form [id^="search_input"] {
    font-size: 0.875rem;
    color: #191919;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 14px;
    padding-right: 54px;
    min-height: 35px;
    width: 100%;
    display: block;
}

form [id^="search_submit"] {
    width: 40px;
    background: url('../img/icon-lupe.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 #cc3300;
    transition: background 200ms linear, top 200ms linear, bottom 200ms linear;
}

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

[id^="search_input"]::-ms-input-placeholder {
    color: #191919 !important;
}

[id^="search_input"]::-webkit-input-placeholder {
    color: #191919 !important;
}

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

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


/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
    outline-offset: -3px;
}


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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

/* burgermenu for tablet */

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

    #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: #010101;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
        display: block;
    }

    #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: #010101;
        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: 2px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 25px 0;
        transition: background 300ms linear;
    }

    .is-sticky nav.horizontally {
        background: #010101;
    }

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

    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;
        visibility: hidden;
        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;
    font-weight: 600;
    text-align: left;
    padding: 10px 15px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 13px 6px;
        text-align: center;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 15px;
        margin-left: 15px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 10px 35px 10px 15px
    }
}

@media (min-width: 992px) {
    nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }
}

/* 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) {
    background: #cc3300;
    color: #ffffff;
}

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

/* ------------------------------------------------ bannerOverlay ----------------------------------------------- */

#bannerOverlay {
    padding-top: clamp(30px, 3vw, 45px);
    padding-bottom: clamp(30px, 4vw, 50px);
}

#bannerOverlay .tab {
    margin: 0;
    color: #ffffff;
    padding: 20px 15px;
    font-size: clamp(1.25rem, 4vw, 3.4375rem);
    line-height: 1.3;
    font-family: 'Shantell Sans', sans-serif;
    font-weight: 300;
    position: relative;
    text-shadow: 3px 2px 3px rgba(0, 0, 0, 1);
}

#bannerOverlay .tab b,
#bannerOverlay .tab strong {
    font-family: 'Shantell Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 6vw, 5.0625rem);
}

@media (min-width: 768px) {
    #bannerOverlay .tab {
        position: relative;
        padding: 65px 122px 50px 105px;
    }

    #bannerOverlay .tab::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 0;
        right: 90px;
        width: 283px;
        height: 102px;
        background: url('../img/geschwungene-linie-rot.png') center no-repeat;
    }

    #bannerOverlay .tab::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: 0;
        left: 0;
        width: 283px;
        height: 102px;
        background: url('../img/geschwungene-linie-schwarz.png') center no-repeat;
    }
}

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

#tabs {
    padding-top: 10px;
    margin-bottom: 60px;
}

@media (max-width: 767px) {
    #tabs {
        padding-bottom: clamp(30px, 4vw, 60px);
    }
}

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

#tabs .tab {
    padding: 20px;
    height: 100%;
    background: #ffffff;
    position: relative;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

#tabs .tab::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: #cc3300;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

#tabs .tab::after {
    content: '';
    position: absolute;
    pointer-events: none;
    left: 0;
    bottom: 0;
    width: 180px;
    height: 180px;
    background: #191919;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

#tabs .tab .tabInner {
    font-size: 1rem;
    height: 100%;
    padding: 25px 20px 50px 20px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

#tabs .tab .tabInner .tabHeadline {
    font-size: 1.5rem;
    hyphens: auto;
}

#tabs .tab .tabInner .tab_link_title a {
    font-weight: 600;
    color: #191919;
}

#tabs .tab.tab2 a[href^="mailto:"] {
    text-decoration: underline;
}

#tabs .tab .tabInner .tab_link_mehr {
    font-size: 0;
}

#tabs .tab .tabInner .tab_link_mehr a,
#tabs .tab.tab2 a:not([href^="mailto:"]) {
    text-decoration: none;
    display: inline-block;
    position: absolute;
    bottom: -65px;
    right: -40px;
    color: #ffffff;
    font-weight: 600;
    font-style: italic;
    font-size: 1rem;
    margin-bottom: -20px;
    padding: 10px 30px;
    background: #cc3300;
    transition: background 300ms linear;
}

#tabs .tab .tabInner .tab_link_mehr a {
    bottom: -20px;
    right: -35px;
}

#tabs .tab .tabInner .tab_link_mehr a:is(:hover, :focus),
#tabs .tab.tab2 a:not([href^="mailto:"]):is(:hover, :focus) {
    background-color: #191919;
}

#tabs .tab .tabInner .tab_link_mandat {
    display: none;
}

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

#content {
    text-align: left;
    padding-top: clamp(30px, 4vw, 55x);
    padding-bottom: clamp(30px, 4vw, 70px);
}

/* ----------------------------------------------- SponsorenBox ----------------------------------------------- */

#SponsorenBox {
    line-height: 1;
    /* padding-top: clamp(30px, 4vw, 40px); */
    padding-bottom: 30px;
    background: #ffffff;
}

#SponsorenBox>.row {
    row-gap: clamp(30px, 4vw, 50px);
}

#SponsorenBox .tab {
    min-height: 90px;
}

#SponsorenBox .tab .tabHeadline {
    font-size: 1.5625rem;
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2rem, 4vw, 2.25rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.875rem, 3vw, 2rem);
}

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: 1.625rem;
}

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

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

/* ----------------------------------------------- @19f footer ----------------------------------------------- */

#f19 {
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #191919;
}

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

@media (min-width: 768px) {
    #f19>.row>*+* {
        border-left: 1px solid #ffffff;
    }
}

/* ------------------------------------------------- counter ------------------------------------------------- */

#counter {
    color: #ffffff;
    font-size: 1rem;
    padding: 5px 16px;
    margin: 0 auto;
    max-width: 235px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 
@media (min-width: 768px) {
    #counter {
        margin-left: auto;
        margin-right: 0;
    }
} */

#counter span {
    font-weight: 600;
    padding-right: 5px;
}

.CounterWann {
    margin-top: 5px;
    padding-left: 18px;
    text-align: left;
    font-size: 0.875rem;
}

.CounterWann a {
    color: #ffffff;
}

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

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

#vernetzt span span {
    display: block;
}

/* ------------------------------------------------- lastFooter ------------------------------------------------- */

#lastFooter {
    padding-top: 22px;
    padding-bottom: 27px;
    background: #cc3300;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
    color: #ffffff;
}

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

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

#innerfooter li+li::before {
    content: "•";
    margin: 0 15px;
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

/* ------------------------------------------------- kontraste ------------------------------------------------- */

.contrast_light_font form [id^="search_submit"] {
    background-color: #ffffff !important;
}