/*
 * Theme Name:  Thieme News Theme
 * Description: Theme for Thieme Praxis News page.
 * Version:     1.8.2
 * Author URI:  https://www.ebcont.com
 */

/* Global Styling */
html.has-modal-open {
    & body:not(.wp-admin)::before {
        display: none !important;
    }
}


@font-face {
    font-family: 'ThiemeArgo2023_VF';
    src: url('./assets/fonts/ThiemeArgo2023_VF.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;

    background-color: #F6F8FC;
    font-family: 'ThiemeArgo2023_VF', sans-serif;
    font-weight: 400;
    color: #242F46;
}

h1 {
    color: #013476;
}

h1, h2 {
    font-weight: 400;
}

h2, h3, h4 {
    color: #242F46;
}

strong {
    font-weight: 600;
}

.primary, .tertiary,
.wp-element-button,
.wp-block-button__link {
    display: flex;
    align-items: center;
    height: 40px;
    width: fit-content;

    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #013476;
}

/* Mobile Menu */

.wp-block-navigation__responsive-container.has-modal-open.is-menu-open {
    /* Search */

    & .wp-block-search__inside-wrapper {
        width: calc(100% - 88px);
    }

    & .search-bar {
        padding: 16px 44px 0 44px;
    }

    /* Buttons */

    & .wp-block-navigation__responsive-container-content {
        gap: 0;
    }

    & .header-buttons_mobile {
        padding: 0 44px 0 44px;
        border-top: 1px solid #C6D0E0;
    }

    & .tertiary,
    & .wp-block-button__link {
        height: 48px;
        margin-bottom: 0;
    }

    & .wp-block-navigation__container {
        width: calc(100% - 88px);
        padding: 0 44px 0 44px;
        border-bottom: 1px solid #C6D0E0;
        border-top: 1px solid #C6D0E0;
    }

    & .wp-block-navigation__container .wp-block-navigation-item__content {
        height: 48px;
        display: flex;
        align-items: center;
    }

    & .header-buttons_mobile .tertiary .wp-block-button__link {
        background-color: transparent;
        padding: 0;
        justify-content: flex-start;
        margin-bottom: 2px;

        &:hover {
            background-color: transparent;
            border-bottom: 2px solid #A3D8F6;
        }

        &:active {
            margin-bottom: 0;
            background-color: transparent;
            border-bottom: 2px solid #A3D8F6;
        }
    }

    & .wp-block-navigation__responsive-container-content {
        &.wp-block-buttons {
            margin-left: 0;
        }
    }
}

/**Helper Classes**/

.full-width {
    display: block;
    margin: 124px;


    & div {

        & .input-wrapper, .label {
            width: fit-content;
        }
    }

}


/* Primary Button */
.primary,
.primary .wp-element-button,
.primary .wp-block-button__link {
    background-color: #A3D8F6;
    cursor: pointer;

    &:hover {
        background-color: #81C7F1;
    }

    &:active {
        background-color: #81C7F1;
    }
}

/* Secondary Button */
.secondary .wp-element-button {
    background-color: transparent;
    border: 1px solid #013476ed;

    color: #013476;
    cursor: pointer;

    &:hover {
        background-color: #81C7F1;
    }

    &:active {
        background-color: #81C7F1;
    }
}

/* Tertiary Button */
.tertiary,
.tertiary .wp-element-button,
.tertiary .wp-block-button__link {
    background-color: transparent;
    cursor: pointer;

    &:hover {
        background-color: #81C7F1;
    }

    &:active {
        background-color: #81C7F1;
    }
}

/*Icon Only Button*/
.icon-only .wp-block-button__link {
    display: flex;
    justify-content: center;
    padding: 0;
    height: 40px;
    width: 40px;

    background-color: transparent;
    border: none;
    cursor: pointer;

    & img {
        width: 24px;
        height: 24px;
    }

    &:hover {
        background-color: #81C7F1;
    }

    &:active {
        background-color: #81C7F1;
    }
}

input::placeholder {
    color: #687999;
}


/*Parts Styling*/
header {
    position: sticky;
    top: 0;

    align-content: center;
    padding-left: 16px;

    background-color: #FFF;
    border-bottom: 1px solid #C6D0E0;

    z-index: 9998;

    & .header-wrapper {
        padding: 16px 0 16px 30px;
    }

    nav {
        width: 100%;
    }

    .block-navigation__responsive-container-content {
        gap: 20px;
    }

    .header-buttons_mobile,
    .wp-block-navigation .wp-block-navigation-item.header-link {
        display: none;
    }

    .wp-block-buttons {
        margin-left: 20px;
        gap: 16px;
    }

    & .link-section {
        display: flex;
        gap: 16px;
        height: 40px;
        align-items: center;
        padding-left: 36px;

        border-top: 1px solid #C6D0E0;

        & a {
            color: #013476 !important;
            text-decoration: none;
            font-size: 14px;
            margin-bottom: 2px;

            &:hover {
                margin-bottom: 0;
                border-bottom: 2px solid #A3D8F6;
            }

            &:active {
                color: inherit;
            }

            &:visited {
                color: inherit;
            }
        }
    }
}

header .wp-block-image {
    width: 194px;
    height: 30px;
}

.header-item {
    padding-right: 12px;
}

header .wp-block-search__input {
    border: none;
    border-radius: 8px;
    background-color: #F1F5F9;
}

.wp-block-search {
    width: 100%;
}

.search-bar {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    min-width: 150px;
    vertical-align: center;
}

/* Breadcrumbs */

.breadcrumbs_full-width {
    display: flex;
    padding: 20px 0 0 156px;
    width: 1172px;
}

.yoast-breadcrumbs {
    display: flex;
    align-content: center;


    & a {
        color: #56647E;
        text-decoration: none;
    }

    & span {
        display: flex;
        align-items: flex-start;
        height: 53px;

        font-size: 12px;
        font-weight: 500;
    }

    & a:after {
        content: 'T';
        background-image: url('/wp-content/themes/thiemeNewsTheme/assets/images/icons/chevron-right_muted.svg');
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block; /* Important */
        padding: 0 8px;

        color: transparent;

    }

    a:last-child:after {
        content: 'T';
        background-image: url('/wp-content/themes/thiemeNewsTheme/assets/images/icons/chevron-right.svg');
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block; /* Important */
        padding: 0 8px;

        color: transparent;
    }

}

.breadcrumb_last {
    color: #013476;
}


/* Pages */

.single-post {
    .main-wrapper {
        display: flex;
        justify-content: center;
    }

    p {
        color: #242F46;
    }

    .wp-block-post-date {
        margin-bottom: 20px;

        time {
            color: #56647E;
            font-size: 12px;
        }
    }

    div.main-content-container {
        padding: 20px 0 0 0;
        width: 734px;

    }

    div.main-content-container.main-width {
        padding: 20px 0 0 0;
        width: 100%;
    }

    .teaser-vertical {
        height: 375px;
    }

    .page-title_icons {
        flex-direction: row;
    }
}

.text-content_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    & p {
        margin-bottom: 0 !important;

        font-size: 16px;
        color: rgba(86, 100, 126, 1);

    }
}

