/* Termin-Akkordeon 1.2.0: complete visible posts, bounded images, mobile gallery action. */
.ta-list {
    --ta-accent: #f48231;
    --ta-heading: #649570;
    --ta-border: rgba(0, 0, 0, .12);
    --ta-radius: 20px;
    --ta-text: #000;
    --ta-image-width: 220px;
    --ta-image-height: 320px;
    --ta-control-bg: #eff5ef;
    --ta-control-hover: #e0ebe0;
    --ta-control-text: #365c40;
    display: grid;
    gap: 24px;
    color: var(--ta-text);
}

.ta-list,
.ta-list * {
    box-sizing: border-box;
}

.ta-list .ta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    border: 1px solid var(--ta-border);
    border-radius: var(--ta-radius);
    background: #fff;
    align-items: start;
    min-width: 0;
}

.ta-list .ta-has-images {
    grid-template-columns: minmax(0, 1fr) var(--ta-image-width);
}

.ta-list .ta-copy,
.ta-list .ta-header {
    min-width: 0;
}

.ta-list .ta-title {
    margin: 0;
    overflow-wrap: anywhere;
}

.ta-list .ta-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 24px;
    margin-top: 12px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--ta-text);
    overflow-wrap: anywhere;
}

.ta-list .ta-content {
    margin: 18px 0 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    min-width: 0;
}

.ta-list .ta-content> :first-child {
    margin-top: 0;
}

.ta-list .ta-content> :last-child {
    margin-bottom: 0;
}

.ta-list .ta-content img {
    max-width: 100%;
    height: auto;
}

.ta-list .ta-content .elementor {
    max-width: 100%;
    min-width: 0;
}

.ta-list .ta-media {
    min-width: 0;
    width: 100%;
    align-self: start;
}

.ta-list .ta-desktop-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    color: #000;
    line-height: 0;
    box-shadow: none;
}

/* No forced aspect ratio. Original proportions, with a fixed independent upper size limit. */
.ta-list .ta-cover {
    display: block;
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: var(--ta-image-height);
    margin: 0;
    object-fit: contain;
    border-radius: 14px;
}

.ta-list .ta-desktop-gallery:hover,
.ta-list .ta-desktop-gallery:active {
    background: transparent;
    box-shadow: none;
}

.ta-list .ta-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 12px 8px;
    background: rgba(239, 245, 239, .96);
    color: var(--ta-control-text);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s;
}

.ta-list .ta-desktop-gallery:hover .ta-overlay,
.ta-list .ta-desktop-gallery:focus-visible .ta-overlay {
    opacity: 1;
    transform: none;
}

.ta-list button:focus-visible {
    outline: 2px solid var(--ta-control-text);
    outline-offset: 4px;
}

.ta-list .ta-mobile-gallery {
    display: none;
}

.ta-list .ta-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.ta-list .ta-pagination a,
.ta-list .ta-pagination span {
    display: block;
    padding: 8px 14px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    color: var(--ta-control-text);
    text-decoration: none;
}

.ta-list .ta-pagination .current {
    background: var(--ta-control-bg);
    color: var(--ta-control-text);
    font-weight: 700;
    border-color: #9ab39d;
}

.ta-list .ta-pagination a:hover {
    background: var(--ta-control-hover);
}

.ta-list .ta-empty {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--ta-border);
    border-radius: 12px;
}

.ta-lightbox {
    --ta-heading: #649570;
    --ta-control-bg: #eff5ef;
    --ta-control-hover: #e0ebe0;
    --ta-control-text: #365c40;
    position: fixed;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 20px;
    padding: 0;
    width: min(1100px, 96vw);
    max-width: 96vw;
    max-height: 94vh;
    max-height: 94dvh;
    background: #fff;
    color: #000;
    font-family: inherit;
    box-shadow: 0 20px 90px rgba(0, 0, 0, .18);
}

.ta-lightbox::backdrop {
    background: rgba(0, 0, 0, .28);
}

.ta-lightbox .ta-lb-inner {
    padding: 20px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
}

.ta-lightbox .ta-lb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ta-lightbox .ta-lb-title {
    font: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--ta-heading);
    overflow-wrap: anywhere;
    min-width: 0;
}

.ta-lightbox button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: var(--ta-control-bg);
    color: var(--ta-control-text);
    border: 1px solid #d6e3d6;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    box-shadow: none;
    transition: background-color .18s, border-color .18s;
}

.ta-lightbox button svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: none;
    pointer-events: none;
}

.ta-lightbox button:hover {
    background: var(--ta-control-hover);
    border-color: #9ab39d;
    color: var(--ta-control-text);
    box-shadow: none;
}

.ta-lightbox button:active {
    background: #d5e3d5;
}

.ta-lightbox button:focus-visible {
    outline: 2px solid var(--ta-control-text);
    outline-offset: 3px;
}

.ta-lightbox .ta-lb-figure {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 80px;
}

.ta-lightbox .ta-lb-image {
    max-width: 100%;
    height: auto;
    max-height: 67vh;
    max-height: 67dvh;
    object-fit: contain;
    touch-action: pan-y;
}

.ta-lightbox .ta-lb-caption {
    font: inherit;
    font-size: .9rem;
    line-height: 1.5;
    color: #000;
    text-align: center;
    max-width: 80ch;
}

.ta-lightbox .ta-lb-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ta-lightbox [hidden] {
    display: none !important;
}

@media (hover: none),
(pointer: coarse) {
    .ta-list .ta-overlay {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .ta-list {
        --ta-image-width: 190px;
    }

    .ta-list .ta-card {
        gap: 22px;
    }
}

@media (max-width: 700px) {

    .ta-list .ta-card,
    .ta-list .ta-has-images {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
        gap: 0;
    }

    .ta-list .ta-media {
        display: none;
    }

    .ta-list .ta-header {
        display: flex;
        align-items: flex-start;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .ta-list .ta-title {
        flex: 1 1 0;
        min-width: 0;
    }

    .ta-list .ta-mobile-gallery {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 0 0 auto;
        width: auto;
        max-width: 122px;
        min-height: 44px;
        padding: 8px 10px;
        margin: 0;
        background: var(--ta-control-bg);
        color: var(--ta-control-text);
        border: 1px solid #d6e3d6;
        border-radius: 10px;
        box-shadow: none;
        cursor: pointer;
        font: inherit;
        font-size: .8rem;
        font-weight: 600;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
        transition: background-color .18s, border-color .18s;
    }

    .ta-list .ta-mobile-gallery svg {
        display: block;
        flex: none;
        width: 18px;
        height: 18px;
    }

    .ta-list .ta-mobile-gallery:hover {
        background: var(--ta-control-hover);
        border-color: #9ab39d;
        color: var(--ta-control-text);
    }

    .ta-list .ta-mobile-gallery:active {
        background: #d5e3d5;
    }

    .ta-lightbox .ta-lb-inner {
        padding: 12px;
    }

    .ta-lightbox .ta-lb-image {
        max-height: 60vh;
        max-height: 60dvh;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ta-list .ta-overlay,
    .ta-list .ta-mobile-gallery,
    .ta-lightbox button {
        transition: none;
    }
}
/* Event metadata: consistent typography, responsive wrapping, no external icon fonts. */
.ta-list .ta-meta-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.ta-list .ta-meta-text { min-width: 0; overflow-wrap: anywhere; }
.ta-list .ta-meta-icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: calc((1.5em - 20px) / 2);
    color: var(--ta-heading);
}
.ta-list .ta-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
