@import url('https://fonts.verwaltungsportal.de/import/?family=DM+Sans:400,600,400i,600i');

:root {
    --primary-color: #add53b;
    --secondary-color: #e3de3f;
    --tertiary-color: #1f2b5a;
    --text-color: #4d4d4d;
    --dark-text-color: #303030;

    --weight-normal: 400;
    --weight-bold: 600;

    --shadow: 0 3px 6px rgba(0, 0, 0, 0.16);

    --distance-min: 40px;
    --distance-small: clamp(var(--distance-min), 4vw, 60px);
    --distance-medium: clamp(var(--distance-min), 6vw, 80px);
    --distance-large: clamp(var(--distance-min), 6vw, 120px);

    --light-background: #fcfbea;
}

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #e6f2c4;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: var(--tertiary-color) #e6f2c4;
}

body {
    font-family: "DM Sans", sans-serif;
    font-weight: var(--weight-normal);
    color: var(--text-color);
    background: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
}

@media (min-width: 992px) {
    body {
        font-size: 1.125rem;
    }
}

a,
a:is(:hover, :focus) {
    color: var(--tertiary-color);
}

a:is(:hover, :focus),
:is(header, main) a {
    text-decoration: underline;
}

b,
strong {
    font-weight: var(--weight-bold);
}

hr {
    opacity: 1;
    background: rgba(48, 48, 48, 0.3);
}

#overflow {
    overflow: clip;
}

.row.large-row {
    max-width: 1650px;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

nav.horizontally {
    padding: 21px 0;
    background: #ffffff;
    box-shadow: 0 20px 30px #ffffff;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 20px;
        padding: 6px 8px;
        cursor: pointer;
        background: var(--tertiary-color);
        border: none !important;
        box-shadow: none;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: var(--secondary-color);
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
        display: block;
    }

    #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 {
        padding: 20px 15px;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #fff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 1001;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: 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: 1002;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 28px 0;
        position: sticky;
        top: 0;
        z-index: 1010;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        column-gap: clamp(20px, 2vw, 40px);
        justify-content: space-between !important;
        align-items: center !important;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: -29px;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        top: 0;
        left: 100%;
    }

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

@media (min-width: 1200px) {
    nav.horizontally {
        padding: 39px 0;
    }

    nav.horizontally .navbar-nav {
        justify-content: end !important;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: var(--tertiary-color);
    font-weight: var(--weight-bold);
    text-align: left;
    padding: 10px 15px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

nav.horizontally li[class*="toplevel"]:not(:last-child):not(:nth-last-child(2))>a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: var(--primary-color);
    pointer-events: none;
    opacity: 0;
    transition: 200ms opacity linear, 200ms width linear;
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
    opacity: 1 !important;
    width: 100% !important;
}

/* secondlevel + thirdlevel dropdown-box */

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        border-radius: 2px;
        padding: 18px 0;
        background-color: #fff;
        box-shadow: var(--shadow);
    }

    nav.horizontally [class*="toplevel"] ul::before {
        content: "";
        position: absolute;
        display: block;
    }

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

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

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

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

/* secondlevel + thirdlevel */

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]).dropdown-toggle2 {
    padding-right: 35px;
}

/* secondlevel + thirdlevel over */

nav.horizontally li: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) {
    color: var(--tertiary-color);
}

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

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

.tab {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.small-tab {
    border-radius: 24px;
}

.large-tab {
    border-radius: clamp(24px, 2vw, 30px);
}

.tab-icon img {
    display: inline-block;
    border-radius: 50%;
    background: #ffffff;
    object-fit: scale-down;
    width: 60px;
    height: 60px;
    border: 14px solid white;
}

.tab-icon .template-page :is(.row, .row>*) {
    position: static;
}

.tab-icon-position img {
    top: 20px;
    right: 20px;
    position: absolute;
}

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

/* #region ----------------------------------- buttons ------------------------------------------ */

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"]:is(:nth-last-child(2), :last-child)>a {
        margin-top: 15px;
    }
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]:last-child>a {
        background: var(--primary-color);
        margin-left: -5px;
    }
}

