/* =========================================
   Gebrauchtmaschinen v2 – CSS
   Identisch mit Original, gleiche Klassen-
   namen da der Output gleich aussehen soll.
   ========================================= */

.gm-list-wrapper,
.gm-single-wrapper {
    font-family: var(--wp--preset--font-family--barlow), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--wp--preset--color--palette-color-3);
}

.gm-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.gm-list-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.gm-list-image-wrapper {
    flex: 1 1 50%;
}

.gm-list-main-image {
    width: 100%;
    max-width: 800px;
    height: 800px;
    display: block;
    border-radius: 4px;
    background: #f5f5f5;
    object-fit: contain;
}

.gm-list-thumbs {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gm-list-thumb,
.gm-single-thumb {
    width: 70px;
    height: auto;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.8;
}

.gm-thumb--active {
    outline: 2px solid #333;
    outline-offset: 2px;
    opacity: 1;
}

.gm-list-info {
    flex: 1 1 40%;
}

.gm-list-label {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--palette-color-5);
    margin-bottom: 6px;
}

.gm-list-title {
    font-family: var(--wp--preset--font-family--barlow-condensed), var(--wp--preset--font-family--barlow), sans-serif;
    font-size: 44px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.gm-list-features {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 16px;
}

.gm-list-features li {
    margin-bottom: 4px;
}

.gm-list-features li::before {
    content: "✓ ";
    color: #27ae60;
}

.gm-list-excerpt {
    margin: 4px 0 18px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--wp--preset--color--palette-color-2);
}

/* Preis */
.gm-list-price {
    margin: 10px 0 20px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.gm-list-price-main {
    font-size: 48px;
    font-weight: 700;
}

.gm-list-price-currency {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 4px;
    align-self: flex-start;
    margin-top: -1px;
}

.gm-list-price-decimals {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    margin-left: 2px;
}

/* Button */
.gm-list-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--wp--preset--color--palette-color-3);
    color: var(--wp--preset--color--palette-color-8);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.gm-list-button:hover {
    background: var(--wp--preset--color--palette-color-2);
}

/* Responsive */
@media (max-width: 900px) {
    .gm-list-item {
        flex-direction: column;
    }
    .gm-list-image-wrapper,
    .gm-list-info {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .gm-list-main-image,
    .gm-single-main-image {
        height: 260px;
    }
}
