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

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

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

a {
    color: #ff6300;
}

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

b,
strong {
    font-weight: 700;
}


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

#topbar {
    background: #ff6300;
}

#style,
#contrast_style {
    gap: 5px;
}

#style button:is(:hover),
#contrast_style button:is(:hover) {
    outline: 2px auto;
}

#style span,
#contrast_style span {
    font-size: 14px;
}

#style {
    margin-left: 30px;
    margin-right: 30px;
}

@media (min-width: 992px) {
    #style button {
        border: none;
        color: #1a1a1a;
        display: inline-block;
        width: 30px;
        height: 30px;
        font-weight: 400;
        text-align: center;
        background-color: #fff0e6;
        position: relative;
        line-height: 1;
        padding: 0;
        transition: transform 150ms linear;
        font-size: 16px;
    }

    #style button:focus-visible {
        outline: 2px auto;
    }
}

#contrast_style button {
    color: #000000;
    padding: 0;
    border: transparent;
    display: inline-block;
    width: 30px;
    height: 30px;
    font-weight: 400;
    text-align: center;
    background: #fff0e6;
    position: relative;
    z-index: 1;
    font-size: 0;
}

#contrast_style.contrast_light_font button {
    background-color: #ffffff !important;
}

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

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 7px;
    right: 7px;
    left: 7px;
    bottom: 7px;
    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, 0.6), rgba(0, 0, 0, 0.6) 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, 0.6) 50%);
}

#contrast_style button:nth-of-type(3)::after {
    background: #ea5b0c !important;
    filter: none !important;
    border: none;
}

#search,
#search2 {
    min-height: 36px;
    background-color: #fff0e6;
    display: inline-block;
    position: relative;
    display: flex;
    align-items: center;
}

form[id*="search"].contrast_light_font {
    background-color: #fff !important;
}

input[id*="search_input"].contrast_light_font {
    background-color: #fff !important;
}

@media (min-width: 992px) {
    form[id*="search"] {
        max-width: 270px;
        width: 100%;

    }
}

input[id*="search_input"] {
    color: #1a1a1a;
    font-size: 0.875rem;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 10px;
    padding-right: 10px;
    height: 20px;
    border-right: 1px solid #ea5b0c;
    width: 100%;
}

input[id*="search_submit"] {
    width: 40px;
    height: 40px;
    background: url('../img/icon-lupe.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    font-size: 0;
    transition: background-color 300ms linear;
}

input[id*="search_submit"]:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

input[id*="search_input"]::placeholder {
    color: color-mix(in srgb, #1a1a1a 100%, transparent) !important;
}

input[id*="search_input"]::-ms-input-placeholder {
    color: #1a1a1a !important;
}

input[id*="search_input"]::-webkit-input-placeholder {
    color: #1a1a1a !important;
}

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

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

#logo {
    padding: 30px 0;
}

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

}

#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) {
    #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: #ff6300;
        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: #fff;
        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) {

    #menu-sticky-wrapper {
        position: absolute;
        left: 50% !important;
        transform: translate(-50%);
        width: 100%;
    }

    nav.horizontally {
        background-color: rgba(255, 255, 255, 0.9);
    }

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

    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.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover)>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:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #1a1a1a;
    font-weight: 400;
    text-align: left;
    padding: 10px 15px 15px 15px;
    position: relative;
    font-size: 1.25rem;
    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"] {
        text-align: center;
        padding: 16px 0;
        font-size: 1.5rem;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0%;
    height: 4px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 0;
    background-color: #ff6300;
    transition: width 300ms linear;
}




nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
    width: 80%;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

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

/* secondlevel + thirdlevel */

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

@media(max-width:991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
    }

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

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

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

#slider {
    max-height: clamp(300px, 42vw, 400px);
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(400px, 62vw, 720px);
    }

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

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

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

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

.slider-mask {
    display: none;
}

@media (min-width: 992px) {
    .index .slider-mask {
        display: block;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(26, 26, 26, 0.0) 70%);
    }
}



#overlay {

    padding: 30px 0;
}

#overlay .tabHeadline {
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.5rem, 6vw, 5rem);
}

#overlay .tab {
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.5625rem);
}

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

    #overlay .tab {
        margin-bottom: 90px;
    }
}

#overlay a {
    text-decoration: underline;
}

@media (min-width: 992px) {
    #overlay {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        z-index: 12;
        pointer-events: none;
    }

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

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

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

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

#breaker {
    max-width: 1170px;
    margin: auto;
    width: 100%;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    background: #fff url(../img/hand-reicht-herz-an-andere-hand.png) no-repeat left center / auto 100%;
    margin-bottom: -40px;
}

#breaker::before {
    content: '';
    border: 5px solid #ff8a40;
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    z-index: 12;
    pointer-events: none;
}

#breaker .tab {
    padding: 90px 30px;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
    #breaker .tab {
        padding: 60px;

    }
}

#breaker a {
    display: inline-block;
    padding: 8px 30px;
    background: #ff6300;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
}

#breaker a:is(:hover, :focus) {
    background: #1a1a1a;
    color: #fff;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2;
}

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

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

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.625rem, 4.5vw, 1.875rem);
}

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

h5,
.h5,
.legacy_h5 {
    font-size: 1.4375rem
}

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


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

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

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

footer .tabHeadline {
    font-size: 1.125rem;
}

body:not(.index) footer {
    padding-top: 30px;
}

@media (max-width: 767px) {
    footer .row>.col-xs-12:not(:first-child)::before {
        background: #000000;
        content: " ";
        height: 1px;
        width: 100%;
        display: block;
        margin: 25px 0;
        opacity: 0.2;
    }

    footer .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    footer .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

#innerfooter {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 1rem;
}

#innerfooter ul {
    line-height: 2;
    padding: 0;
}

@media (min-width: 992px) {
    #innerfooter ul {
        padding-left: 15px;
        border-left: 1px solid #1a1a1a;
    }
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
}

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


/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
    gap: 18px;
    font-size: 0.875rem;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}