@import url('https://fonts.verwaltungsportal.de/css/?family=Source+Sans+3:300,400,300i,400i,600,300i,600i%7CGantari:600,600i,700,700i');

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

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

a {
    color: #9a0d32;
}

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

b,
strong {
    font-weight: 600;
}

#overflow {
    overflow: hidden;
}

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

#logo {
    color: #fff;
    display: inline-block;
}

#logo img {
    display: block;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: 0;
        z-index: 55;
        left: -6px;
    }

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

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        padding: 26px 0;
        background: #ffffff;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    }

    #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: #3c6a3b;
        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) {
    .sticky-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
    }

    nav.horizontally {
        padding: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        top: 0;
        max-width: 1930px;
        width: 100%;
        z-index: 101;
        transition: 300ms linear background;
    }

    .is-sticky nav.horizontally {
        background: #fff;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    }

    nav>.row {
        background: rgba(255, 255, 255, 0.95);
        padding: 0 5px;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

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

@media (min-width: 1200px) {
    #sticky-wrapper {
        top: 80px;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #505050;
    text-align: left;
    padding: 12px 15px;
    text-transform: uppercase;
    position: relative;
    font-family: "Gantari", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    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 a[class*="toplevel"] {
        padding: 36px 6px;
    }

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        bottom: unset;
        top: 0;
    }

    nav.horizontally a[class*="toplevel"][data-toggle="dropdown"]::after {
        content: "\203A";
        position: absolute;
        display: block;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        border-radius: 1px;
        display: inline-block;
        transition: border 300ms linear;
    }
}

/* 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: #3c6a3b;
    background-color: transparent;
}

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 {
    padding: 15px 0;
    margin: 0;
    background-color: #ffffff;
    border-radius: 2px;
}

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

@media(min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        box-shadow: 0 20px 12px -8px rgba(0, 0, 0, 0.12);
    }

    nav.horizontally [class*="toplevel"]>ul {
        left: 50%;
        transform: translateX(-50%);
    }

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

    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: #505050;
    font-weight: 400;
    text-align: center;
    padding: 10px 25px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media(max-width:991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
        padding: 10px 15px;
    }

    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: #3c6a3b;
    color: #ffffff;
}

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

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

header {
    position: relative;
    min-height: 300px;
}

#slider {
    height: clamp(300px, 62vw, 500px);
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        height: clamp(650px, 72vw, 740px);
    }
}

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

@media (min-width: 992px) {
    body.index #headerpic .nivo-controlNav {
        bottom: 130px;
        z-index: 99;
    }
}

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

@media (min-width: 768px) {
    #bannerOverlay {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        top: 80px;
        z-index: 53;
        pointer-events: none;
        box-shadow: 25px 0 15px -20px rgba(0, 0, 0, 0.2), -25px 0 15px -20px rgba(0, 0, 0, 0.2);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 150px), linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0)45%);
    }
}

@media (min-width: 1200px) {

    body.index #headerpic {
        margin-bottom: 80px;
    }

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

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

.slider-mask {
    display: none;
}

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

/* -------------------------------------------- buttons ----------------------------------------- */

.button-style a {
    color: #ffffff;
    background: #3c6a3b;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    padding: 6px 15px;
    border-radius: 2px;
    margin-top: 25px;
    font-family: "Gantari", sans-serif;
    font-weight: 600;
    text-shadow: none;
    backface-visibility: hidden;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 150ms linear;
}

.button-style a:is(:hover, :focus) {
    transform: scale(1.2);
}

/* #region ------------------------------------ teaser1 ----------------------------------------- */

#teaser1 {
    border-radius: 2px;
    background: #3c6a3b;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 20px 25px;
    position: relative;
    font-weight: 400;
    box-shadow: 0 55px 15px -40px rgba(0, 0, 0, 0.1);
    font-size: 1.125rem;
}

@media (min-width: 1200px) {
    #teaser1>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: -28px;
        left: -150px;
        width: 110px;
        height: 207px;
        background: url('../img/deko-illu-links.png') center no-repeat;
    }
}

#teaser1 a {
    color: #ffffff;
}

#teaser1>.row {
    row-gap: 15px;
}

@media (min-width: 768px) {

    #teaser1>.row>div {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

@media (min-width: 992px) {
    #teaser1 {
        margin-left: 50px;
        margin-right: 50px;
        padding: 11px 60px;
    }

    #teaser1-position {
        z-index: 65;
        margin-top: -130px;
        position: relative;
    }
}

#teaser1 :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    margin: 0;
    font-size: clamp(1.625rem, 4vw, 2rem);
}

/* #endregion --------------------------------- teaser1 ----------------------------------------- */

/* -------------------------------------------- tickerWrapper ----------------------------------------- */

#tickerWrapper {
    padding-top: 35px;
    font-size: 1.125rem;
}

.newsticker,
.newsticker a {
    color: #3c6a3b;
    font-weight: 400;
}

.newsticker-position {
    margin: 0;
}

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

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

