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

:root {
    --main-color: #1778a4;
    --text-color: #575757;
    --text-color2: #303030;
    --highlight: #f8f8f8;
    --important: #d14900;

    --weight-normal: 400;
    --weight-bold: 500;

    --text-large: clamp(1.125rem, 1.5vw, 1.375rem);

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

    --shadow: 0 10px 20px rgba(209, 73, 0, 0.1);

    --gradient-warm: var(--important) linear-gradient(45deg, var(--important), #fdcc00);
    --gradient-cold: var(--main-color) linear-gradient(45deg, var(--main-color), #7dc242);

    --radius-small: 25px;
    --radius-large: 30px;
}

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #d4f7fd;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
    scrollbar-color: var(--main-color) var(--highlight);
}

@media (min-width: 992px) {
    html {
        scroll-padding-top: 120px;
    }
}

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

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

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

a,
button,
#erweiterungen-nav .slick-slide {
    transition: background-color 200ms linear, color 200ms linear;
}

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

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

:is(nav.horizontally, header)>.row {
    max-width: 1640px;
}

#overflow {
    overflow: clip;
}

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

#logo {
    display: inline-block;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    #logo img {
        max-width: 18vw;
    }
}

#logo img {
    display: block;
}

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

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

nav.horizontally {
    padding: 21px 0;
    background: #fff;
}

/* burgermenu for tablet */

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

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

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

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

    nav .row .row,
    nav .template-page .row {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 20px 0;
        position: sticky;
        top: 0;
        z-index: 1001;
        transition: padding 200ms linear, box-shadow 200ms linear;
    }

    nav.horizontally.sticky {
        box-shadow: var(--shadow);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        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 200ms 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;
    }

    nav .button-style p:has(a) {
        display: flex;
        justify-content: end;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    nav.horizontally>.row {
        row-gap: 15px;
    }
}

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

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

    nav.horizontally .col-xl-3 {
        flex: 0 0 320px;
        max-width: 320px;
    }

    nav.horizontally .col-xl-6 {
        flex-grow: 1;
        max-width: calc(100% - (2 * 320px));
    }
}

/* toplevel */

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

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

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 10px 0;
        font-size: 1.125rem;
    }

    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        background: url('../img/arrow-down.svg') center bottom no-repeat;
    }
}

@media (min-width: 1200px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: clamp(10px, 1.5vw, 30px);
    }
}

/* toplevel + secondlevel + thirdlevel over */

nav.horizontally li:is(:hover, :focus-within)>a,
nav.horizontally li>a:is(:hover, :focus),
nav.horizontally li.open>a,
nav.horizontally li.open>a:is(:hover, :focus),
nav.horizontally li[class*="_over"]>a,
nav.horizontally li[class*="_over"]>a:is(:hover, :focus) {
    color: var(--main-color);
}

/* 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: var(--radius-small);
        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 15px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

.button-style *:not(form span)>a:not(.has-image):not(.slick-arrow):not([href*="tel:"]):not([href*="mailto:"]),
form[id^="form"] input[type="submit"]:not([value="Filtern"]) {
    color: #fff;
    background: var(--important);
    padding: 10px clamp(15px, 1.5vw, 20px) !important;
    display: inline-block;
    text-decoration: none;
    border-radius: var(--radius-large);
    font-weight: var(--weight-bold);
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(255, 144, 0, 0.2);
    overflow: hidden;
    font-size: 1rem;
}

.tab.button-style *:not(form span)>a:not(.has-image):not(.slick-arrow):not([href*="tel:"]):not([href*="mailto:"]) {
    background: none;
    box-shadow: none;
    border: 3px solid #fff;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

form[id^="form"] input[type="submit"]:not([value="Filtern"]) {
    background-image: var(--important) !important;
    background-position: unset !important;
}

form[id^="form"] input[type="submit"]:not([value="Filtern"]):is(:hover, :focus) {
    background-color: var(--main-color);
}

@media (min-width: 992px) {

    .button-style *:not(form span)>a:not(.has-image):not(.slick-arrow):not([href*="tel:"]):not([href*="mailto:"]),
    form[id^="form"] input[type="submit"]:not([value="Filtern"]) {
        font-size: 1.125rem;
    }
}

.button-style *:not(form span)>a:not(.has-image):not(.slick-arrow):not([href*="tel:"]):not([href*="mailto:"])::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -15px;
    width: 0;
    background: rgba(0, 0, 0, 0.2);
    transform: skew(-15deg);
    transition: width 200ms linear;
}

.button-style *:not(form span)>a:not(.has-image):not(.slick-arrow):not([href*="tel:"]):not([href*="mailto:"]):hover::after {
    width: calc(100% + 25px);
}

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

/* --------------------------------------------- tabs ------------------------------------------- */

