/* Alle Styles, die speziell für Screen sind */

:root {
    --headline-color: var(--secondary);
    --background: #f2ffe3;
    --primary: #02704f;
    --darkbackground: var(--primary);
    --secondary: #77b82a;
    --black: #4a4a49;
    --white: #fff;
    --orange: #fab300;

    --gradient1: var(--secondary);
    --gradient2: #018e39;
    --gradient: linear-gradient(100deg, var(--gradient1), var(--gradient2));

    --mediumgradient1: rgba(119, 184, 42, 0.6);
    --mediumgradient2: rgba(1, 142, 57, 0.6);
    --mediumgradient: linear-gradient(
        100deg,
        var(--mediumgradient1),
        var(--mediumgradient2)
    );

    --lightgradient1: rgba(119, 184, 42, 0.2);
    --lightgradient2: rgba(1, 142, 57, 0.2);
    --lightgradient: linear-gradient(
        100deg,
        var(--lightgradient1),
        var(--lightgradient2)
    );

    --footergradient1: #018e39;
    --footergradient2: #02704f;
    --footergradient: linear-gradient(
        177.5deg,
        var(--footergradient1),
        var(--footergradient2)
    );

    --shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

@supports not (clip-path: url()) {
    .clippath {
        clip-path: none !important;
        bottom: 0 !important;
    }
}

html {
    color: var(--black);
}

.print_only {
    display: none;
}

br.no_break {
    display: none;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    overflow: hidden;
}

.site-wrapper > div:not(.headerslider) {
    flex-grow: 1;
    align-items: stretch;
    /* flex-direction: row-reverse;
    justify-content: flex-end; */
}

main {
    width: 100%;
}

.box {
    border-radius: var(--radius);
    background-color: var(--primary);
    color: var(--white);
    padding: var(--gap);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.settings_wrapper .box *:not(.button),
.box.content_block *:not(.button) {
    color: inherit;
}

.settings_wrapper > .notify-box {
    max-width: 100vw;
    width: 60rem;
}

.settings_wrapper > .notify-box ul {
    max-height: 75vh;
    overflow: auto;
}

.notify-box a.button {
    align-items: center;
}

.notify-box a.button > :first-child {
    flex-grow: 1;
}

.notify-box a .h4:only-child {
    margin: 0;
}

.notify {
    position: relative;
    display: block;
}

.notify .badge {
    position: absolute;
    left: 100%;
    top: 0;
    display: flex;
    line-height: 1;
    border-radius: 50%;
    height: 0.5em;
    width: 0.5em;
    background-color: var(--orange);
    color: transparent;
    transform: translate(-50%, -50%);
}

.notify .badge:empty {
    display: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--orange);
}

.highlight {
    color: var(--primary);
    font-weight: 900;
}

h3,
.h3 {
    font-weight: 500;
}

.button {
    padding: calc(var(--gap) / 2) calc(var(--gap) * 1.5);
    background-image: var(--gradient);
    color: var(--white);
    border-radius: var(--radius);
    display: inline-flex;
    gap: var(--gap);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 1;
    position: relative;
    cursor: pointer;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
    font-weight: 400;
}

.button:hover {
    color: var(--white);
}

.button:after {
    content: url(../images/arrow.svg);
    transition: all 0.3s ease;
}

.button:before {
    content: '';
    transition: all 0.3s ease;
    height: 100%;
    width: 200%;
    background-image: linear-gradient(
        90deg,
        var(--secondary) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    left: -200%;
    position: absolute;
    top: 0;
    z-index: -1;
}

.button:hover:before {
    left: 0;
}

.button:not(.toggler):hover:after {
    transform: translateX(0.5em);
}

.button.back {
    flex-direction: row-reverse;
}

.button.back:after {
    transform: rotate(180deg);
}

.button.back:hover:after {
    transform: translateX(-0.5em) rotate(180deg);
}

header {
    width: 100%;
}

header > * {
    width: 100%;
}

.headerslider {
    position: relative;
    z-index: 2;
}
.headerslider + div > * {
    padding-top: 0;
}

.headerslider > :not(.clippath) {
    z-index: 1;
}

.hide_in_toc {
    opacity: 1 !important;
}

.clippath {
    position: absolute;
    width: 100%;
    bottom: -4.8vw;
    /* opacity: 0; */
    pointer-events: none;
    background-image: url(../images/circles.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    z-index: -1;
    background-color: var(--secondary);
}

.clippath svg {
    width: 100%;
    height: auto;
}

.clippath svg:not(:first-child) {
    position: absolute;
    width: 100%;
    bottom: 4px;
    left: 0;
    pointer-events: none;
}

.headerslider .wrapper {
    color: var(--white);
    min-height: 10vw;
    line-height: 1.3;
}

.page-home .headerslider .wrapper {
    min-height: 14.5vw;
    padding-bottom: 2vw;
}

.headerslider .wrapper > .flexbox {
    align-items: center;
    gap: var(--gap);
    font-size: 2.1vw;
    font-weight: 750;
    line-height: 1.3;
}

.headerslider .wrapper .big {
    font-size: 1.2em;
}

.headerslider .wrapper .small {
    font-size: 0.75em;
}

.headerslider .box {
    align-self: flex-start;
}

.headerslider .logo {
    width: var(--column);
}

.headerslider .logo img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 110px;
}

.header-desktop {
    align-items: center;
}

/* .header-desktop {
    background-color: var(--background) !important;
}

.header-desktop nav ul li a {
    color: var(--black);
} */

.header-desktop > .flexbox {
    align-items: center;
    gap: calc(var(--gap) * 3);
    position: relative;
    z-index: 1;
}

.content_block {
    position: relative;
}

.content_block > span:first-child {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    visibility: hidden;
}

/*********************************************/

.searchBar {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.searchform-wrapper {
    position: relative;
}

.searchform-wrapper.only_mobile {
    margin-bottom: 10vw;
}

.searchform-wrapper.only_mobile form {
    padding: var(--padding);
    margin-bottom: 10vw;
}

.searchform_searchterm,
input,
textarea,
select,
.checkbox {
    width: 100%;
    outline: none;
    border: none;
    border-radius: var(--radius);
    font: inherit;
    line-height: 1;
    padding: 10px 20px;
    padding: calc(var(--gap) / 2) var(--gap);
    width: 100%;
    background-color: var(--white);
    position: relative;
    display: inline-block;
    box-shadow: var(--shadow);
}

option {
    padding: inherit;
    font: inherit;
    font-weight: 400;
}

fieldset {
    display: flex;
    gap: 1em;
    align-items: baseline;
}

.checkbox {
    width: auto;
    cursor: pointer;
    height: 2.5em;
    width: 4em;
    align-self: flex-start;
    overflow: hidden;
}

.checkbox + label {
    align-self: flex-start;
    margin-top: 0.5em;
}

.checkbox .toggle {
    display: block;
    height: 1.75em;
    width: 1.75em;
    background-color: var(--orange);
    border-radius: 50%;
    position: absolute;
    left: 1.25em;
    top: 1.25em;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.16);
}

.checkbox :checked + .toggle {
    background-color: var(--secondary);
    left: 2.75em;
}

.checkbox .toggle:before,
.checkbox .toggle:after {
    content: '';
    width: 66%;
    height: 1px;
    /* transform-origin: left center; */
    background-color: var(--white);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%);
    /* transition: all .3s ease; */
}

.checkbox .toggle:before {
    transform: translate(-50%) rotate(45deg);
}
.checkbox .toggle:after {
    transform: translate(-50%) rotate(-45deg);
}

.checkbox :checked + .toggle:before {
    width: 25%;
    transform-origin: left center;
    top: 75%;
    left: auto;
    right: 35%;
    transform: translateY(-50%) rotate(-135deg);
    /* transform: none; */
}
.checkbox :checked + .toggle:after {
    width: 50%;
    transform-origin: left center;
    top: 75%;
    left: 35%;
    transform: translateY(-50%) rotate(-45deg);
}

.checkbox input {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100% !important;
    height: 100%;
    cursor: pointer;
}

input[type='checkbox'],
input[type='radio'] {
    width: auto;
}

[name='searchQuerySubmit'] {
    width: 35px;
    height: 28px;
    margin-left: -35px;
    background: none;
    border: none;
    outline: none;
    position: relative;
}

[name='searchQuerySubmit']:hover {
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: center;
    gap: var(--gap);

    padding: calc(var(--gap) * 2) var(--padding);
    align-items: center;
}

footer ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    justify-content: center;
    gap: var(--gap);
}

