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

:root {
    --main-color: #ffd42a;
    --secondary-color: #fedc48;
    --text-color: #333333;
    --light-background: #fffbd3;

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

    --shadow: 0 5px 15px 0 rgba(43, 43, 43, 0.15);

    --distance-min: 40px;
    --distance-small: clamp(var(--distance-min), 4vw, 65px);
    --distance-large: clamp(var(--distance-min), 7vw, 100px);
}

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    scrollbar-color: var(--text-color) #ffffff;
    scrollbar-width: thin;
}

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

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

:is(main, footer .template-page) a {
    text-decoration: underline;
}

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

@media (min-width: 1200px) {

    .row,
    .compact,
    ._op-container .container {
        max-width: 1550px;
        width: 100%;
    }
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

nav.horizontally {
    padding: 24px 0;
    background: #ffffff;
    box-shadow: 0 0 60px 0 rgba(43, 43, 43, 0.15);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

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

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

    .dropdown-toggle-button-wrapper {
        top: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 44px 0;
        transition: padding 150ms linear;
    }

    .is-sticky nav.horizontally {
        padding: 10px 0;
    }

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

    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: var(--text-color);
    font-weight: var(--weight-bold);
    text-align: left;
    padding: 10px 0;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-top: 10px;
    }

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

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

/* after ALL */

nav.horizontally a:not([class*="toplevel"][href*="demo"])::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--main-color);
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

/* over ALL */

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 18px 15px;
}

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

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

    nav.horizontally .dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
    }

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

    nav.horizontally [class*="secondlevel"]>.dropdown-menu::before {
        width: 30px;
        left: -30px;
        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 10px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

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

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

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

.navbar-nav>li>a[href*="demo"],
.button-style a:not(.has-image),
form[id^="form"] input[type="submit"]:not([value="Filtern"]) {
    color: var(--text-color);
    background: var(--main-color);
    background-image: none !important;
    padding: 10px 22px !important;
    display: inline-block;
    border: 1px solid transparent;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: var(--weight-bold);
    box-shadow: var(--shadow);
    line-height: 1.2;
    text-align: center;
}

#funktionen .button-style a:not(.has-image) {
    font-size: inherit;
    padding: 22px 30px !important;
    max-width: 765px;
    margin: 0 auto;
    font-size: 1.25rem;
}

:is(.navbar-nav>li>a[href*="demo"], .button-style a:not(.has-image), form[id^="form"] input[type="submit"]:not([value="Filtern"])):is(:hover, :focus) {
    color: var(--main-color);
    background: var(--text-color);
}

/* specific buttons */

@media (min-width: 992px) {
    header .button-style a:not(.has-image) {
        margin-top: 20px;
    }
}

.button-style-large a:not(.has-image) {
    font-size: 1.875rem;
    padding: 16px clamp(22px, 4vw, 70px) !important;
}

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

/* #region ------------------------------------ header ------------------------------------------ */

header {
    padding: 60px 0 90vw 0;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    background:
        url('../img/bild-banner-menschengruppe.webp') bottom 32px center / 120vw auto no-repeat,
        url('../img/button-transparent.webp') top 10px left 10px / 150px auto no-repeat,
        #fffef2;
}

body:not(.index) header {
    padding: 60px 0 40px 0;
    background:
        url('../img/button-transparent.webp') top 10px left 10px / 150px auto no-repeat,
        #fffef2;
}

@media (min-width: 576px) {
    header {
        padding-bottom: 450px;
        background:
            url('../img/bild-banner-menschengruppe.webp') bottom 32px center / 600px no-repeat,
            url('../img/button-transparent.webp') top 10px left 10px / 150px auto no-repeat,
            url('../img/stripes/deko-1.webp') bottom -300px right -200px no-repeat,
            #fffef2;
    }
}

@media (min-width: 768px) {
    header {
        padding: 120px 0 225px 0;
        background:
            url('../img/bild-banner-menschengruppe.webp') bottom 32px left calc(50% + 260px) / 750px no-repeat,
            url('../img/button-transparent.webp') top 10px left 10px / 200px auto no-repeat,
            url('../img/stripes/deko-1.webp') top -16px right -300px no-repeat,
            url('../img/bubbles/header-1.svg') top -80px left no-repeat,
            url('../img/bubbles/header-2.svg') top 84px left calc(50% + 334px) no-repeat,
            #fffef2;
    }

    body:not(.index) header {
        padding: 70px 0;
        background:
            url('../img/bild-banner-menschengruppe.webp') bottom -25px left calc(50% + 205px) / 500px auto no-repeat,
            url('../img/button-transparent.webp') top 10px left 10px / 200px auto no-repeat,
            url('../img/stripes/deko-1.webp') top -16px right -250px no-repeat,
            url('../img/bubbles/header-1.svg') top -80px left no-repeat,
            url('../img/bubbles/header-2.svg') top 84px left calc(50% + 334px) no-repeat,
            #fffef2;
    }
}

@media (min-width: 1200px) {
    header {
        background:
            url('../img/bild-banner-menschengruppe.webp') bottom 32px left calc(50% + 205px) no-repeat,
            url('../img/button-transparent.webp') top 10px left 38px no-repeat,
            url('../img/stripes/deko-1.webp') top -16px right no-repeat,
            url('../img/bubbles/header-1.svg') top -80px left no-repeat,
            url('../img/bubbles/header-2.svg') top 84px left calc(50% + 334px) no-repeat,
            #fffef2;
    }

    body:not(.index) header {
        padding: 70px 0;
        background:
            url('../img/bild-banner-menschengruppe.webp') bottom -25px left calc(50% + 205px) / 500px auto no-repeat,
            url('../img/button-transparent.webp') top 10px left 10px / 250px auto no-repeat,
            url('../img/stripes/deko-1.webp') top -16px right no-repeat,
            url('../img/bubbles/header-1.svg') top -80px left no-repeat,
            url('../img/bubbles/header-2.svg') top 84px left calc(50% + 334px) no-repeat,
            #fffef2;
    }
}

/* #endregion --------------------------------- header ------------------------------------------ */

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

#content {
    text-align: left;
    padding-top: clamp(var(--distance-min), 7vw, 100px);
    overflow: clip;
}

body:not(.index) #content {
    padding-bottom: clamp(var(--distance-min), 10vw, 130px);
}

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

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

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

.large-heading {
    font-size: clamp(38px, 6vw, 60px);
    margin-bottom: 20px;
}

.small-heading {
    font-size: inherit;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(32px, 4vw, 44px);
}

h2,
.h2,
.legacy_h2 {
    font-size: 38px;
}

h3,
.h3,
.legacy_h3 {
    font-size: 34px;
}

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

h5,
.h5,
.legacy_h5 {
    font-size: 26px;
}

h6,
.h6,
.legacy_h6 {
    font-size: 22px;
}

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

footer {
    background: var(--main-color);
    padding: var(--distance-small) 0;
}

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

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

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

footer :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 20px;
}

footer :is(h1, h2, h3, h4, h5, h6, a, a:hover, a:focus) {
    color: inherit;
}

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

#innerfooter li {
    display: block;
}

#innerfooter a {
    font-size: 1rem;
    padding: 3px 0;
}

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

#scroll-top {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-block;
    background: #ffffff url('../img/arrow.svg') center no-repeat;
}

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

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