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

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

body {
    font-family: "Raleway", sans-serif;
    color: #333333;
    background: #ffffff;
    font-size: clamp(1rem, 1vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
    box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.1);
}

a {
    color: #836e34;
}

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

b,
strong {
    font-weight: 600;
}

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

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

@media (min-width: 992px) {
    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

    #headerpic .theme-nivo .nivo-directionNav a {
        top: 5%;
    }

    header {
        padding-top: 40px;
    }

    #headerpic {
        max-width: 1200px;
        margin: auto;
        width: 100%;
    }
}

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

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

.slider-mask {
    display: none;
}

/* -------------------------------------------- bannerOverlay ------------------------------------------ */

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        pointer-events: none;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 12;
        display: flex;
        align-items: center;
        align-content: center;
    }

    #logo {
        text-align: center;
        pointer-events: all;
    }
}

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

#logo {
    color: #333333;
    line-height: 1.3;
    font-weight: 500;
    font-size: clamp(1.125rem, 2vw, 1.6875rem);
    padding: 35px 110px;
    display: inline-block;
    text-decoration: none;
    background: url('../img/deko-form-slogan.png') bottom left no-repeat, rgba(255, 255, 255, 0.85);
    border-bottom: 11px solid rgba(131, 110, 52, 0.85);
}

#logo :is(h1, h2, h3) {
    color: #ceb690;
    font-size: clamp(1.375rem, 3vw, 3.3125rem);
    margin: 0;
    margin-bottom: 10px;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #8e6f3e;
        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 .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .horizontally>.row {
        background: #ffffff;
        padding: 10px 0;
        border-bottom: 1px solid rgba(142, 111, 62, 0.5);
    }

    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: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: 400;
    text-align: left;
    padding: 10px 35px 15px 15px;
    font-family: "Kaushan Script", sans-serif;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 13px 0;
        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: #836e34;
    background-color: transparent;
}

/* secondlevel + thirdlevel dropdown-box */

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

@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: 10px;
    }

    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: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 9px;
    left: 0;
    width: 18px;
    height: 20px;
    background: url('../img/hover-kringel-menu.png') center no-repeat;
    transition: opacity 300ms linear;
    opacity: 0;
}

/* 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: transparent;
    color: #836e34;
}

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 {
    opacity: 1;
}

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

/* ---------------------------------------------- tabButton ------------------------------------------------ */

.tabButton {
    display: block;
    padding-top: 16px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
}

.tabButton a {
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
    padding: 7px 20px;
    background: #836e34;
    border: 1px solid #836e34;
    transition: color 300ms linear, background 300ms linear;
}

.tabButton a:hover,
.tabButton a:focus {
    color: #836e34;
    background: #ffffff;
}

@media (min-width: 992px) {
    .tabButton {
        margin-left: 30px;
        padding: 0;
    }

    #myNavbar.navbar-collapse.collapse {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-line-pack: center;
        align-content: center;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
    }
}

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

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

/* ----------------------------------------------- @2ev events -------------------------------------------- */

#ev2 {
    padding-top: clamp(30px, 4vw, 45px);
    padding-bottom: clamp(40px, 4vw, 50px);
}

#ev2>.row {
    row-gap: 35px;
}

#ev2 .tabHeadline {
    font-size: clamp(1.75rem, 2vw, 2rem);
    margin-bottom: 0;
}

#ev2 .tab_link {
    display: grid;
    gap: 30px;
}

#ev2 .tab_link_entries {
    counter-reset: section;
    display: grid;
    gap: 30px;
}

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

@media (min-width: 768px) {
    #ev2 .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#ev2 .tab_link_entry {
    color: #836e34;
    overflow: hidden;
    position: relative;
    padding: 45px 20px;
    background: #fdfcfb;
    border: 1px solid #836e34;
}

#ev2 .tab_link_entry::before {
    counter-increment: section;
    content: "0"counter(section);
    position: absolute;
    pointer-events: none;
    right: 31px;
    bottom: -37px;
    font-size: 180px;
    font-weight: 400;
    font-family: "Kaushan Script", sans-serif;
    color: #ceb690;
    line-height: 1;
    opacity: 0.2;
}

#ev2 .tab_link_title {
    margin-bottom: 6px;
}

#ev2 .tab_link_title a {
    display: block;
    color: #836e34;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

#ev2 .tab_link_date {
    font-weight: 500;
    font-size: 1rem;
}

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

#ev2 .tab_link_mehr a {
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    padding: 7px 20px;
    background: #836e34;
    border: 1px solid #836e34;
    transition: color 300ms linear, background 300ms linear;
}

#ev2 .tab_link_mehr a:hover,
#ev2 .tab_link_mehr a:focus {
    color: #836e34;
    background: #ffffff;
}