.social-media-menu-wrapper ul {
    gap: 1rem;
}

.social-media-menu-wrapper img {
    width: 2.5em;
    display: block;
}

.social-media-menu-wrapper a:hover {
    opacity: 0.75;
}

aside {
    width: 100%;
}

body {
    background-color: var(--background);
}

.searchform_searchterm {
    padding-right: 50px;
}

/* featherlight ändert nicht Höhe / Breite */
html.with-featherlight .featherlight:last-of-type {
    background: var(--mediumgradient);
}

html.with-featherlight .featherlight .featherlight-content {
    height: 800px;
    max-height: 95vh;
    width: 1150px;
    max-width: 95vw;
    background-color: var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: inline-flex;
    flex-direction: column;
    color: var(--white);
    gap: var(--gap);
    text-align: center;
    border-bottom: 0;
    padding: var(--gap);
    /* align-items: center;
    justify-content: center; */
}

html.with-featherlight .featherlight .featherlight-image {
    width: 100% !important;
    height: 50% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
    flex-grow: 1;
}

html.with-featherlight .featherlight-next:hover,
html.with-featherlight .featherlight-previous:hover {
    background: var(--lightgradient);
    background-attachment: fixed;
}

html.with-featherlight .featherlight-next span,
html.with-featherlight .featherlight-previous span {
    color: var(--white);
    text-shadow: none;
}

