/* ==========================================================================
   archive-referenzen — Referenzen-Archivseite
   Hero wird von m33_page_hero.css gehandled.
   CTA wird von m32_team_cta.css + page-objekte.css (m45_cta) gehandled.
   Pagination nutzt die m45_pagination-Klassen aus page-objekte.css.
   Figma: 2-spaltige Grid, Karten 714×588px bei 1920px Referenz.
   ========================================================================== */

/* --------------------------------------------------------------------------
   LISTING-WRAPPER
   -------------------------------------------------------------------------- */
.ref_listing_wrap {
    padding-top: clamp(40px, 4vw, 64px);
    padding-bottom: clamp(40px, 5vw, 64px);
}

/* --------------------------------------------------------------------------
   GRID: 2 Spalten
   -------------------------------------------------------------------------- */
.ref_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .ref_grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --------------------------------------------------------------------------
   KARTE — Figma 64:1468
   -------------------------------------------------------------------------- */
.ref_card {
    background: #fff;
    border: 1px solid #E1E2E3;  /* Figma: dezenter Karten-Rahmen */
    display: flex;
    flex-direction: column;
}
.ref_card_link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.ref_card_link:hover .ref_card_media img {
    transform: scale(1.03);
}

/* --- Bild-Bereich --- */
.ref_card_media {
    aspect-ratio: 714 / 340;
    overflow: hidden;
    background: #e1e2e3;
    position: relative;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
}
.ref_card_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
/* Gradient-Overlay oben (wie in Figma) */
.ref_card_media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(47,58,70,0.70) 0%, rgba(47,58,70,0) 40%);
    pointer-events: none;
}

/* --- Karten-Inhalt --- */
.ref_card_body {
    padding: clamp(20px, 2.5vw, 36px) clamp(20px, 3vw, 48px) clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Standort-Zeile — identisch zu m45_card_location */
.ref_card_location {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--hs-gold);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    line-height: 1;
    margin: 0 0 14px;
}
.ref_card_location_mark {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--hs-gold);
    flex-shrink: 0;
}

/* Titel */
.ref_card_title {
    font-family: var(--hs-font-display);
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.23;
    letter-spacing: 0.03em;
    color: var(--hs-dark);
    margin: 0 0 14px;
}

/* Beschreibungstext */
.ref_card_text {
    font-size: 16px;
    font-weight: 300;
    color: var(--hs-text);
    line-height: 1.5;
    margin: 0;
}
