/* =========================================================
   ASV Website – Highlights / besondere Veranstaltungen
   ========================================================= */

.asv-highlights {
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(227, 6, 19, .22), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(0, 79, 159, .18), transparent 38%),
        linear-gradient(135deg, #081a31 0%, var(--asv-navy, #0b1f3a) 48%, #071526 100%);
    color: #fff;
}

.asv-highlights::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 88%);
}

.asv-highlights__inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 78px 0 84px;
}

.asv-highlights__heading {
    margin-bottom: 38px;
    text-align: center;
}

.asv-highlights__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--asv-red, #e30613);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.asv-highlights__heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.asv-highlights__accent {
    display: block;
    width: 64px;
    height: 3px;
    margin: 15px auto 0;
    background: var(--asv-red, #e30613);
}

.asv-highlights__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* Ein einzelnes Highlight bewusst groß und zentral */
.asv-highlights--count-1 .asv-highlights__grid {
    grid-template-columns: minmax(0, 840px);
    justify-content: center;
}

/* Bei ungerader Anzahl bleibt das letzte Element sauber zentriert */
.asv-highlights__grid > :last-child:nth-child(odd):not(:first-child) {
    grid-column: 1 / -1;
    width: calc(50% - 14px);
    justify-self: center;
}

.asv-highlight-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(0,0,0,.28);
    text-decoration: none !important;
    transform: translateY(0) scale(1);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.asv-highlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

a.asv-highlight-card:hover,
a.asv-highlight-card:focus-visible {
    transform: translateY(-6px) scale(1.008);
    border-color: rgba(255,255,255,.34);
    box-shadow:
        0 30px 70px rgba(0,0,0,.36),
        0 0 0 1px rgba(227,6,19,.18);
}

.asv-highlight-card__media {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.035);
}

.asv-highlight-card__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Falls kein Link hinterlegt ist, trotzdem wie eine bewusste Karte wirken */
.asv-highlight-card--static {
    cursor: default;
}

@media (max-width: 900px) {
    .asv-highlights__inner {
        padding: 64px 0 70px;
    }

    .asv-highlights__grid {
        gap: 22px;
    }
}

@media (max-width: 700px) {
    .asv-highlights__inner {
        width: min(100% - 28px, 1280px);
        padding: 52px 0 58px;
    }

    .asv-highlights__heading {
        margin-bottom: 28px;
    }

    .asv-highlights__heading h2 {
        font-size: 34px;
    }

    .asv-highlights__grid,
    .asv-highlights--count-1 .asv-highlights__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .asv-highlights__grid > :last-child:nth-child(odd):not(:first-child) {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .asv-highlight-card {
        border-radius: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asv-highlight-card {
        transition: none !important;
    }
}