.tab {
    border-radius: var(--radius-large);
    padding: clamp(15px, 5vw, 50px) clamp(15px, 5vw, 50px) clamp(15px, 5vw, 46px) clamp(15px, 5vw, 50px);
}

.tab:not(.small),
.tab:not(.small) :is(h1, h2, h3, h4, h5, h6, a),
.tab:not(.small) :is(.h4link a:is(:link, :hover, :focus, :visited), h6, h5, h4, h3, h2) :is(i, em) {
    color: #fff;
}

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

header {
    padding-top: clamp(var(--distance-min), 6vw, 70px);
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0));
}

header .header-title h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(26px, 6vw, 60px);
}

@media (max-width: 575px) {
    header .header-title h2 {
        max-width: 430px;
    }
}

header .header-title h2 a {
    text-decoration: none;
}

body:not(.index) header .tab {
    padding: 30px;
}

header .tab {
    background: var(--gradient-cold);
    margin-top: 55px;
    position: relative;
}

@media (max-width: 767px) {
    header .tab {
        min-height: 90px;
    }
}

header .bannerTab {
    display: block;
    width: 90vw;
    max-width: 350px;
    aspect-ratio: 900/587;
    position: absolute;
    top: -10px;
    right: -60px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
}

@media (max-width: 475px) {
    header .bannerTab {
        top: -80px;
    }
}

@media (min-width: 768px) {
    header .bannerTab {
        max-width: unset;
        width: 430px;
        top: -180px;
    }
}

@media (min-width: 992px) {
    header .bannerTab {
        width: 630px;
        top: -280px;
        right: -150px;
    }
}

@media (min-width: 1200px) {
    header .bannerTab {
        right: -50px;
    }
}

@media (min-width: 1400px) {
    header .bannerTab {
        width: 730px;
        top: -265px;
    }
}

@media (min-width: 1600px) {
    header .bannerTab {
        top: -260px;
        right: 100px;
    }
}

header .tab>.cleaner {
    display: none;
}

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

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

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

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

main .btgrid>.row {
    row-gap: 30px;
}

#content_buttons_div {
    z-index: 1001;
}

/* #region --------------------------------- h1 - h6, newslink ---------------------------------- */

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

:is(.h4link a:is(:link, :hover, :focus, :visited), h6, h5, h4, h3, h2) :is(i, em) {
    color: var(--text-color2);
    font-style: normal;
    font-size: var(--text-large);
    display: block;
    margin-top: 15px;
    line-height: 1.4;
}

:is(.h4link a:is(:link, :hover, :focus, :visited), h6, h5, h4, h3) :is(i, em) {
    font-size: 1.125rem;
    margin-top: 5px;
}

@media (max-width: 767px) {
    :is(.h4link a:is(:link, :hover, :focus, :visited), h6, h5, h4, h3, h2, h1) br {
        display: none;
    }
}

h1,
.h1,
.legacy_h1,
#vorteile .heading h2 {
    font-size: clamp(32px, 5.5vw, 50px);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(26px, 4vw, 40px);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(24px, 3vw, 30px);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited),
.legacy_h4 {
    font-size: clamp(22px, 2.5vw, 26px);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(20px, 2vw, 24px);
}