.single-post.wp-block-group.main-content-container {
    margin-top: 20px;

}

.single-post {
    & .yoast-breadcrumbs {
        & span {
            height: fit-content;
            padding-bottom: 20px;
        }
    }

    & .wp-block-post-excerpt__excerpt, p {
        margin-bottom: 40px;
        line-height: 1.7em;
    }

}

.text-content_wrapper {
    display: flex;
    align-items: flex-start;

    & h1 {
        margin: 0 0 20px 0;

        font-size: 28px;
        line-height: 40px;
    }

    & .wp-block-buttons {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 12px;

        min-width: 200px;
    }
}

.page-title_icons {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    width: 100%;
}

.page-title_icons:where(figure) {
    margin: 0;
}

#label-text {
    order: 1;
}

#slider {
    order: 2;
}

.view-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 10px 0;

    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.view-toggle input {
    display: none;
}

.slider {
    position: relative;
    width: 28px;
    height: 16px;

    background-color: #ccc;
    border-radius: 28px;
}

.slider::before {
    content: "";
    position: absolute;
    height: 10px;
    width: 10px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/*
.view-toggle input:checked + .slider {

}

.view-toggle input:checked + .slider::before {

}
*/

.label-text {
    user-select: none;
    vertical-align: middle;

    font-size: 14px;
    color: #242F46;
    line-height: 16px;
}

footer {
    align-items: center;
    padding: 0;
    margin: 40px 0 0 0 !important;
    width: 100%;
}

.footer-wrapper {
    border-top: 1px solid #C6D0E0;
    border-bottom: 1px solid #C6D0E0;
}

.footer-title {
    padding: 24px 0 8px 0;

    font-size: 14px;
    font-weight: 600;
    color: #013476;
}

.footer-row {
    padding: 24px 0 8px 0;

    font-size: 14px;
    font-weight: 600;
    color: #013476;
}

.copyright-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-self: center;
    padding: 32px 32px 12px 32px;
}

