.themencards .card{
    border-radius: 25px;
    border: 0;
}
.themencards .card.linked-card .card-body > a::after{
    content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM1ODliYjUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLWFycm93LXJpZ2h0LWNpcmNsZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiPjwvY2lyY2xlPjxwb2x5bGluZSBwb2ludHM9IjEyIDE2IDE2IDEyIDEyIDgiPjwvcG9seWxpbmU+PGxpbmUgeDE9IjgiIHkxPSIxMiIgeDI9IjE2IiB5Mj0iMTIiPjwvbGluZT48L3N2Zz4=);
    position: absolute;
    bottom: 10px;
    right: 20px;
}
[data-bs-theme="contrast"] .themencards .card.linked-card .card-body > a::after {
    content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLWFycm93LXJpZ2h0LWNpcmNsZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiPjwvY2lyY2xlPjxwb2x5bGluZSBwb2ludHM9IjEyIDE2IDE2IDEyIDEyIDgiPjwvcG9seWxpbmU+PGxpbmUgeDE9IjgiIHkxPSIxMiIgeDI9IjE2IiB5Mj0iMTIiPjwvbGluZT48L3N2Zz4=);
    position: absolute;
    bottom: 10px;
    right: 20px;
}
.themencards .card .card-body {
    padding: 25px;
}
.themencards .card .card-body p {
    color: #334352;
}
.frame-background-primary > .frame-group-container > .frame-group-inner .themencards .card .card-body .theme-btn.theme-btn-border,
.theme-btn.theme-btn-border,
.card a.theme-btn.theme-btn-border:not(.btn){
    color: var(--dark-gray);
    border: 2px solid var(--primary);
}

/* --- Card Category Label ------------------------------------------------------------------------------------------ */

.themencards .card .category-label {
    position: absolute;
    top: 2.5rem;
    padding: .25rem .5rem .25rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

/* --- Card Bild ---------------------------------------------------------------------------------------------------- */

.themencards .img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;

    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.themencards .image-container img {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Textbegrenzung ----------------------------------------------------------------------------------------------- */

.themencards .card .card-body h1,
.themencards .card .card-body h2,
.themencards .card .card-body h3,
.themencards .card .card-body h4,
.themencards .card .card-body h5,
.themencards .card .card-body h6 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.themencards .card .card-body .teaser {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* --- buttonfarben ----------------------------------------------------------------------------------------------- */

.frame-background-primary > .frame-group-container > .frame-group-inner .themencards .card .card-body .theme-btn.theme-btn-border{
    border-color: var(--primary);
}

.frame-background-secondary > .frame-group-container > .frame-group-inner .themencards .card .card-body .theme-btn.theme-btn-border {
    border-color: var(--secondary);
}

.frame-background-warning > .frame-group-container > .frame-group-inner .themencards .card .card-body .theme-btn.theme-btn-border {
    border-color: var(--warning);
}

.frame-background-tertiary > .frame-group-container > .frame-group-inner .themencards .card .card-body .theme-btn.theme-btn-border {
    border-color: var(--tertiary);
}

.frame-background-quaternary > .frame-group-container > .frame-group-inner .themencards .card .card-body .theme-btn.theme-btn-border {
    border-color: var(--quaternary);
}

.frame-background-dark > .frame-group-container > .frame-group-inner .themencards .card .card-body .theme-btn.theme-btn-border {
    border-color: var(--dark);
}

/* --- Textbegrenzung ----------------------------------------------------------------------------------------------- */

.frame-background-primary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
.frame-background-secondary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
.frame-background-warning > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
.frame-background-tertiary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
.frame-background-quaternary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
.frame-background-dark > .frame-group-container > .frame-group-inner .themencards .card .card-body *, 
[data-bs-theme="dark"] .frame-background-primary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
[data-bs-theme="dark"] .frame-background-secondary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
[data-bs-theme="dark"] .frame-background-warning > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
[data-bs-theme="dark"] .frame-background-tertiary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
[data-bs-theme="dark"] .frame-background-quaternary > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
[data-bs-theme="dark"] .frame-background-dark > .frame-group-container > .frame-group-inner .themencards .card .card-body *,
[data-bs-theme="dark"] .frame-background-light > .frame-group-container > .frame-group-inner .themencards .card .card-body * {
    color: var(--dark-gray);
}
.frame-group-container > .frame-group-inner .themencards .card {
    border: 1px solid var(--dark-gray);
}
.frame-background-primary > .frame-group-container > .frame-group-inner .themencards .card,
.frame-background-secondary > .frame-group-container > .frame-group-inner .themencards .card,
.frame-background-warning > .frame-group-container > .frame-group-inner .themencards .card,
.frame-background-tertiary > .frame-group-container > .frame-group-inner .themencards .card,
.frame-background-quaternary > .frame-group-container > .frame-group-inner .themencards .card,
.frame-background-dark > .frame-group-container > .frame-group-inner .themencards .card {
    border: 0;
}
[data-bs-theme="contrast"] .frame-background-primary > .frame-group-container > .frame-group-inner .themencards .card,
[data-bs-theme="contrast"] .frame-background-secondary > .frame-group-container > .frame-group-inner .themencards .card,
[data-bs-theme="contrast"] .frame-background-warning > .frame-group-container > .frame-group-inner .themencards .card,
[data-bs-theme="contrast"] .frame-background-tertiary > .frame-group-container > .frame-group-inner .themencards .card,
[data-bs-theme="contrast"] .frame-background-quaternary > .frame-group-container > .frame-group-inner .themencards .card,
[data-bs-theme="contrast"] .frame-background-dark > .frame-group-container > .frame-group-inner .themencards .card {
    border: 1px solid var(--dark-gray);
}

