/* ==========================================================================
   NS TREINEN MEGA-DATABASE — VOLLEDIGE LAY-OUT (style.css)
   ========================================================================== */

/* Basisinstellingen */
body {
    background-color: #002d62; /* Het echte NS Donkerblauw */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* De Header (Kop van de website) */
header {
    background-color: #ffc914; /* Het echte NS Geel */
    color: #002d62;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

header p {
    margin: 5px 0 0 0;
    font-size: 1.2rem;
}

/* De Zoekbalk */
.zoek-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
}

#treinZoeker {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 3px solid #ffc914;
    border-radius: 30px;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#treinZoeker:focus {
    border-color: #e0b010;
    background-color: #fffde6;
}

/* De Database Grid (Alle treinkaartjes naast elkaar) */
.database-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 80px; /* Ruimte voor de cookiebalk */
}

/* Losse Treinkaartjes */
.trein-kaart {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer; /* Zorgt voor het klik-handje */
}

.trein-kaart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Foto in het kaartje */
.trein-foto {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid #ffc914;
}

/* Informatie in het kaartje */
.trein-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trein-info h3 {
    margin: 0 0 10px 0;
    color: #002d62;
    font-size: 1.4rem;
}

.trein-info p {
    margin: 5px 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* De Footer (Onderkant van de pagina) */
footer {
    background-color: #001a3a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ==========================================================================
   COOKIEBANNER & ALGEMENE VOORWAARDEN BALK
   ========================================================================== */
.cookie-balk {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff4cc; /* Prachtig lichtgeel */
    border-top: 4px solid #ffc914; /* NS Gele rand */
    color: #002d62; /* NS Donkerblauw */
    padding: 15px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    display: none; /* Wordt door JavaScript op 'flex' gezet indien nodig */
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 99999; /* Zorgt dat hij ALTIJD overal bovenop zweeft */
    font-family: Arial, sans-serif;
}

.cookie-balk p {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
}

.cookie-balk a {
    color: #002d62;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-balk button {
    background-color: #002d62;
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    font-size: 1rem;
}

.cookie-balk button:hover {
    background-color: #001a3a;
    transform: scale(1.05);
}

/* Responsive instellingen voor telefoons */
@media (max-width: 600px) {
    .cookie-balk {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-balk p {
        padding-right: 0;
    }
}