﻿/*
|--------------------------------------------------------------------------
| Fahrzeug-Scout24
| Projekt Phoenix
| Merkliste
|--------------------------------------------------------------------------
*/

.favorites-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}


/*
|--------------------------------------------------------------------------
| Überschrift
|--------------------------------------------------------------------------
*/

.favorites-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.favorites-label {
    display: block;
    margin-bottom: 10px;

    color: #0865e8;

    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.favorites-heading h1 {
    margin: 0 0 14px;

    color: #1f2933;

    font-size: 2.1rem;
    line-height: 1.2;
}

.favorites-heading p {
    margin: 0;

    color: #64748b;

    font-size: 1.05rem;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Leere Merkliste
|--------------------------------------------------------------------------
*/

.favorites-empty {
    max-width: 700px;
    margin: 0 auto;

    padding: 48px 32px;

    background: #ffffff;

    border: 1px solid #dfe5eb;
    border-radius: 14px;

    box-shadow:
        0 6px 22px
        rgba(0, 0, 0, 0.06);

    text-align: center;
}

.favorites-empty-heart {
    width: 72px;
    height: 72px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef5ff;

    border-radius: 50%;

    color: #0865e8;
}

.favorites-empty-heart svg {
    width: 38px;
    height: 38px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorites-empty h2 {
    margin: 0 0 12px;

    color: #1f2933;

    font-size: 1.45rem;
}

.favorites-empty p {
    max-width: 520px;

    margin: 0 auto 25px;

    color: #64748b;

    line-height: 1.65;
}

.favorites-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 20px;

    background: #0865e8;

    border-radius: 7px;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 700;

    text-decoration: none;

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

.favorites-search-button:hover {
    background: #0758c9;
    color: #ffffff;

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| Anzahl
|--------------------------------------------------------------------------
*/

.favorites-count {
    margin-bottom: 20px;

    color: #64748b;

    font-size: 0.95rem;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Fahrzeugkarten
|--------------------------------------------------------------------------
*/

.favorites-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;
}

.favorite-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e2e6ea;
    border-radius: 12px;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.favorite-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.10);
}

.favorite-card-image-link {
    display: block;
}

.favorite-card-image {
    display: block;

    width: 100%;
    height: 210px;

    object-fit: cover;

    background: #eeeeee;
}

.favorite-card-image-placeholder {
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #eef1f4;

    color: #7b8794;

    font-size: 0.9rem;
    text-align: center;
}

.favorite-card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 18px;
}

.favorite-card-category {
    margin-bottom: 7px;

    color: #64748b;

    font-size: 13px;
}

.favorite-card h2 {
    margin: 0 0 12px;

    font-size: 20px;
    line-height: 1.35;
}

.favorite-card h2 a {
    color: #1f2933;
    text-decoration: none;
}

.favorite-card h2 a:hover {
    color: #0865e8;
}

.favorite-card-price {
    margin-bottom: 14px;

    color: #1e3a5f;

    font-size: 22px;
    font-weight: 700;
}

.favorite-card-details {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 16px;

    color: #64748b;

    font-size: 14px;
}

.favorite-card-location {
    margin-top: 12px;

    color: #475569;

    font-size: 14px;
}

.favorite-card-button {
    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 16px;

    background: #0865e8;

    border-radius: 7px;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;

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

.favorite-card-button:hover {
    background: #0758c9;
    color: #ffffff;

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .favorites-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/*
|--------------------------------------------------------------------------
| Smartphone
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .favorites-page {
        padding:
            35px 18px
            50px;
    }

    .favorites-heading {
        margin-bottom: 32px;
    }

    .favorites-heading h1 {
        font-size: 1.75rem;
    }

    .favorites-empty {
        padding: 38px 20px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .favorite-card-image {
        height: 230px;
    }

    .favorite-card-image-placeholder {
        height: 230px;
    }

}


