.gridcontainer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
    "header"
    "main"
    "footer";

    grid-gap: 5px;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Veranderd van 'height' naar 'min-height' om afsnijden te voorkomen */
    background-image: url('Verhardingen_Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Houdt achtergrond vast tijdens het scrollen */
}

.text-box {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--Hunter_Green);
    padding: 20px;
    margin-top: 70px;
    margin-left: 6px;
    border-radius: 2em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: auto;
    text-align: justify;
    box-sizing: border-box;
}

.text-box-crumb {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #ccc;
    padding: 15px 20px;
    border-radius: 2em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    width: auto;
    text-align: justify;
    box-sizing: border-box;
}

.content {
    text-align: center;
    color: var(--Brunswick_Green);
    padding-top: 5vh; /* Ruimte bovenaan verminderd voor betere mobiele verhoudingen */
}

.content-footer {
    text-align: center;
    color: var(--Timberwolf);
    padding-top: 10px;
    margin-top: 20px;
}

.gheader { grid-area: header; }
.gmain { grid-area: main; }
.gfooter { grid-area: footer; }

.panel {
    border-radius: 5px;
    border: var(--Brunswick_Green) 1px;
    padding: 10px;
}

/* Breadcrumbnavigatie */
.breadcrumb {
    display: flex;
    flex-wrap: wrap; /* Voorkomt dat breadcrumbs buiten het scherm vallen op mobiel */
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: inline;
    font-size: 16px;
}

.breadcrumb li + li::before {
    content: " > ";
    margin: 0 5px;
    color: var(--Brunswick_Green);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--Brunswick_Green);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    font-weight: bold;
    color: var(--Brunswick_Green);
}


/* ==========================================
   MEDIA QUERIES (TABLET & GSM)
   ========================================== */

/* Tablets (schermen tot 768px) */
@media (max-width: 768px) {
    .text-box {
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto; /* Centreert de tekstbox op een tablet */
        max-width: 80%;
    }

    .text-box-crumb {
        margin-left: auto;
        margin-right: auto;
        max-width: 80%;
    }

    .content {
        padding-top: 3vh;
    }
}

/* Mobiele telefoons (schermen tot 480px) */
@media (max-width: 480px) {
    body {
        /* Voorkomt iOS Safari achtergrond-fixed bugs */
        background-attachment: scroll;
    }

    .text-box {
        margin-top: 15px;
        margin-left: 10px;
        margin-right: 10px;
        padding: 15px;
        max-width: 100%;
        border-radius: 1em;
        text-align: left; /* Voorkomt vreemde gaten tussen woorden op smalle schermen */
    }

    .text-box-crumb {
        margin: 10px;
        padding: 10px 15px;
        max-width: 100%;
        border-radius: 1em;
        text-align: left;
    }

    .breadcrumb li {
        font-size: 14px;
    }

    .content-footer {
        margin-top: 10px;
    }
}