/**
 * Mobile.de Fahrzeuge - Responsive Breakpoints
 * Autohaus Brockmann
 */

/* Mobile First Approach */

/* Extra Small Devices (Portrait Phones, < 640px) */
@media (max-width: 639px) {
    .mod-mobilede-fahrzeuge {
        padding: 0 0.5rem;
    }
    
    .mobilede-card-item {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .mobilede-filters .uk-grid > * {
        width: 100% !important;
    }
    
    .mobilede-card-item .uk-card-title {
        font-size: 1rem;
        min-height: auto;
    }
    
    .mobilede-key-facts {
        font-size: 0.8rem;
    }
    
    .mobilede-card-item .uk-button {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

/* Small Devices (Landscape Phones, 640px - 959px) */
@media (min-width: 640px) and (max-width: 959px) {
    [data-grid-columns="2"] .mobilede-card-item,
    [data-grid-columns="3"] .mobilede-card-item,
    [data-grid-columns="4"] .mobilede-card-item {
        width: calc(50% - 10px);
    }
    
    .mobilede-filters .uk-grid > * {
        width: calc(50% - 10px);
    }
}

/* Medium Devices (Tablets, 960px - 1279px) */
@media (min-width: 960px) and (max-width: 1279px) {
    [data-grid-columns="4"] .mobilede-card-item {
        width: calc(33.333% - 14px);
    }
    
    .mobilede-filters .uk-grid > * {
        width: calc(25% - 15px);
    }
}

/* Large Devices (Desktops, >= 1280px) */
@media (min-width: 1280px) {
    .mod-mobilede-fahrzeuge {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .mobilede-card-item .uk-card-title {
        font-size: 1.1rem;
    }
    
    .mobilede-key-facts {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .mobilede-filters,
    .mobilede-pagination,
    .mobilede-card-item .uk-button {
        display: none !important;
    }
    
    .mobilede-card-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .mobilede-card-item .uk-card {
        border: 1px solid #ccc;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobilede-card-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .mobilede-filters {
        position: relative !important;
    }
    
    .mobilede-gallery-thumbs {
        height: 50px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .mobilede-card-item,
    .mobilede-card-item .uk-card,
    .mobilede-card-item .uk-button,
    .mobilede-filters .uk-select,
    .mobilede-gallery-thumbs .swiper-slide {
        transition: none !important;
    }
}

/* Dark Mode explizit deaktivieren - Kontrast sicherstellen */
@media (prefers-color-scheme: dark) {
    .mobilede-filters {
        background: #fff !important;
        color: #333 !important;
    }
    
    .mobilede-filters .uk-form-label {
        color: #333 !important;
    }
    
    .mobilede-card-item .uk-card {
        background: #fff !important;
        color: #333 !important;
    }
    
    .mobilede-card-item .uk-text-meta {
        color: #999 !important;
    }
}
