@import url("https://fonts.verwaltungsportal.de/import/?family=M+PLUS+Rounded+1c:400,500,800,400i,500i,800i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Lexend:300,400,500,600,700");

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(223, 233, 240, 0.144);
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #c7430a #ffffff;
    scrollbar-width: thin;
}

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

a {
    color: #c7430a;
}

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

b,
strong {
    font-weight: 600;
}

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

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

#topbar {
    padding: 10px 0;
}

#topbar span {
    font-size: 1rem;
    font-weight: 400;
    color: #282828;
    margin-right: 15px;
}

@media (min-width: 992px) {
    #style button {
        font-size: 18px;
        background: transparent;
        padding: 0;
        border: none;
        color: #282828;
        display: inline-block;
        font-weight: 400;
        text-align: center;
        position: relative;
        line-height: 1;
        -webkit-transition: color 150ms linear;
        -moz-transition: color 150ms linear;
        -ms-transition: color 150ms linear;
        -o-transition: color 150ms linear;
        transition: color 150ms linear;
    }



    #style button:hover {
        color: #bd400a;
    }

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

    #style button:nth-child(3):after,
    #style button:nth-child(3):before {
        content: '|';
        margin-left: 4px;
        margin-right: 4px;
        color: #2e3c48 !important;
    }


    #style button:nth-child(3):after {
        margin-right: 0;
    }
}

#search {
    display: inline-block;
    position: relative;
    max-width: 254px;
    width: 100%;
    border-left: 2px solid #e5e5e5;
    margin-left: 20px;
    padding-left: 20px;
}

#search_input {
    color: #282828;
    font-size: 1rem;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 10px;
    padding-right: 43px;
    width: 100%;
}

#search_submit {
    width: 33px;
    background: url('../img/icon-suche.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    transition: background-color 300ms linear;
}

#search_submit:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

#search_input::placeholder {
    color: color-mix(in srgb, currentColor 100%, transparent);
}

#search_input::-ms-input-placeholder {
    color: #282828 !important;
}

#search_input::-webkit-input-placeholder {
    color: #282828 !important;
}

#search_input::-moz-placeholder {
    opacity: 1;
}

#search_input:-moz-placeholder {
    opacity: 1;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
    transition: all, 300ms;
    position: relative;
}

@media (min-width: 992px) {

    #logo {
        margin-top: -25px;
    }

    .is-sticky #logo img {
        max-width: 200px;
        top: 15px;
    }
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        border-top: 3px solid #01599e;
        padding: 12px 0;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    }

    #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: #01599e;
        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: #ffffff;
        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: 11px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        transition: background-color 200ms linear, box-shadow 200ms linear;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .is-sticky nav.horizontally {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    }

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

    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: #282828;
    font-weight: 500;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 11px 0;
        text-align: center;
    }
}


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

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a::before {
        left: 50%;
    }
}

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

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 {
    opacity: 1;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

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

nav.horizontally [class*="toplevel"]>ul {
    padding: 10px 0;
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }

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

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -10px;
        border-radius: 3px;
        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: #282828;
    font-weight: 400;
    text-align: left;
    padding: 9px 25px 9px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "";
    display: block;
    position: absolute;
    left: 20px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #043c68;
    transition: background 300ms linear;
}

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) {
    color: #bd400a;
}

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

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

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

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

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

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

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

    .index #headerpic .nivo-controlNav {
        top: 10px;
        bottom: unset;
    }
}

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

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

.slider-mask {
    display: none;
}

/* -------------------------------------------- overlay ----------------------------------------- */

#overlay {
    background: rgba(89, 110, 4, 0.9);
    color: #ffffff;
    padding: 22px 0 30px 0;
    font-size: 1rem;
}

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

#overlay>.row {
    row-gap: 22px;
}

#overlay .tab {
    padding-left: 100px;
    line-height: 1.7;
    background: url(../img/icon-uhr.png) center left 15px no-repeat;
}

#overlay>.row>.tab:nth-of-type(2) {
    background-image: url(../img/icon-telefon.png);
}

#overlay>.row>.tab:nth-of-type(3) {
    background-image: url(../img/icon-mail.png);
}

@media (max-width: 991px) {
    #overlay .tab {
        padding-left: 70px;
        background: url(../img/icon-uhr2.png) center left 15px no-repeat;
    }
    
    #overlay>.row>.tab:nth-of-type(2) {
        background-image: url(../img/icon-telefon2.png);
    }
    
    #overlay>.row>.tab:nth-of-type(3) {
        background-image: url(../img/icon-mail2.png);
    }
}

#overlay .tabHeadline {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 3px 0;
}

#overlay a {
    color: #ffffff;
    font-style: italic;
    text-decoration: underline;
}

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

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #596e04;
    font-weight: 800;
    line-height: 1.2;
    font-family: "M PLUS Rounded 1c", serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 1px;
}

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

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

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

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

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

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

footer {
    background: #f1f4ee;
    color: #282828;
    font-size: 1rem;
    border-top: 4px solid #dc4100;
    position: relative;
}

footer::before {
    content: '';
    width: calc(calc(100vw - 1200px) / 2);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: block;
    background-position: center;
    background-size: cover;
}

#footerTop {
    padding: 60px 0;
}

#footerBottom::before {
    content: '';
    height: 1px;
    background: #b4b6b2;
    display: block;
    max-width: 1170px;
    margin: auto;
}

footer .template-page a {
    color: #282828;
    text-decoration: underline;
}

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

#innerfooter ul {
    padding: clamp(30px, 4vw, 60px) 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #282828;
    text-decoration: none;
}

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

#innerfooter li+li::before {
    content: "•";
    margin: 0 clamp(15px, 2vw, 30px);
    color: #282828;
}

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

#vernetzt {
    font-size: 0.9375rem;
    color: #282828;
    line-height: 1.3;
    font-weight: 400;
    display: inline-block;
    text-decoration: none;
}

#vernetzt span {
    display: block;
}

#vernetzt b {
    color: #282828;
}

#vernetzt img {
    margin-right: 10px;
}

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