/* Allgemein */
.carliner-wrapper, .carliner-detail-wrapper {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}
.c-loading { padding: 40px; text-align: center; color: #666; font-size: 18px; }
.error-box { padding: 20px; background: #fee; border: 1px solid #fcc; color: #c00; border-radius: 4px; }

/* Filter */
.carliner-search-box { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #e9ecef; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; align-items: end; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.form-group select { width: 100%; padding: 10px; border: 1px solid #ced4da; border-radius: 4px; }
.carliner-btn { width: 100%; padding: 10px; background: #0056b3; color: white; border: none; border-radius: 4px; cursor: pointer; }

/* Buttons */
a.c-detail-btn {
    display: block; text-align: center; background: #0056b3; color: white; text-decoration: none;
    padding: 10px; border-radius: 4px; margin-top: auto; font-weight: 500; transition: background 0.2s;
}
a.c-detail-btn:hover { background: #004494; }

/* EMISSION BOX STYLE */
.card-emission-box {
    background-color: #f1f3f5;
    color: #666;
    font-size: 11px;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* FACTS VERTICAL */
.car-facts-vertical {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}
.fact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}
.fact-item:last-child { border-right: none; }
.fact-val {
    font-weight: bold;
    font-size: 13px;
    color: #222;
}
.fact-label {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* CARDS STYLES - MIT SCHATTEN */
.car-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s; /* Weicher Übergang */
    
    /* HIER: SCHATTEN AUCH OHNE HOVER */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* Etwas stärker bei Hover */
}
.car-img-link { display: block; overflow: hidden; }

/* Bilder Zentrieren */
.car-img {
    height: 200px;
    background-size: cover;
    background-position: center center;
    transition: transform 0.3s;
}
.car-card:hover .car-img { transform: scale(1.05); }

.car-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.car-body h3 { margin: 0 0 5px 0; font-size: 18px; }
.car-body h3 a { color: #333; text-decoration: none; }
.car-sub { font-size: 13px; color: #777; margin-bottom: 10px; }
.car-price { font-size: 22px; font-weight: bold; color: #0056b3; margin-bottom: 10px; }

/* List Styles */
.car-list-item { display: flex; background: white; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
.list-img-link { width: 320px; flex-shrink: 0; }
.list-img { width: 100%; height: 100%; min-height: 220px; background-size: cover; background-position: center; }
.list-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.list-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.list-header h3 a { color: #333; text-decoration: none; font-size: 20px; }
.list-price { font-size: 26px; font-weight: 700; color: #0056b3; }
.list-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 14px; color: #555; margin-bottom: 15px; }
.list-footer a.c-detail-btn { display: inline-block; width: auto; padding: 10px 30px; }
@media(max-width: 768px) { .car-list-item { flex-direction: column; } .list-img-link { width: 100%; height: 200px; } .list-facts-grid { grid-template-columns: 1fr 1fr; } }

/* DETAIL SEITE */
.detail-grid-layout { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 40px; margin-bottom: 50px; margin-top: 20px; }

.main-image { text-align: center; background: #f9f9f9; border-radius: 8px; overflow: hidden; }
.main-image img { display: block; margin: 0 auto; max-width: 100%; height: auto; cursor: zoom-in; }
.thumb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 15px; }
.thumb-link img { width: 100%; height: 70px; object-fit: cover; border-radius: 4px; opacity: 0.7; transition: 0.2s; cursor: pointer; }
.thumb-link:hover img { opacity: 1; transform: scale(1.05); }

.col-sidebar { display: flex; flex-direction: column; }
.sidebar-header { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.sidebar-header h1 { margin: 0; font-size: 28px; line-height: 1.2; color: #222; }
.sidebar-sub { font-size: 16px; color: #666; margin-top: 5px; }
.sidebar-price { font-size: 32px; color: #0056b3; font-weight: 800; margin-top: 10px; }

.data-card { background: #fdfdfd; padding: 20px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 20px; }
.data-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.data-row:last-of-type { border-bottom: none; }
.consumption-text { font-size: 11px; color: #999; margin-top: 10px; font-style: italic; }

.contact-actions { display: grid; gap: 10px; margin-top: 10px; }
.btn-contact { display: block; text-align: center; padding: 12px; border-radius: 4px; text-decoration: none; font-weight: bold; color: white; transition: opacity 0.2s; }
.btn-contact:hover { opacity: 0.9; }
.btn-phone { background-color: #0056b3; }
.btn-mail { background-color: #6c757d; }
.btn-wa { background-color: #25D366; }
.loc-address { text-align: center; color: #777; margin-top: 10px; }

/* AUSSTATTUNG GRID */
.detail-equipment-section { margin-top: 40px; border-top: 1px solid #eee; padding-top: 30px; }
.detail-equipment-section h3 { margin-bottom: 20px; font-size: 24px; color: #222; }
.equip-list-container { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.equip-row-layout { display: flex; border-bottom: 1px solid #eee; }
.equip-row-layout:last-child { border-bottom: none; }
.equip-row-layout:nth-child(even) { background: #f9f9f9; }
.equip-col-cat { width: 25%; padding: 15px; background: #f1f1f1; font-weight: bold; color: #444; font-size: 14px; display: flex; align-items: center; }
.equip-col-cat h4 { margin: 0; font-size: 14px; color: #0056b3; }
.equip-col-items { width: 75%; padding: 15px; }
.equip-col-items ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.equip-col-items ul li { font-size: 14px; color: #444; display: flex; align-items: flex-start; }
.check-icon { color: #28a745; margin-right: 8px; font-weight: bold; }

.detail-recommendations { margin-top: 50px; padding-top: 30px; border-top: 2px solid #eee; }
.reco-swiper { padding-bottom: 40px; }

@media (max-width: 900px) {
    .detail-grid-layout { grid-template-columns: 1fr; }
    .equip-row-layout { flex-direction: column; }
    .equip-col-cat { width: 100%; padding: 10px 15px; border-bottom: 1px solid #ddd; }
    .equip-col-items { width: 100%; padding: 10px 15px; }
}
