/* FB Marketplace Anzeigen Display - Frontend Styles */

.fb-ads-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* 2-Spalten-Layout für Desktop (ab 768px) */
@media (min-width: 768px) {
    .fb-ads-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fb-ad-item {
    display: flex;
}

.fb-ad-card {
    width: 100%;
    border: 1px solid #dddfe2;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.fb-ad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.fb-ad-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f2f5;
}

.fb-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.fb-ad-card:hover .fb-ad-image {
    transform: scale(1.05);
}

.fb-ad-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fb-ad-item-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1c1e21;
    line-height: 1.3;
}

.fb-ad-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #1877f2;
    margin-bottom: 15px;
}

.fb-ad-description {
    font-size: 0.95em;
    color: #65676b;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.fb-ad-button {
    display: block;
    background-color: #1877f2;
    color: #ffffff !important;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s ease;
}

.fb-ad-button:hover {
    background-color: #166fe5;
    text-decoration: none;
}
