@import url("https://fonts.verwaltungsportal.de/css/?family=Mulish:300,300i,400,400i,500,500i,600,600i,700,700i");

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

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

a {
    color: #8c5f1c;
}

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

b,
strong {
    font-weight: 700;
}

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

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

#topbar {
    background: #e6f2e9;
    border-bottom: 10px solid #86b542;
    padding: clamp(20px, 3vw, 50px) 0;
}

#topbar>.row {
    row-gap: 20px;
}

@media (max-width: 991px) {
    #topbar {
        padding-top: 0;
    }
}

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

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 30px;
    text-decoration: none;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: -76px;
        z-index: 12;
    }

    #logo .logoTxt {
        padding-bottom: 35px;
    }
}

#logo .logoImg img {
    display: block;
    padding: 35px 7px 18px 6px;
    background: #ffffff;
    box-shadow: 5px 5px 0px 0px rgba(134, 181, 66, 1), 0px 0px 5px 0px rgba(0, 0, 0, 0.10);
}

@media (max-width: 991px) {
    #logo .logoImg img {
        max-width: 210px;
        width: 100%;
    }
}

#logo .logoTxt {
    font-weight: 300;
    line-height: 1.2;
    color: #333333;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
}

#logo .logoTxt :is(b, strong) {
    color: #367346;
    font-weight: 700;
    display: block;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

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

#search {
    min-height: 45px;
    background: #ffffff;
    border-radius: 23px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

#search_input {
    color: #666666;
    font-size: 0.9375rem;
    font-style: italic;
    font-weight: 300;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 20px;
    padding-right: 55px;
    min-height: 45px;
    width: 100%;
}

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

#search_submit:hover {
    background-color: #f7f7f7;
}

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

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

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

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

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

@media (min-width: 992px) {
    #style {
        flex-wrap: wrap;
        color: #ffffff;
        padding: 10px 20px;
        border-radius: 23px;
        background-color: #367346;
    }

    #style h2 {
        font-size: 0.875rem;
        color: inherit;
        width: auto;
        margin: 0 10px 0 0;
        letter-spacing: 0;
    }

    #style button {
        padding: 2px 8px;
        font-size: 1.25rem;
        border: none;
        color: #ffffff;
        background: transparent;
        display: inline-block;
        line-height: 1;
        font-weight: 500;
    }

    #style button+button {
        border-left: 2px solid #ffffff;
    }

    #style button:is(:hover, :focus) {
        color: #ffffff;
        text-decoration: underline;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: relative !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: #86b542;
        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: 4px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        border-top: 10px solid #86b542;
        background: #ffffff;
        transition: border 300ms linear;
        border-bottom: 1px solid transparent;
    }

    .is-sticky nav.horizontally {
        border-bottom: 1px solid rgba(134, 181, 66, 0.5);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        border-bottom: 1px solid rgba(134, 181, 66, 0.5);
    }

    .is-sticky nav.horizontally .navbar-nav {
        border-color: transparent;
    }

    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;
        flex-grow: 1;
    }

    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: #333333;
    font-weight: 600;
    text-align: left;
    padding: 10px 35px 10px 15px;
    font-size: 1.125rem;
    line-height: 1.2;
    letter-spacing: 1px;
    position: relative;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 15px;
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 20px 0;
        text-align: center;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: '';
    position: absolute;
    pointer-events: none;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: #f4a430;
    transition: width 300ms linear;
}

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

/* 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: #367346;
}

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 {
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 20px 0;
    background-color: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

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

@media(min-width:992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 8px;
        border-top: 3px solid #86b542;
    }

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

    nav.horizontally [class*="toplevel"]>ul::after {
        top: -18px;
        left: 50px;
        width: 31px;
        height: 18px;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        background: #86b542;
    }

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

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

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        border-left: 3px solid #86b542;
    }

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

    nav.horizontally [class*="secondlevel"]>ul::after {
        top: 20px;
        left: -20px;
        width: 18px;
        height: 31px;
        clip-path: polygon(0 50%, 100% 100%, 100% 0);
        background: #86b542;
    }
}

/* secondlevel + thirdlevel */

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

@media (min-width:992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 9px 25px;
    }
}