.copyright {
    display: flex;
    margin: 0;
    gap: 12px;

    font-size: 12px;
    color: #242F46;
}

footer a {
    color: #013476;
    font-size: 12px;
    text-decoration: none;
}

.footer-link {
    color: #013476;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 2px solid transparent;

    &:hover {
        border-bottom: 2px solid #A3D8F6;
    }

    &:active {
        color: #013476;
    }

    &:visited {
        color: #013476;
    }
}

.footer-link_section {
    margin: 0;
}

/* Pattern Styling */
.teaser-link_clickarea {
    position: absolute;
    inset: 0;
    z-index: 8;

    display: block;

    text-decoration: none;

    &:hover {
        cursor: pointer;
    }
}

.teaser-horizontal {
    position: relative;
    height: auto;
    width: 100%;

    gap: 20px;
    overflow: hidden;

    background-color: #FFF;
    border-radius: 8px;

    & a {
        color: #56647E;
    }
}

.teaser-horizontal_img {
    margin: 0;

    & img {
        border-radius: 8px 0 0 8px;
        width: 100%;
        height: 193px;
    }
}

.teaser-horizontal_img.wp-block-post-featured-image {
    position: static;
    width: auto;
}

.teaser-horizontal_subtitle {
    margin: 0 0 8px 0;

    color: #56647E;
    font-size: 12px;
    font-weight: 400;

    & a {
        white-space: nowrap;
        overflow: hidden;
        width: 100%;

        text-overflow: ellipsis;
    }
}

.teaser-horizontal_title {
    margin: 0 0 12px 0;

    color: #242F46;
    font-size: 18px;
    font-weight: 400;

    & a {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Anzahl der sichtbaren Textzeilen */
        -webkit-box-orient: vertical;
        overflow: hidden;

        color: #242F46;
    }
}

.teaser-horizontal_text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Anzahl der sichtbaren Textzeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;

    color: #56647E;
    font-size: 16px;
    text-overflow: ellipsis;
}

.teaser-vertical {
    position: relative;
    height: 350px;

    background-color: #FFF;
    border-radius: 8px;
    overflow: hidden;
    color: #56647E;

    & a {
        color: #56647E;
    }


}

.teaser-vertical_img {
    margin: 0;
    position: relative;
    z-index: 2;

    & img {
        border-radius: 8px 8px 0 0;
        height: 180px;
        width: 100%;
        object-fit: cover;
        display: block;
    }
}

.teaser-vertical_img.wp-block-post-featured-image {
    position: static;
    width: auto;
}

.teaser-vertical_subtitle {
    margin: 0 0 8px 0;

    font-size: 12px;
    font-weight: 400;
    color: #56647E;

    & a {
        white-space: nowrap;
        overflow: hidden;
        width: 100%;

        text-overflow: ellipsis;
    }
}

.teaser-vertical_title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 2;

    overflow: hidden;
    color: #242F46;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
}

.teaser-vertical_title {
    margin: 0 0 12px 0;
}

.teaser-vertical_text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Anzahl der sichtbaren Textzeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 2;

    color: #56647E;
    font-size: 14px;
}

.teaser-vertical_text-block {
    position: relative;
    z-index: 0;
    padding: 20px;
}

.teaser-big {
    color: #242F46;
    background-color: #FFFFFF;
    border-radius: 8px;

    & a {
        color: inherit;
        text-decoration: none;
        font-weight: inherit;
    }

    & .teaser-horizontal_subtitle {
        color: rgba(86, 100, 126, 1);
    }

    & video {
        border-radius: 8px 0 0 8px;
    }

    :where(.wp-block-columns) {
        margin-bottom: 0;
    }

    & .primary {
        margin-bottom: 0 !important;
    }
}

.teaser-big-content {
    padding: 40px 40px 40px 40px;
}

.wp-block-video {
    margin-bottom: 0;
}

