@import url("https://fonts.verwaltungsportal.de/css/?family=Outfit:400,600,700,400i,600i,700i,900,900i");

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

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

a {
    color: #bf0303;
}

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


b,
strong {
    font-weight: 600;
}

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

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

@media (max-width: 991px) {
    #logo {
        background: rgba(0, 0, 0, 0.60);
        padding: 15px;
    }
}

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

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

    #style h2 {
        font-size: 0.9375rem;
        color: #fff;
        margin: 0 10px 0 0;
        display: inline-block;
        width: auto;
        font-weight: 600;
    }

    #style button {
        padding: 0;
        border: none;
        font-size: 0.9375rem;
        color: #fff;
        display: inline-block;
        background-color: transparent;
        min-width: 22px;
        font-weight: 600;
        text-align: center;
        position: relative;
        line-height: 1;
        margin-left: 4px;
        transition: all 100ms linear;
    }

    #style button:is(:hover, :focus) {
        transform: scale(1.2);
    }
}

/* -------------------------------------------- suche ------------------------------------------- */

#search {
    display: inline-flex;
    margin-left: 30px;
    max-width: 200px;
}

@media (max-width: 991px) {
    #search {
        display: flex;
        padding-top: 5px;
        border-top: 1px solid rgba(0, 0, 0, 0.2);
    }
}

#search_input {
    color: #fff;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 600;
    background: transparent !important;
    padding: 7px 10px;
    border: 0;
    width: 100%;
}

#search_submit {
    min-width: 33px;
    flex-shrink: 0;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    font-size: 0;
    transition: all 100ms linear;
    transform: scale(0.7);
}

#search_submit:is(:hover, :focus) {
    background-color: transparent;
    transform: scale(1);
}

#search_input::placeholder {
    color: #fff !important;
    opacity: 1 !important;
    font-style: normal !important;
    letter-spacing: inherit !important;
}

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

#topbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#navWrapper {
    padding: 60px 0;
    transition: background 200ms linear;
}

#navWrapper-sticky-wrapper {
    width: 100%;
}

@media (min-width: 992px) {
    #navWrapper>.row {
        padding: 8px 0;
        background: rgba(0, 0, 0, 0.60);
    }
}

.contactIcons a.has-image {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}


.contactIcons a.has-image::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100%;
    transition: width 200ms linear, height 200ms linear;
}

.contactIcons a.has-image:hover::after,
.contactIcons a.has-image:focus::after {
    width: 50px;
    height: 50px;
}

@media (min-width: 992px) {

    .is-sticky #search,
    .is-sticky #style,
    .is-sticky .contactIcons a.has-image,
    .is-sticky .contactIcons img {
        filter: brightness(0) saturate(100%) invert(7%) sepia(11%) saturate(8%) hue-rotate(337deg) brightness(99%) contrast(80%);
    }
}

/* burgermenu for tablet */

#burgerButton {
    font-size: 0;
    border: none !important;
    position: relative;
    z-index: 1004;
    display: block;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: transparent !important;
}

@media (max-width: 991px) {
    #burgerButton {
        position: fixed;
        right: 15px;
        top: 15px;
        background-color: #ffffff !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
        border-radius: 2px;
    }

    #navWrapper {
        padding: 30px 0;
        position: relative !important;
    }
}

@media (min-width: 992px) {

    .is-sticky #navWrapper {
        padding: 60px 0 30px 0;
        background: #96c11f;
    }

    .is-sticky #navWrapper>.row {
        background: #96c11f;
    }


    .burger {
        margin-left: 120px;
    }

    #burgerButton {
        margin: 0 -10px 0 0;
    }
}

#burgerButton::before,
#burgerButton::after,
#burgerButtonInner {
    position: absolute;
    background: #fff;
    width: 28px;
    height: 2px;
    left: calc(50% - 14px);
    color: #ffffff !important;
    transition: transform 200ms linear, opacity 200ms linear, width 200ms linear;
}

@media (min-width: 992px) {

    .is-sticky #burgerButton::before,
    .is-sticky #burgerButton::after,
    .is-sticky #burgerButtonInner {
        filter: brightness(0) saturate(100%) invert(7%) sepia(11%) saturate(8%) hue-rotate(337deg) brightness(99%) contrast(80%);
    }
}

@media (max-width: 991px) {

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background: #bf0303;
    }
}

@media (prefers-contrast: more) {

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        border: 1px solid #ffffff;
        box-sizing: border-box;
    }
}

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

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

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

#burgerButtonInner {
    top: 16px;
}

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

#burgerButton::after {
    top: 30px;
    width: 14px;
    content: "";
}