body:not(.index) #content {
    padding-top: clamp(40px, 4vw, 60px);
}

@media (min-width: 992px) {
    #content {
        position: relative;
        z-index: 70;
    }
}

/* ----------------------------------------------- @2nw news -------------------------------------------- */

#nw2 {
    padding-top: 30px;
    padding-bottom: 0;
}

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

#nw2 .tabContent {
    font-size: 1rem;
}

#nw2 .hrStyleElement {
    background: #3c6a3b;
    opacity: 1;
}

#nw2 .specialHeadline {
    position: relative;
    color: #3c6a3b;
    font-size: clamp(1.25rem, 10vw, 2.625rem);
    margin-bottom: 0;
    hyphens: manual;
    word-break: break-word;
}

#nw2 .specialHeadline::after {
    content: '';
    position: absolute;
    display: inline-block;
    left: -8px;
    bottom: 0;
    width: 100px;
    height: 20px;
    background: #3c6a3b;
    opacity: 0.2;
}

#nw2 .tab_link_entries {
    display: grid;
    gap: 30px;
}

@media (min-width: 992px) {
    #nw2 .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}



#nw2 .tab_link_entry {
    color: #ffffff;
    padding: 20px;
    width: 100%;
    font-size: 1.125rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #3c6a3b;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
    #nw2 .tab_link_entry {
        padding: 40px 25px;
    }
}

#nw2 .tab_link_title a {
    color: #ffffff;
    font-size: 1.625rem;
    font-weight: 600;
    font-family: "Gantari", sans-serif;
    line-height: 1.1;
    margin-bottom: 4px;
}

#nw2 .tab_link_mehr {
    font-size: 0;
    color: transparent;
}

#nw2 .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 6px 25px;
    background: #3c6a3b;
    border: 1px solid #3c6a3b;
    transition: background 300ms linear;
    margin-top: 10px;
}

#nw2 .tab_link_mehr a:hover,
#nw2 .tab_link_mehr a:focus {
    color: #3c6a3b;
    background: #ffffff;
}

/* -------------------------------------------- teaser2 ----------------------------------------- */

#galerie .row,
#galerie .col-xs-6 {
    padding: 0;
    margin: 0;
}

#galerie {
    padding-bottom: 60px;
}

#galerie>.row {
    border-radius: 2px;
    border: 2px solid #346433;
    position: relative;
    background: #ffffff;
    box-shadow: 0 55px 15px -40px rgba(0, 0, 0, 0.1);
    font-size: 1.125rem;
    overflow: hidden;
    max-width: 1170px;
    margin: auto;
}

#galerie .galerie-button {
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 12;
}

#galerie .galerie-button a {
    border: 1px solid #fff;
}


#galerie .banner img,
#galerie .slick-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    margin-bottom: -1px;
}

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 3vw, 2.625rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(28px, 2vw, 2.125rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.625rem, 2vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: 1.5rem;
}

h6,
.h6,
.legacy_h6 {
    font-size: 1.375rem;
}

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

#footer {
    padding-top: clamp(30px, 3vw, 50px);
    padding-bottom: clamp(30px, 3vw, 50px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-size: clamp(1rem, 1vw, 1.125rem);
    position: relative;
}

@media (min-width: 1200px) {
    #footer>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: -70px;
        right: -100px;
        width: 93px;
        height: 183px;
        background: url('../img/deko-illu-lrechts.png') center no-repeat;
    }

    #footer .tab1 {
        padding-left: 40px;
    }
}

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

#footer .tabHeadline {
    color: #3c6a3b;
    margin: 0 0 10px 0;
    font-size: 1.75rem;
}

#footer iframe,
#footer .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

#footer a {
    color: #9a0d32;
    text-decoration: underline;
}

#footer a:is(:hover, :focus) {
    color: #3c6a3b;
}

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

.innerfooter-tab a {
    text-decoration: underline;
}

.innerfooter-tab p {
    display: inline-block;
}

.innerfooter-tab p+p {
    margin-left: 14px;
}

.innerfooter-tab img {
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 100%;
    object-fit: scale-down;
    object-position: center;
    background: #50794f;
}

#innerfooter {
    color: #ffffff;
    background: #3c6a3b;
    padding: 20px 0;
    font-size: 1rem;
}

#innerfooter a {
    color: #ffffff;
}

@media (max-width: 991px) {
    #innerfooter>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (min-width: 768px) {
    #innerfooter>.row>.col-xs-12:nth-child(2) {
        border: none;
        margin-top: unset;
        padding-top: unset;
    }
}

#innerfooter .innerfooter ul {
    padding: 0;
}

@media (min-width:500px) {
    #innerfooter .innerfooter li {
        display: inline-block;
    }

    #innerfooter .innerfooter li+li {
        margin-left: 20px;
    }
}

#innerfooter ul a {
    font-weight: 400;
    color: #d9f9df;
    display: inline-block;
}

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

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

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

#vernetzt span span {
    display: block;
}

#vernetzt strong {
    color: #d9f9df;
}