/* Styling categories_list, categories_list_small */
div.categories_list a, div.categories_list_small div {
    padding: 4px 12px;
    border-radius: 8px; /* Standardwert, wird später überschrieben */
    font-size: 16px; /* Standardwert, wird später überschrieben */
}

div.categories_list div, div.categories_list_small div {
    padding: 0;

    list-style: none;
}

div.categories_list div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

div.categories_list_small div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

div.categories_list div a {
    padding: 13px;

    background-color: #FFFFFF;
    border-radius: 8px;
    font-size: 23px; /* Überschreibt den Standardwert für div.categories_list */
    font-weight: 600;
    line-height: 30px;

    & a {
        margin: 0;
    }
}

div.categories_list_small div a {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    height: 20px;

    background-color: #31506D;
    border-radius: 16px; /* Überschreibt den Standardwert für div.categories_list_small */
    font-size: 12px; /* Überschreibt den Standardwert für div.categories_list_small */
    font-weight: 400;
    letter-spacing: 0.5px;

    &:hover, &:active {
        background-color: #0D9488;
    }
}

div.categories_list div a {
    text-decoration: none;
    color: #FFFFFF;
}

div.categories_list_small div a {
    color: #FFFFFF;
}

div.newsletter {
    padding: 32px;
    margin: 10px 0;
    gap: 40px;

    background-color: #a3d8f6;
    border: none;
    border-radius: 8px;

    & p {
        margin: 0;
    }

    & .input-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
    }

    & .label {
        display: flex;
        padding-right: 1em;
        margin-bottom: 8px;
    }
}

.newsletter-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 1108px;
    gap: 40px;
}

.newsletter .input {
    border: none;
    height: 40px;
    min-width: 320px;
}

.newsletter .secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    height: 40px;
    width: fit-content;
    gap: 8px;

    padding: 4px 12px 4px 12px;

    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #013476;
    background-color: transparent;
    border: 1px solid #013476ed;

    & img {
        filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(1793%) hue-rotate(201deg) brightness(99%) contrast(104%);
    }

    &:hover {
        background-color: #81C7F1;
    }

    &:active {
        background-color: #81C7F1;
    }
}

div.main-wrapper {
    margin: 0 124px;
    padding-left: 20px;
}

div.main-content-container {
    padding: 20px 32px 0 20px;
    width: 1108px;
}

.image-pattern {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 16px;

    & img {
        width: 100%;
        height: auto;
    }

    & figcaption {
        padding-left: 8px;

        color: #242F46;
        border-left: 2px solid #A3D8F6;
        font-size: 14px;
    }
}

.summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    height: auto;
    padding: 40px;

    border-radius: 4px;
    color: #242F46;
    background-color: #FFFFFF;

    & .summary-title {
        display: flex;
        gap: 8px;
        margin: 0;
        width: 100%;

        font-size: 28px;
        font-weight: 400;
        line-height: 32px;
    }

    & .summary-text {
        margin: 0;

        font-size: 16px;
        line-height: 24px;
    }
}

.modal {
    padding: 24px;
    margin-bottom: 0;
    max-width: 640px;

    border-radius: 6px;
    background-color: #FFFFFF;
    color: #242F46;
    box-shadow: 0 2px 16px 0 rgba(1, 52, 118, 16%);
    font-size: 16px;


    & .modal-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    & .modal-title,
    .gate-title {
        margin: 0;

        font-size: 23px;
        font-weight: 400;
    }

    & div.modal-container_item,
    div.gate-container_item {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    & .input-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 32px;

        & input {
            height: 40px;

            border: none;
            background-color: #F1F5F9;
        }
    }

    & p {
        margin-bottom: 24px;
    }

    & .label {
        display: flex;
        flex-direction: column;
        padding-right: 1em;
        margin-bottom: 8px;
    }

    & input {
        padding: 4px 12px;
    }

    & .bottom-bar {
        display: flex;
        gap: 12px;

        & input.primary {
            width: fit-content !important;
        }
    }

}

