:root {
    --space-5xs: clamp(0.49rem, calc(0.24vw + 0.44rem), 0.66rem);
    --space-4xs: clamp(0.61rem, calc(0.3vw + 0.55rem), 0.82rem);
    --space-3xs: clamp(0.77rem, calc(0.38vw + 0.69rem), 1.02rem);
    --space-2xs: clamp(0.96rem, calc(0.47vw + 0.86rem), 1.28rem);
    --space-xs: clamp(1.2rem, calc(0.59vw + 1.08rem), 1.6rem);
    --space-s: clamp(1.5rem, calc(0.74vw + 1.35rem), 2rem);
    --space-m: clamp(1.88rem, calc(0.93vw + 1.69rem), 2.5rem);
    --space-l: clamp(2.34rem, calc(1.16vw + 2.11rem), 3.13rem);
    --space-xl: clamp(2.93rem, calc(1.45vw + 2.64rem), 3.91rem);
    --space-2xl: clamp(3.66rem, calc(1.81vw + 3.3rem), 4.88rem);
    --space-3xl: clamp(4.58rem, calc(2.26vw + 4.13rem), 6.1rem);
    --space-4xl: clamp(5.72rem, calc(2.83vw + 5.16rem), 7.63rem);
    --text-xs: clamp(0.75rem, calc(0vw + 0.75rem), 0.75rem);
    --text-s: clamp(0.75rem, calc(0.19vw + 0.71rem), 0.88rem);
    --text-m: clamp(0.88rem, calc(0.19vw + 0.84rem), 1rem);
    --text-l: clamp(1rem, calc(0.19vw + 0.96rem), 1.13rem);
    --heading-h4: clamp(0.63rem, calc(1.1vw + 0.41rem), 1.38rem);
    --heading-h3: clamp(0.84rem, calc(1.34vw + 0.57rem), 1.75rem);
    --heading-h2: clamp(1.88rem, calc(1.3vw + 1.62rem), 2.75rem);
    --heading-h1: clamp(1.5rem, calc(3.33vw + 0.83rem), 3.75rem);
    --lineheight-xs: clamp(1.13rem, calc(0vw + 1.13rem), 1.13rem);
    --lineheight-s: clamp(0.84rem, calc(0.6vw + 0.72rem), 1.25rem);
    --lineheight-m: clamp(1.25rem, calc(0.37vw + 1.18rem), 1.5rem);
    --lineheight-l: clamp(1.5rem, calc(0.37vw + 1.43rem), 1.75rem);
    --lineheight-h4: clamp(1.25rem, calc(0.74vw + 1.1rem), 1.75rem);
    --lineheight-h3: clamp(1.63rem, calc(0.56vw + 1.51rem), 2rem);
    --lineheight-h2: clamp(2.13rem, calc(1.3vw + 1.87rem), 3rem);
    --lineheight-h1: clamp(2.75rem, calc(1.85vw + 2.38rem), 4rem);
    --box-height-200: clamp(9.38rem, calc(-4.63vw + 13.43rem), 12.5rem);
    --box-height-300: clamp(12.5rem, calc(-9.26vw + 20.6rem), 18.75rem);
    --box-height-400: clamp(18.75rem, calc(-9.26vw + 26.85rem), 25rem);
    --box-height-500: clamp(21.88rem, calc(-13.89vw + 34.03rem), 31.25rem);
    --radius-xs: clamp(0.25rem, calc(0vw + 0.25rem), 0.25rem);
    --radius-s: clamp(0.5rem, calc(0vw + 0.5rem), 0.5rem);
    --radius-m: clamp(1rem, calc(0vw + 1rem), 1rem);
    --radius-l: clamp(2.5rem, calc(0vw + 2.5rem), 2.5rem);
    --radius-xl: clamp(12.5rem, calc(0vw + 12.5rem), 12.5rem);
    --radius-full: 999rem;
}

.single-post .entry-content > h3,
.post-type-post .wp-block-post-content > h3 {
    padding-top: 20px;
    color: var(--darkcalm);
}
.single-post .entry-content > h3 + h4,
.post-type-post .wp-block-post-content > h3 + h4 {
    margin-top: -15px;
}
.single-post .entry-content > img + h3,
.post-type-post .wp-block-post-content > img + h3 {
    padding-top: 0;
}

/* MENU */
.gb-menu-container--mobile {
    height: 100vh;
    top: -20px;
    left: -25px;
    right: -25px;
    width: calc(100% - -50px);
}
.gb-menu-toggle svg {
    height: 30px;
    width: 30px;
}
.gb-menu-toggle:where(.gb-menu-toggle--toggled) .gb-menu-close-icon svg {
    width: 60px;
    height: 50px;
    padding-top: 10px;
}

