/* ASN Exklusiv GmbH – Premium Auto Dealer Design */

:root {
    --primary-dark: #1a3a5c;
    --primary-light: #254d7a;
    --accent: #d4af37;
    --accent-dark: #b8941d;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
}

/* ── GENERAL STYLES ─────────────────────────────────────────────────── */
* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

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

a:hover {
    color: var(--accent-dark);
}

/* ── BUTTONS ────────────────────────────────────────────────────────── */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

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

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

/* ── HERO SECTION ───────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ── PRODUCT CARDS ──────────────────────────────────────────────────── */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(26, 58, 92, 0.15);
    transform: translateY(-4px);
}

.card-img-wrap {
    width: 100%;
    height: 250px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-light);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-type {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: fit-content;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: auto;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-meta i {
    color: var(--accent);
}

/* ── SERVICE CARDS ──────────────────────────────────────────────────── */
.service-card {
    display: block;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    color: inherit;
    height: 100%;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(26, 58, 92, 0.15);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.service-card:hover .read-more {
    gap: 8px;
}

/* ── SECTIONS ───────────────────────────────────────────────────────── */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-title.centered {
    text-align: center;
}

section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ── TEXT UTILITIES ─────────────────────────────────────────────────── */
.text-muted {
    color: var(--text-light) !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* ── FORMS ──────────────────────────────────────────────────────────── */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
    color: var(--text-dark);
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ── ADMIN STYLES ───────────────────────────────────────────────────── */
.admin-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.admin-table {
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-dark);
    font-weight: 700;
}

.status-badge-active {
    display: inline-block;
    background: #d1fae5;
    color: #059669;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge-inactive {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── ALERTS ─────────────────────────────────────────────────────────── */
.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #059669;
}

.alert-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.alert-warning {
    background-color: #fef3c7;
    color: #d97706;
}

/* ── UTILITIES ──────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
}

.position-relative {
    position: relative;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.gap-3 {
    gap: 1rem;
}

/* ── TEAM CARDS ─────────────────────────────────────────────────────── */
.team-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.team-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(26,58,92,0.12);
    transform: translateY(-3px);
}

.team-img-wrap {
    width: 100%;
    /* Quadratisches Seitenverhältnis */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-light);
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s;
}

.team-card:hover .team-img-wrap img {
    transform: scale(1.05);
}

.team-card-body {
    padding: 0.85rem 0.75rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    section {
        padding: 40px 0;
    }

    /* Team cards op mobiel: 2 per rij, compacte padding */
    .team-card-body {
        padding: 0.6rem 0.5rem;
    }

    .team-card-body h6 {
        font-size: 0.82rem;
    }

    .team-card-body p {
        font-size: 0.72rem !important;
    }
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.service-card,
.admin-card {
    animation: fadeIn 0.5s ease-out;
}

/* ── AUTO DISMISS ALERTS ────────────────────────────────────────────── */
[data-auto-dismiss] {
    animation: fadeOut 4s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}
