/* Fahrzeugverwaltung Frontend CSS */

/* Fahrzeug-Liste */
.fzv-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.fzv-vehicle-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fzv-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.fzv-vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.fzv-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fzv-vehicle-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
}

.fzv-vehicle-content {
    padding: 15px;
}

.fzv-vehicle-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.fzv-vehicle-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.fzv-vehicle-detail {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.fzv-vehicle-detail-icon {
    margin-right: 5px;
    color: #999;
}

/* Einzelansicht */
.fzv-single-vehicle {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fzv-vehicle-gallery {
    margin-bottom: 30px;
}

.fzv-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.fzv-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.fzv-thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.fzv-thumbnail:hover,
.fzv-thumbnail.active {
    border-color: #0073aa;
}

.fzv-vehicle-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.fzv-main-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fzv-sidebar-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.fzv-price-box {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fzv-price-box .price {
    font-size: 32px;
    font-weight: bold;
    color: #27ae60;
}

.fzv-contact-box {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.fzv-contact-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.fzv-contact-button:hover {
    background: #005a87;
    color: white;
}

/* Technische Daten Tabelle */
.fzv-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.fzv-specs-table tr {
    border-bottom: 1px solid #eee;
}

.fzv-specs-table td {
    padding: 10px;
    font-size: 14px;
}

.fzv-specs-table td:first-child {
    font-weight: 600;
    color: #666;
    width: 40%;
}

/* Ausstattung */
.fzv-equipment-section {
    margin: 30px 0;
}

.fzv-equipment-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.fzv-equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.fzv-equipment-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.fzv-equipment-item:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 8px;
}

/* Filter */
.fzv-filter-bar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.fzv-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fzv-filter-item {
    flex: 1;
    min-width: 200px;
}

.fzv-filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.fzv-filter-item select,
.fzv-filter-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fzv-filter-submit {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.fzv-filter-submit:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .fzv-vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .fzv-vehicle-info {
        grid-template-columns: 1fr;
    }
    
    .fzv-equipment-list {
        grid-template-columns: 1fr;
    }
    
    .fzv-filter-row {
        flex-direction: column;
    }
    
    .fzv-vehicle-details {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.fzv-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.fzv-badge-new {
    background: #27ae60;
    color: white;
}

.fzv-badge-sale {
    background: #e74c3c;
    color: white;
}

.fzv-badge-reserved {
    background: #f39c12;
    color: white;
}

/* Loading Spinner */
.fzv-loading {
    text-align: center;
    padding: 40px;
}

.fzv-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}