@media (min-width: 992px) {
    #menuspan {
        font-size: 0.9375rem;
        text-transform: uppercase;
        font-weight: 600;
        color: #fff;
    }

    .is-sticky #menuspan {
        color: #282828;
    }
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    .navbar-nav {
        margin: 20px 0;
        background-color: #ffffff;
        box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #f8f8f8;
        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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    #myNavbar {
        padding: 30px 15px;
        background: #ffffff;
        box-shadow: none;
        pointer-events: none;
        position: absolute;
        z-index: 1002;
        top: 70px;
        right: 0;
        opacity: 0;
        width: 992px;
        border-radius: 0;
        height: auto !important;
        overflow: visible !important;
        visibility: hidden;
        transition: opacity 300ms linear, top 300ms linear;
        box-shadow: 0px 0px 50px 10px rgba(0, 0, 0, 0.15), 0 0 0 100vw rgba(239, 227, 215, 0.4);
    }

    #burgerButton[aria-expanded="true"]+#myNavbar,
    #myNavbar:focus-within {
        pointer-events: auto;
        opacity: 1;
        top: 82px;
        visibility: visible;
    }

    #myNavbar::before {
        content: "";
        display: block;
        position: absolute;
        right: 14px;
        top: -16px;
        width: 30px;
        height: 16px;
        clip-path: polygon(0 100%, 100% 100%, 50% 0);
        background: #ffffff;
    }

    #myNavbar>.mCustomScrollBox {
        max-height: 70vh;
        padding-right: 15px;
    }

    nav.burger .navbar-nav {
        display: block;
        column-count: 3;
        column-gap: 30px;
        column-rule: 1px solid rgba(0, 0, 0, 0.2);
    }

    nav.burger .navbar-nav>li {
        padding-bottom: 17px;
        padding-top: 7px;
        float: none;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        display: table !important;
    }

    nav.burger .navbar-nav ul {
        display: block !important;
    }
}

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

    nav.burger .navbar-nav {
        column-count: 4;
    }
}

/* toplevel */

nav.burger a[class*="toplevel"] {
    color: #000000;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

@media (min-width: 992px) {
    nav.burger a[class*="toplevel"] {
        padding: 5px 20px;
    }
}

/* toplevel-over */

nav.burger li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.burger li[class*="toplevel"]>a:is(:hover, :focus),
nav.burger li[class*="toplevel"].open>a,
nav.burger li[class*="toplevel"].open>a:is(:hover, :focus),
nav.burger li[class*="toplevel"][class*="_over"]>a,
nav.burger li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    text-decoration: underline;
}

/* secondlevel + thirdlevel dropdown-box */

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    nav.burger a[class*="secondlevel"] {
        padding-left: 30px;
    }

    nav.burger a[class*="thirdlevel"] {
        padding-left: 45px;
    }
}

@media (min-width: 992px) {
    nav.burger a[class*="secondlevel"] {
        padding: 5px 5px 5px 30px;
    }

    nav.burger a[class*="thirdlevel"] {
        padding: 4px 10px 4px 53px;
    }

    nav.burger a[class*="thirdlevel"]::after {
        content: "\00BB";
        position: absolute;
        left: 41px;
        top: 2px;
        bottom: 0;
        margin: auto;
    }
}

nav.burger li:is([class*="_start"], [class*="end"]) {
    display: none;
}

/* secondlevel + thirdlevel over */

nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    color: #bf0303;
    text-decoration: underline;
}

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

#overlay {
    z-index: 12;
    position: relative;
    width: 100%;
    align-self: end;
    margin-bottom: clamp(30px, 9vw, 165px);
}

#overlay .tab {
    max-width: 775px;
    margin: auto;
    padding: clamp(15px, 3vw, 40px);
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.875rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    hyphens: auto;
}


@media (min-width: 992px) {
    #overlay .tab::before {
        content: '';
        width: 230px;
        height: 230px;
        position: absolute;
        left: -30px;
        top: -30px;
        display: block;
        border-left: 10px solid #831f82;
        border-top: 10px solid #831f82;
        pointer-events: none;
    }

    #overlay .tab::after {
        content: '';
        width: 230px;
        height: 230px;
        position: absolute;
        bottom: -30px;
        right: -30px;
        display: block;
        border-bottom: 10px solid #ec6707;
        border-right: 10px solid #ec6707;
        pointer-events: none;
    }
}

#overlay h2 {
    font-size: clamp(1.375rem, 4vw, 3rem);
    color: #fff;
    text-transform: uppercase;
    hyphens: auto;
}

#overlay :is(h1, h2, h3, h4, h5, h6) {
    font-weight: 400;
}

