@import url("https://fonts.verwaltungsportal.de/import/?family=Lato:400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");

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

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

a {
    color: #1e75a4;
}

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

b,
strong {
    font-weight: 700;
}

@media (min-width: 1200px) {

    #topbar>.row,
    .horizontally>.row {
        max-width: 1570px;
        width: 100%;
    }

    #contentBox>.row,
    #footerKontakt>.row,
    #f5>.row {
        max-width: 1600px;
        width: 100%;
    }
}

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

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
    outline: 3px solid #0084ff !important;
}

/* ------------------------------------------- bannerHeadOver --------------------------------------------- */

@media (min-width: 992px) {
    #bannerHeadOver {
        position: absolute;
        pointer-events: none;
        top: 0;
        left: 0;
        right: 0;
        z-index: 102;
    }

    #topbar,
    .horizontally {
        pointer-events: all;
    }
}

/* ------------------------------------------- topbar --------------------------------------------- */

#topbar>.row {
    row-gap: 10px;
    background: #ffffff;
}

@media (max-width: 991px) {
    #topbar>.row {
        padding: 10px 0;
    }
}

#topbar span {
    color: #2e2e2e;
    font-size: 1rem;
    padding-right: 15px;
    text-transform: uppercase;
}

/* ------------------------------------------------ styler ---------------------------------------------- */

@media (min-width: 992px) {
    #style {
        margin-left: 30px;
        margin-right: 30px;
    }
}

#style button {
    padding: 0;
    border: none;
    color: #4b4b4b;
    display: inline-block;
    min-width: 28px;
    min-height: 28px;
    font-weight: 400;
    font-size: 1.25rem;
    text-align: center;
    background: #ffcc66;
    position: relative;
    line-height: 1;
    transition: color 300ms linear, background 300ms linear;
}

#style button+button {
    margin-left: 10px;
}

#style button:hover,
#style button:focus {
    color: #ffffff;
    background: #1d6712;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
    color: #000000;
    padding: 0;
    font-size: 0;
    border: unset;
    display: inline-block;
    text-align: center;
    width: 28px;
    height: 28px;
    font-weight: 400;
    background: #ffffff;
    border: 2px solid #333333;
    transition: border 300ms linear;
    position: relative;
    z-index: 1;
}

#contrast_style button:hover,
#contrast_style button:focus {
    border-color: #1d6712;
}

#contrast_style button+button {
    margin-left: 10px;
}

/* ----------------------------------------------- search ----------------------------------------------- */

form[id^="search"] {
    min-height: 39px;
    display: block;
    position: relative;
    background: #f2f2f2;
}

@media (max-width: 575px) {
    form[id^="search"] {
        display: inline-block;
    }
}

@media (min-width: 576px) {
    form[id^="search"] {
        margin-right: -15px;
    }
}

form [id^="search_input"] {
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    color: #2e2e2e;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: clamp(10px, 3vw, 40px);
    padding-right: clamp(65px, 11vw, 210px);
    min-height: 39px;
    width: 100%;
    display: block;
}

form [id^="search_submit"] {
    min-width: clamp(60px, 8vw, 153px);
    background: #ffcc66;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    font-weight: 700;
    font-size: clamp(0.75rem, 1vw, 1.125rem);
    color: #4b4b4b;
    text-shadow: 1px 1px 2px rgba(48, 48, 48, 0.15);
    text-transform: uppercase;
    transition: color 300ms linear, background 300ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    color: #ffffff;
    background: #1d6712;
}

[id^="search_input"]::-ms-input-placeholder {
    color: #2e2e2e !important;
}

[id^="search_input"]::-webkit-input-placeholder {
    color: #2e2e2e !important;
}

[id^="search_input"]::-moz-placeholder {
    opacity: 1;
}

[id^="search_input"]:-moz-placeholder {
    opacity: 1;
}

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
    outline-offset: -3px;
}

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

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: clamp(10px, 2vw, 25px);
    text-decoration: none;
}

@media (min-width: 992px) {
    #logo {
        padding-left: 30px;
    }
}

#logo .logoImg img {
    display: block;
}

@media (max-width: 991px) {
    #logo {
        flex-direction: column;
        align-items: start;
        align-content: start;
    }

    #logo .logoImg img {
        max-width: 210px;
        width: 100%;
    }
}

#logo .logoTxt {
    text-shadow: 1px 1px 2px rgba(48, 48, 48, 0.15);
    line-height: 1.2;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.375rem);
}

#logo .logoTxt :is(b, strong) {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        background: #1d6712;
        padding: 10px 0;
        position: static !important;
    }

    #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: #1d6712;
        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: #1d6712;
        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>.row {
        background: #1d6712;
    }

    nav.horizontally {
        transition: background 300ms linear;
    }

    .is-sticky nav.horizontally {
        background: #1d6712;
    }

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

    nav.horizontally .navbar-nav::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        width: 1px;
        height: 50px;
        background: #ffffff;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    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: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: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px 15px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(48, 48, 48, 0.15);
}

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 33px 10px;
        text-align: center;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background: url('../img/sonnenblume-untermenu-deko.png') bottom right no-repeat, rgba(255, 255, 255, 0.9);
    box-shadow: 0px 2px 8px 0px rgba(48, 48, 48, 0.1);
}

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

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -18px;
        margin-left: 6px;
        background: url('../img/sonnenblume-untermenu-deko2.png') bottom left no-repeat, rgba(255, 255, 255, 0.9);
    }

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

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

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

