
/* ==========================================
   RAUMAMBIENTE AACHEN
   REFERENZEN – PROJEKTÜBERSICHT
   ========================================== */

/* Bootstrap Grid */

.references-overview .row {
    row-gap: 26px;
    align-items: stretch;
}

/* ==========================================
   REFERENZKACHEL
   ========================================== */

#main .reference-project-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    background: var(--color-card-bg);
    border-radius: var(--radius-medium);
    overflow: hidden;

    transition: transform var(--transition-default);
}

.reference-project-card:hover {
    transform: translateY(-3px);
}

/* ==========================================
   BILD AUS CONTAO
   ========================================== */

#main .reference-project-card > figure {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 2 / 1;

    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.reference-project-card figure picture {
    display: block;
    width: 100%;
    height: 100%;
}

.reference-project-card figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform var(--transition-default);
}

.reference-project-card:hover figure img {
    transform: scale(1.035);
}

/* ==========================================
   FIGCAPTION – KATEGORIE ALS OVERLAY
   ========================================== */

.reference-project-card figure figcaption {
    position: absolute;
    bottom: 15px;
    left: 20px;
    z-index: 2;

    padding: 7px 13px;

    background: var(--color-gray-light);
    color: var(--color-headline);

    border-radius: var(--radius-small);

    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ==========================================
   TEXTBEREICH
   ========================================== */

.reference-project-card > .rte {
    display: flex;
    flex: 1;
    min-width: 0;
}

.reference-project-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    width: 100%;
    padding: 15px 20px;
}

.reference-project-text {
    flex: 1;
    min-width: 0;
}

.reference-project-text h3 {
    margin: 0 0 5px;

    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;

    color: var(--color-headline);
}

.reference-project-text p {
    margin: 0;

    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;

    color: var(--color-text);
}

/* ==========================================
   PFEILBUTTON
   ========================================== */

.reference-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    background: var(--color-petrol);
    color: var(--color-white);

    border-radius: var(--radius-small);
    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;

    transition:
        background var(--transition-default),
        transform var(--transition-default);
}

.reference-project-link:hover {
    background: var(--color-petrol-hover);
    color: var(--color-white);
}

.reference-project-link:hover span {
    transform: translateX(3px);
}

.reference-project-link span {
    transition: transform var(--transition-default);
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 991px) {

    .reference-project-text h3 {
        font-size: 17px;
    }

    .reference-project-text p {
        font-size: 14px;
    }

    .reference-project-info {
        padding: 14px;
    }
}

/* ==========================================
   SMARTPHONE
   ========================================== */

@media (max-width: 767px) {

    .references-overview .row {
        row-gap: 20px;
    }

    #main .reference-project-card > figure {
        aspect-ratio: 16 / 9;
    }

    .reference-project-card figure figcaption {
        left: 12px;
        bottom: 12px;
        font-size: 13px;
    }

    .reference-project-info {
        padding: 15px;
    }

    .reference-project-text h3 {
        font-size: 16px;
    }

    .reference-project-link {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 25px;
    }
}


