:root {
    --primary: #0046ad;
    --secondary: #007bff;
    --accent: #e10600;
    --light: #ffffff;
    --dark: #111111;
    --gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
}

/* NAVBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    padding: 15px 40px;
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 22px;
}

.logo span {
    color: var(--accent);
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

/* HERO */
.hero-home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.45) 45%,
            rgba(0,0,0,0.15) 100%
        ),
        url("media/cars/Ford.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero-text {
    max-width: 650px;
}

.hero-text h1 {
    font-size: 56px;
    margin: 20px 0;
    line-height: 1.1;
}

.hero-text p {
    font-size: 18px;
}

.label {
    background: var(--accent);
    padding: 6px 12px;
    display: inline-block;
    border-radius: 4px;
    font-weight: bold;
}

.hero-buttons {
    margin-top: 20px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    padding: 12px 20px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: var(--accent);
}

.btn-dark {
    background: var(--dark);
}

/* SECTIONS */
.section {
    padding: 60px 40px;
}

.section.light {
    background: var(--gray);
}

.section-title {
    font-size: 30px;
    margin-bottom: 25px;
}

/* HOME */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.home-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.home-card.dark {
    background: var(--primary);
    color: white;
}

/* CARS OVERZICHT */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: 0.3s;
}

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

.car-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #eee;
    padding: 10px;
    display: block;
}

.car-card h2 {
    padding: 15px 20px 5px;
}

.car-card h2 a {
    color: var(--primary);
    text-decoration: none;
}

.car-card h2 a:hover {
    color: var(--accent);
}

.car-card p {
    padding: 0 20px 22px;
}

/* DETAILPAGINA: FOTO LINKS, STATS RECHTS */
.car-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

/* GROTE FOTO BOVENAAN */
.car-image {
    background: #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    display: block;
}

/* TEKST ONDER FOTO + STATS */
.car-text {
    margin-bottom: 40px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.car-text h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.car-text p {
    font-size: 17px;
    line-height: 1.7;
}

/* OUDE DETAIL CLASS, VOOR ALS JE DIE NOG ERGENS GEBRUIKT */
.car-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.car-main img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: #eee;
    border-radius: 12px;
    display: block;
}

.car-main h2 {
    margin-top: 25px;
    color: var(--primary);
}

.car-main p {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.7;
}

/* STATISTIEKEN SIDEBAR */
.stats-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-top: 6px solid var(--accent);
}

.stats-sidebar h2 {
    color: var(--primary);
    margin-bottom: 18px;
}

.stat-item {
    border-bottom: 1px solid #ddd;
    padding: 13px 0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.stat-item strong {
    font-size: 18px;
    color: var(--dark);
}

/* FOTO GALERIJ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 20px;
}

.photo-grid img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #eee;
    border-radius: 12px;
    padding: 8px;
    transition: 0.3s;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.photo-grid img:hover {
    transform: scale(1.04);
}

/* CTA */
.cta {
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 50px;
}

/* FOOTER */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    nav a {
        margin-left: 0;
        margin-right: 15px;
    }

    .hero-home {
        padding: 60px 25px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .car-top,
    .car-detail {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 20px;
    }

    .car-image img {
        height: auto;
        max-height: 420px;
    }
}
/* PROGRAMMA */
.program-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.program-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.program-item .date {
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    margin-right: 20px;
}

.program-item .date strong {
    font-size: 20px;
    display: block;
}

.program-item .date span {
    font-size: 12px;
}

.program-item .info h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.program-item .info p {
    font-size: 14px;
    color: #666;
}
/* UITSLAGEN */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    border-top: 6px solid var(--accent);
}

.result-card h3 {
    color: var(--primary);
    margin-bottom: 18px;
}

.result-card table {
    width: 100%;
    border-collapse: collapse;
}

.result-card th,
.result-card td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.result-card th {
    background: var(--gray);
    color: var(--dark);
    font-size: 14px;
}

.team-result {
    font-weight: bold;
    background: #eef4ff;
}

.team-result td {
    color: var(--primary);
}
.result-inline {
    margin-top: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
}

.result-inline table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.result-inline th,
.result-inline td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.result-inline th {
    font-size: 12px;
    color: #666;
}

.result-inline tr:last-child td {
    border-bottom: none;
}

.team-result {
    background: #eaf1ff;
    font-weight: bold;
}

.team-result td {
    color: var(--primary);
}