/* secondlevel + thirdlevel */

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

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"]) {
        clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    }

    nav.horizontally a:is([class*="thirdlevel"]) {
        clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 10% 100%, 0% 50%);
    }
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #186da1;
    color: #ffffff;
}

nav.horizontally li:is([class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #ffcc66;
    color: #2e2e2e;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

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

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

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

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

    .theme-nivo .nivo-controlNav {
        bottom: 60px;
    }
}

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

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

.slider-mask {
    display: block;
    background: url('../img/banner-maske.png') bottom -1px center / 100% auto no-repeat;
}

/* ------------------------------------------- contentBox ------------------------------------------ */

#contentBox {
    text-align: left;
    padding-bottom: clamp(30px, 3vw, 50px);
}

#contentCol {
    padding-top: clamp(30px, 5vw, 84px);
}

@media (max-width: 991px) {

    #tabsLeft,
    #tabsRight {
        margin: 30px auto 0 auto;
    }
}

@media (min-width: 992px) {

    #tabsLeft,
    #tabsRight {
        margin-top: -20px;
        z-index: 12;
        position: relative;
    }
}

/* ------------------------------------------- tabsLeft + tabsRight ------------------------------------------ */

#tabsLeft,
#tabsRight {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) and (max-width: 991px) {

    #tabsLeft,
    #tabsRight {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {

    #tabsLeft,
    #tabsRight {
        align-items: start;
        align-content: start;
    }
}

#contentBox .tab {
    width: 100%;
    hyphens: auto;
    max-width: 235px;
    margin: 40px auto 0 auto;
    position: relative;
    color: #2d2d2d;
    padding: 55px 12px 35px 12px;
    background: #ffffff;
    box-shadow: 0px 2px 8px 0px rgba(48, 48, 48, 0.1);
}

#contentBox .tab::before {
    content: "";
    display: block;
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    margin: auto;
    width: 85px;
    height: 85px;
    border-radius: 100%;
    background: #ffcc66 url('../img/icon-kalender.png') center no-repeat;
}

#contentBox #tab2::before {
    background-image: url('../img/icon-aktuelles.png');
}

#contentBox #tab3::before {
    background-image: url('../img/icon-gemeideverwaltung.png');
}

#contentBox #tab4::before {
    background-image: url('../img/icon-schule.png');
}

#contentBox .tab :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: #1d6712;
    font-size: 1.25rem;
    margin: 0 0 16px 0;
    text-align: center;
}

#contentBox .tab .clr-events-tab-h3{
    font-size: 1rem !important;
}

#contentBox .tab .tab_link_title a {
    color: #2d2d2d;
    font-weight: 700;
}

#contentBox .tab .tab_link_mandat a {
    color: #2d2d2d;
}

#contentBox .tab .tab_link_mehr {
    font-size: 0;
    text-align: center !important;
}

#tab4 a,
#contentBox .tab .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    color: #2d2d2d;
    text-transform: uppercase;
    padding: 8px 12px 7px 12px;
    background: #ffcc66;
}

#tab4 a {
    margin-top: 15px;
}

:is(#tab4, #contentBox .tab .tab_link_mehr) a:is(:hover, :focus) {
    color: #ffffff;
    background: #1d6712;
}

#contentBox .tab .eventclndr-tab {
    margin: 0 -12px 22px -12px;
}

#contentBox .tab #clr-events-hide>p:first-child {
    margin-bottom: 15px;
}

#contentBox .tab .tab_spacer {
    height: 15px;
}

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

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

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

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

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

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

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

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

/* ----------------------------------- footerKontakt ------------------------------------------- */

#footerKontakt {
    hyphens: auto;
    color: #ffffff;
    padding-top: clamp(30px, 8vw, 145px);
    padding-bottom: clamp(30px, 3vw, 40px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #010101;
    position: relative;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

#footerKontakt a {
    color: #ffcc66;
    text-decoration: underline;
}

#footerKontakt :is(h1, h2, h3, h4, h5, h6.tabHeadline) {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
}

#footerKontakt::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/footer-maske.png') top -1px center / 100% auto no-repeat;
}

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

#footerKontakt .iframetab iframe,
#footerKontakt .iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    min-height: 245px !important;
}

.logoTab {
    padding: 20px;
    background-color: #ffffff;
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
    background-color: #1d6712;
}

@media (max-width: 991px) {
    #f5 {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

#f5>.row {
    row-gap: 12px;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    padding: 33px 22px;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #ffffff;
    background: #1e75a4;
}

@media (max-width: 767px) {
    #innerfooter a {
        display: block;
        padding: 15px 22px;
    }

    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

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

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

#vernetzt span span {
    display: block;
}

/* --------------------------------------------- kontraste -------------------------------------------- */

.contrast_light_font #contentBox .tab,
.contrast_light_font #style button {
    border: 1px solid #ffffff !important;
}

.contrast_dark_font .is-sticky nav.horizontally,
.contrast_dark_font form [id^="search_submit"],
.contrast_light_font #contrast_style button {
    background-color: #ffffff !important;
}

.contrast_dark_font #style button {
    border: 1px solid #000000 !important;
}