html.with-featherlight .featherlight-previous {
    left: 0;
    top: 0;
    height: 100%;
}

html.with-featherlight .featherlight-next {
    right: 0;
    top: 0;
    height: 100%;
}

html.with-featherlight .featherlight .featherlight-close-icon {
    line-height: 5rem;
    width: 5rem;
    background: none;
    color: var(--white);
    font-size: 3rem;
}

html.with-featherlight .featherlight-content .caption {
    position: static;
    background: none;
    padding: 0;
}

.label {
    background-color: var(--white);
    color: var(--secondary);
    display: inline;
    padding: 0.25em 1em 0.25em var(--gap);
    border-radius: 0 1em 1em 0;
    line-height: 1;
    font-size: 0.8em;
    margin-right: 1em;
}

.label:empty {
    display: none;
}

a.readmore,
span.readmore {
    margin-left: auto;
    max-width: 100%;
    width: fit-content;
    margin-top: -1.5em;
    position: relative;
    z-index: 2;
    margin-right: var(--gap);
    justify-content: flex-end;
    text-align: right;
}

#pagination {
    display: flex;
    justify-self: center;
    align-items: baseline;
    gap: var(--gap);
    margin-top: 2rem;
}

.pagination-menu {
    display: flex;
    color: var(--white);
    justify-self: center;
    align-items: baseline;
    gap: calc(var(--gap) / 2);
    flex-wrap: wrap;
}

#pagination .pagination-menu a {
    text-decoration: none;

    background: var(--secondary);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    text-align: center;
    width: 2em;
    height: 2em;
    align-items: center;
    justify-content: center;
}

#pagination .page.active {
    opacity: 0.5;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.background,