.gate {
    display: flex;
    justify-content: center;
    padding: 80px;
    margin-bottom: 0;
    max-width: 100%;

    background-color: #FFFFFF;
    color: #242F46;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 16px 0 rgba(1, 52, 118, 16%);

    & h3 {
        font-size: 28px;
        font-weight: 400;
    }

    & .gate-container {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        gap: 40px;
    }

    & .gate-title,
    .gate-text {
        margin: 0;
    }

    & .bottom-bar {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    & .secondary {
        height: 40px;
        padding: 4px 12px;

        background-color: transparent;
        border: 1px solid #013476ed;
        border-radius: 6px;
        color: #013476;
        cursor: pointer;

        &:hover {
            background-color: #81C7F1;
        }

        &:active {
            background-color: #81C7F1;
        }
    }

    & .primary,
    .secondary,
    .tertiary {
        width: 100% !important;
        font-family: 'ThiemeArgo2023_VF', sans-serif;
    }
}

.wp-block-separator {
    border-top: 1px solid #C6D0E0;
    margin: 24px 0;
}

.topics {

    div.main-content-container {
        width: 1108px;
    }

    & h2 {
        margin-bottom: 24px;
        width: 100%;

        font-size: 33px;
        font-weight: 400;
    }

    & p {
        color: #242F46;
        font-size: 18px;
    }

    & .categories_list p {
        font-size: 28px;
    }

    & .footer-title {
        font-size: 14px;
        font-weight: 600;
    }

    .copyright {
        font-size: 12px;
    }

    .categories_list {
        margin: 40px 0 80px 0;
    }

    div.categories_list div a {
        text-decoration: none;
        color: #242F46;
    }

    div.categories_list_small div a {
        color: #242F46;
    }

    .ad-horizontal_desktop {
        display: block;
    }

    .ad-horizontal_mobile {
        display: none;
    }
}

details {

    border-bottom: 1px solid #C6D0E0;
    padding: 20px 0;

    summary {
        font-weight: 700;
        color: #013476;
    }

    ul {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 8px;
    }

    li {
        color: #242F46;
        padding: 16px 0 0 24px;
        margin-bottom: 8px;
    }
}

details summary::marker {
    content: url('/wp-content/themes/thiemeNewsTheme/assets/images/icons/chevron-down.svg') / "accordion-closed";
}

details[open] summary::marker {
    content: url('/wp-content/themes/thiemeNewsTheme/assets/images/icons/chevron-up.svg') / "accordion-open";
}

.wp-block-post-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #FFFFFF;

    & a {
        display: flex;
        align-items: center;
        padding: 6px 12px;
        max-height: 24px;

        font-size: 12px;
        color: #FFFFFF;
        background-color: #31506D;
        line-height: 18px;
        letter-spacing: 0.5px;
        border-radius: 16px;
        text-decoration: none;
        vertical-align: middle;

        &:hover {
            background-color: #0D9488;
        }

        &:active {
            background-color: #0D9488;
        }
    }

    span {
        display: none;
    }
}

.ad-horizontal_mobile {
    display: none;
}

#dialog_comming_soon_ad,
#dialog_comming_soon_feature {
    padding: 0;
}

#dialog_comming_soon_feature .wp-block-group__inner-container,
#dialog_comming_soon_ad .wp-block-group__inner-container {
    padding: 0;
}

dialog {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 16px 0 rgba(1, 52, 118, 16%);
}

.home {
    .top-categories {
        margin: 64px 0;
        gap: 24px;
    }
}

.error-page {

    div.main-content-container {
        width: 100%;
    }

    h1 {
        margin-bottom: 32px;

        font-size: 28px;
    }

    .copyright-wrapper {
        padding: 32px 32px 12px 32px;
    }

    p.copyright {
        margin-bottom: 0;
    }

    p {
        margin-bottom: 50px;
    }

    .primary {
        margin-bottom: 40px;
    }
}


/*Helper Classes*/

.bold {
    font-weight: 600;
}

#bell, #mail, #document, #tooltip, #bulb {
    width: 24px;
    height: 24px;
}


/*Media Queries*/

