@import url("https://fonts.verwaltungsportal.de/css/?family=Julius+Sans+One:400%7CJosefin+Sans:300,300i,400,400i");

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

body {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    color: #061947;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

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

a {
    color: #99071e;
}

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

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

@media (min-width: 992px) {

    header,
    #impressionen {
        padding-left: clamp(25px, 4vw, 45px);
        padding-right: clamp(25px, 4vw, 45px);
    }
}

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

#logo a {
    display: inline-block;
    margin: 20px auto;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: calc(100vw - 120px);
        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: #99071e;
        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: 2px;
    }
}

/* menu desktop */

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

    .is-sticky nav.horizontally {
        border-bottom: 1px solid #061947;
    }

    nav.horizontally .navbar-nav>li {
        display: inline-block;
    }

    nav.horizontally .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #061947;
    font-weight: 400;
    text-align: left;
    padding: 10px 15px;
    font-family: 'Julius Sans One', sans-serif;
    font-size: 0.9375rem;
    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 li[class*="toplevel"]+li {
        margin-left: 25px;
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 16px 5px;
        margin: 10px 0;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #f1f2ed;
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: -10px;
        left: 50%;
        transform: translate(-50%, 0);
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -10px;
        border-radius: 2px;
        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: #061947;
    font-weight: 300;
    text-align: left;
    padding: 8px 25px 8px 38px;
    font-size: 0.9375rem;
    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: "\203A";
    position: absolute;
    top: 7px;
    left: 25px;
    margin-right: 4px;
}

/* 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: #ffffff;
    color: #061947;
}

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

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

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

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

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

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

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

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

    body.index #slider {
        max-height: clamp(300px, 62vw, 600px);
    }
}

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

.slider-mask {
    display: none;
}

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

/* ----------------------------------------- widget -------------------------------------- */

#widgetTab {
    padding: 50px 0 50px 0;
    background-color: #f1f2ed;
}

@media (min-width: 992px) {
    #widgetTab {
        margin-top: -90px;
        padding: 150px 0 60px 0;
    }
}

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

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

.index #content {
    padding-bottom: clamp(30px, 6vw, 80px);
    padding-top: clamp(30px, 4vw, 50px);
}

#tickerWrapper {
    padding-top: 40px;
}

@media (min-width: 992px) {
    #tickerWrapper {
        padding-top: 60px;
    }

    .newsticker-position {
        margin-bottom: 0;
    }
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #99071e;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Julius Sans One", sans-serif;
}

@media (min-width: 992px) {
    .tabHeadline {
        margin-bottom: 50px;
    }

    #tab26Wrapper .tabHeadline {
        margin-bottom: 30px;
    }
}

.tabHeadline {
    font-size: clamp(1.5625rem, 3vw, 1.875rem);
}

#impressionen .tabHeadline {
    margin-bottom: 0;
}

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

h2,
.h2,
.legacy_h2 {
    font-size: 1.6875rem;
}

h3,
.h3,
.legacy_h3 {
    font-size: 1.5625rem;
}

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

/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
    padding: 60px 0 150px 0;
    background-color: #f1f2ed;
}

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

    #tab1>.row>*:not(:first-child)+* {
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    #tab1>.row>*+* {
        margin-top: 30px;
    }
}

#tab1 .tab {
    padding: 20px 20px 30px 20px;
    font-size: 1.125rem;
    min-height: 100%;
    background-color: #ffffff;
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.25rem;
    position: relative;
    padding-left: 30px;
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6)::before {
    position: absolute;
    display: block;
    content: '';
    width: 19px;
    height: 19px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(../img/icon-schirm.png) no-repeat;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image) {
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    padding: 7px 20px;
    background-color: #99071e;
    transition: background 300ms linear;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):hover,
#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):focus {
    background: #061947;
}

#tab1 .tab img {
    margin: -20px -20px 30px -20px;
    display: block;
    width: calc(100% + 40px) !important;
    min-width: calc(100% + 40px) !important;
}

/* --------------------------------------------- impressionen ------------------------------------------- */

.tabBox {
    padding: 40px 0;
    background-color: #fff;
}

@media (min-width: 992px) {
    .index #impressionen {
        margin-top: -90px;
    }

    .tabBox {
        padding: 60px 0 40px 0;
    }
}

/* ------------------------------------------------ @26tab ----------------------------------------------- */

#tab26Wrapper {
    padding: 40px 0;
    margin: auto;
    width: 100%;
    max-width: 1200px;
}

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

#tab26 {
    margin: auto;
    width: 100%;
    max-width: 570px;
}

#tab26 .tab {
    font-size: 1rem;
    padding: 40px;
    text-align: left;
    background: #f1f2ed;
    min-height: 100%;
}

#tab26 .tab :is(b, strong) {
    font-size: 1.25rem;
    color: #061947;
}

#tab26 img {
    left: -20px;
    top: -20px;
    display: block;
    max-width: unset;
    position: relative;
    width: calc(100% + 40px);
}

