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

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

body {
    font-family: 'Fira Sans', sans-serif;
    color: #191919;
    background: #ffffff;
    font-size: clamp(1rem, 1vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #bb4711;
}

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

b,
strong {
    font-weight: 700;
}

:is(header, #termin) {
    overflow: hidden;
    position: relative;
}

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

/* #region --------------------------------- buttonStyle ---------------------------------------- */

.tab1 .tab_link_mehr {
    font-size: 0;
}

.tab1 .tab_link_mehr a,
:is(.buttonStyle, .buttonStyleNeutral) a:not(.has-image):not([rel]):not(.nivo-directionNav > a) {
    background: #bb4711;
    border-radius: 8px;
    color: #ffffff;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 15px 38px 14px 38px;
    transition: all 300ms;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
}

.tab1 .tab_link_mehr a {
    text-decoration: none;
}

.tab1 .tab_link_mehr a:hover,
.tab1 .tab_link_mehr a:focus,
.buttonStyle a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover) {
    background: #191919;
}

.buttonStyleNeutral a:not(.has-image):not([rel]):not(.nivo-directionNav > a) {
    background: #ffffff;
    color: #191919;
    font-size: 1.125rem;
    padding: 14px 34px 13px 34px;
}

.buttonStyleNeutral a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover) {
    background: transparent;
    color: #ffffff;
}

/* border on hover */

.buttonStyleNeutral a:not(.has-image):not([rel])::after {
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transform: scale(1.2);
    transition: all 0.3s;
    width: 100%;
    z-index: 1;
}

.buttonStyleNeutral a:not(.has-image):not([rel]):is(:focus, :hover)::after {
    opacity: 1;
    transform: scale(1);
}

/* #endregion ------------------------------ buttonStyle ---------------------------------------- */

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

@media (max-width: 575px) {
    #logo img {
        max-width: 120px;
    }
}

/* #region ----------------------------------- options ------------------------------------------ */

#options {
    font-size: 0.875rem;
    line-height: 1.2;
    gap: 20px;
}

@media (max-width: 1199px) {
    #options {
        flex-wrap: wrap;
    }
}

/* search */

#search {
    height: 48px;
    background: #fff;
    display: inline-block;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#search_input {
    color: #191919;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 48px;
    padding-left: 10px;
    padding-right: 43px;
    height: 48px;
    width: 100%;
}

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

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

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

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

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

/* #endregion -------------------------------- options ------------------------------------------ */

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

nav.horizontally {
    padding: 20px 0;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

nav.horizontally>.row {
    row-gap: 20px;
}

/* burgermenu for tablet */

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

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 8px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #bb4711;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #ffffff;
        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;
        right: 15px;
        top: 15px;
        z-index: 101;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 20px 0 25px 0;
        transition: padding 200ms linear;
    }

    .is-sticky nav.horizontally {
        padding: 10px 0 10px 0;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 2px;
        margin-top: 26px;
        transition: margin-top 200ms linear;
    }

    .is-sticky nav.horizontally .navbar-nav {
        margin-top: 12px;
    }

    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: #191919;
    font-weight: 400;
    padding: 12px 15px;
    position: relative;
    text-align: left;
    border-radius: 8px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 5px;
    }

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

    nav.horizontally li[class*="toplevel"][class*="_over"]>a.dropdown-toggle::after,
    nav.horizontally li[class*="toplevel"]:is(:hover, :focus, :focus-within)>a.dropdown-toggle::after {
        border-color: #bb4711;
    }
}

/* 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) {
    background: #fef5d2;
    color: #bb4711;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 40px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

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

@media(max-width:991px) {
    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: #fef5d2;
    color: #bb4711;
}

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

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

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

@media (min-width: 768px) {
    body.index #headerpic .nivo-controlNav {
        bottom: 70px;
    }
}

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

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

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

#headerpic {
    padding: 30px 0 clamp(40px, 6vw, 80px) 0;
    z-index: 2;
    background: #fefaed;
}

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

#headerpic>.row:first-child {
    max-width: 1400px;
    width: 100%;
}

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

.slider-mask {
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

/* Banner-Tabs */

#bannerTabs {
    margin-top: 30px;
}

@media (min-width: 768px) {
    #bannerTabs {
        margin-top: -60px;
    }
}

#bannerTabs,
#bannerTabs .tab1>.row {
    row-gap: 30px;
}

#bannerTabs .tab1 .tab_link_title a {
    color: #191919;
    text-decoration: none;
}

#bannerTabs .tab1 .tab_link_date {
    font-weight: 700;
}

#bannerTabs .tab2 a {
    text-decoration: underline;
}

#bannerTabs .tab {
    border-radius: 20px;
    line-height: 1.75;
    min-height: 100%;
    padding: 40px 50px 30px 30px;
    position: relative;
    z-index: 12;
}

#bannerTabs .tab1 {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#bannerTabs .tab2 {
    background: #bb4711;
    color: #ffffff;
}

