@import url('https://fonts.verwaltungsportal.de/import/?family=Roboto:300,400,500,700,300i,400i,500i,700i');
@import url("https://fonts.verwaltungsportal.de/import/?family=MonteCarlo:400");

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

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

a {
    color: #942b33;
}

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

#content a {
    text-decoration: underline;
}

#content a,
b,
strong {
    font-weight: 700;
}

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

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

#logo {
    display: block;
}

#logo img {
    display: block;
    margin: 0 auto;
}

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

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

.bgBanner {
    background: linear-gradient(to right, rgba(249,238,237,0) 0%,rgba(249,238,237,0.96) 28%);
    margin-right: -15px;
}
/* #region ---------------------------------- navigation ---------------------------------------- */

nav.horizontally {
    padding: 20px 0;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    #burgerButton {
        border: none !important;
        font-size: 0;
        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: #942b33;
        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: 5px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    .horizontally>.row {
        max-width: 1200px !important;
    }

    nav.horizontally {
        padding: 16px 0;
        transition: box-shadow 300ms linear;
    }

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

    #myNavbar {
        gap: 0 30px;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: center;
        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;
    }
}

@media (min-width: 1200px) {
    nav.horizontally .navbar-nav {
        justify-content: end;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #320d06;
    font-weight: 400;
    text-align: left;
    padding: 10px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

nav.horizontally a[class*="toplevel"]::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 0%;
    height: 4px;
    background: #bf8085;
    opacity: 0;
    transition: all 300ms;
}

@media (max-width: 991px) {
    nav.horizontally 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.horizontally li[class*="toplevel"]+li {
        margin-left: clamp(15px, 3vw, 40px);
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 20px 2px;
    }

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

    nav.horizontally a[class*="toplevel"][data-toggle="dropdown"]::after {
        content: "";
        position: absolute;
        display: block;
        right: 0;
        top: 50%;
        margin-top: -5px;
        width: 6px;
        height: 6px;
        border-radius: 1px;
        line-height: 1;
        display: inline-block;
        border-left: 2px solid #320d06;
        border-bottom: 2px solid #320d06;
        transform: rotate(-45deg);
        transition: border 300ms linear;
    }
}

/* 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: #320d06;
    background-color: transparent;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        box-shadow: 0 25px 12px -15px rgba(0, 0, 0, 0.1);
    }

    nav.horizontally [class*="toplevel"]>ul {
        left: 50%;
        transform: translateX(-50%);
    }

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

    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: #320d06;
    text-align: left;
    padding: 8px 20px;
    font-weight: 400;
    position: relative;
    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: #942b33;
    color: #fff;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */
#options {
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    #options {
        margin: 30px 20px;
    }
}

#options div+div {
    margin-left: 30px;
}

#contrast_style button {
    color: #000000;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.6);
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
}

#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;
    -webkit-transition: opacity 150ms linear;
    -moz-transition: opacity 150ms linear;
    -ms-transition: opacity 150ms linear;
    -o-transition: opacity 150ms linear;
    transition: opacity 150ms linear;
}

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

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    left: 3px;
    bottom: 3px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

#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;
    border: none;
}

@media (min-width: 992px) {
    #style button {
        font-size: 18px;
        background: transparent;
        padding: 0;
        border: none;
        color: #320d06;
        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+button {
        margin-left: 8px;
        padding-left: 8px;
        border-left: 1px solid #320d06;
    }

    #style button:hover {
        color: #942b33;
    }

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

#style span,
#contrast_style span {
    margin-right: 10px;
    font-size: 1rem;
}

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

#slogan {
    padding-top: clamp(10px, 2vw, 30px);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    line-height: 1;
    font-weight: 300;
    color: #320d06;
}

#slogan {
    padding-bottom: clamp(15px, 2vw, 30px);
}

#slogan :is(h1, h2, h3, h4, h5, h6) :is(i, em, b, strong) {
    display: block;
}

#slogan :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.875rem, 4vw, 3.125rem);
    font-style: normal;
    font-weight: 400;
    font-family: "MonteCarlo", cursive;
}

#slogan a {
    display: inline-block;
    margin-top: clamp(15px, 2vw, 25px);
    text-decoration: underline;
}

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

header {
    position: relative;
}

header::before {
    content: '';
    display: block;
    position: absolute;
    top: -115px;
    left: 0;
    width: 1233px;
    height: 639px;
    background: url('../img/schleier.png') no-repeat; 
}

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

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

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

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

.slider-wrapper,
#slider,
.nivo-main-image,
#slider>a>div {
    height: 100% !important;
}

.slider-mask {
    display: none;
}

