@import url('https://fonts.verwaltungsportal.de/css/?family=Barlow:400,400i,500,500i,600,600i');

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

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

a {
    color: #7f4606;
}

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

#contentBox a,
b,
strong {
    font-weight: 500;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: -70px;
        background: #fff;
        padding: 5px 15px 25px 10px;
        border-bottom-right-radius: 40px;
        transition: padding 300ms linear;
    }

    #logo img {
        -webkit-transition: max-width 300ms linear;
        -moz-transition: max-width 300ms linear;
        -ms-transition: max-width 300ms linear;
        -o-transition: max-width 300ms linear;
        transition: max-width 300ms linear;
    }

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

    .is-sticky #logo {
        top: -40px;
        padding: unset;
        background-color: unset;
        border-bottom-right-radius: unset;
    }
}

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

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

/* burgermenu for tablet */

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

    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background: #ffffff;
        border: none !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #f79e3b;
        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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: #ffffff;
        padding: 15px 0;
        transition: all 0.2s 0s linear;
    }

    .is-sticky nav.horizontally {
        padding: 10px 0;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    }

    nav.horizontally .navbar-nav {
        margin-top: 15px;
        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;
        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: #1d1d1b;
    font-weight: 600;
    text-align: left;
    padding: 10px 15px 14px 15px;
    position: relative;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::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: #7f4606;
}

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;
    border: 1px solid #d9d9d9;
}

@media (max-width: 991px) {
    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-top: 10px;
        padding-bottom: 10px;
        border-radius: 3px;
    }

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #1d1d1b;
    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: #1d1d1b;
    transition: background 300ms linear;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):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::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: #f79e3b;
}

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

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

header>.row {
    row-gap: 30px;
}

#slider {
    height: clamp(196px, 42vw, 400px);
    position: relative;
    border-radius: 3px;
}

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

@media (min-width: 768px) {

    #slider,
    #headerpic {
        height: 100% !important;
        max-height: 500px;
    }
}

@media (min-width: 992px) {
    #slider {
        min-height: clamp(300px, 42vw, 500px);
    }

    body.index #slider {
        min-height: 500px;
    }
}

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 40px 0 0 0;
}

@media (max-width: 767px) {
    #headerpic {
        border-radius: 40px 40px 0 0;
    }
}

.slider-mask {
    display: none;
}

.nivo-directionNav a,
a.nivo-control,
a.nivo-control.active {
    color: #ffffff !important;
}

@media (min-width: 1200px) {
    header {
        background: url('../img/grafik-pusteblume1.png') top right no-repeat;
    }
}

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

/* ------------------------------------------- header tab --------------------------------------- */

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

#headerTab .headerContent {
    color: #1d1d1b;
    padding: 20px 30px;
}

@media (min-width: 768px) {
    #headerTab {
        position: absolute;
        pointer-events: none;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 12;
    }

    #headerTab .headerContent {
        pointer-events: all;
        padding: 20px 80px 20px 30px;
        background: rgba(251, 206, 157, 0.88);
        border-radius: 0 40px 0 0;
        margin-right: 24px;
    }
}

#headerTab .headerContent :is(h1, h2, h3, h4, h5, h6) {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #1d1d1b;
    hyphens: auto;
}

#headerTab .headerContent :is(h1, h2, h3, h4, h5, h6) :is(i, em) {
    color: #1d1d1b;
    display: block;
    font-style: normal;
    font-size: 68%;
}

#headerTab .headerContent a {
    color: #1d1d1b;
}

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

.search {
    padding: 30px;
}

form[id^="search"] {
    display: flex;
    flex-wrap: wrap;
    background: #fbce9d;
}

form[id^="search"] label {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 18px;
    line-height: 1;
    width: 100%;
    color: #1d1d1b;
}

form [id^="search_input"] {
    color: #383838;
    font-size: 0.9375rem;
    font-style: normal;
    padding: 8px 10px 8px 14px;
    border: 0;
    width: calc(100% - 38px);
    background: #ffffff !important;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

form [id^="search_submit"] {
    width: 38px;
    flex-shrink: 0;
    border: none;
    background: #ffffff url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background 150ms linear;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: #eeeeee;
}

form [id^="search_input"]::placeholder {
    color: #383838 !important;
    opacity: 1 !important;
    font-style: italic !important;
}

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

/* #region ------------------------------ styler + contrast ------------------------------------- */

@media (min-width: 992px) {
    #styleContrast {
        padding: 15px 0;
        gap: 30px;
    }

    #styleContrast h2 {
        color: inherit;
        font-weight: inherit;
        font-size: 0.875rem;
        margin-bottom: 0;
        width: auto;
        margin-right: 12px;
    }

    #styleContrast button {
        font-size: 18px;
        padding: 0 0 2px 0 !important;
        border: none;
        color: #1d1d1b;
        display: inline-block;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        font-weight: 500;
        text-align: center;
        background: #ffffff;
        position: relative;
        line-height: 1;
        border: 1px solid rgba(29, 29, 27, 0.2);
        transition: border 300ms linear;
    }

    #contrast_style button {
        font-size: 0;
    }

    #contrast_style button::after {
        content: "";
        display: block;
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border-radius: 50%;
        border: 1px solid #ffffff;
        background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, #1d1d1b 50%);
    }

    #contrast_style button:nth-of-type(2)::after {
        transform: scaleX(-1);
    }

    #contrast_style button:nth-of-type(3)::after {
        background: #1d1d1b;
    }

    #styleContrast button+button {
        margin-left: 4px;
    }

    #styleContrast button:is(:hover, :focus) {
        border-color: #1d1d1b;
    }
}

/* #endregion --------------------------- styler + contrast ------------------------------------- */

