/* =========================
   REFERENZEN
========================= */

#referenzen_section {
    background: var(--primary-color);
    position: relative;
}

#referenzen_section h2 {
    font-size: clamp(48px, 8vw, 80px);
    margin-bottom: 80px;
    text-align: center;
}

/* GRID */
#referenzen_section .flex_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* CARD */
.website {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(39, 170, 70, 0.03);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;

    cursor: pointer;

    will-change: transform;
}

/* HOVER */
.website:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.28);
}

/* BROWSER TOP BAR */
.website::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 42px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.03)
        );

    z-index: 3;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

/* Browser Dots */
.website::after {
    content: "●  ●  ●";

    position: absolute;
    top: 12px;
    left: 18px;

    font-size: 10px;
    letter-spacing: 2px;

    color: rgba(255,255,255,0.5);

    z-index: 4;
}

/* IMAGE */
.website img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top;

    display: block;

    transition:
        transform 7s ease;
}

.website img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;

    transform: scale(1.02);
    transition: transform 1.4s ease;
}

.website:hover img {
    transform: scale(1.12);
}

/* OVERLAY */
.website-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88),
        rgba(0,0,0,0.15),
        transparent
    );

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 40px;

    opacity: 0;
    transition: opacity 0.35s ease;

    z-index: 2;
}

.website:hover .website-overlay {
    opacity: 1;
}

/* TAG */
.website-tag {
    font-size: 16px;
    color: white;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);

    margin-bottom: 12px;
}

/* TITLE */
.website-overlay h3 {
    font-size: 32px;

    color: white;

    margin-bottom: 12px;
}

/* BUTTON */
.website-btn {
    width: fit-content;

    padding: 12px 22px;

    border-radius: 100px;

    background: white;

    color: var(--main-brand-color);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.website-btn:hover {
    transform: translateY(-2px);

    background: var(--secondary-color);
}




/* RESPONSIVE */
@media (max-width: 900px) {

    #referenzen_section .flex_container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .website-overlay {
        padding: 28px;
    }

    .website-overlay h3 {
        font-size: 26px;
    }

}