#bannerTabs .tab2,
#bannerTabs .tab2 :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

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

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

#content {
    text-align: left;
    padding-top: clamp(30px, 3vw, 50px);
    padding-bottom: clamp(40px, 6vw, 115px);
}

/* ------------------------------------------------ @4tab ----------------------------------------------- */

#tab4 {
    padding: 60px 0 clamp(40px, 10vw, 190px) 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    #tab4 {
        padding: 30px 0;
    }
}

#tab4 .specialHeadline .tabHeadline {
    color: #292929;
    margin: 0;
}

#tab4 .specialHeadline {
    margin-bottom: clamp(15px, 4vw, 45px);
}

@media (min-width: 768px) {
    #tab4 .specialHeadline {
        max-width: 80%;
    }
}

#tab4 .tabBox {
    z-index: 12;
    position: relative;
}

#tab4 .tabBox a {
    text-decoration: none;
    position: relative;
    height: 100%;
    min-height: 255px;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
    width: 100%;
    border-radius: 20px;
    padding: 40px 20px;
    color: #191919;
    transition: border 300ms linear;
    background-color: #ffffff;
    border: 4px solid #fef5d2;
    box-shadow: 0px 7px 29px 0px rgba(25, 25, 25, 0.1);
}

#tab4 .tabBox :is(b, strong) {
    font-size: 1.375rem;
    display: block;
}

#tab4 .tabBox a:is(:hover, :focus) {
    border-color: #bb4711;
}

#tab4 .tabBox img {
    margin-bottom: 25px;
}

#tab4>.row:last-child>*:not(:first-child, :nth-child(2))+* {
    margin-top: 30px;
}

@media (max-width: 767px) {
    #tab4>.row:last-child>*:not(:first-child)+* {
        margin-top: 30px;
    }
}

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

#tab4::before {
    content: "";
    position: absolute;
    pointer-events: none;
    display: inline-block;
    left: 0px;
    top: 0px;
    width: 86.5vw;
    height: 29.6vw;
    background: #fefaed;
    z-index: 0;
}

@media (max-width: 767px) {
    #tab4::before {
        width: 100vw;
        height: 100vw;
    }
}

@media (min-width: 992px) {
    #tab4::after {
        content: "";
        position: absolute;
        pointer-events: none;
        display: inline-block;
        bottom: 116px;
        right: 0;
        width: 39.6vw;
        height: 34.9vw;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 0 0 0 40px;
        z-index: -1;
    }
}

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

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

#tab4 .specialHeadline .tabHeadline,
h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

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

h3,
.h3,
.legacy_h3 {
    font-size: 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;
}

#bannerTabs .tab .tabHeadline {
    font-size: 1.375rem;
}

main :is(h1, h2) {
    margin-bottom: 25px;
}

#termin :is(h1, h2, h3) {
    font-size: clamp(1.75rem, 4vw, 2rem);
}

#termin .tab :is(h1, h2, h3) :is(i, em) {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
    font-style: normal;
    display: block;
}

/* #region ------------------------------------- termin ----------------------------------------- */

#termin {
    z-index: 1;
    background: linear-gradient(to bottom, #fff 50%, #fefaed 50%);
    padding: 0 15px;
}

#termin>.row {
    background: #bb4711;
    border-radius: 20px;
}

@media (min-width: 768px) {
    #termin>.row::before {
        content: "";
        display: block;
        position: absolute;
        left: 50%;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        background: center / cover no-repeat;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

@media (min-width: 1200px) {
    #termin>.row {
        max-width: 1170px;
        width: 100%;
    }
}

#termin .tab {
    padding: clamp(40px, 5vw, 70px) clamp(30px, 4vw, 60px) clamp(40px, 7vw, 100px) clamp(30px, 4vw, 60px);
}

#termin .tab,
#termin .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
}

#tabImg {
    background: center / cover no-repeat;
}

/* #endregion ---------------------------------- termin ----------------------------------------- */

/* ----------------------------------------------- @1f footer ----------------------------------------------- */

#f1 {
    font-size: 1rem;
    padding: clamp(30px, 6vw, 80px) 0 30px 0;
    background: #fefaed;
}

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

#f1 .footerTab a {
    text-decoration: underline;
}

#f1 .tabHeadline {
    font-size: 1.375rem;
    color: #191919;
}

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

#innerfooter ul {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0;
}

#innerfooter li {
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

#innerfooter a {
    text-decoration: none;
    position: relative;
    display: block;
    font-size: 1rem;
    color: #191919;
    font-weight: 400;
    padding: 6px 10px 6px 25px;
}

#innerfooter a::before {
    content: "";
    position: absolute;
    display: block;
    left: 10px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 300ms linear;
}

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

#innerfooter a:hover::before,
#innerfooter a:focus::before {
    background: #bb4711;
}

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

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

#vernetzt span span {
    display: block;
}

#vernetzt strong {
    color: #bb4711;
    font-weight: 400;
}

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