/* #region --------------------------------- news + events  -------------------------------------- */

/* ------------------------------------------------ 12nw news ----------------------------------------------- */

.news,
.events {
    background-color: #fff;
    padding: 0px 0px 20px 0px;
    color: #1d1d1b;
    font-size: 1rem;
    position: relative;
    margin-top: 30px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.news .tabHeadline,
.events .tabHeadline {
    background: #fbce9d url(../img/grafik-pusteblume.png) right bottom -30px no-repeat;
    color: #1d1d1b;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 18px 25px;
    text-align: center;
    margin-bottom: 0;
}

.news .tabContent,
.events .tabContent {
    padding: 25px;
}

.news .tab_link_title a,
.events .tab_link_title a {
    font-weight: 600;
    color: #1d1d1b;
    font-size: 1.125rem;
}

.news .tab_link_mandat a,
.events .tab_link_mandat a {
    color: #1d1d1b;
    font-style: italic;
}

.news .tab_link_mehr,
.events .tab_link_mehr {
    font-size: 0;
    position: relative;
}

.tab_link_date {
    font-style: italic;
}

/* ----------------------------------------- button design -------------------------------------- */

.buttonStyle a,
.tab_link_mehr a {
    display: inline-block;
    background: #f79e3b;
    border-radius: 3px;
    color: #1d1d1b;
    border: 1px solid #1d1d1b;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 5px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background 300ms linear, color 300ms linear, border 300ms linear;
}

@media (min-width: 768px) {
    .buttonStyle a+a {
        margin-left: 12px;
    }
}

.buttonStyle a::after,
.tab_link_mehr a::after {
    content: " \00BB";
}

.buttonStyle a:is(:hover, :focus),
.tab_link_mehr a:is(:hover, :focus) {
    color: #ffffff;
    background: #1d1d1b;
    border-color: #1d1d1b;
}

/* #endregion ---------------------------------- news ------------------------------------------- */

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

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

@media (min-width: 1200px) {
    main {
        background: url('../img/grafik-pusteblume2.png') bottom left 30px no-repeat;
    }
}

/* ------------------------------------------- tabsButtons ------------------------------------------ */

@media (max-width: 991px) {
    #tabsButtons {
        padding-bottom: 30px;
    }
}

#tabsButtons {
    padding-top: 30px;
}

#tabsButtons {
    color: #252525;
}

#tabsButtons a {
    text-decoration: none;
    display: flex;
    color: #252525;
    padding: 3px 50px 3px 15px;
    border: 1px solid #d9d9d9;
    position: relative;
    align-content: center;
    align-items: center;
    min-height: 52px;
    height: 100%;
    transition: border 300ms linear;
}

#tabsButtons a:hover,
#tabsButtons a:focus {
    border-color: #1d1d1b;
}

#tabsButtons a::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    right: 10px;
    margin: auto;
    width: 28px;
    height: 28px;
    border-radius: 100%;
    background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23252525"><path d="M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z"/></svg>') center no-repeat,
        #f79e3b;
}

#tabsButtons .btgrid>.row>*>*,
#tabsButtons .btgrid>.row>*>*>* {
    height: 100%;
}

#tabsButtons .btgrid>.row-1>*:first-of-type>* a:first-of-type {
    border-radius: 20px 0 0 0;
}

#tabsButtons .btgrid>.row-1>*:last-of-type>* a:last-of-type {
    border-radius: 0 20px 0 0;
}

#tabsButtons .btgrid>.row-2>*:first-of-type>* a:first-of-type {
    border-radius: 0 0 0 20px;
}

#tabsButtons .btgrid>.row-2>*:last-of-type>* a:last-of-type {
    border-radius: 0 0 20px 0;
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: 2rem;
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.75rem;

}

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

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

footer {
    background: #fbce9d;
    padding: 40px 0 35px 0;
    color: #1d1d1b;
    font-size: 1rem;
}

footer>.row {
    row-gap: 30px;
}

@media (min-width: 1199px) {
    footer>.row>div:nth-child(2) {
        padding: 0 30px;
    }
}

footer a,
footer a:is(:hover, :focus) {
    color: #1d1d1b;
}

footer :is(iframe, .iframe-wrapper-manual-enabling) {
    width: 100% !important;
    min-width: 100% !important;
}

.footerTab a {
    text-decoration: underline;
    border-radius: 3px;
    padding: 2px;
}

.footerTab a:is(:hover, :focus) {
    background-color: rgba(0, 0, 0, 0.2);
}

.footerTab :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.375rem;
    margin: 0;
    color: #1d1d1b;
}

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

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

#innerfooter a {
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 6px 10px 6px 25px;
}

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

#innerfooter a:is(:hover, :focus)::before {
    background: #1d1d1b;
}

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

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.8125rem;
    color: #1d1d1b;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

#vernetzt b {
    font-weight: 600;
}

/* ------------------------------------------ contrast ------------------------------------------ */

.contrast_light_font form [id^="search_submit"] {
    background: url('../img/lupe-icon.png') center no-repeat;
}

.contrast_light_font #news .tab,
.contrast_light_font #contact .phoneNumber,
.contrast_dark_font #contrast_style button {
    background: #000000 !important;
}

:is(.contrast_light_font, .contrast_dark_font) #contact>.row>div:last-child::after,
:is(.contrast_light_font, .contrast_dark_font) #contact>.row>div:last-child::before {
    display: none !important;
}

:is(.contrast_light_font, .contrast_dark_font) #news .tab_link_title a {
    filter: unset !important;
}

.contrast_light_font #logo img,
.contrast_light_font form [id^="search_input"],
.contrast_dark_font #news .tab {
    background: #ffffff !important;
}