/* ----------------------- @26tab slider arrows + dots ------- DO NOT DELETE ----------------------- */

#tab26 .slick-slide {
    padding: 15px;
    height: unset !important;
}

#tab26 .slick-slide>div {
    height: 100%;
}



#tab26 .slick-track {
    display: flex;
    align-items: stretch;
}

#tab26 .slick-dots button,
#tab26 .slick-button {
    background: transparent;
    border: none;
    padding: 5px;
}

#tab26 .slick-button {
    font-size: 0px;
    position: relative;
    top: 4px;
}

#tab26 .slick-prev {
    margin-left: 14px;
}

@media (max-width: 767px) {
    #tab26 .slick-next {
        margin-left: 14px;
    }
}

#tab26 .slick-button::before {
    display: block;
    line-height: 9px;
    height: 20px;
    font-size: 40px;
    color: #000000;
}

#tab26 .slick-button::after {
    content: "";
    position: absolute;
    pointer-events: none;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.05);
    transition: width 200ms linear, height 200ms linear;
    z-index: -1;
}

#tab26 .slick-button:focus::after,
#tab26 .slick-button:hover::after {
    width: 28px;
    height: 28px;
}

@media (max-width: 767px) {

    #tab26 .slick-button::after,
    #tab26 .slick-button::after {
        width: 28px;
        height: 28px;
    }
}

#tab26 .slick-dots {
    padding: 0 15px;
    list-style: none;
}

#tab26 .slick-dots>li {
    display: inline-block;
    position: relative;
    top: 50%;
    font-size: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #061947;
    transform: translateY(-50%);
}

#tab26 .slick-dots,
#tab26 .slick-button {
    display: inline-block !important;
}

@media (max-width: 767px) {
    #tab26 .slick-dots {
        display: none !important;
    }
}

#tab26 .slick-dots>li.slick-active {
    background: #99071e;
    transition: background 200ms linear;
}

#tab26 .slick-dots>li+li {
    margin-left: 10px;
}

#tab26 .slick-prev::before {
    content: "\2039";
}

#tab26 .slick-next::before {
    content: "\203A";
}

/* ------------ @26tab slider 1 stop/play button for accessibility ------- DO NOT DELETE ------------ */

#tab26 .slick-animate-control {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: -5px;
    left: 10px;
    border: 1px solid #ffffff;
    background-color: #000;
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M12 36V12h24v24Z' fill='%23fff'/%3E%3C/svg%3E");
}

#tab26 .slick-animate-control.slick-pause {
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M16 37.85v-28l22 14Z' fill='%23fff'/%3E%3C/svg%3E");
}

/* --------------------------------------------- widgetWrapper ------------------------------------------- */

#widgetWrapper {
    max-width: 1830px;
    width: 100%;
    margin: auto;
    background-position: center;
    background-size: cover;
    padding: 40px;
    color: #fff;
}

#widgetWrapper .tabHeadline {
    margin-bottom: 15px;
}

#widgetWrapper :is(h1, h2, h3, h4, h5, h6) {
    color: #fff;
}

#widgetWrapper a {
    text-decoration: underline;
    color: #fff;
}

/* --------------------------------------------- maps ------------------------------------------- */

.tabMaps iframe,
.tabMaps .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    max-height: 175px;
}

/* #region ----------------------------------- footer ------------------------------------------- */

@media (max-width: 767px) {
    #footer>.row>div+div {
        border-top: 1px solid #061947;
        margin-top: 20px;
        padding-top: 20px;
    }
}

#footer {
    position: relative;
    padding: 40px 0;
    font-size: 1rem;
    background-color: #f1f2ed;
}

#footer .tabHeadline {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 5px;
}

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

#innerfooter a {
    color: #061947;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

#innerfooter a::before {
    content: "\203A";
    position: absolute;
    left: 0;
    margin-right: 4px;
}

#innerfooter a:is(:hover, :focus) {
    color: #99071e;
}

#footer .tab {
    margin-bottom: 30px;
}

#footer .phoneTab .tabHeadline {
    position: relative;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: #99071e;
    padding-left: 45px;
    min-height: 30px;
}

.phoneTab .template-page {
    padding-left: 45px;
}

#footer .phoneTab .tabHeadline::after {
    content: "";
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    bottom: 0;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: url(../img/phone-icon.png) center / 13px auto no-repeat;
    background-color: #99071e;
}

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

@media (min-width: 768px) {
    .footerWrapper {
        display: flex;
        align-content: center;
        align-items: center;
        gap: 75px;
        justify-content: space-between;
    }

    .lastOne {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #footer>.row {
        align-items: stretch;
        align-content: stretch;
    }
}

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

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

#vernetzt span span {
    display: block;
}

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

#scrollTop {
    font-size: 0;
    background-color: #99071e;
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: block !important;
    position: relative;
    margin: 0 0 0 auto;
}

#scrollTop:is(:hover, :focus) {
    background-color: #061947;
}

#scrollTop::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 9px;
    top: 12px;
    border-style: solid;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #ffffff transparent;
    transform: none;
}