/* Mobile.de Dealer Plugin - Frontend Styles */

.mdd-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mdd-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.mdd-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mdd-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.mdd-filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.mdd-filter-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mdd-info-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    color: #856404;
}

.mdd-info-note strong {
    display: block;
    margin-bottom: 5px;
}

.mdd-filter-group label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.mdd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mdd-chip {
    padding: 12px 24px;
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2c3e50;
    user-select: none;
}

.mdd-chip:hover {
    background: var(--mdd-primary-color, #667eea);
    border-color: var(--mdd-primary-color, #667eea);
    color: white;
    transform: translateY(-2px);
}

.mdd-chip.active {
    background: linear-gradient(135deg, var(--mdd-primary-color, #667eea) 0%, #764ba2 100%);
    border-color: var(--mdd-primary-color, #667eea);
    color: white;
}

.mdd-range-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mdd-range-item {
    display: flex;
    flex-direction: column;
}

.mdd-range-item label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.mdd-range-item input,
.mdd-range-item select {
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
}

.mdd-range-item input:focus,
.mdd-range-item select:focus {
    outline: none;
    border-color: var(--mdd-primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mdd-search-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--mdd-primary-color, #667eea) 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mdd-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mdd-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #95a5a6;
}

.mdd-divider::before,
.mdd-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #ecf0f1;
}

.mdd-divider span {
    padding: 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.mdd-iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.mdd-iframe-container iframe {
    border: 0;
    width: 100%;
    display: block;
}

.mdd-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Minimaler Stil */
.mdd-style-minimal {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.mdd-style-minimal .mdd-filters {
    background: #f8f9fa;
}

/* Klassischer Stil */
.mdd-style-classic {
    background: #ffffff;
    border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .mdd-wrapper {
        margin: 15px;
        padding: 15px;
    }
    
    .mdd-filters {
        padding: 15px;
    }
    
    .mdd-chips {
        gap: 8px;
    }
    
    .mdd-chip {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .mdd-range-filters {
        grid-template-columns: 1fr;
    }
}
