/*Ähnliche Artikel | Am häufigsten gelesen Artikel*/
.artikel-template-default {
    overflow-x: hidden;
}

.simart-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    row-gap: 20px;
}

.simart-module {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    width: 32%;
}

.simart-image {
    position: relative;

    .video-tag {
        position: absolute;
        bottom: 8px;
        left: 8px;

        &::before {
            content: "Video";
            background-image: url(/wp-content/themes/raabe-som/assets/video-icon.svg);
            background-repeat: no-repeat;
            background-position: left 7px center;
            background-size: 18px;
            position: absolute;
            bottom: 8px;
            left: 0px;
            background-color: var(--color-yellow);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            width: 45px;
            padding-right: 8px;
            padding-left: 20px;
            font-size: var(--text-sm);
        }
    }
}

.simart-module .merken-code img {
    width: 100%;
    height: initial;
    object-fit: cover;
}

.simart-module img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.article-thumb {
    max-height: 280px;
    height: 100%;

    &.video-true {
        position: relative;

        &::before {
            content: "Video";
            background-image: url(/wp-content/themes/raabe-som/assets/video-icon.svg);
            background-repeat: no-repeat;
            background-position: left 7px center;
            background-size: 18px;
            position: absolute;
            bottom: 8px;
            left: 8px;
            background-color: var(--color-yellow);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            width: 45px;
            padding-right: 8px;
            padding-left: 20px;
            font-size: var(--text-sm);
        }
    }
}

.simart-module .merken-code span img {
    width: 14px;
    height: 57px;
    object-fit: contain;
}

.simart-text {
    margin-bottom: 20px;
}

.simart-content {
    padding: 24px;
    height: 100%;
}

.simart-content a:has(:not(button)):hover {
    text-decoration: underline;
}

.simart-category {
    display: flex;
}

.simart-category::before {
    content: "";
    background-image: url("/wp-content/themes/raabe-som/assets/up_hexagon.svg");
    background-repeat: no-repeat;
    background-size: 29px;
    width: 32px;
    height: 32px;
    display: inline-block;
    position: absolute;
}

.simart-category p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simart-category .category_icon {
    width: 30px;
    height: 30px;
    margin-right: 16px;
    padding: 3px;
}

.simart-category .article-category {
    font-size: var(--text-l);
    line-height: var(--lh-l);
    color: var(--color-dark);
    margin-bottom: 12px;
    font-family: var(--font-family-semibold);
}

.simart-title {
    font-family: var(--font-family-extrabold);
    font-size: var(--text-4xl);
    line-height: var(--lh-4xl);
    padding-bottom: 10px;
}

.simart-date {
    display: flex;
    gap: 10px;
}

.simart-date div,
.simart-meta div,
.reading-time {
    font-size: var(--text-xs);
    line-height: var(--lh-xs);
    font-family: var(--font-family-light);
}

.simart-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.simart-meta .et_pb_button::after {
    opacity: 1;
}

@media (max-width: 1024px) {
    .simart-content {
        padding: 24px 0px;
        height: 100%;
    }

    .simart-category .article-category {
        font-size: var(--text-copy);
        line-height: var(--lh-copy);
    }
}

@media (max-width: 980px) {
    .simart-module {
        width: 49%;
        margin-bottom: 0px !important;
    }
}

@media (max-width: 767px) {
    .article-body table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }

    .simart-module {
        width: 100%;
    }

    .simart-liste {
        gap: 24px;
    }

    .simart-content {
        padding: 24px 0px;
    }
}

/*Article Block Tooltip*/
.et-tooltip {
    cursor: pointer;
}

.et-tooltip-box {
    background-color: var(--color-dark);
    color: var(--color-white) !important;
    padding: 16px;
    border: none;
    font-family: "RaabeTheSans-Light";
    font-weight: initial;
    font-size: var(--text-base);
    line-height: var(--lh-base);
    bottom: 100%;

    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    max-width: 300px;

    white-space: normal;
    word-wrap: break-word;
    min-width: 50px;
    box-sizing: border-box;

    /* Grenzen innerhalb des Viewports */
    max-width: calc(100vw - 20px);
    /* immer 10px Abstand links/rechts */
    z-index: 9999;
}

.et-tooltip-box a {
    color: var(--color-white) !important;
    text-decoration: underline;
}

.et-tooltip:hover::before {
    content: "";
    width: 0px;
    height: 13px;
    display: inline;
    position: absolute;
    top: -5px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color-dark);
}

.et-tooltip-arrow {
    display: none;
}

.et-tooltip {
    color: var(--color-dark-blue);
}

.et-tooltip-box oblique {
    color: var(--color-blue);
}

.et-tooltip-box oblique::before {
    content: "[";
}

.et-tooltip-box oblique::after {
    content: "]";
}

.article-tags-container {
    display: flex;
}