.contentimages_wrapper .background {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contentimages_wrapper .background {
    background-image: none !important;
    background-color: #fff;
    text-align: center;
}

.background
    img:not(.newsarchive .background img):not(
        .contentimages_wrapper .background img
    ) {
    opacity: 0;
    display: block;
    width: 100%;
}
.contentimages_wrapper .background img {
    /* opacity: 1; */
    display: block;
    /* width: auto; */
    max-width: 100%;
    margin: auto;
}
/* 
.newsarchive .background img {
    width: auto;
} */

.thumbnail {
    /* min-height: 200px; */
    background-repeat: no-repeat;
    background-position: center;
    /* background-size: cover; */
    background-size: contain;
    padding: var(--gap) 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.thumbnail.no_scale {
    background-size: auto;
}

.thumbnail.no_scale img {
    object-fit: scale-down;
}

.news_box .thumbnail:not(.background):not(.background-default) {
    padding-bottom: 0;
}

.news_box .thumbnail.background-default {
    padding-bottom: 50%;
    background: var(--primary);
    background-image: var(--default_image, var(--gradient)), var(--gradient);
    background-position: center;
    background-size: 50% auto, cover;
    background-repeat: no-repeat;
    padding-top: 0;
}

.news_box .thumbnail {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    padding-bottom: 50%;
}

.news_box .thumbnail.background:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    background-image: var(--gradient);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.news_box .thumbnail.background {
    background-image: none !important;
}

.news_box .thumbnail.background img {
    opacity: 1 !important;
}

.news_box .thumbnail.no_padding {
    /* padding: 0; */
    flex-grow: 1;
    background-size: contain;
    background-color: var(--white);
}

.news_box .thumbnail.no_padding + .news_title {
    flex-grow: 0;
}

.thumbnail img {
    /* opacity: 0;
    width: 100%; */
    /* display: none; */
    position: absolute;
    z-index: 2;
    left: 50%;
    max-height: 100%;
    /* height: auto; */
    max-width: 100%;
    /* width: auto; */
    top: 50%;
    transform: translate(-50%, -50%);
}

.thumbnail .label {
    z-index: 3;
}

.news_box .thumbnail img {
    /* margin-top: calc(0px - var(--gap)); */
    /* margin-bottom: calc(0px - var(--gap)); */
    /* height: fit-content; */
    object-fit: contain;
    /* margin-bottom: calc( 0px - (var(--gap) * 2) - 2em ); */
    opacity: 1;
}

.news_box .thumbnail.background-default .label,
.news_box .thumbnail img + .label {
    position: absolute;
    top: var(--gap);
    left: 0;
    max-width: 90%;
    box-shadow: var(--shadow);
}
/* 
.news_box .thumbnail img:not(:only-child) {
    margin-top: calc(0px - var(--gap));
    margin-bottom: calc(0px - var(--gap));
} */

.news_box .box > .news_title:only-child {
    margin-top: var(--gap);
}

.news_box .box > :last-child {
    padding-bottom: 2em;
}

.thumbnail.background-default {
    min-height: 0;
}

.dark_background {
    color: var(--white);
    position: relative;
    overflow: visible;
}
.dark_background:not(.box) {
    padding: calc(var(--gap) * 1.5) 0;
}

.dark_background:after {
    content: '';
    background-color: var(--primary);
    z-index: -1;
    /* width: 100%; */
    height: 100%;
    left: -100vw;
    top: 0;
    right: -100vw;
    bottom: 0;
    position: absolute;
}

.dark_background.box:after {
    top: calc(0px - var(--gap) * 1.5);
    bottom: calc(0px - var(--gap) * 1.5);
    height: auto;
}

.content_block.box {
    background-color: var(--secondary);
}

.content_block.dark_background
    + .content_block.dark_background:not([class*='lg_']) {
    margin-top: calc(0px - var(--gap) * 2);
}

.read_more {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

figcaption {
    font-size: 1.3rem;
    color: var(--primary);
}

figure {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.content {
    width: 100%;
}

.content ul ul li:before {
    content: '';
    /* background-image: url(../images/arrow-right-green.svg); */
    background-color: var(--secondary);
    /* background-position: center;
    background-repeat: no-repeat;
    background-size: contain; */
    /* left: -32px; */
    /* top: .75em; */
    /* width: 22px; */
    /* height: 1em; */
}

.box .content ul li:before {
    content: '';
    /* content: url(../images/arrow-right.svg); */
    background-color: var(--white);
}
.box .content ul ul li:before {
    /* background-image: url(../images/arrow-right.svg); */
    background-color: var(--white);
}

.content a:not(.button) {
    color: var(--primary);
}

.content.box a:not(.button) {
    color: var(--secondary);
}

.content a:not(.button):hover {
    color: var(--orange);
}
.read_box,
.share_box {
    z-index: 10;
    flex-direction: row;
    gap: 0.5em;
    padding: 0.5em;
    align-items: baseline;
}

.share_box {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5em);
    padding-left: var(--gap);
}

.read_box {
    position: fixed;
    left: 0;
    bottom: 1em;
    z-index: 100;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    /* gap: var(--gap); */
    padding-left: var(--gap);
    padding-right: var(--gap);
}

.read_box .button {
    font-size: 2em;
    padding: 0;
    line-height: 4.5rem;
    height: 5rem;
    width: 5rem;
    display: inline-flex;
    justify-content: center;
    align-items: normal;
}

.read_box .button.active {
    opacity: 0.75;
    cursor: default;
}

.read_box:focus-within {
    display: block !important;
}

.toggler {
    transition: all 0.3s ease;
    margin-bottom: 0;
    width: fit-content;
    max-width: 100%;
}

/* .toggler.open { */
/* margin-left: var(--gap);
    margin-right: var(--gap); */
/* } */

.field {
    padding-top: var(--gap);
    padding-bottom: var(--gap);
}

.accordion {
    display: flex;
    gap: var(--gap);
    flex-direction: column;
    align-items: stretch;
}

.search-result h2 {
    margin-top: -0.2em;
}

.content #searchresult_block {
    gap: calc(var(--gap) * 2);
}

.search-result:not([data-type='5048']) {
    border-radius: var(--radius);
    background-color: var(--white);
    padding: var(--gap);
    gap: var(--gap);
    overflow: hidden;
    box-shadow: var(--shadow);
}

[data-type='5048'] .contact-item {
    width: 100%;
}

.search-result h2 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5em;
    margin-bottom: 0;
}

.search-result h2 a {
    color: inherit !important;
}

input.shake {
    animation: shake 0.2s ease-in-out 0s 8;
}

@keyframes shake {
    0% {
        transform: translateX(0rem);
    }
    25% {
        transform: translateX(0.5rem);
    }
    75% {
        transform: translateX(-0.5rem);
    }
    100% {
        transform: translateX(0rem);
    }
}

.settings_wrapper {
    padding: 0 var(--padding);
    max-width: 100%;
    justify-content: center;
    position: absolute;
    top: 100%;
    transition: all 0.3s ease;
}

.settings_wrapper > * {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: auto;
    display: inline-flex;
    padding-top: 0.5em;
    position: absolute;
    top: 0;
}

.settings-box .button {
    font-size: 2em;
    padding: 0;
    line-height: 4.5rem;
    height: 5rem;
    width: 5rem;
    display: inline-flex;
    justify-content: center;
    align-items: flex-start;
}

.settings-box .button-wrapper {
    justify-content: center;
}

html[style='font-size: 8px;'] #buttonMinus {
    opacity: 0.5;
    cursor: default;
}
.search.dark_background.content .button-wrapper.readmore {
    margin-left: auto;
    transform: translateY(1.5em);
    margin-bottom: calc(0px - var(--gap) * 1.5);
}

