/* --- LOGO STYLING --- */
.logo-container {
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Of een ander strak lettertype */
    font-weight: 800; /* Lekker dikgedrukt */
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 5px; /* Ruimte tussen Rijschool en Comfort */
}

.logo-svg {
    height: 0.85em;
    width: auto;
    vertical-align: middle;
    margin: 0 0px;
    position: relative;
    top: 1px;
    transition: transform 0.6s ease-in-out;
}

/* --- 2. LAYOUT HERSTEL VOOR MOBIEL --- */
/* Zodra het scherm kleiner is dan 900px, zet de tekst onder elkaar */
@media (max-width: 900px) {
    .logo-container {
        flex-direction: column; /* Onder elkaar */
        align-items: flex-start; /* Links uitlijnen */
        gap: 0;
        line-height: 1.1;
        font-size: 1.3rem; /* Ietsje kleiner op mobiel */
    }
}

/* --- 3. ANIMATIE REGELS (De Oplossing) --- */

/* REGEL A: Javascript Actie (Werkt ALTIJD als de class er is) */
.logo-container.tik-draai .logo-svg {
    transform: rotate(360deg) !important;
}

/* REGEL B: Hover Actie (Werkt ALLEEN op PC schermen breder dan 900px) */
/* Hierdoor kan je telefoon fysiek niet 'blijven hangen' in de hover stand */
@media (min-width: 900px) {
    .logo-container:hover .logo-svg {
        transform: rotate(180deg);
    }
}

.logo-blue {
    color: var(--primary); /* Jouw blauw */
    letter-spacing: 1px;
}

.logo-orange {
    color: var(--accent); /* Jouw oranje */
    display: inline-flex;
    align-items: center;
}

