@import url('https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:400,600,700,400i,600i,700i');
@import url("https://fonts.verwaltungsportal.de/import/?family=Jost:500,500i");

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

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

a {
    color: #a10d29;
}

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

b,
strong {
    font-weight: 600;
}

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

/* ------------------------------------------- topbar2 ------------------------------------------ */

#topbar2 {
    padding-top: 22px;
    box-shadow: 0px 2px 10px 0px rgba(43, 43, 43, 0.1);
    position: relative;
    background: linear-gradient(to left, #3d0115, #a10d29);
}

@media (min-width: 992px) {
    #topbar2 {
        padding: 26px 0;
        position: relative;
        z-index: 102;
    }

    #topbar2>.row>*:last-child {
        margin-top: -10px;
    }
}

@media (min-width: 1200px) {
    #topbar2>.row {
        z-index: 104;
    }
}

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

.logo {
    display: inline-block;
}

.logo img {
    display: block;
}

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

/* #region ----------------------------------- search ------------------------------------------- */

#search {
    background: #fbfbfb;
    position: relative;
    border-radius: 30px;
    width: 100%;
}

@media (min-width: 992px) {
    #search {
        min-width: 240px;
        max-width: 380px;
        width: auto;
    }
}

#search_input {
    color: #6e6e6e;
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    background: transparent;
    border: 0;
    width: 100%;
    border-radius: 30px;
    padding: 7px 14px;
    line-height: 1;
}

#search_submit {
    border: 5px solid #9a6974;
    background: #a10d29 url('../img/lupe-icon.png') center / 14px 14px no-repeat;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    margin: -5px -5px -5px 0;
    font-size: 0;
    aspect-ratio: 1/1;
    min-width: 48px;
    flex-shrink: 0;
    transition: background 150ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: #6d0c1c;
}

#search input::placeholder {
    color: #6e6e6e !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion -------------------------------- search ------------------------------------------- */

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

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

    #style h2 {
        font-size: 1rem;
        color: #fff;
        font-weight: 400;
        margin: 0 0 10px 0;
    }

    #style button {
        font-size: 1.125rem;
        border: none;
        color: #232323;
        display: inline-block;
        min-width: 38px;
        min-height: 38px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        font-weight: 400;
        text-align: center;
        background-color: #fff;
        line-height: 1;
        transition: background 150ms linear;
    }

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

    #style button:is(:hover, :focus) {
        background-color: #a10d29;
        color: #fff;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #menu-wrapper {
        margin-top: 70px;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 40px;
        width: 46px;
        border-radius: 2px;
        padding: 3px;
        cursor: pointer;
        background-color: #ffffff;
        position: absolute;
        z-index: 1002;
        right: 12px;
        top: 50%;
        margin-top: -20px;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #a10d29;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 2px;
        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: 11px;
    }

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

    #burgerButton::after {
        top: 27px;
        content: "";
        display: block;
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 70px;
        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 {
        height: 70px;
        line-height: 1;
        padding: 10px 15px;
        background-color: #3d0115;
        background: linear-gradient(to left, #3d0115, #a10d29);
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 101;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    .dropdown-toggle-button-wrapper {
        top: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
    }

    #menu {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .is-sticky #menu {
        left: unset !important;
        box-shadow: 0px 2px 10px 0px rgba(43, 43, 43, 0.1);
    }

    nav.horizontally .navbar-nav {
        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 .navbar-nav a[class*="toplevel"] {
    color: #232323;
    font-weight: 500;
    text-align: left;
    padding: 10px 35px 15px 35px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Jost", sans-serif;
}

@media (max-width: 991px) {
    nav.horizontally .navbar-nav li[class*="toplevel"]+li {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
}

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

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

/* toplevel-over */

nav.horizontally .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally .navbar-nav li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally .navbar-nav li[class*="toplevel"].open>a,
nav.horizontally .navbar-nav li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"]>a,
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #a10d29;
    background-color: transparent;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (min-width:992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 11px 25px;
        text-align: center;
    }
}

/* secondlevel + thirdlevel over */

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

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

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

/* #region ------------------------------------ banner ------------------------------------------ */

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 64vw, 640px);
    }

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

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

    #headerpic .nivo-controlNav {
        width: calc(100% - 200px);
        left: 100px;
    }
}

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

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

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    #headerpic .nivo-directionNav a {
        top: auto;
        bottom: 12px;
    }
}

@media (min-width: 1200px) {
    #headerpic .nivo-directionNav a {
        bottom: 20px;
    }

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

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

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

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

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.75rem, 3vw, 2.1875rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 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.25rem;
}

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

#footer {
    color: #595959;
    padding-bottom: 30px;
}

#footer>.row {
    row-gap: 25px;
}

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

/* ------------------------------------------- scroll top --------------------------------------- */

#scroll-top {
    display: inline-block;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #a10d29;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 30px;
    padding: 16px 30px 16px 50px;
    opacity: 1 !important;
    text-decoration: none;
    position: relative;
}

#scroll-top:is(:hover, :focus) {
    background-color: #3d0115;
}

#scroll-top::after {
    content: "";
    position: absolute;
    border-radius: 1px;
    left: 30px;
    width: 7px;
    height: 7px;
    top: 50%;
    margin-top: -1px;
    display: inline-block;
    border-right: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    transform: rotate(-45deg);
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

.hrStyle {
	border-color: #9b0d27;
	margin-bottom: 6px;
}

#f5 {
    padding-top: 28px;
    padding-bottom: 28px;
    position: relative;
    background: #fbfbfb;
}

#f5>.row {
    row-gap: 28px;
}

@media (min-width: 1200px) {
    #f5>.row {
        z-index: 1;
    }

    #f5>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: -28px;
        right: -365px;
        width: 439px;
        height: 368px;
        background: url('../img/haende.png') center no-repeat;
    }

    #f5::after {
        content: '';
        position: absolute;
        pointer-events: none;
        right: 0;
        bottom: 0;
        top: 0;
        width: clamp(12.1875rem, -25.8333rem + 50.6944vw, 35rem);
        height: 100%;
        background: linear-gradient(to left, #3d0115, #a10d29);
    }
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #232323;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #a10d29;
}

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

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

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

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

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

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

#vernetzt b {
    font-weight: 700;
}

#vernetzt span span {
    display: block;
}