/**
 * Red & Black - Premium Motors - Main Stylesheet
 * Modern dark theme with customizable accent color
 */

:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --bg-dark: #111111;
    --bg-darker: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-white: #ffffff;
    --text-muted: #b0b0b0;
    --text-placeholder: #888888;
    --border-color: #444444;
}

/* Dark Theme (Default) */
body.theme-dark,
body:not(.theme-light) {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: #444444;
    --header-bg: rgba(0, 0, 0, 0.9);
    --card-bg: #1a1a1a;
    --input-bg: #0a0a0a;
    --input-border: #333333;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Light Theme */
body.theme-light {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Header */
.header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.theme-light .header {
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.theme-light .navbar-dark .nav-link {
    color: var(--text-primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-section .swiper {
    width: 100%;
    height: 100%;
}

.hero-section .swiper-wrapper {
    height: 100%;
}

.hero-section .swiper-slide {
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.swiper-pagination-bullet {
    background: var(--text-white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text-white);
}

/* Search Filter */
.search-filter {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: -80px;
    position: relative;
    z-index: 100;
}

.search-filter .form-select,
.search-filter .form-control {
    background-color: #252525;
    border: 1px solid #555555;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    padding: 0.75rem 1rem;
}

.search-filter .form-select:focus,
.search-filter .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25);
    background-color: #2a2a2a;
}


/* Placeholder Styles */
.search-filter .form-control::placeholder {
    color: #999999;
    opacity: 1;
}

.search-filter .form-select {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.search-filter .form-select option {
    background-color: #1a1a1a;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.form-control::placeholder {
    color: #888888;
    opacity: 1;
}

/* Better text contrast */
.text-muted {
    color: var(--text-muted) !important;
}

.theme-light .text-muted {
    color: var(--text-muted) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--bg-card);
    color: var(--text-white);
}

/* Car Cards */
.car-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.car-card .card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.car-card .year-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
}

.car-card .sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.car-card .card-body {
    padding: 1.25rem;
}

.car-card .car-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-card .car-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #b8b8b8;
}

.car-card .car-specs span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.car-card .car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.car-card .price-info {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.car-card .btn-details {
    width: 100%;
    margin-top: 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.car-card .btn-details:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

/* Brand Cards */
.brand-card {
    background-color: transparent;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.35);
}

.brand-card img {
    height: 60px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

/* Spezielles Tuning: Audi-Logo etwas heller machen */
.brand-card img[alt="Audi"] {
    filter: brightness(1.4);
}

.brand-card .brand-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Process Steps */
.process-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.process-card .step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.process-card .step-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.process-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-section {
    background-color: var(--bg-darker);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 3px;
}

/* Cookie-Zustimmung Popup – kompakt, klares Design */
.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow-y: auto;
}

.cookie-consent-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 440px;
    width: 100%;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

body.theme-light .cookie-consent-box {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-darker);
}

body.theme-light .cookie-consent-header {
    background: var(--bg-secondary);
}

.cookie-consent-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
}

.cookie-consent-title {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.cookie-consent-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: color 0.15s, background 0.15s;
}

.cookie-consent-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

body.theme-light .cookie-consent-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.cookie-consent-body {
    padding: 0.75rem 0.85rem;
    overflow-y: auto;
}

.cookie-consent-intro {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0 0 0.6rem 0;
}

.cookie-consent-categories {
    margin-bottom: 0.6rem;
}

.cookie-category {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.4rem;
    overflow: hidden;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category summary {
    cursor: pointer;
    list-style: none;
    padding: 0.4rem 0.5rem 0.4rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    min-height: 32px;
}

.cookie-category summary::-webkit-details-marker { display: none; }

.cookie-category summary::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
    margin-left: auto;
    transition: transform 0.2s;
}

.cookie-category[open] summary::after {
    transform: rotate(180deg);
}

.cookie-category-name {
    flex: 1;
}

.cookie-category-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.4rem;
    background: var(--border-color);
    color: var(--text-muted);
    border-radius: 4px;
}

.cookie-category-check {
    width: 1rem;
    height: 1rem;
    margin: 0 0 0 auto;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.cookie-category-label {
    display: none;
}

.cookie-category-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
    padding: 0.35rem 0.5rem 0.5rem 0.5rem;
    border-top: 1px solid var(--border-color);
}