/* ------------------------------------------------ @14tab ----------------------------------------------- */

#tab14 {
    padding-bottom: clamp(30px, 4vw, 75px);
}

#tab14 .tab {
    font-size: 1rem;
    position: relative;
    min-height: 100%;
    padding: 20px;
    background-color: #fdfcfb;
    transition:
        border 400ms ease-in-out,
        margin 400ms ease-in-out,
        padding 400ms ease-in-out,
        min-height 400ms ease-in-out;
}

@media (max-width: 767px) {
    #tab14 .tab {
        border-top: 1px solid #836e34;
    }
}

@media (min-width: 768px) {
    #tab14 .tab {
        border-top: 1px solid #836e34;
        border-bottom: 1px solid #836e34;
        border-right: 1px solid #fdfcfb;
        border-left: 1px solid #fdfcfb;
    }

    #tab14>.row>*:nth-of-type(1)>.tab {
        border-left: 1px solid #836e34;
    }

    #tab14>.row>*:nth-last-of-type(1)>.tab {
        border-right: 1px solid #836e34;
    }

    #tab14 .tab:hover,
    #tab14 .tab:focus {
        min-height: calc(100% + 55px);
        margin-top: -55px;
        padding-top: 30px;
        border-color: #6d5c2c;
        background: url('../img/deko-form.png') top right no-repeat, #fdfcfb;
    }
}

@media (min-width: 1200px) {
    #tab14 .tab {
        padding: 20px 45px 45px 45px;
    }
}

#tab14 :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: #836e34;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    text-align: center;
}

#tab14>.row>* {
    padding: 0px;
}

@media (max-width: 767px) {
    #tab14 {
        margin: 15px;
    }

    #tab14>.row {
        border-radius: 30px;
        overflow: hidden;
    }
}

#tab14 :is(h1, h2, h3, h4, h5, h6, .tabHeadline)::before {
    content: '';
    pointer-events: none;
    display: block;
    width: 75px;
    height: 75px;
    margin: auto;
    margin-bottom: 10px;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#tab14 .tab1 :is(h1, h2, h3, h4, h5, h6, .tabHeadline)::before {
    background-image: url(../img/icon-aufgabe.png)
}

#tab14 .tab2 :is(h1, h2, h3, h4, h5, h6, .tabHeadline)::before {
    background-image: url(../img/icon-seminar.png)
}

#tab14 .tab3 :is(h1, h2, h3, h4, h5, h6, .tabHeadline)::before {
    background-image: url(../img/icon-beratung.png)
}

#tab14 .tab4 :is(h1, h2, h3, h4, h5, h6, .tabHeadline)::before {
    background-image: url(../img/icon-ausbildung.png)
}

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

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

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

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

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

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

@media (max-width: 767px) {
    #footer>.row>div+div {
        border-top: 1px solid #eff1f3;
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (min-width: 768px) {
    #footer>.row>div:not(:last-child) {
        padding-top: 10px;
        padding-bottom: 10px;
        border-left: 1px solid #eff1f3;
    }
}

#footer {
    padding: 30px 0;
    border-top: 3px solid #8e6f3e;
    color: #333333;
    font-size: 1rem;
}

@media (min-width: 1200px) {
    #footer {
        margin: 0 50px;
    }
}

#footer .footerContactTab a {
    position: relative;
}

#footer .footerContactTab :is(h1, h2, h3) {
    font-size: 1.5rem;
}

#footer a:is([href*="mailto:"], a[href*="tel:"]) {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    margin-top: 5px;
}

#footer a:is([href*="mailto:"], a[href*="tel:"])::before {
    content: '';
    display: block;
    position: absolute;
    height: 22px;
    width: 22px;
    background: url('../img/mail-icon.png') center no-repeat, #836e34;
    top: 50%;
    left: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

#footer a[href*="tel:"]::before {
    background: url('../img/phone-icon.png') center no-repeat, #836e34 !important;
}

#innerfooter ul {
    padding: 0;
    line-height: 1.7;
}

#innerfooter a {
    color: #333333;
    text-decoration: none;
    display: inline-block;
}

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

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

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

#vernetzt {
    gap: 8px;
    text-align: left;
    font-size: 0.875rem;
    color: #333333;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt b {
    color: #836e34;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------ scroll top ---------------------------------------- */

#scroll-top {
    font-size: 0;
    background-color: #836e34;
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: block !important;
    position: relative;
    margin: 0 0 0 auto;
}

#scroll-top:is(:hover, :focus) {
    background-color: #333333;
}

#scroll-top::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 9px;
    top: 12px;
    border-style: solid;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #ffffff transparent;
    transform: none;
}