/* Album content only: retain all existing grids, widths, image ratios and hover rules. */
/* Fotoalbum overview: same 16px corners as homepage album cards. */
body.post-type-archive-fotos .eb-album-widget .elementor-post__card,
.eb-location-albums .event-card-foto {
    border-radius: 16px;
    overflow: hidden;
}
.eb-album-widget .elementor-post__text .elementor-post__title {
    line-height: 1.35;
    height: 4.05em;
    min-height: 4.05em;
    overflow: hidden;
}
.eb-album-widget .elementor-post__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: inherit;
    max-height: 4.05em;
}
.eb-album-widget .elementor-post__card .elementor-post__meta-data {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top-color: var(--e-global-color-primary, #e6007e);
}
.eb-album-widget .elementor-post__meta-data .eb-album-date,
.eb-album-widget .elementor-post__meta-data .eb-album-place {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin: 0;
    line-height: 1.5;
}
.eb-album-widget .elementor-post__meta-data .eb-album-place {
    font-size: 12px;
    color: inherit;
    text-decoration: none;
}
.eb-album-widget .elementor-post__meta-data a.eb-album-place:hover { text-decoration: underline; }
.eb-album-widget .elementor-post__meta-data .eb-album-place::before { content: none; }
.eb-location-albums .event-card-body { flex-grow: 0; }
.eb-location-albums .event-title {
    line-height: 1.35;
    height: 4.05em;
    min-height: 4.05em;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eb-location-albums .eb-location-album-meta {
    margin-top: auto;
    border-top: 1px solid var(--e-global-color-primary, #e6007e);
    padding: 12px 18px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--e-global-color-b43303b, #fff);
    white-space: nowrap;
}
.eb-location-albums .eb-album-load { padding-top: 22px; text-align: center; }
.eb-location-albums .eb-album-next { color: var(--e-global-color-primary, #e6007e); }
.eb-location-albums .eb-album-status { display: block; font-size: 14px; margin-top: 8px; }
.eb-location-albums .eb-album-load[hidden] { display: none; }

/* Decorative symbols inherit the metadata color and reserve no additional line. */
.eb-album-widget .elementor-post__meta-data .eb-album-date,
.eb-album-widget .elementor-post__meta-data .eb-album-place:not(.eb-album-place-empty),
.eb-location-albums .eb-album-date {
    position: relative;
    padding-left: 21px;
}
.eb-location-albums .eb-album-date { display: inline-block; }
.eb-album-widget .elementor-post__meta-data .eb-album-date::before,
:is(.eb-album-widget .elementor-post__meta-data, .eb-location-album-meta) a.eb-album-place::before,
.eb-location-albums .eb-album-date::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(50% - 7px);
    width: 14px;
    height: 14px;
    margin: 0;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.eb-album-widget .elementor-post__meta-data .eb-album-date::before,
.eb-location-albums .eb-album-date::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
}
:is(.eb-album-widget .elementor-post__meta-data, .eb-location-album-meta) a.eb-album-place::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

/* Refined black/magenta interiors; existing columns, images and outer containers stay native. */
.elementor .eb-album-widget .elementor-post__card .elementor-post__text {
    margin: 18px 20px;
    padding: 0;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    min-width: 0;
    box-sizing: border-box;
}
.eb-album-widget .elementor-post__card .elementor-post__title { margin: 0; }
.eb-album-widget .elementor-post__card .elementor-post__meta-data {
    padding: 14px 20px;
}
.eb-album-widget .elementor-post__meta-data .eb-album-date::before,
.eb-album-widget .elementor-post__meta-data a.eb-album-place::before,
.eb-location-album-meta .eb-album-date::before,
.eb-location-album-meta a.eb-album-place::before {
    color: var(--e-global-color-primary, #e6007e);
}
.eb-location-albums .eb-location-album-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.eb-location-albums .event-card-body { padding: 18px 20px; }
.eb-location-albums .eb-location-album-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 20px;
    min-width: 0;
}
.eb-location-album-meta .eb-album-date,
.eb-location-album-meta .eb-album-place {
    display: block;
    position: relative;
    padding-left: 21px;
    line-height: 1.5;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eb-location-album-meta .eb-album-place { font-size: 12px; color: inherit; text-decoration: none; }
.eb-location-album-meta a.eb-album-place:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
    body.post-type-archive-fotos .eb-album-widget .elementor-post__card {
        transition: transform .2s ease, box-shadow .2s ease;
    }
    body.post-type-archive-fotos .eb-album-widget .elementor-post__card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(8, 8, 11, .22);
    }
}
@media (prefers-reduced-motion: reduce) {
    body.post-type-archive-fotos .eb-album-widget .elementor-post__card { transition: none; }
    body.post-type-archive-fotos .eb-album-widget .elementor-post__card:hover { transform: none; }
}

/* Long words wrap inside the title box instead of being clipped at the card edge. */
.eb-album-widget .elementor-post__title,
.eb-album-widget .elementor-post__title a,
.eb-location-albums .event-title {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Desktop only: mobile typography stays unchanged; titles still reserve three lines. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .elementor .eb-album-widget .elementor-post__text .elementor-post__title,
    .elementor .eb-album-widget .elementor-post__text .elementor-post__title a,
    .eb-location-albums .event-card-body .event-title {
        font-size: 19px;
    }
}

/* Fotoalben: kompakter Titelbereich, unabhängig von der Fensterhöhe. */
body.post-type-archive-fotos .elementor-34913 .elementor-element.elementor-element-a1cc14c {
 min-height: 140px;
 --min-height: 140px;
 padding-top: 24px;
 padding-bottom: 24px;
}

body.post-type-archive-fotos .elementor-34913 .elementor-element.elementor-element-a1cc14c > .e-con-inner {
 padding-top: 0;
 padding-bottom: 0;
 min-height: 0;
}

/* Eventbox variant 4 trial: gradient metadata, larger type; native card grids retained. */
.elementor .eb-album-widget .elementor-post__card .elementor-post__meta-data,
.eb-location-albums .eb-location-album-meta {
    background: linear-gradient(110deg, #B00060 0%, #E6007E 100%);
    color: #fff;
    padding: 11px 20px;
    gap: 5px;
    border-top-color: #E6007E;
    justify-content: center;
    box-sizing: border-box;
}
.elementor .eb-album-widget .elementor-post__meta-data :is(.eb-album-date, .eb-album-place),
.eb-location-albums .eb-location-album-meta :is(.eb-album-date, .eb-album-place) {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 22.5px;
    padding-left: 28px;
    text-align: left;
}
.elementor .eb-album-widget .elementor-post__meta-data .eb-album-date::before,
.elementor .eb-album-widget .elementor-post__meta-data a.eb-album-place::before,
.eb-location-albums .eb-location-album-meta .eb-album-date::before,
.eb-location-albums .eb-location-album-meta a.eb-album-place::before {
    color: #fff;
    width: 18px;
    height: 18px;
    top: calc(50% - 9px);
}

/* Location names: more characters without changing metadata row/card height. */
.elementor .eb-album-widget .elementor-post__meta-data .eb-album-place,
.eb-location-albums .eb-location-album-meta .eb-album-place {
    font-size: 14px;
    font-weight: 500;
    padding-left: 22px;
    line-height: 22.5px;
}
.elementor .eb-album-widget .elementor-post__meta-data a.eb-album-place::before,
.eb-location-albums .eb-location-album-meta a.eb-album-place::before {
    width: 14px;
    height: 14px;
    top: calc(50% - 7px);
}

/* Foto des Monats: Ortsnamen in schmalen Hochformat-Kacheln umbrechen. */
@media (max-width: 767px) and (orientation: portrait) {
    .elementor .eb-monthly.eb-album-widget .eb-month-card {
        display: flex;
        flex-direction: column;
    }

    .elementor .eb-monthly.eb-album-widget .eb-month-card > .eb-month-link {
        flex: 0 0 auto;
    }

    .elementor .eb-monthly.eb-album-widget .eb-month-card > .eb-month-meta {
        flex: 1 0 auto;
        justify-content: flex-start;
        padding-inline: 8px;
    }

    .elementor .eb-monthly.eb-album-widget .eb-month-meta .eb-album-place {
        max-width: 100%;
        box-sizing: border-box;
        padding-inline-start: 0;
        white-space: normal;
        hyphens: auto;
        overflow-wrap: anywhere;
        overflow: visible;
        text-overflow: clip;
        text-align: center;
        line-height: 1.35;
    }

    .elementor .eb-monthly.eb-album-widget .eb-month-meta a.eb-album-place::before {
        position: static;
        display: inline-block;
        vertical-align: -2px;
        margin-inline-end: 5px;
    }
}

/* Location artists */
.eb-location-artist-nav{margin:1rem 0}
.eb-location-artist-nav a{display:inline-block;padding:.4rem .8rem;border-bottom:2px solid #e6007e;color:inherit;font-weight:700}
.eb-location-artist-box{margin:1rem 0 1.5rem;padding:.85rem 1rem;border:1px solid rgba(127,127,127,.35);border-inline-start:3px solid #e6007e;border-radius:.5rem;scroll-margin-top:6rem}


body.single-artist #artist-auftrittsorte:has(+ .elementor-element-9f9c31e){margin-bottom:0}
body.single-artist #artist-auftrittsorte + .elementor-element-9f9c31e{margin-top:20px!important;padding-top:0!important}