.search.dark_background.content {
    margin-bottom: 1.5em;
}

#icon-menu .active img {
    filter: drop-shadow(1px 1px 3px var(--black)) opacity(0.75);
}

/* Ansprechpartner */

.contact-wrapper.grid {
    row-gap: calc(var(--gap) * 3);
    align-items: stretch;
    grid-template-columns: repeat(auto-fill, minmax(27.5rem, 1fr));
}

.contact-wrapper {
    flex-wrap: wrap;
    align-items: stretch;
}

.contact-item.box *,
.contact-item.box .content a:not(.button) {
    color: inherit;
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: var(--gap);
    /* flex-grow: 1; */
    flex-shrink: 0;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    min-width: min-content;
    width: calc((100% - var(--gap)) / 2);
}

@media screen and (min-width: 769px) {
    .contact-item.has_image .background,
    .contact-item .info {
        max-width: 100%;
        width: calc(25% - (var(--gap) / 2));
        min-width: 20rem;
        padding: 0;
    }
    .contact-item.has_image .background {
        background-size: contain;
        background-color: var(--primary);
    }

    .contact-item.has_image {
        width: 100%;
    }
}

.contact-item .info {
    flex-grow: 1;
}

.contact-item .info > div {
    display: flex;
    gap: 0.5em 1em;
    flex-wrap: wrap;
    align-items: baseline;
}

.contact-item .info > div > strong {
    min-width: 7rem;
}

.contact-item .info > div > strong + ul,
.contact-item .info > div > strong + div {
    width: 100%;
}

.contact-item .field {
    color: var(--black);
}

.content .contact-item .field ul li:before {
    /* content: url(../images/arrow-right-green.svg); */
    content: '';
    background-color: var(--secondary);
}

.contact-item .info ul {
    max-width: 100%;
}

.contacts_overview .field > .accordion:first-child ul ul,
.contact-item .info ul ul {
    margin-top: 0.25em;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    column-gap: var(--gap);
}

.contacts_overview .field > .accordion:first-child ul ul li,
.contact-item .info ul ul li {
    /* width: fit-content; */
    max-width: 100%;
    display: inline-block;
    padding: 0.25em var(--gap);
    border-radius: var(--radius);
    background: var(--lightgradient);
}

.contacts_overview .field > .accordion:first-child ul ul li:before,
.contact-item .info ul ul li:before {
    content: none !important;
}

input:focus:not(:hover),
select:focus(:not:hover),
textarea:focus:not(:hover) {
    outline: 3px solid var(--orange);
}

.splide__arrow:disabled {
    display: none;
}

.news_box:focus {
    border: none !important;
}

.news_box:focus .button:not(.hover) {
    outline: 2px solid var(--orange);
}

#event_calendar a:focus {
    outline: 2px solid var(--white);
}
