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

/* Algemene stijlen voor de website */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #2c3e50;
}

/* Header en Navigatie */
header {
    background-color: #27ae60; /* Groene header */
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav .menu-toggle {
    font-size: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
}

nav ul.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    gap: 15px; /* Ruimte tussen menu-items */
}

nav ul.nav-menu li {
    margin: 0;
}

nav ul.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s;
}

nav ul.nav-menu li a:hover {
    color: #16a085;
}

@media (max-width: 768px) {
    body {
        font-size: 14px; /* Kleinere tekst */
    }

    h1 {
        font-size: 2em;
    }

    nav ul.nav-menu {
        display: none; /* Verberg menu standaard */
        flex-direction: column;
        background: #27ae60;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        z-index: 1000;
    }

    nav ul.nav-menu.active {
        display: flex; /* Toon menu wanneer actief */
    }

    .menu-toggle {
        display: block;
    }

    .home-container {
        flex-direction: column;
    }

    .home-box {
        width: 90%;
    }

    .uitslagen table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Verbeterde mobiele navigatie */
@media (max-width: 1024px) {
    nav ul.nav-menu {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    nav ul.nav-menu li {
        width: 100%;
    }

    nav ul.nav-menu li a {
        display: block;
        padding: 12px;
    }
}

/* Voorkom te brede secties */
section, .klassement, .kalender, .playoff, .beker, .bestuur, .galerij, .scheidsrechters, .sponsors {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hero Secties */
.hero {
    background-color: #2ecc71;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
}

.hero p {
    font-size: 1.2em;
}

/* Algemene secties voor tekst en inhoud */
section {
    padding: 30px;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    color: #27ae60;
    margin-bottom: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #27ae60;
    color: #fff;
    margin-top: 40px;
}

/* Klassement Tabel */
.klassement {
    padding: 30px;
    background-color: #fff;
}

.klassement h2 {
    font-size: 2.5em;
    color: #27ae60;
    text-align: center;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 1200px;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #27ae60;
    color: #fff;
}

td {
    background-color: #f9f9f9;
}

tr:nth-child(even) {
    background-color: #ecf0f1;
}

tr:hover {
    background-color: #f1c40f;
}

/* Styling voor de team cards (Ploegen pagina) */
.teams-container {
    display: flex;
    flex-direction: column; /* Stapel teams onder elkaar */
    align-items: center; /* Centreer de teams op de pagina */
    gap: 20px; /* Voeg ruimte toe tussen de teams */
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.team-card {
    width: 80%; /* Maak de teamkaart breed genoeg voor een duidelijke foto */
    max-width: 600px; /* Beperk de maximale breedte */
    text-align: center; /* Centreer de tekst */
    background: #f9f9f9; /* Optioneel: een lichte achtergrond */
    padding: 20px;
    border-radius: 10px; /* Mooie afgeronde hoeken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optioneel: schaduw voor een mooi effect */
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.team-card img {
    width: 100%; /* Laat de afbeelding de breedte van de kaart volgen */
    height: auto; /* Zorgt ervoor dat de verhouding behouden blijft */
    max-height: 400px; /* Zorg dat de foto groot genoeg is */
    object-fit: contain; /* Zorg ervoor dat de hele foto zichtbaar blijft */
    border-radius: 10px;
}

.team-card h3 {
    font-size: 1.6em;
    color: #27ae60;
    margin: 15px 0;
}

.team-card p {
    font-size: 1em;
    color: #666;
}

/* Algemene uitslagen sectie */
.uitslag-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    text-align: center;
}

.team {
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: bold;
    text-align: center;
    white-space: nowrap; /* Voorkomt afbreken van teamnamen */
    overflow: hidden;
    text-overflow: ellipsis;
}

.team img {
    width: 40px; /* Pas de grootte aan zoals nodig */
    height: 40px;
    border-radius: 50%; /* Maakt het logo rond */
    margin-right: 10px; /* Ruimte tussen logo en tekst */
}

.score {
    flex: 0.5; /* Score blijft altijd in het midden */
    font-size: 1.5em;
    font-weight: bold;
    color: #e67e22;
    text-align: center;
}

.details {
    flex-basis: 100%;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}



/* Tabel styling */
.uitslagen table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto; /* Centraal uitlijnen van de tabel */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Toevoegen van een subtiele schaduw */
}

/* Styling voor de tabelkop */
.uitslagen th {
    background-color: #27ae60;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-size: 1.2em;
}

/* Styling voor de tabeldata */
.uitslagen td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Stel specifieke breedtes in voor de kolommen */
.uitslagen td:nth-child(1), .uitslagen th:nth-child(1) {
    width: 25%; /* Team 1 kolom */
}

.uitslagen td:nth-child(2), .uitslagen th:nth-child(2) {
    width: 15%; /* Score kolom */
    text-align: center; /* Scores centraal uitlijnen */
}

.uitslagen td:nth-child(3), .uitslagen th:nth-child(3) {
    width: 25%; /* Team 2 kolom */
}

.uitslagen td:nth-child(4), .uitslagen th:nth-child(4) {
    width: 20%; /* Datum kolom */
}

.uitslagen td:nth-child(5), .uitslagen th:nth-child(5) {
    width: 15%; /* Locatie kolom */
}

/* Hover effect voor rijen */
.uitslagen tr:hover {
    background-color: #ecf0f1;
}

@media (max-width: 768px) {
    .uitslagen table, .klassement table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* Speeldag sectie */
.speeldag {
    margin-bottom: 40px;
}

.speeldag h3 {
    font-size: 2em;
    color: #27ae60;
    margin-bottom: 20px;
}

/* Kalender sectie */
.kalender {
    padding: 30px;
    background-color: #fff;
}

.kalender h2 {
    font-size: 2.5em;
    color: #27ae60;
    margin-bottom: 30px;
}

/* Play-off sectie */
.playoff {
    margin-bottom: 40px;
}

.playoff h3 {
    font-size: 2em;
    color: #27ae60;
    margin-bottom: 20px;
}

/* Wedstrijd sectie */
.beker {
    padding: 30px;
    background-color: #fff;
    text-align: center;
}

.beker h2 {
    font-size: 2.5em;
    color: #27ae60;
    margin-bottom: 30px;
}

.wedstrijd {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.wedstrijd-info {
    display: flex;
    justify-content: space-between; /* Verdeel de teams naar links en rechts */
    align-items: center;
    text-align: center;
}

.team {
    display: flex;
    align-items: center;
    flex: 1; /* Beide teams krijgen dezelfde breedte */
}

.team img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-right: 10px; /* Ruimte tussen logo en tekst */
}
/* Specifiek voor de rechterploeg */
.team:last-child {
    justify-content: flex-end;
    text-align: right;
}

.team:last-child img {
    margin-right: 10px;
    margin-left: 10px; /* Logo naar links verplaatsen */
}

.score {
    flex: 0.3;
    font-size: 1.8em;
    font-weight: bold;
    color: #e67e22;
    text-align: center;
}

.wedstrijd-details {
    margin-top: 10px;
    font-size: 1em;
    color: #7f8c8d;
}


.datum, .locatie {
    display: block;
}

@media (max-width: 1024px) {
    .team-list {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 90%;
    }

    .bestuur-lid {
        flex-direction: column;
        text-align: center;
    }

    .bestuur-lid-foto {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Galerij Sectie */
.galerij {
    padding: 30px;
    background-color: #fff;
}

.galerij h2 {
    font-size: 2.5em;
    color: #27ae60;
    margin-bottom: 30px;
    text-align: center;
}

/* Foto Grid */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.foto-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.foto-item:hover img {
    transform: scale(1.1);
}

/* Bestuur sectie */
.bestuur {
    width: 90%;
    max-width: 800px; /* Zorgt ervoor dat het niet te breed wordt */
    margin: 0 auto; /* Centreert de sectie */
    text-align: center;
}

.bestuur h2 {
    font-size: 2.5em;
    color: #27ae60;
    margin-bottom: 30px;
    text-align: center;
}

/* Bestuurslid sectie */
.bestuur-lid {
    display: flex;
    flex-direction: column; /* Zorgt ervoor dat alles onder elkaar staat */
    align-items: center;
    text-align: center;
    gap: 10px; /* Ruimte tussen elementen */
    margin-bottom: 20px; /* Ruimte tussen bestuursleden */
    padding: 15px;
    border-bottom: 1px solid #ddd; /* Optioneel: een lijn tussen bestuursleden */
}

.bestuur-lid-foto {
    flex: 0 0 150px;
    margin-right: 20px;
}

.bestuur-lid-foto img {
    width: 150px; /* Pas dit aan naar wens */
    height: 150px;
    border-radius: 50%; /* Maakt de afbeelding rond */
    object-fit: cover; /* Zorgt ervoor dat de afbeelding mooi gevuld is */
    border: 3px solid #27ae60; /* Optioneel: een rand */
}

.bestuur-lid-info {
    max-width: 500px; /* Zorgt ervoor dat de tekst niet te breed wordt */
}

.bestuur-lid h3 {
    margin: 10px 0 5px;
    font-size: 1.4em;
}

.bestuur-lid p {
    font-size: 1em;
    color: #555;
}

.bestuur-lid-info h3 {
    font-size: 2em;
    color: #27ae60;
    margin: 0;
}

.bestuur-lid-info p {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 5px 0;
}

.bestuur-lid-info p strong {
    font-weight: bold;
}

.home-container {
    display: flex;
    justify-content: space-evenly; /* Zorgt voor gelijke afstand tussen de twee blokken */
    align-items: center;
    flex-wrap: wrap;
    padding: 40px;
    gap: 20px;
}

.home-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .home-container {
        flex-direction: column;
        align-items: center;
    }

    .home-box {
        width: 90%;
        max-width: 400px;
    }
}


.minivoetbal {
    background-color:greenyellow;
    color: white;
}

.jagersvrienden {
    background-color: greenyellow;
    color: white;
}

.home-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #fff;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.logo {
    display: block;
    max-width: 150px; /* Pas de grootte aan, bijvoorbeeld 150px */
    height: auto; /* Houd de verhoudingen correct */
    margin: 10px auto; /* Zorgt dat het logo gecentreerd blijft */
}

/* Evenementenpagina Styling */
.evenementen-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.evenement {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    flex: 1 1 calc(33.333% - 20px); /* 🔥 dit is de key */
    max-width: calc(33.333% - 20px);

    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.evenement img {
    width: 80%;  /* Pas de breedte aan, bijvoorbeeld 80% van de originele grootte */
    max-width: 200px; /* Zorgt ervoor dat de afbeeldingen niet te groot worden */
    height: auto; /* Behoudt de verhoudingen */
    display: block; /* Voorkomt ongewenste ruimte eronder */
    margin: 10px auto; /* Centreert de afbeelding */
}

.evenement:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.scheidsrechters, .sponsors {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sponsor-logos img {
    max-width: 150px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .sponsor-logos img {
        max-width: 100px;
    }
}


/* Verantwoordelijke styling voor kleinere schermen */
@media (max-width: 768px) {
    .uitslagen table {
        font-size: 14px; /* Kleinere tekst voor mobiele schermen */
    }

    /* Maak de tabel volledig responsief op mobiele apparaten */
    .uitslagen th, .uitslagen td {
        padding: 8px; /* Kleinere padding op mobiele apparaten */
    }

    /* Maak de tabel horizontaal scrollbaar */
    .uitslagen {
        overflow-x: auto;
    }
}

/* Lightbox Stijl */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* =====================================================
   MOBIELE VERSIE - JAGERSVRIENDEN EVENEMENTEN
   ===================================================== */

@media screen and (max-width: 768px) {

    /* -----------------------------
       ALGEMEEN
       ----------------------------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* -----------------------------
       HEADER
       ----------------------------- */

    header {
        width: 100%;
        padding: 0;
    }

    /* -----------------------------
       NAVIGATIE
       ----------------------------- */

    nav {
        width: 100%;
        position: relative;
    }

    nav .menu-toggle {
        display: block;
        width: 100%;
        height: 55px;
        padding: 0;
        font-size: 28px;
        line-height: 55px;
    }

    nav ul.nav-menu {
        display: none;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background-color: #27ae60;
        flex-direction: column;
        gap: 0;
        z-index: 9999;
    }

    nav ul.nav-menu.active {
        display: flex;
    }

    nav ul.nav-menu li {
        width: 100%;
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    nav ul.nav-menu li a {
        display: block;
        width: 100%;
        padding: 15px 10px;
        text-align: center;
        font-size: 16px;
    }


    /* -----------------------------
       HERO
       ----------------------------- */

    .hero {
        width: 100%;
        margin: 0;
        padding: 35px 20px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
        margin: 0 0 10px 0;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.5;
        margin: 0;
    }


    /* =================================================
       EVENEMENTEN
       ================================================= */

    .evenementen-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 20px 12px !important;

        gap: 20px !important;
    }


    /* -----------------------------
       EVENEMENT KAART
       ----------------------------- */

    .evenement {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        flex: none !important;

        margin: 0 !important;
        padding: 0 !important;

        background-color: #ffffff;

        border-radius: 12px;

        overflow: hidden;

        box-shadow: 0 3px 12px rgba(0,0,0,0.15);

        transform: none;
    }

    /* Geen hover-verschuiving op touchscreen */
    .evenement:hover {
        transform: none;
    }


    /* -----------------------------
       AFBEELDING
       ----------------------------- */

    .evenement-img {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

        padding: 15px 10px 5px;
    }

    .evenement-img img,
    .evenement > img {
        display: block;

        width: auto !important;
        max-width: 85% !important;

        height: auto !important;
        max-height: 170px !important;

        margin: 0 auto !important;

        object-fit: contain;
    }


    /* -----------------------------
       TEKSTGEDEELTE
       ----------------------------- */

    .evenement-info {
        width: 100%;
        padding: 15px 18px 20px !important;

        text-align: left;
    }


    /* -----------------------------
       TITEL
       ----------------------------- */

    .evenement-info h2 {
        width: 100%;

        font-size: 21px !important;
        line-height: 1.25;

        color: #27ae60;

        margin: 0 0 14px 0 !important;

        text-align: left;
    }


    /* -----------------------------
       DATUM / LOCATIE
       ----------------------------- */

    .evenement-info p {
        width: 100%;

        font-size: 15px;

        line-height: 1.55;

        margin: 0 0 10px 0;

        text-align: left;
    }


    /* -----------------------------
       DIK GEDRUKTE DATUM/LOCATIE
       ----------------------------- */

    .evenement-info p strong {
        color: #2c3e50;
    }


    /* -----------------------------
       LAATSTE BESCHRIJVING
       ----------------------------- */

    .evenement-info p:last-child {
        margin-top: 12px;
        margin-bottom: 0;

        color: #555;
    }


    /* -----------------------------
       FOOTER
       ----------------------------- */

    footer {
        width: 100%;
        margin-top: 10px;
        padding: 20px 10px;

        font-size: 14px;
    }
}


/* =====================================================
   EXTRA KLEINE TELEFOONS
   ===================================================== */

@media screen and (max-width: 480px) {

    .hero {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }


    .evenementen-container {
        padding: 15px 10px !important;
        gap: 16px !important;
    }


    .evenement {
        border-radius: 10px;
    }


    .evenement-img {
        padding: 12px 10px 5px;
    }


    .evenement-img img,
    .evenement > img {
        max-width: 80% !important;
        max-height: 140px !important;
    }


    .evenement-info {
        padding: 14px 16px 18px !important;
    }


    .evenement-info h2 {
        font-size: 19px !important;
    }


    .evenement-info p {
        font-size: 14px;
    }
}