/*
 Theme Name:     Divi Child Theme
 Theme URI:      http://www.elegantthemes.com
 Description:    Child Theme for Divi Theme by Elegant Themes
 Author:         Divi.world
 Author URI:     http://divi.world
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Ab hier kannst du deine CSS-Anpassungen eintragen
------------------------------------------------------- */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('/wp-content/themes/Divi-Child-Theme/Fonts/Roboto/RobotoCondensed-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/** mobile **/
.vehicle-list {
    max-width: 100%;
    margin: 0 auto;
    color: #333;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vehicle-item {
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.vehicle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.vehicle-images {
    width: 100%;
    position: relative;
}

.main-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #eee;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.thumbnail-row {
    display: flex;
    gap: 5px;
    padding: 5px;
    background-color: #f0f0f0;
    overflow-x: auto;
}

.thumbnail {
    width: 70px;
    height: 50px;
    min-width: 70px; /* Verhindert Schrumpfen */
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: #d30a2c;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-details h2 {
    color: #d30a2c;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #d30a2c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.main-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    margin-right: .5rem;
    text-transform: uppercase;
}

.spec-value {
    font-weight: 600;
}

.additional-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 15px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}

.spec-row:last-child {
    border-bottom: none;
}

.features {
    margin-top: 15px;
}

.features h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #686868;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag {
    background-color: #eef5fd;
    color: #d30a2c;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 13px;
    white-space: nowrap;
}

.actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.details-btn {
    display: inline-block;
    background-color: #d30a2c;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s;
    text-align: center;
    width: 100%;
}

.details-btn:hover {
    background-color: #d30a2c;
    text-decoration: none !important;
}

.error {
    background-color: #ffeeee;
    border-left: 5px solid #d30a2c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    grid-column: 1 / -1;
}

.vehicle-list a {
    color: #0066cc;
    text-decoration: none;
}

.vehicle-list a:hover {
    text-decoration: underline;
}

.vehicle-list hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
    grid-column: 1 / -1;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .vehicle-list {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .vehicle-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .main-specs {
        grid-template-columns: 1fr;
    }
}