/* --- 1. ALGEMENE INSTELLINGEN --- */
:root {
    --primary: #0056b3;       /* Hoofdkleur (Donkerblauw) */
    --accent: #ff9900;        /* Actiekleur (Oranje) */
    --bg-light: #f4f6f8;      /* Achtergrond grijs */
    --text-dark: #333;        /* Tekst kleur */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 { color: var(--primary); margin-top: 0; }
p { margin-bottom: 1.5em; }

/* --- 2. HEADER & NAVIGATIE --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky; /* Blijft bovenaan staan bij scrollen */
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center; /* BELANGRIJK: Dit centreert de tekst ten opzichte van de knop */
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

/* 1. Zorg dat het actieve menu-item oranje wordt */
.nav-menu a.active {
    color: var(--accent);
    font-weight: bold;
    /*border-bottom: 2px solid var(--accent);*/ /* Optioneel: klein streepje eronder */
}

.nav-menu a:hover { color: var(--accent); }

/* 2. Zorg dat de knop GEEN onderstreping heeft */
.btn-nav {
    background: var(--accent);
    color: white !important;
    padding: 10px 20px;      /* Iets kleiner gemaakt zodat de header niet te dik wordt */
    border-radius: 5px;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.3s;
    line-height: 1.2;        /* Zorgt dat de tekst netjes in de knop staat */
}

.btn-nav:hover {
    background: #e68a00;
}

/* Hamburger Icoon (Standaard verborgen op PC) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary);
}

/* --- 3. RESPONSIVE / MOBIEL MENU --- */
@media (max-width: 900px) {
    .hamburger { display: block; } /* Toon icoon op mobiel */

    .nav-menu {
        position: absolute;
        top: 70px; /* Hoogte van header */
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        text-align: center;
        gap: 0;
        max-height: 0; /* Menu is dicht */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        max-height: 400px; /* Menu klapt open */
    }

    .nav-menu li { border-bottom: 1px solid #eee; }
    .nav-menu a { display: block; padding: 15px; }
}

/* --- 4. PAGINA SPECIFIEKE ELEMENTEN --- */

/* Hero Banner */
.hero {
    background: linear-gradient(rgba(0,86,179,0.8), rgba(0,86,179,0.8)), url('images/hero_banner.avif');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero h1 { color: white; font-size: 2.5rem; }

/* Kaarten voor Stappen & Pakketten */
.grid-3 {
    display: grid;
    /* Dit zorgt voor de automatische mobiele weergave zonder media queries */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* STANDAARD (Mobiel): Kaarten gedragen zich normaal en klappen in */
.price-card {
    display: block; 
    height: auto;
    margin-bottom: 20px;
    text-align: center;
    border-top: 5px solid var(--primary);
}

/* GROTE SCHERMEN: Knoppen op één lijn */
@media (min-width: 900px) {
    .grid-4 {
        display: flex;
        align-items: stretch; /* Zorgt dat de witte vakken even hoog zijn */
        gap: 15px;
    }

    .price-card {
        display: flex;
        flex-direction: column;
        flex: 1; /* Verdeelt de beschikbare ruimte over de 4 kaarten */
    }

    .price-card ul {
        flex-grow: 1; /* Duwt de knop naar beneden door de ruimte te vullen */
        margin-bottom: 20px;
        list-style-position: outside;
        padding-left: 0;
    }

    .price-card .btn-block {
        margin-top: auto; /* De "magneet" die de knop op de onderste lijn houdt */
    }
}

.price-card.popular {
    border-top: 5px solid var(--accent);
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    margin: 10px 0;
}

.btn-block {
    display: block;
    background: var(--primary);
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}
.btn-block:hover { background: #004494; }

/* --- NIEUW: Tabel Styling (Ronde hoeken & Wit) --- */
.rounded-table-container {
    border-radius: 12px;
    overflow: hidden; /* Zorgt dat de hoekjes van de tabel niet uitsteken */
    border: 1px solid #ddd;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Contact Sectie */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    text-decoration: none;
}

.footer-icon {
    width: 18px;  /* Iets kleiner dan de social icons voor balans */
    height: 18px;
    fill: white;  /* Maakt het icoon volledig wit */
    vertical-align: middle;
}

.contact-link:hover .footer-icon {
    fill: var(--accent); /* Kleurt mee als je eroverheen huvert */
}

/* --- EXTRA STIJLEN VOOR HOME & OVER ONS --- */

/* Statistieken balk (Jaren ervaring etc.) */
.stats-bar {
    background: var(--primary);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 40px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item { flex: 1; min-width: 150px; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--accent); display: block; }
.stat-label { font-size: 1rem; opacity: 0.9; }

/* Teamleden sectie */
.team-member {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    align-items: center;
}
.team-photo {
    flex: 1;
    min-width: 250px;
    height: 300px; /* Vaste hoogte voor uniformiteit */
    background-color: #ddd; /* Placeholder grijs */
    background-size: cover;
    background-position: center;
}
.team-info {
    flex: 2;
    padding: 30px;
}

/* Reviews / Testimonials */
.review-card {
    background: white;
    padding: 20px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-style: italic;
}
.review-name {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
    color: var(--primary);
}

/* Mobiele aanpassing voor teamleden */
@media (max-width: 900px) {
    .team-member { flex-direction: column; }
    .team-photo { width: 100%; height: 250px; }
}

/* --- INSCHRIJFFORMULIER STYLING --- */

.form-style {
    max-width: 1000px; /* AANGEPAST: Breder gemaakt (was 600px) zodat 2 kolommen passen */
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box; /* Zorgt dat padding de breedte niet verpest */
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 5px rgba(0,86,179,0.2);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e68a00; /* Of een donkerdere variant van je accentkleur */
}

/* Een klein beetje hulptekst styling */
.small-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* --- DE NIEUWE 2-KOLOMS LAYOUT --- */

.form-row-container {
    display: flex;
    gap: 40px; /* Iets meer ruimte tussen de linker- en rechterkolom */
}

.form-col {
    flex: 1; /* Beide kolommen zijn even breed */
    min-width: 0; /* Voorkomt layout issues in flexbox */
}

/* --- RESPONSIVE: MOBIELE AANPASSING --- */
/* Als het scherm smaller is dan 768px (tablets en telefoons), ga terug naar 1 kolom */
@media (max-width: 900px) {
    .form-style {
        padding: 20px; /* Iets minder padding op kleine schermen */
    }

    .form-row-container {
        flex-direction: column; /* Zet kolommen onder elkaar */
        gap: 0;
    }
}

/* --- COMPACTE FOOTER (MET GRIJZE COPYRIGHT) --- */
.footer-style {
    background-color: var(--primary);
    color: #ffffff !important;
    text-align: center;
    padding: 25px 15px; /* STUK KLEINER GEMAAKT */
    margin-top: auto;
}

/* Titel */
.footer-style h3 {
    color: #ffffff !important;
    margin: 0 0 5px 0; /* Heel dicht op de slogan */
    font-size: 1.3rem;
    opacity: 1 !important;
}

/* Slogan */
.footer-style p {
    margin: 0 0 15px 0; /* Minder ruimte onder de slogan */
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 0.9rem;
}

/* Blokjes voor Contact & Socials */
.footer-section {
    margin-bottom: 12px; /* Dichter op elkaar (was 20px) */
    font-size: 0.95rem;
}

.footer-section a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--accent) !important;
}

/* De onderste kleine lettertjes (BTW, Voorwaarden) */
.footer-legal {
    font-size: 0.8rem; /* Iets kleiner lettertype */
    opacity: 0.8;      /* Iets grijzer gemaakt */
    margin-bottom: 12px;
    line-height: 1.6;
    color: white !important;
}

.footer-legal a {
    color: white !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-legal a:hover {
    border-bottom: 1px solid var(--accent);
}

.separator {
    margin: 0 8px;
    opacity: 0.6;
}

/* --- HET LIJNTJE (DIVIDER) --- */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 15px auto; /* Minder witruimte rond de lijn */
    max-width: 600px;  /* Lijn iets korter gemaakt */
}

/* --- COPYRIGHT (NU GRIJS GEMAAKT) --- */
.footer-style p.copyright {
    font-size: 0.75rem;
    color: #ffffff !important;
    opacity: 0.8 !important;
    margin: 0 !important;
}

/* --- SOCIAL MEDIA ICONEN --- */
.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Iets dichter bij elkaar */
    margin-top: 5px;
}

.social-icon-link {
    display: inline-block;
    text-decoration: none;
    border: none !important;
}

.social-icon {
    width: 24px; /* Iets kleiner icoontje voor compactere look */
    height: 24px;
    fill: #ffffff;
    transition: all 0.3s ease;
}

.social-icon-link:hover .social-icon {
    fill: var(--accent); 
    transform: scale(1.15);
}

/* --- TOGGLE SWITCH STYLING --- */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.toggle-label {
    font-weight: bold;
    font-size: 1rem;
    color: #888;
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px; width: 26px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


.tab-container {
    display: inline-flex;
    background-color: #f0f0f0;
    padding: 5px;
    border-radius: 50px;
    border: 1px solid #ddd;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 40px;
    background: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tab-btn .icon {
    font-size: 1.2rem;
}


.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* Op tablets of kleinere laptops: 2 rijen van 2 */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Op mobiel: alles onder elkaar */
@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Badge fix voor popular kaart */
.badge {
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

/* Cookie Banner*/

/* De balk zelf */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff !important; /* Forceer witte achtergrond */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    border: 1px solid #eee;
}

/* De inhoud */
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* FIX: Tekst expliciet op donker zetten */
.cookie-text {
    margin: 0;
    font-size: 0.95rem;
    color: #333333 !important; /* Donkergrijs, zodat het leesbaar is */
    line-height: 1.5;
    text-align: left;
}

.cookie-text a {
    color: var(--primary) !important;
    text-decoration: underline;
    font-weight: bold;
}

/* De knop */
.cookie-btn {
    background: var(--primary);
    color: #ffffff !important; /* Tekst op knop WEL wit */
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: transform 0.2s;
}

.cookie-btn:hover {
    transform: scale(1.05);
}

/* MOBIEL AANPASSINGEN */
@media (max-width: 600px) {
    #cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-text {
        text-align: center; /* Tekst in het midden op mobiel */
    }

    .cookie-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Promo Banner */

.promo-banner {
    background: linear-gradient(90deg, #ff9800, #f57c00); /* Verloop voor meer diepte */
    color: white;
    padding: 8px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-tag {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Claim Nu knop */
.promo-btn {
    background: white;
    color: #f57c00 !important;
    text-decoration: none !important;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-block;
    animation: pulse-animation 2s infinite; /* Maakt de knop levendig */
}

.promo-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Pulserende animatie om op te vallen */
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobiel aanpassingen */
@media (max-width: 600px) {
    .promo-content {
        gap: 10px;
        padding: 5px;
    }
    .promo-text {
        font-size: 0.85rem;
        width: 100%; /* Tekst boven de knop op mobiel */
    }
    .promo-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
}