.gb-menu .gb-overlay__content {
    max-width: 700px;
}
.gb-menu .dl-mega-menu__tabs .gb-tabs > div.gb-tabs__menu::after {
    content: '';
}
.gb-menu .dl-mega-menu__tabs .gb-tabs__menu-item:is(.gb-block-is-current,.gb-block-is-current:hover,.gb-block-is-current:focus)::after {
    content: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L1 11' stroke='%2316080A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

@media (min-width: 769px) {
    .dl-accordion-footer  .gb-accordion__content {
        max-height: none !important;
        overflow: visible !important;
        visibility: initial !important;
    }
}

/* BANNER */
.banner-featured {
    width: 100vw;
    max-width: 1404px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: var(--space-2xl);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
body.wp-admin .banner-featured {
    width: 100%;
    background: var(--darkcalm);
}
.banner-featured-inner {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 var(--space-4xs);
    border-radius: 40px;
}
.banner-featured-inhalt {
    width: 100%;
    max-width: 1324px;
    padding: 200px 40px 120px;
    color: white;
}
body.home .banner-featured-inhalt {
    background: url('../images/half-logo.svg') center bottom no-repeat;
    background-size: 200px auto;
    padding: 275px 40px 260px;
}
.banner-featured-inhalt p {
    font-size: var(--text-l);
}

@media (max-width: 767px) {
    .banner-featured {
        margin-bottom: var(--space-l);
    }
    .banner-featured-inner {
        margin: 0;
        border-radius: 0;
    }
    .banner-featured-inhalt {
        background-size: 120px auto;
        padding: 160px 20px 100px;
    }
    body.home .banner-featured-inhalt {
        padding: 200px 20px 190px;
    }
}

/* NO BANNER */
body.page-no-featured-image {
    padding-top: 150px;
}
body.page-no-featured-image .gb-navigation {
    background-color: #16080A80;
}

@media (max-width: 767px) {
    body.page-no-featured-image {
        padding-top: 120px;
    }
}

/* ARCHIVE */
.gb-query-loop-pagination {
    margin: var(--space-l) 0 var(--space-m);
}
.gb-query-loop-pagination .page-numbers {
    border-radius: var(--radius-xl);
    line-height: 0px;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gb-query-loop-pagination span.page-numbers.current {
    border: 1px solid #ddd;
}
.gb-query-loop-pagination a.page-numbers {
    border: none;
}
.gb-query-loop-pagination a.page-numbers:hover{
    border: 1px solid #ddd;
}
.gb-query-loop-pagination a.gb-text {
    position: relative;
    font-size: 0;
    border-radius: var(--radius-xl);
    height: 40px;
    width: 40px;
    border: none;
    transform: rotate(180deg);
}
.gb-query-loop-pagination a.gb-text::after {
    content: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 12h14m-6 6l6-6m-6-6l6 6'/%3E%3C/svg%3E");
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%,-50%);
}
.gb-query-loop-pagination a.gb-text:hover {
    border: 1px solid #ddd;
}
.gb-query-loop-pagination nav+a.gb-text {
    transform: rotate(0deg);
}

/* LINKS */
.dl-link-stretch {
	position: relative;
}
.dl-link-stretch a::after{
	content: '';
	position: absolute;
	inset: 0;
}
.dl-link-stretch a:is(:focus-visible)::after{
	outline: 2px solid;
}
.dl-link-stretch a:is(:hover, :focus){
	outline: none;
}

/* LISTS */
.dl-list-number {
    counter-reset: list-number;
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}
.dl-list-number li {
    position: relative;
    counter-increment: list-number;
    padding-left: 50px;
}
.dl-list-number li::before {
    position: absolute;
    left: 0;
    content: counter(list-number) "";
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Text';
    font-weight: 700;
    margin-right: 6px;
    color: var(--darkcalm);
    border: 1px solid var(--darkcalm);
    border-radius: var(--radius-full);
    width: 30px;
    height: 30px;
}

.wp-block-list.is-style-toc {
    list-style-image: url('../images/icon-list-arrow.svg');
    font-size: 18px;
    font-weight: 600;
    color: var(--darkcalm);
}
.wp-block-list.is-style-toc li {
    padding: 3px 5px;
}
.wp-block-list.is-style-toc li a {
    color: var(--darkcalm);
    text-decoration: none;
}
.wp-block-list.is-style-toc li a:hover {
    text-decoration: underline;
}