/* 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: #ededed;
    color: #333333;
}

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

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

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

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

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

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

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

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

.slider-mask {
    display: none;
}

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

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

#contentBox {
    text-align: left;
    padding-top: clamp(30px, 4vw, 60px);
    padding-bottom: clamp(30px, 4vw, 70px);
}

body:not(.index) #contentBox {
    background: url('../img/Skyline-Lommatzsch.png') bottom center / 100% auto no-repeat;
}

@media (min-width: 1200px) {
    .index #contentBox {
        position: relative;
    }

    .index #contentBox>.row {
        z-index: 1;
    }

    .index #contentBox>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        top: -40px;
        right: -270px;
        width: 478px;
        height: 490px;
        background: url('../img/bildmarke-schule-hg.png') center no-repeat;
        z-index: -1;
    }
}

/* ------------------------------------------- tabsRight ------------------------------------------ */

#tabsRight {
    margin-top: 20px;
}

#tabsRight>*+* {
    margin-top: 30px;
}

@media (max-width: 991px) {
    #tabsRight {
        margin: 30px auto 0 auto;
    }
}

#tabsRight .tab {
    hyphens: auto;
    font-size: 1rem;
    padding: 35px 15px;
    background: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
}

#tabsRight .tab .tabHeadline {
    text-transform: uppercase;
    font-size: clamp(1.75rem, 2vw, 2.0625rem);
}

#tabsRight .tab.tab2 #clr-events-hide {
    padding: 20px;
}

#tabsRight .tab.tab2 {
    color: #333333;
    padding: 25px 0;
}

#tabsRight .tab.tab2 .tabHeadline {
    padding: 0 20px;
}

#tabsRight .tab.tab2 #clr-events-hide>P:first-of-type {
    display: none;
}

#tabsRight .tab.tab2.tab_link_title a {
    font-weight: 700;
    color: #367346;
}

#tabsRight .tab.tab2 .tab_link_mandat a {
    color: #333333;
}

#tabsRight .tab.tab2 .tab_link_mehr {
    font-size: 0;
    text-align: right !important;
    padding: 0 !important;
}

#tabsRight .tab.tab2 .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    color: #ffffff;
    padding: 7px 30px;
    border-radius: 10px;
    letter-spacing: 1px;
    background: #367346;
    transition: background 300ms linear, color 300ms linear;
}

#tabsRight .tab.tab2 .tab_link_mehr a:hover,
#tabsRight .tab.tab2 .tab_link_mehr a:focus {
    color: #333333;
    background: #f4a430;
}

/* ------------------------------------------- tabsBox ------------------------------------------ */

#tabsBox {
    padding-top: clamp(30px, 4vw, 50px);
    padding-bottom: clamp(30px, 7vw, 120px);
    background: url('../img/Skyline-Lommatzsch.png') bottom center / 100% auto no-repeat;
}

#tabsBox :is(h1, h2, h3) {
    font-size: clamp(1.75rem, 3vw, 2.8125rem);
}

#tabsBox a {
    text-decoration: underline;
}

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

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

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

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

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.625rem, 2vw, 2.1875rem);
}

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

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

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

/* ---------------------------------------------- tabs ------------------------------------------ */

#kontakt {
    background-attachment: fixed;
    background-color: #367346;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#kontakt .tab {
    padding: 60px clamp(40px, 6vw, 80px);
    color: #ffffff;
    background: rgba(54, 115, 70, 0.8);
}

#kontakt .tabHeadline {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: clamp(1.75rem, 2vw, 2.0625rem);
}

#kontakt .tabHeadline::after {
    content: "";
    display: block;
    height: 3px;
    width: 160px;
    background-color: #bcc8d1;
    margin: 10px auto 15px auto;
}

@media (min-width: 768px) {
    #kontakt .tabHeadline::after {
        margin-left: auto;
        margin-right: 0;
    }
}

#kontakt a {
    color: #ffffff;
    text-decoration: underline;
}

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

#footer {
    color: #636363;
    padding: 25px 0;
    background-color: #ffffff;
    border-bottom: 10px solid #f4a430;
}

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

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

#innerfooter ul {
    padding: 0;
}

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

    #innerfooter li+li {
        margin-left: clamp(20px, 3vw, 40px);
    }
}

#innerfooter a {
    color: #333333;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
}

#innerfooter a:is(:hover, :focus) {
    color: #367346;
}

/* ------------------------------------------ counter ------------------------------------------ */

#counter {
    font-weight: 500;
    position: relative;
    color: #333333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5px 17px;
    max-width: 235px;
    margin: auto;
    border: 1px solid rgba(51, 51, 51, 0.5);
}

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

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

#vernetzt span span {
    display: block;
}