nav.horizontally li[class*="toplevel"]:nth-last-child(2)>a {
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 11px 18px;
    transition: border 300ms linear;
}

nav.horizontally li[class*="toplevel"]:nth-last-child(2)>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"]:is(.open, [class*="_over"]):nth-last-child(2)>a {
    border-color: var(--tertiary-color);
}

nav.horizontally li[class*="toplevel"]:last-child>a,
.button-style a:not(.has-image):not(.slick-arrow) {
    background: var(--primary-color);
    border-radius: 30px;
    padding: 13px 18px;
    box-shadow: 0 5px 15px rgba(173, 213, 59, 0.15);
}

.button-style a:not(.has-image):not(.slick-arrow) {
    display: inline-block;
    text-decoration: none;
    font-weight: var(--weight-bold);
    line-height: 1.2;
}

nav.horizontally li[class*="toplevel"]:last-child>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"]:is(.open, [class*="_over"]):last-child>a,
.button-style a:not(.has-image):not(.slick-arrow):is(:hover, :focus) {
    color: #fff;
    background: var(--tertiary-color);
}

/* #endregion -------------------------------- buttons ------------------------------------------ */

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

body:not(.index) main {
    padding-top: var(--distance-medium);
}

body:not(.index)>aside {
    padding-bottom: var(--distance-medium);
}

/* --------------------------------------------- list ------------------------------------------- */

main ul:not(.slick-dots) {
    padding-left: 0 !important;
    margin: 0 0 calc(clamp(4px, 0.6vw, 10px) * -1) 0 !important;
}

main ul:not(.slick-dots) li {
    list-style: none;
    position: relative;
    padding-left: 28px;
    margin-bottom: clamp(4px, 0.6vw, 10px);
}

main ul:not(.slick-dots) li::after {
    content: "";
    display: block;
    position: absolute;
    top: 5px;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: url('../img/check.svg') center no-repeat;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: var(--tertiary-color);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    font-family: "DM Sans", sans-serif;
    margin-bottom: 10px;
}

.headline-large-margin :is(h1, h2) {
    margin-bottom: clamp(20px, 3vw, 25px);
}

.index .large-heading :is(h1, h2) {
    font-weight: var(--weight-normal);
    font-size: clamp(1.875rem, 4vw, 3.125rem);
    margin-bottom: 20px;
}

header .large-heading :is(h1, h2) {
    color: var(--dark-text-color);
}

:is(h1, h2) :is(i, em) {
    color: var(--tertiary-color);
    font-weight: var(--weight-bold);
    font-size: 1.125rem;
    display: block;
    font-style: normal;
    margin-bottom: 8px;
}

h1,
.h1,
.legacy_h1,
.index main h2 {
    font-size: clamp(1.625rem, 3vw, 1.875rem);
}

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited),
.legacy_h4,
h5,
.h5,
.legacy_h5,
h6,
.h6,
.legacy_h6 {
    font-size: 1.25rem;
}

/* #region --------------------------------- decoration ----------------------------------------- */

@media (min-width: 1200px) {

    .dotted-before {
        --unit: 26px;
        position: relative;
    }

    .dotted-before::before {
        content: "";
        opacity: 0.2;
        position: absolute;
        background-image: radial-gradient(var(--tertiary-color) 3px, transparent 3px);
        background-size: var(--unit) var(--unit);
        width: calc(var(--unit) * 3);
        height: calc(var(--unit) * 8);
    }
}

/* #endregion ------------------------------ decoration ----------------------------------------- */

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

footer {
    line-height: 1.7;
    padding: var(--distance-medium) 0;
    background: var(--light-background);
}

footer>.row {
    row-gap: 30px;
}

footer>.row>*>* {
    width: 100%;
}

footer a {
    text-decoration: underline;
}

footer.template-page>.row {
    row-gap: 20px;
}

#innerfooter ul {
    padding: 0;
    width: 100%;
}

#innerfooter ul li {
    display: block;
}

#innerfooter ul a {
    padding: 3px 0;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
}

#innerfooter ul a:is(:hover, :focus) {
    color: var(--tertiary-color);
}

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