@media (max-width: 600px) {
    html {
        width: 100%;
    }

    body {
        margin: 0;
        max-width: 100%;

        /* teaser horizontal */

        & .wp-block-columns.is-layout-flex {
            display: block;
        }

        /* topics */

        & .wp-container-core-group-is-layout-ad2f72ca.is-layout-flex {
            display: block;
        }
    }

    .breadcrumbs_full-width {
        display: flex;
        padding: 10px 10px 10px 36px;
        width: 100%;

        background-color: #FFFFFF;
        word-break: normal;

        & a {
            width: max-content;
            word-break: unset;
        }

        & .yoast-breadcrumbs {

            & span {
                padding: 0;
                height: fit-content;
            }

        }
    }

    header {
        margin: 0;
        padding: 0;

        & .header-wrapper {
            width: 100%;
            justify-content: space-between;

            nav {
                justify-content: flex-end;
                padding-right: 12px;

                & svg {
                    fill: #013476;
                    width: 45px;
                    height: 35px;
                }
            }
        }

        & .wp-block-template-part {
            justify-content: start;
        }

        .wp-block-navigation__responsive-container-close {
            padding: 16px 20px 0 0;
        }

        & .is-layout-flex {
            flex-direction: row;
        }

        .header-buttons_desktop {
            display: none;
        }

        .header-buttons_mobile {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            margin: 24px 0 0 0;
            gap: 0;

            font-weight: 500;

            & .tertiary, .tertiary .wp-element-button, .tertiary .wp-block-button__link {

                border-radius: 0;
                width: fit-content;

                &:hover {
                    background-color: transparent;
                }

                &:active {
                    background-color: transparent;
                }

                a {
                    &:hover {
                        background-color: transparent;
                        border-bottom: 2px solid #A3D8F6;
                    }

                    &:active {
                        background-color: transparent;
                        border-bottom: 2px solid #A3D8F6;

                    }
                }
            }
        }

        & .wp-block-navigation-item.header-link {
            a {
                color: #013476 !important;
                font-size: 14px !important;
                font-weight: 500 !important;
                margin-bottom: 2px;

                &:active {
                    margin-bottom: 0;
                    background-color: transparent;
                    border-bottom: 2px solid #A3D8F6;

                }
            }
        }

        & .wp-block-navigation-item.header-link:before {
            border-top: 1px solid grey;
        }

        & .link-section {
            display: none;
        }

        & .search-bar {
            min-width: 0;
        }
    }


    /**Helper Classes**/
    .width-100 {
        width: 100% !important;
    }

    .related-content.full-width {
        padding-left: 32px;
        width: 96%;
    }

    .full-width {
        display: block;
        margin: 0;


        & div {

            & .input-wrapper, .label {
                width: 100%;
            }
        }

    }

    div.main-wrapper {
        padding-right: 12px;
        margin: 0;

        h2 {
            width: 100%;
        }
    }

    div.main-content-container {
        padding: 0 16px;
        width: 100%;

        & h2 {
            width: 100%;
        }

    }

    .main-content-container,
    div.related-content.full-width {
        display: flex;
        flex-direction: column;

        & div {
            align-items: flex-start;
            width: auto;

            & .teaser-horizontal_img__wrapper {
                width: 100%;
            }

            & .center {
                justify-content: center;
            }

            & .secondary, .primary, .tertiary {
                margin-bottom: 32px;
            }
        }
    }

    .main {
        .main-content-container,
        div.related-content.full-width {
            display: flex;
            flex-direction: column;

            & div {
                align-items: flex-start;
                width: auto;

                & .center {
                    justify-content: center;
                }

                & .secondary {
                    width: 100%;
                }
            }

            & div.secondary, div.wp-block-buttons {
                width: 100%;
            }
        }
    }

    .bottom-wrapper {
        width: 100% !important;
        & .input {
            width: 100%;
        }
        & .secondary {
            background-position: center left 24% !important; /* Bild links ausrichten */
        }
    }

    div.main-wrapper,
    div.related-content.full-width {
        margin: 0;
        padding-left: calc(12px + 0.75rem);
        flex-direction: column;
        align-items: center;
    }

    div.main-wrapper > .wp-block-group__inner-container,
    div.related-content.full-width > .wp-block-group__inner-container {
        padding: 0 20px;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column, .wp-block-column .is-layout-flow .wp-block-column-is-layout-flow {
        flex-basis: 0 !important;
    }

    .wp-block-template-part {
        display: flex;
    }

    .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        & .wp-block-buttons {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
    }

    .primary, .secondary, .tertiary {
        width: 100%;

        & a {
            width: 100%;
            justify-content: center;
        }
    }

    .home {
        div .main-wrapper {
            padding: 20px 0 0 0;
        }

        div .main-content-container {
            padding: 0 16px 0 calc(16px + 0.75rem);
        }

        .top-categories {
            p {
                margin-bottom: 24px;
            }
        }
    }


    /*------FOOTER------*/

    .tag, .category, .topics, .single-post, .search, .page, .home {
        footer {
            margin: 40px auto 0 auto;
            padding: 0 16px 0 calc(0.75rem + 16px);
            width: fit-content;
        }
    }

    .category, .topics, .search, .page {
        footer {
            padding-left: 16px;
        }
    }

    .single-post, .home {
        footer {
            padding-left: calc(0.75rem + 16px);
        }
    }


    .tag {

        h1 {
            width: 100%;
            margin-top: 32px;
        }

        div.main-content-container {
            padding: 0 16px 0 calc(16px + 0.75rem);
        }

        .main-content-container {
            & div {
                justify-content: center;
            }
        }

        & .wp-block-columns.is-layout-flex {
            display: flex;
            flex-direction: column;
        }

        .yoast-breadcrumbs span {
            height: fit-content;
        }

        .main-content-container {
            & div.yoast-breadcrumbs {
                justify-content: flex-start;
                width: 100%;
            }
        }

        .main-wrapper {
            padding: 0;
        }

        .full-width {
            padding-left: 0.75rem;
        }

        div .newsletter {
            margin-left: 12px;
        }

        footer {
            :where(.wp-block-columns.is-layout-flex) {
                gap: 0;
            }
        }
    }

    .single-post, .home {
        .mobile-ad {
            img {
                width: 265px;
            }
            .ad-horizontal_desktop {
                display: none;
            }
            .ad-horizontal_mobile {
                display: block;
            }
        }

        div .newsletter {
            margin-left: 12px;
        }
    }

    .category {
        div.main-content-container {
            max-width: 100%;
        }
    }

    .topics {

        h1 {
            margin-top: 32px;
        }

        .yoast-breadcrumbs {
            & span {
                height: fit-content;
            }
        }

        & h2.footer-row {
            font-size: 14px;
        }

        div.main-content-container {
            padding: 0 16px 0 16px;
            width: 100%;
        }

        div.categories_list div a {
            margin-right: 0;


        }

        .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .categories_list {
            margin: 0 0 32px 0;

            p {
                margin-top: 32px;
            }
        }

        .ad-horizontal_desktop {
            display: none;
        }

        .ad-horizontal_mobile {
            display: block;
            width: 350px;
            height: auto;
        }

        div.main-wrapper {
            padding: 20px 0 0 12px;
        }
    }


    .summary {
        padding: 32px 16px;
        margin-bottom: 32px;
        gap: 24px;
    }

    .gate {
        width: 100%;
        padding: 32px 16px;

        & .gate-container {
            gap: 24px;
            max-width: 100%;
        }

        & .bottom-bar {
            width: 100% !important;

            .secondary, .primary, .tertiary {
                margin-bottom: 0 !important;
            }
        }
    }

    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;

        & .footer-wrapper {
            align-items: flex-start;
            width: 100% !important;
            padding: 24px 0 0 0;
        }

        &.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
            margin-left: 0 !important;
        }

        &.copyright-wrapper {
            padding: 20px 0 12px 0;
        }

        & .copyright {
            flex-wrap: wrap;
        }

        & .footer-row {
            padding: 0;
            margin: -9px;
        }

        & .footer-title {
            margin: 0;
        }
    }

    .error-page {

        h1 {
            font-size: 21px;
        }

        .wp-block-group__inner-container {
            padding: 0 0 0 20px;
        }

        .footer .wp-block-group__inner-container {
            padding: 0;
        }

        .wp-block-buttons {
            width: 100%;
        }

        .primary {
            width: fit-content;
        }

        .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)).image-wrapper {
            margin: 0 !important;
        }
    }

    .single-post {
        div.main-content-container {
            padding: 0 16px;
            width: 100%;
        }

        div.main-content-container.main-width {
            padding: 0 16px;
            width: 100%;
        }
    }

    .teaser-big {
        margin-bottom: 64px;

        .is-layout-flex {
            gap: 20px;
            flex-direction: column-reverse;
        }

        .teaser-big-content {
            padding: 0 20px 20px 20px;
            width: fit-content;
        }

        .teaser-horizontal_subtitle {
            margin-left: 0;

            color: #56647E;
        }

        & h2, p {
            color: #242F46;
            font-weight: 400;
        }

        & video {
            border-radius: 8px 8px 0 0;
        }
    }

    .wp-block-post-terms {
        margin-top: 24px;
    }
}