/* -------------------------------------------- tabrow ------------------------------------------ */

.tabRow {
    row-gap: 15px;
}

.imgTab {
    position: relative;
    min-height: 100px;
    font-size: 1.125rem;
}

.imgTab img {
    display: block;
    max-height: 240px;
}

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

#content {
    text-align: left;
    padding-bottom: clamp(30px, 8vw, 85px);
    padding-top: clamp(30px, 4vw, 60px);
}

.row.wide {
    width: 100%;
    max-width: 1600px;
}

#tabs,
footer {
    margin-left: auto;
    margin-right: auto;
    max-width: 1570px;
}

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

#tabs {
    padding: clamp(45px, 8vw, 85px) 0;
    background: url('../img/werkzeuge-maske.png') bottom -100px left -100px no-repeat, url('../img/werkzeuge-maske2.png') top -100px right -100px no-repeat, #f9eeed;
    overflow: hidden;
}

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

#tabs .tab {
    background-color: #ffffff;
    position: relative;
    height: 100%;
    min-height: 100%;
    box-shadow: 0 30px 20px -15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border-radius: 12px;
}

#tabs .tabsLargeHeading :is(h1, h2, h3, h4, h5, h6) {
    color: #320d06;
    font-size: clamp(1.625rem, 3vw, 2.25rem);
}

#tabs .tab {
    position: relative;
    color: #fff;
    height: 100%;
    min-height: 100%;
    z-index: 1;
}

#tabs .tab::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
    transition: background 300ms;
}

#tabs .tab:hover::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

#tabs .tab::after {
    content: "01";
    font-size: 150px;
    font-weight: 400;
    pointer-events: none;
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    top: -30px;
    left: -20px;
    z-index: 3;
    font-family: "MonteCarlo", cursive;
}

#tabs .tab2::after {
    content: "02";
}

#tabs .tab3::after {
    content: "03";
}

#tabs .tab4::after {
    content: "04";
}

#tabs .tab:not(.link) {
    min-height: 150px;
    background-color: #241d1b;
}

@media (max-width: 991px) {
    #tabs .tab {
        max-height: 100%;
        overflow: hidden;
    }
}

#tabs .tab a {
    color: #fff;
}

#tabs .tab img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
}

#tabs .tab .cleaner {
    display: none;
}

#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
    position: absolute;
    display: block;
    bottom: 0;
    left: 15px;
    right: 15px;
    color: #fff;
    font-weight: bold;
    z-index: 4;
    padding: 10px 30px;
    pointer-events: none;
    line-height: 1.2;
    font-size: 1.125rem;
    margin: 0;
    font-weight: 400;
    width: auto;
}

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

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.875rem, 4vw, 2.6875rem);

}

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

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

}

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

}

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

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

/* ----------------------------------------------- @3f footer ----------------------------------------------- */

/* ----------------------------------------- contact -------------------------------------- */

#contact {
    color: #320d06;
    font-size: 1rem;
    background-color: #ffffff;
    overflow: hidden;
}

#contact .tab {
    padding: 35px 0;
}

#contact .tabHeadline {
    color: #320d06;
    font-size: 1.625rem;
}

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

#contact>.row {
    max-width: 100%;
    width: 100%;
}

#contact .noPadding {
    padding: 0px;
}

#contact .iframeMapsTab {
    height: 100%;
}

#contact .iframeMapsTab img {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    max-height: 100%;
    min-height: 100%;
}

@media (min-width: 768px) {
    #contact .colMaps {
        padding-left: 0;
        max-width: 1060px;
    }

    #contact .colContact {
        max-width: 506px;
    }
}

@media (max-width: 767px) {
    #contact .colMaps {
        padding: 0px;
    }

    #contact .colContact {
        max-width: 576px;
        margin: auto;
    }
}

.social {
    position: relative;
    padding: 30px 0;
}

@media (min-width: 992px) {
    .social::before {
        content: '';
        display: block;
        position: absolute;
        top: 0px;
        bottom: 0px;
        left: -50px;
        width: 1px;
        height: 100%;
        background: #cccccc;
    }
}

.contrast_dark .social img {
    background-color: #fff !important;
}

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

#f5 {
    color: #ffffff;
    font-size: 1rem;
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #942b33;
}

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

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
}

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

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

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 15px;
    }
}

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

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

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

#vernetzt {
    gap: 15px;
    text-align: left;
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

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

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

#vernetzt span span {
    display: block;
}

.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after, 
.contrast_light_font #burgerButtonInner {
    background-color: #ffffff !important;
}

.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after, 
.contrast_dark_font #burgerButtonInner {
    background-color: #000000 !important;
}