@import url('https://fonts.verwaltungsportal.de/import/?family=Nunito:400,700,400i,700i%7CCairo:400,700');

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

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

a {
    color: #262626;
}

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

#content a,
b,
strong {
    font-weight: 700;
}

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

#logo {
    display: inline-block;
    position: relative;
    z-index: 51;
}

#logo img {
    display: block;
    padding: 10px;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 250px;
        padding: 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: #f59a35;
        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: #f59a35;
        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 {
        background-color: #f59a35;
    }

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

    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:focus-within, :hover)>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-within)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #262626;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px 15px 15px;
    text-transform: uppercase;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Cairo", serif;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

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

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

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 20px;
    height: 9px;
    display: block;
    position: absolute;
    left: 30px;
    bottom: 0;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
    background-color: #fdf0ce;
    opacity: 0;
    transition: opacity 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        left: calc(50% - 15px);
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

    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: #262626;
    font-weight: 300;
    text-align: center;
    padding: 8px 25px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

    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: #f59a35;
    color: #262626;
}

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


/* #region ------------------------------------ banner ------------------------------------------ */
#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #headerpic > .row {
        max-width: 100%;
        width: 100%;
    }

    #headerpic > .row > div {
    padding-left: 0;
    padding-right: 0;
    }
}

@media (min-width: 992px) {
    .bgHeaderpic {
        position: relative;
    }

    .bgHeaderpic::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        right: -10px;
        width: 10px;
        height: 100%;
        background: url('../img/schmuck-header.png') repeat-y;
    }
}


#slider {
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #slider {
        max-height: 500px;
    }
    body.index #slider {
        max-height: 740px;
    }
    #headerpic a.nivo-prevNav {
        left: 65px;
    }
    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

.slider-wrapper,
#slider {
    height: auto !important;
}

.slider-mask {
    display: none;
}

/* ---------------------------------------- tab with border ------------------------------------- */
@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        width: 100%;
        bottom: 40px;
        z-index: 55;
    }
}

 #bannerOverlay .tab {
    background-color: #f8eb50;
    padding: 40px 25px;
    color: #262626;
    font-size: 1.125rem;
    position: relative;
    right: 0px;
    left: 0;
 }

 @media (min-width: 992px) {
     #bannerOverlay .tab {
        right: -60px;
        left: unset;
    }

     #bannerOverlay .tab::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: -23px;
        width: 24px;
        height: 60px;
        background: #f8eb50;
        clip-path: polygon(100% 0, 0 50%, 100% 100%);
    }
 }

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

.button-style a {
    color: #262626;
    background: #f59a35;
    text-transform: uppercase;
    font-family: "Cairo", serif;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    font-size: 0.9375rem;
    text-decoration: none;
    min-width: 110px;
    padding: 4px clamp(10px, 2vw, 20px);
    margin-top: 22px;
    transition: background-color 300ms linear, color 300ms linear, border 100ms linear;
}

.button-style a:is(:hover, :focus) {
    background: #f8eb50;
    color: #262626;
}

.button-style a+a {
    margin-left: 20px;
}

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

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

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
    padding-top: 30px;
    padding-bottom: 60px;
}

#nw1>.row {
    row-gap: 30px;
    position: relative;
}

#nw1 > .row::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0px;
    left: -340px;
    width: 479px;
    height: 444px;
    background: url('../img/wasserzeichen-hg.png') no-repeat;
}

#nw1 .tab {
    color: #262626;
}

#nw1 .tab a {
    color: #262626;
    text-decoration: underline;
}

#nw1 .tabHeadline {
    color: #262626;
    font-weight: 700;
    hyphens: auto;
    font-size: clamp(1.75rem, 2vw, 2rem);
}

#nw1 .tab,
#nw1 .tab_link,
#nw1 .tab_link>div {
    height: 100%;
    min-height: 100%;
}

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

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

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

#nw1 .tab_link_entry {
    font-size: 1rem;
    position: relative;
    width: 100%;
    border-radius: 3px;
    padding: 160px 30px 30px 30px;
    background: #4ec2f4;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

#nw1 .tab_link_entry:nth-child(4n+2) {
    background: #66b551;
}
#nw1 .tab_link_entry:nth-child(4n+3) {
    background: #e9428d;
}
#nw1 .tab_link_entry:nth-child(4n+4) {
    background: #f8eb50;
}

#nw1 .vorschau {
    opacity: 1;
}

#nw1 .tab_preview_picture {
    background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 120px;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
}

#nw1 .tab_link_entry::before {
    content: "";
    background: center / cover no-repeat, #666666;
}

#nw1 .tab_preview_picture img {
    position: absolute;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 350px;
    width: auto;
    height: auto;
    -ms-interpolation-mode: bicubic;
    transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_link_date {
    display: inline-block;
    position: absolute;
    z-index: 1;
    left: -1px;
    top: 105px;
    font-weight: 600;
    color: #262626;
    font-size: 0.75rem;
    padding: 6px 20px;
    background: #0c83b6;
    border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_entry:nth-child(4n+2) .tab_link_date {
    background: #51923f;
}
#nw1 .tab_link_entry:nth-child(4n+3) .tab_link_date {
    background: #e51f78;
}
#nw1 .tab_link_entry:nth-child(4n+4) .tab_link_date {
    background: #dacb1e;
}

#nw1 .tab_link_title a {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #262626;
    line-height: 1.2;
    margin-bottom: 8px;
}

#nw1 .tab_link_entries+div,
#nw1 .tab_link_entries .tab_spacer,
#nw1 .tab_link_entry>div:nth-last-child(2) {
    display: none;
}

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

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

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

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

}

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

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

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

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

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

#footer {
    background: url('../img/schmuck-footer.png') top center repeat-x, #fdf0ce;
    padding: 40px 0;
    color: #262626;
    font-size: 1rem;
}

@media (max-width: 991px) {
    :is(#footer, #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: 0;
        padding-top: 0;
    }
}

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

.footerHeadline {
    color: #262626;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 1.5625rem;
}

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

#innerfooter {
    color: #262626;
    background-color: #f59a35;
    padding: 20px 0;
    font-family: "Cairo", serif;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

.innerfooter a {
    color: #262626;
    text-decoration: none;
    display: inline-block;
    padding: 10px 12px;
}

.innerfooter a:is(:hover, :focus) {
    color: #262626;
    background: rgba(255, 255, 255, 0.08);
}

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

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

#scroll-top {
    font-size: 0;
    width: 33px;
    height: 33px;
    display: block;
    position: relative;
    margin: 0 auto;
    background: #ffffff;
}

@media (min-width: 768px) {
    #scroll-top {
        margin-right: 0;
    }
}

@media (min-width: 992px) {
    #scroll-top {
        margin: 0;
    }
}

#scroll-top::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-top: 10px;
    display: inline-block;
    border-right: 3px solid #262626;
    border-top: 3px solid #262626;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

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

#vernetzt {
    gap: 14px;
    text-align: right;
    color: #262626;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.8125rem;
}

#vernetzt span span {
    display: block;
}