@media (max-width: 800px) {

    header {
        & .link-section {
            display: none !important;
        }
    }

    div.main-wrapper,
    .related-content.full-width {
        padding: 20px 0 0 12px;
        margin: 0;
    }

    .home-page, .single-post, .topics {
        div.main-wrapper {
            padding: 20px 0 0 12px;
            margin: 0;
        }

        .related-content {
            padding: 20px 12px 0 calc(16px + 0.75rem);
        }
    }


    .footer {
        & .copyright {
            flex-wrap: wrap;
        }
    }

    .page-title {
        h1 {
            margin: 0 0 24px 0;
        }
    }

    .single-post {
        h1 {
            width: 100%;
            margin: 24px 0;
        }

        .wp-block-buttons {
            margin-bottom: 24px;
            justify-content: flex-start;
        }

        .text-content_wrapper {
            gap: 0;
        }

        .page-title_icons {
            flex-direction: column;
        }
    }

    .tag .teaser-horizontal {

        &.wp-block-columns.is-layout-flex {
            display: block;
        }

    }

    .teaser-horizontal {
        padding: 0;

        & img {
            border-radius: 8px 8px 0 0;
        }
    }

    .teaser-horizontal_subtitle {
        margin: 0px 20px 6px 20px;
    }

    .teaser-horizontal_title {
        margin: 0 20px 8px 20px;

        font-size: 18px;
        font-weight: 500;
    }

    .teaser-horizontal_text {
        margin: 0 20px 0 20px;

        font-size: 14px;
    }

    .teaser-vertical {
        height: auto;
    }

    .teaser-vertical_title {
        font-size: 18px;
        font-weight: 500;
    }

    .teaser-vertical_text {
        font-size: 14px;
    }

    .teaser-vertical_subtitle {
        margin-top: 0;
    }

    .main-content-container ul {
        display: flex;
        flex-direction: column;
    }

    .main-content-container .categories_list_small div {
        flex-direction: row;
    }

    div.categories_list div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;

        & a {
            align-items: center;
        }
    }

    .topics {
        .main-content-container, div.related-content.full-width {
            & div {
                align-items: unset;
                width: auto;
            }
        }

        .ad-horizontal_desktop {
            display: none;
        }

        .ad-horizontal_mobile {
            display: block;
            width: 350px;
            height: auto;
        }
    }

    .home {
        .ad-horizontal_desktop {
            display: none;
        }

        .ad-horizontal_mobile {
            display: block;
            width: 350px;
            height: auto;
        }
    }
}