h6,
.h6,
.legacy_h6,
.tiny-headline-2 :is(h2, h3, h4, h5),
.tiny-headline-3 :is(h3, h4, h5) {
    font-size: var(--text-large);
}

/* #endregion ------------------------------ h1 - h6, newslink ---------------------------------- */

/* #region --------------------------------------- forms ---------------------------------------- */

.formgen_row .label_style,
form label,
.formgen_legend_wrapper,
form :is(.formgen_left, .formgen_top) :is(legend, label) {
    color: var(--text-color2);
    font-size: 1rem !important;
    font-weight: var(--weight-bold);
}

.formgen_row input,
.formgen_row select,
.formgen_row textarea {
    border-radius: var(--radius-small);
}

.formgen_row input[title*="Vorwahl"] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.formgen_row input[title*="Rufnummer"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

form[id^="form"] .formgen_bottom_sub {
    display: block;
}

form[id^="form"] .formgen_row :is(.subfield, select, textarea),
form[id^="form"] .formgen_row input:is([type="text"], [type="file"], [type="tel"], [type="email"], [type="number"]) {
    padding-left: 18px;
    padding-right: 18px;
    background: transparent;
}

form[id^="form"] .formgen_row .subfield {
    padding-top: 8px;
    padding-bottom: 8px;
}

form[id^="form"] .formgen_bottom :is(.vorwahl_div input, .vorwahl, .vorwahl_div) {
    width: 120px !important;
}

/* #endregion ------------------------------------ forms ---------------------------------------- */

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

footer {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: var(--distance-large) 0 30px;
}

footer .banner {
    margin-bottom: -220px;
    margin-left: -118px;
    margin-right: 30px;
}

@media (max-width: 991px) {
    #kontakt {
        padding-top: var(--distance-min);
    }
}

@media (min-width: 1200px) {
    footer .banner {
        margin-right: -30px;
    }
}

@media (min-width: 1400px) {
    footer .banner {
        position: relative;
        z-index: 1;
    }

    footer .banner::before {
        content: "";
        position: absolute;
        display: block;
        z-index: -1;
        top: 40px;
        right: 60px;
        bottom: -40px;
        left: -48px;
        border: 5px solid var(--highlight);
        border-radius: var(--radius-large);
    }
}

footer .banner img {
    border-radius: var(--radius-large);
}

footer .tab a {
    text-decoration: underline;
}

footer .tab+.tab {
    margin-top: var(--distance-small);
}

footer .tab-contact {
    padding-top: clamp(240px, 18vw, 300px);
    font-size: var(--text-large);
    background: var(--gradient-warm);
}

@media (min-width: 1300px) {
    footer .tab-contact {
        margin-left: -50px;
        width: unset;
    }
}

@media (min-width: 1600px) {
    footer .tab-contact {
        margin-left: -220px;
    }
}

footer .tab-contact p+p {
    margin-top: 6px;
}

footer .tab-donate {
    background: var(--gradient-cold);
}

footer .tab-donate h2 {
    margin-bottom: 22px;
}

footer .big-content .formgen {
    column-count: unset;
    column-gap: unset;
}

footer .formgen>p {
    margin-bottom: 22px;
}

footer form>p.formgen_small {
    display: none;
}

footer .law-addition {
    margin-top: 0;
}

footer .law-addition p:first-child {
    margin: 0;
}

footer .law-addition p strong {
    color: var(--text-color2);
}

footer form>p {
    text-align: left !important;
}

footer .footer_list {
    margin-top: var(--distance-min);
    padding: 30px 0 0 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
    footer .footer_list {
        line-height: 2;
    }
}

@media (min-width: 992px) {
    footer .footer_list {
        display: flex;
        justify-content: center;
        gap: clamp(20px, 1.5vw, 30px);
    }
}

footer .footer_list a {
    color: var(--text-color2);
    font-weight: var(--weight-bold);
    text-decoration: none;
}

footer .footer_list a:is(:hover, :focus) {
    color: var(--main-color);
}

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