/* layout-base overrides */

.container {
    max-width: 68rem !important;
    padding-inline: 2rem;
}
.page-content {
    padding: 2rem 0;
}

.page-header {
    background-color: var(--dw-header-bg-color);
}
.page-header a.dw-nav-link.active,
.page-header a.dw-nav-link:hover,
.page-footer .footer-default .dw-link:hover {
    color: var(--dw-text-color);
    border-bottom: 2px solid var(--dw-text-color)
}

.page-footer {
    background-color: var(--dw-footer-bg-color);
    padding-top: 1rem;
    padding-bottom: 0;
}
.page-footer a {
    text-decoration: none;
}
.page-footer .page-footer-1 {
    margin-bottom: 0;
}
.page-footer .page-footer-1 a:hover {
    text-decoration: underline;
}
.page-footer .dw-col .dto-image:first-child img {
    margin-top: 0;
}
.page-footer .footer-default .dw-link {
    font-weight: normal;
}

/* Custom CMS object styles */

h2.title-custom-1 {
    font-size: 28px;
    line-height: 38px;
    font-weight: 400;
    margin-bottom: 20px;
}

#section_41 .container,
#section_46 .container,
#section_68 .container {
    max-width: 40rem !important;
}

.flex-custom-1 img.dw-image {
    margin-top: -4rem;
}

.flex-custom-2 {
    margin-bottom: 5rem;
}

#section_22 h3 {
    font-size: 20px;
    line-height: 24px;
    font-weight: 300;
    @media (min-width: 768px) {
        font-size: 23px;
        line-height: 30px;
    }
}

#section_23 .dw-grid h3 {
    font-weight: 600;
    @media (max-width: 767px) {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 0.25em;
    }
}

#section_22 .dw-row,
#section_33 .dw-row {

    margin-bottom: 1em;
}
#section_23 .dw-grid,
#section_31 .dw-grid {
    margin-top: 0;
}

#section_2 .dw-row,
#section_2 .dw-image {
    margin-top: 0;
}

#section_24 .dw-col-2 {
    margin-top: -2em;
    @media (min-width: 768px) {
        margin-top: 1em;
    }
}

.flex-custom-2 img.image-custom-2 {
    margin-top: -2rem;
}
.dto-link {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}

.dws-news .dw-grid {
    margin-top: 0;
}

.post-card {
    margin-top: 0rem;
}

.post-card .item-wrapper {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    margin: 1rem 0;
}

.post-card .item-wrapper .item {
    padding-bottom: 0.25rem;
}

.event-list .item-wrapper {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.75rem;
}

.kurse-frontpage {
    padding: 1.75rem 2rem;
    background-color: rgba(255,255,255,0.25);
}

/* API overwrites */

.dws-news-frontpage {
    margin-top: calc(var(--dw-flex-margin-y) * -1);
}

    #section_7 .flex-md-responsive {
        /*display: flex;*/
        padding-bottom: 3rem;
    }
    .dto-api-kategorien-teaser {
        margin-top: -3rem;
    }
    .dw-block .kategorie-card .item-wrapper {
        aspect-ratio: 6 / 7;
        border-color: var(--dw-border-th-color);
    }
    .dw-block .kategorie-card .item-wrapper .item {
        color: var(--dw-text-color);
        background-image: url("../img/teaser_bg-0Ljy5SU.svg");
        background-repeat: no-repeat;
        background-size: cover;
        background-color: transparent;
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 3rem 1em 1em 1em;
        letter-spacing: 0.025em;
        text-align: center;
        text-transform: uppercase;
        @media (width >= 768) {
            padding: 2rem 1em 1em 1em;
        }
    }

    .raum h2 {
        text-transform: none !important;
    }

    .wp-google-list {
        margin-bottom: 2.23em;
    }
    span.wp-google-rating {
        font-size: 21px !important;
        font-weight: 600 !important;
        margin: 0 6px 0 0 !important;
        vertical-align: middle !important;
    }
    span.wp-star {
        padding: 0 4px 0 0 !important;
        line-height: 22px !important;
    }
    span.wp-star > svg {
        display: inline-block;
    }
}