div.newsletter {
    & .input-wrapper {
        min-width: 100%;

        & input {
            min-width: 100%;
        }
    }
}

.related-content.full-width {
    padding-left: 32px;
    width: auto;

    & ul {
        display: grid;
    }
}

.bottom-wrapper {
    align-items: flex-start;
    flex-wrap: nowrap;
    flex-direction: column;


    & .secondary {
        align-self: center;
        width: 100%;

        background-position: center left 6%; /* Bild links ausrichten */
    }
}

.ad-horizontal {
    display: flex;
    justify-content: center;
}


.single-post {
    .mobile-ad_container {
        margin-top: 32px;


        .mobile-ad {
            display: flex;
            justify-content: center;
        }
    }

    & .yoast-breadcrumbs {
        & span {
            padding-bottom: 0;
            flex-wrap: wrap;
            gap: 4px;
        }
    }
}

.text-content_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 24px;

    & .wp-block-buttons {
        justify-content: flex-start;
    }

    h1 {
        margin-bottom: 24px;
    }

    figure {
        margin: 0;
    }

    .page-title-icons {
        padding: 0;
    }
}


div.main-wrapper.topics, div.main-wrapper.category {
    padding: 20px 0 0 12px;
}

@media (max-width: 1000px) {

    .footer {
        & .copyright {
            flex-wrap: wrap;
        }
    }

    .teaser-horizontal {
        flex-direction: row;
        width: 100%;
        height: auto;
    }

    .page-title {
        display: block;

        & .wp-block-buttons {
            justify-content: flex-start;
        }
    }

    .text-content_wrapper {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-content: flex-start;
        gap: 24px;

        & .wp-block-buttons {
            justify-content: flex-start;
        }

        h1 {
            margin-bottom: 24px;
        }

        figure {
            margin: 0;
        }

        .page-title-icons {
            padding: 0;
        }
    }
}