#headerpic {
    position: relative;
    background: #282828;
}

#slider {
    height: 100%;
}

@media (min-width: 992px) {

    #headerpic {
        display: flex;
        align-items: stretch;
        min-height: 300px;
    }

    .index #headerpic {
        min-height: 900px;

    }
}

.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ------------------------------------------------ breakerOne ----------------------------------------------- */

#breakerOne {
    background-attachment: fixed;
    padding: 100px 0;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.875rem);
    font-weight: 600;
    position: relative;
    background-position: center;
}

#breakerOne a {
    display: inline-block;
    padding: 9px 25px;
    color: #2f2f2f;
    font-size: 1.125rem;
    background: #fff;
    text-transform: uppercase;
    font-size: 1.125rem;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 200ms linear;
}

#breakerOne .tabHeadline {
    color: #fff;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 5vw, 4.375rem);
    font-weight: 900;
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translate(-50%);
    margin: 0;
    line-height: clamp(30px, 4vw, 50px);
    text-align: center;
    opacity: 0.60;
}

#breakerOne a:hover,
#breakerOne a:focus {
    opacity: 0.9;
}


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

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

body:not(.index) #content {
    padding-bottom: 90px;
}


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

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
    color: #000000;
    font-weight: 600;
    line-height: 1.2;
}

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

@media (min-width: 768px) {

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

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

#newslinks,
#newsmandate {
    border: 1px solid #2e3c48;
}



/* #region -------------------------------------- news ------------------------------------------ */

#news {
    padding: clamp(30px, 4vw, 60px) 0 190px 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#news .tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.875rem, 4vw, 2.1875rem);
}

#news .tab :is(h1, h2, h3, h4, h5, h6, a) {
    color: #000000;
}

#news .tab a {
    font-weight: 600;
    font-size: 0.9375rem;
    position: relative;
    text-decoration: underline;
    padding-right: 20px;
    background: url('../img/arrow.png') right center no-repeat;
}

#news .tab_link {
    margin-top: clamp(30px, 4vw, 50px);
}

#news .tab_link_entries {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    #news .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#news .tab_link_entry {
    font-size: 1rem;
    width: 100%;
    background: #ffffff;
    padding: clamp(20px, 4vw, 45px) clamp(15px, 2.5vw, 25px);
    border: none !important;
}

#news .tab_link_title a {
    line-height: 1.2;
    font-weight: 600;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 10px;
    color: #000000;
    text-transform: uppercase;
}

#news .tab_date {
    font-size: 1.125rem;
    display: inline-block;
}

.vorschau {
    opacity: 1 !important;
}

#news :is(.tab_preview_picture, .tab_spacer, .tab_link_mehr) {
    display: none;
}


#news .dekorHeadline {
    color: #000;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 5vw, 4.375rem);
    font-weight: 900;
    position: absolute;
    bottom: 61.5px;
    left: 50%;
    transform: translate(-50%);
    margin: 0;
    line-height: clamp(30px, 4vw, 50px);
    text-align: center;
    opacity: 0.70;
}

/* #endregion ----------------------------------- news ------------------------------------------ */
/* ----------------------------------------- footerwrapper -------------------------------------- */

.footerBox {
    margin-top: -60px;
    background-color: #ffffff;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
    padding: clamp(20px, 3vw, 30px);
}

.footerBox>.row {
    row-gap: 30px;
}

@media (min-width: 768px) {
    .footerBox>.row>div:last-child {
        border-left: 1px solid rgba(0, 0, 0, 0.2);
    }
}

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

footer {
    font-size: 1rem;
    color: #fff;
    background-position: center;
    background-attachment: fixed;
}

footer .tabHeadline {
    color: #fff;
    font-weight: 600;
}

footer a {
    color: #fff;
}

#footer {
    row-gap: 30px;
    padding: clamp(40px, 8vw, 90px) 0;
}

#footer .tabHeadline {
    font-size: 1.25rem;
}

#footer .tab a {
    text-decoration: underline;
}

.iframetab :is(iframe, .iframe-wrapper-manual-enabling) {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    max-height: 205px;
}

#innerfooter ul.footer_list {
    padding: 0;
}


#innerfooter li {
    display: inline-block;
}

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

#innerfooter ul.footer_list a {
    color: #282828;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}

#innerfooter ul.footer_list a:is(:hover, :focus) {
    text-decoration: underline;
    color: #bf0303;
}

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.9375rem;
    color: #2b2b2b;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 400;
    display: inline-block;
    text-decoration: none;
}

#vernetzt b {
    color: #bf0303;
    font-weight: 700;
}

#vernetzt span span {
    display: block;
}