.cookie-consent-footer {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.cookie-consent-links {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-consent-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-consent-links a:hover {
    text-decoration: underline;
}

.cookie-consent-sep {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cookie-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cookie-btn-reject {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

body.theme-light .cookie-btn-reject:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cookie-btn-save {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cookie-btn-save:hover {
    background: rgba(220, 38, 38, 0.12);
}

.cookie-btn-accept {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-card);
    border-radius: 50%;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Detail Page */
.car-gallery {
    position: relative;
}

.car-gallery .main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.car-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.car-gallery .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.car-gallery .thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.car-gallery .thumbnail.active,
.car-gallery .thumbnail:hover {
    opacity: 1;
}

.car-gallery .thumbnail img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.car-detail-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
}

.car-detail-card .price-box {
    background-color: var(--bg-darker);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.car-detail-card .price-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list .label {
    color: var(--text-muted);
}

.specs-list .value {
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
}

.contact-form .form-control,
.contact-form .form-select {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25);
}

/* Pagination */
.pagination .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-white);
}

.pagination .page-link:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-filter {
        margin-top: -40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .search-filter {
        margin-top: 0;
        border-radius: 0;
    }
    
    .car-card .card-img-wrapper {
        height: 180px;
    }
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--bg-darker);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    padding: 1rem;
}

.admin-sidebar .nav-link {
    color: var(--text-muted) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--bg-card);
    color: var(--text-white) !important;
}

.admin-sidebar .nav-link i {
    width: 24px;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

.admin-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
}

/* CRM: Kundendetail – Info-Tab dezent schmaler */
#editCustomerForm {
    max-width: 820px;
    margin: 0 auto;
}
#infoFieldsWrapper {
    max-width: 780px;
    margin: 0 auto;
}

/* CRM: Kundendetail-Modal insgesamt kompakter und inhaltsbasiert */
#customerDetailModal .modal-dialog {
    max-width: 880px;
    margin: 1.75rem auto;
}
#customerDetailModal .modal-content {
    border-radius: 10px;
}
#customerDetailModal .modal-header,
#customerDetailModal .modal-body {
    padding: 1rem 1.5rem;
}

/* Einklappbare Admin-Karten (Settings) */
.admin-card-collapsible .admin-card-header {
    cursor: pointer;
    padding: 0.25rem 0;
    margin: -0.5rem 0 0;
    user-select: none;
}
.admin-card-collapsible .admin-card-header:first-child {
    margin-top: 0;
}
.admin-card-collapsible .admin-card-body {
    padding-top: 1rem;
}
.admin-card-collapsible .admin-card-toggle {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.admin-card-collapsible .admin-card-header[aria-expanded="true"] .admin-card-toggle {
    transform: rotate(180deg);
}

.stats-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stats-card .stats-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
}

.stats-card .stats-label {
    color: var(--text-muted);
}

/* Data Table */
.data-table {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.data-table table {
    margin-bottom: 0;
}

.data-table th {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    padding: 1rem;
}

.data-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

/* Blink-Effekt für hervorgehobene Zeilen in Tabellen (z.B. Fahrzeuge) */
.data-table table tbody tr.highlight-blink-row {
    animation: rowBlink 2s ease-in-out 3;
}

@keyframes rowBlink {
    0%, 100% {
        background-color: transparent !important;
    }
    25%, 75% {
        background-color: rgba(250, 204, 21, 0.5) !important; /* gelb, deutlich sichtbar */
    }
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-dark {
    background-color: var(--bg-darker) !important;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: #10b981;
}

.badge-warning {
    background-color: #f59e0b;
}

.badge-danger {
    background-color: #ef4444;
}

/* ==========================================
   IMPROVED CONTRAST & VISIBILITY
   ========================================== */

/* Form inputs global */
input.form-control,
select.form-select,
textarea.form-control {
    color: #ffffff !important;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

/* Select dropdown text */
select.form-select option {
    color: #ffffff;
    background-color: #1a1a1a;
}

/* Labels */
.form-label {
    color: #d0d0d0;
}

/* Card text improvements */
.car-card .price-info {
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer links */
.footer-links a,
.footer-contact a,
.footer-contact span {
    color: #c0c0c0 !important;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

/* Process cards */
.process-card p {
    color: #a0a0a0;
}

.process-card h5 {
    color: #ffffff;
}

/* Specs list */
.specs-list .label {
    color: #a0a0a0;
}

.specs-list .value {
    color: #ffffff;
    font-weight: 500;
}

/* Better borders */
.car-card {
    border: 1px solid #333333;
}

.process-card {
    border-color: #444444;
}

/* Hero text shadow for better readability */
.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-content p {
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Navigation active state */
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Better button visibility */
.btn-outline-secondary {
    color: #c0c0c0;
    border-color: #555555;
}

.btn-outline-secondary:hover {
    background-color: #333333;
    border-color: #666666;
    color: #ffffff;
}

.btn-details {
    border-color: #555555 !important;
}

.btn-details:hover {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* ==========================================
   BUYING PROCESS & ABOUT PAGE STYLES
   ========================================== */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    color: var(--text-white);
}

/* Process Step Cards */
.process-step-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.process-step-card .step-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.process-step-card h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--bg-card);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-darker);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.benefit-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.benefit-item span {
    color: var(--text-white);
    font-weight: 500;
}

/* Feature Cards */
.feature-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h5 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-card);
}

.stat-box {
    background-color: var(--bg-darker);
    border-radius: 16px;
    padding: 2rem 1rem;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Service Cards */
.service-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-darker);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.service-card h5 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Mileage Section */
.mileage-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
}

.mileage-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: white;
}

