/* Ruimte voor topbar */
.topbar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000; /* Zorg ervoor dat het boven andere elementen blijft */
}

/* Container voor tarieven */
.container.tarieven {
    width: 60%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    color: #b3c5d9;
    text-align: center;
}

/* Koptekst in tarieven container */
.container.tarieven h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
    color: #b3c5d9;
    text-shadow: 0px 0px 6px rgba(255, 255, 255, 0.6);
}

/* Tabel styling */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.1); /* Transparante achtergrond voor een subtiele look */
    border-radius: 8px;
    overflow: hidden; /* Afrondeffect */
}

.pricing-table th, .pricing-table td {
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

/* Header in de tabel */
.pricing-table th {
    background-color: rgba(255, 255, 255, 0.1); /* Lichte tint passend bij de achtergrond */
    color: #b3c5d9;
    font-weight: bold;
    text-align: left;
    font-size: 1.1em;
}

/* Cellen in de tabel */
.pricing-table td {
    color: #eaeaea;
    text-align: left;
    font-size: 1em;
    line-height: 1.6;
    cursor: pointer; /* Laat zien dat rijen klikbaar zijn */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Afwisselende achtergrondkleur */
.pricing-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.pricing-table tr:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Lichte hover voor rijen */
    color: #fff; /* Verhoog het contrast tijdens hover */
}

/* Uitleg sectie */
.explanation {
    margin-top: 40px;
    text-align: left;
}

.explanation h3 {
    margin-top: 40px;
    font-size: 1.8em;
    color: #b3c5d9;
    text-shadow: 0px 0px 4px rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth highlight */
}

.explanation p {
    font-size: 1em;
    line-height: 1.8;
    color: #eaeaea;
    margin-bottom: 20px;
}

/* Highlight de sectie bij scroll of klik */
.explanation h3.active,
.explanation h3:target {
    background: rgba(255, 255, 255, 0.1); /* Highlight de kop */
    border-radius: 8px;
    padding: 10px;
    color: #ffffff;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.8);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Voor scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Responsiviteit */
@media screen and (max-width: 768px) {
    .container.tarieven {
        width: 90%;
    }

    .pricing-table th, .pricing-table td {
        padding: 12px;
        font-size: 0.9em;
    }

    .container.tarieven h2 {
        font-size: 1.8em;
    }

    .explanation h3 {
        font-size: 1.6em;
    }

    .explanation p {
        font-size: 0.9em;
    }
}
