@import url('https://fonts.verwaltungsportal.de/import/?family=Merriweather:300,400,400i,300i,700,700i');

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

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

a {
    color: #c55316;
}

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

b,
strong {
    font-weight: 700;
}

header {
    background-size: cover;
    background-repeat: no-repeat;
}

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

#topbar {
    position: relative;
    z-index: 5;
    margin-bottom: -30px;
    padding-top: 20px;
}


#topbar>.row {
    padding: 12px 0;
    background: url("../img/header-background.png") no-repeat right -5px bottom;
}


#logo {
    display: inline-block;
    background: #fff;
    border-radius: 10px;
    padding: 5px 20px;
    margin-bottom: -20px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);

}

#logo img {
    display: block;
    min-width: 139px;
}

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

/* #region ------------------------------- contrast + styler ------------------------------------ */

#stylerBox {
    margin-right: 5px;
    width: 100%;
    padding-top: 20px;
    column-gap: 30px;
}

#stylerBox button {
    color: #fff;
    padding: 2px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    background: #c55316;
    position: relative;
    font-size: 1.125rem;
    padding: 11px 6px;
    z-index: 1;
    line-height: 1;
    border: none;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.35);
}

#stylerBox #font_std {
    padding: 11px 12px;
}

#stylerBox button+button {
    margin-left: 10px
}

;

#stylerBox button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    bottom: -6px;
    right: -6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 150ms linear;
}

#stylerBox button:is(:hover, :focus)::before {
    opacity: 1;
}


/* #endregion ---------------------------- contrast + styler ------------------------------------ */

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

#slider {
    max-height: clamp(300px, 42vw, 445px);
    position: relative;
    border-top-left-radius: 10px;
}

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

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

#headerpic {
    padding: 0;
    border-top-left-radius: 10px;
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-shadow: 2.5px 4.33px 10px 0px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
    #headerpic {
        max-width: 1170px;
        height: 445px;
    }

    #headerpic::before {
        content: "";
        display: block;
        position: absolute;
        background: url('../img/Form1.png') center no-repeat;
        width: 15px;
        height: 23px;
        right: -16px;
        top: 24px;
    }
}

.slider-wrapper,
#slider {
    height: 100%;
    border-top-left-radius: 10px;
}

.slider-mask {
    display: none;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background: #ffffff;
        border: none !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #c55316;
        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: #c55316;
        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: 14px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #c55316;
        border-top: 5px solid #fff;
        position: sticky;
        top: 0;
        z-index: 101;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

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

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: -42px;
        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: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    background: transparent;
    text-decoration: none;
    transition: background 300ms linear;
}

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 33px 10px 24px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within),
nav.horizontally li[class*="toplevel"]:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open,
nav.horizontally li[class*="toplevel"].open:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"],
nav.horizontally li[class*="toplevel"][class*="_over"]:is(:hover, :focus) {
    background: url("../img/aktiv-gear.png") center top no-repeat;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: -4px;
    }

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

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

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

    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: 8px 25px 8px 40px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    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: #c55316 url("../img/hover-gear.png") left 10px center no-repeat;
    color: #ffffff;
}

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

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

#content {
    text-align: left;
    background-color: #fafafa;
    padding-bottom: clamp(40px, 6vw, 95px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#contentCol {
    padding-top: 30px;
}

#content>.row {
    row-gap: 40px;
}

/* #region -------------------------------------- tabs ------------------------------------------ */

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

@media (min-width: 576px) and (max-width: 991px) {
    #tabsLeft {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {

    #tabsRight {
        align-items: start;
        align-content: start;
        padding-top: 30px;
    }
}

.tabContent {
    padding-top: 20px;
    font-size: 0.875rem;
}

.tab {
    width: 100%;
    max-width: 360px;
    min-width: 269px;
    margin: 0 auto 0px auto;
    position: relative;
    padding: 20px 30px 20px 20px;
    background: #ffffff;
    font-size: 0.9375rem;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.35);
}

#tabsLeft .tabContent {
    line-height: 1.2;
}

#tabsLeft .tab::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    background: url('../img/banner-links.png')no-repeat;
    width: 280px;
    height: 55px;
}

#tabsLeft .tab::after {
    content: "";
    position: absolute;
    top: 60px;
    left: -15px;
    background: url('../img/ecke-links.png') no-repeat;
    width: 15px;
    height: 23px;
}

#tabsRight #tab2::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: -15px;
    height: 55px;
    background: #c55316;
    border-top-right-radius: 10px;
}

#tabsRight #tab2::after {
    content: "";
    position: absolute;
    top: 60px;
    right: -15px;
    background: url('../img/Ecke.png') no-repeat;
    width: 15px;
    height: 23px;
}

.tab :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: #fff;
    font-size: 1.375rem;
    margin: 0 0 16px 0;
    font-weight: 300;
    text-align: center;
    position: relative;
    z-index: 5;
    background-color: #c55316;
}


/* #endregion ----------------------------------- tabs ------------------------------------------ */

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

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

h1,
.h1,
.legacy_h1 {
    font-size: 2.125rem;
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.875rem;

}

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

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

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

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

.logotab h2 {
    color: #c55316;
    font-size: clamp(24px, 4vw, 42px);
    margin: 0;
    padding-top: 20px;
}

/* ----------------------------------------------- @19f footer ----------------------------------------------- */

#f19 {
    color: #ffffff;
    padding-top: 25px;
    padding-bottom: 25px;
    background-color: #c55316;
}

@media (max-width: 767px) {
    #f19 .row>.col-xs-12:not(:first-child)::before {
        background: #ffffff;
        content: " ";
        height: 1px;
        width: 100%;
        display: block;
        margin: 25px 0;
        opacity: 0.2;
    }

    #f19 .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    #f19 .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

@media (min-width: 768px) {
    #f19>.row>*:last-child {
        margin-top: 20px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

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

#counter {
    color: #ffffff;
    font-size: 1rem;
    padding: 5px 16px;
    margin: 0 auto;
    max-width: 235px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    #counter {
        margin-left: auto;
        margin-right: 0;
    }
}

#counter span {
    font-weight: 600;
    padding-right: 5px;
}

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

#vernetzt {
    text-align: left;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 400;
    display: inline-block;
    text-decoration: none;
}

@media (min-width: 1200px) {
    #vernetzt {
        margin-left: 20px;
    }
}

#vernetzt span {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-right: 16px;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
    color: #ffffff;
}

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

#innerfooter a:hover,
#innerfooter a:focus {
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "•";
    margin: 0 15px;
}

@media (min-width: 1200px) {
    #innerfooter li+li::before {
        margin: 0 40px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

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