.mileage-badge i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.mileage-badge span {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.cta-section h2,
.cta-section p {
    color: white !important;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.cta-section .btn:hover {
    background-color: var(--bg-dark);
    color: white;
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

.contact-info-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-item h6 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Social Media Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background-color: var(--bg-darker);
    color: var(--text-white);
}

.social-btn i {
    font-size: 1.25rem;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: white;
}

.social-btn.facebook:hover {
    background-color: #1877f2;
    border-color: transparent;
    color: white;
}

.social-btn.whatsapp:hover {
    background-color: #25d366;
    border-color: transparent;
    color: white;
}

.social-btn.telegram:hover {
    background-color: #0088cc;
    border-color: transparent;
    color: white;
}

/* Working Hours */
.working-hours {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--bg-darker);
    border-radius: 8px;
}

.hours-row .day {
    color: var(--text-muted);
}

.hours-row .time {
    color: var(--text-white);
    font-weight: 600;
}

.hours-row .time.closed {
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
}

/* Responsive Social Buttons */
@media (max-width: 576px) {
    .social-buttons {
        flex-direction: column;
    }
}

/* ==========================================
   CAR DETAIL PAGE - ENHANCED GALLERY
   ========================================== */

/* Gallery Container */
.car-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Main Image */
.main-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-card);
    cursor: pointer;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #111;
    font-size: 1rem;
}

.gallery-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

.image-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.thumbnail-btn {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.thumbnail-btn:hover {
    border-color: var(--text-muted);
}

.thumbnail-btn.active {
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 500;
}

/* Title & Price Box */
.title-price-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.title-price-box h2 {
    flex: 1;
}

.title-price-box .price-info {
    text-align: right;
}

.title-price-box .price-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.title-price-box .price-details {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Quick Specs Grid */
.quick-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-darker);
    border-radius: 12px;
}

.quick-spec {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-spec i,
.quick-spec .quick-spec-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.quick-spec .quick-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    color: var(--text-muted);
}
.quick-spec .quick-spec-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.quick-spec .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quick-spec .value {
    display: block;
    font-weight: 600;
    color: var(--text-white);
}

/* VIN Box */
.vin-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-darker);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.vin-box i {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.vin-box .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.vin-box .value {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.1em;
}

/* Encar Button */
.btn-encar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-encar:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* Included Services */
.included-services {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.included-services h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.included-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-services li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.included-services li i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Quick Contact Buttons */
.quick-contact-btns {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.quick-contact-btns .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: white;
}

.btn-call {
    background-color: var(--bg-darker);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-call:hover {
    background-color: var(--bg-card);
    color: var(--text-white);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .quick-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Mobile: Zeige mobile-content-order, verstecke desktop-content-order */
    .mobile-content-order {
        display: block;
    }
    
    .desktop-content-order {
        display: none;
    }
}

@media (min-width: 992px) {
    /* Desktop: Zeige desktop-content-order, verstecke mobile-content-order */
    .mobile-content-order {
        display: none;
    }
    
    .desktop-content-order {
        display: block;
    }
}

@media (max-width: 576px) {
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-contact-btns {
        flex-direction: column;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
}
