/* ========== Reset & Basis ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f9f4;
    color: #2e5949;
    scroll-behavior: smooth;
    max-width: 100vw;   /* voorkomt horizontal scroll */
    overflow-x: hidden !important;
}

/* ========== Navigatie met #17lommel links ========== */
header {
    background-color: rgba(46, 89, 73, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between; /* dit is ok */
    align-items: center;
    flex-wrap: wrap;
    width: 100%;              /* <– belangrijk */
    padding: 20px;            /* evt iets kleiner maken op mobiel */
    box-sizing: border-box;   /* zorgt dat padding geen overflow veroorzaakt */
  }  

.logo {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #c9e3d4;
}

.hamburger {
    display: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
}

#menu-toggle {
    display: none;
}

.nav-links {
    flex: none;               /* VERWIJDER flex: 1 1 auto; */
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}


.nav-links li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 5px 2px;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #c9e3d4;
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: #c9e3d4;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ========== Main Inhoud ========== */
main {
    padding: 140px 20px 60px;
    max-width: 1100px;
    margin: auto;
}

h1 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #1f3c31;
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #4d7763;
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2e5949;
}

/* ========== Reader Blokken ========== */
.reader .block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
    padding: 20px;
    border-radius: 12px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.reader .block .source {
    font-size: 0.9em;
    color: #5e7b70;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

.reader .block.border-dashed {
    border: 3px dashed #4a8660;
}
.reader .block.border-solid {
    border: 3px solid #4a8660;
}

.reader .block.left-img .image { order: 1; }
.reader .block.left-img .text  { order: 2; }
.reader .block.right-img .image { order: 2; }
.reader .block.right-img .text  { order: 1; }

.reader .block .image {
    width: 45%;
    flex-shrink: 0;
}

.reader .block .image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.reader .block .text {
    width: 55%;
}

.reader .block .text p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #2e5949;
}

/* ========== Extra tekstblok ========== */
.reader .text-block {
    max-width: 800px;
    margin: 40px auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #2e5949;
    background-color: #f9fcf8;
    padding: 30px;
    border: 2px dashed #4a8660;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    text-align: justify;
}

.reader .image-block {
    max-width: 700px;
    margin: 40px auto;
    border: 3px dashed #4a8660;
    border-radius: 12px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.reader .image-block img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.reader .image-block .source {
    font-size: 0.9em;
    color: #5e7b70;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* ========== Divider ========== */
.divider, hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 40px 0;
}

/* ========== Contactformulier ========== */
#contact {
    background-color: #eaf4ec;
    padding: 40px 20px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#contact form {
    max-width: 600px;
    margin: auto;
    text-align: left;
}

#contact label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    margin-bottom: 10px;
}

#contact button {
    background-color: #4a8660;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #396c4e;
}

#status {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
}

/* ========== Video box ========== */
.video-box {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f1f6f2;
    border: 3px dashed #4a8660;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.video-box video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-box iframe {
    width: 100%;
    height: 480px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== Partners ========== */
.partners-box {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background-color: #eaf4ec;
    border: 4px dashed #2e5949;
    border-radius: 16px;
    text-align: center;
}

.partners-box h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #1f3c31;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.partner-grid img {
    width: 100%;
    max-width: 120px;       /* maximale breedte */
    height: 120px;          /* vaste hoogte behouden */
    object-fit: contain;    /* afbeelding netjes binnen de ruimte */
    padding: 10px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.partner-grid img:hover {
    transform: scale(1.05);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.story-card {
    background-color: #ffffff;
    border: 2px dashed #4a8660;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.story-card h3 {
    font-size: 1.2em;
    color: #2e5949;
    margin-bottom: 12px;
}

.story-card p {
    flex-grow: 1;
    font-size: 1em;
    line-height: 1.6;
    color: #2e5949;
    margin-bottom: 20px;
}

.story-card .source {
    font-size: 0.9em;
    color: #5e7b70;
    font-style: italic;
    text-align: right;
}


/* ========== Responsive aanpassingen ========== */
@media (max-width: 768px) {
    @media (max-width: 768px) {
        nav {
          justify-content: center;
          text-align: center;
        }
      
        .logo {
          margin-bottom: 10px;
          text-align: center;
          width: 100%;
        }
      }      

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: rgba(46, 89, 73, 0.95);
        padding: 10px 0;
        margin: 0;
        border-radius: 0 0 10px 10px;
    }

    #menu-toggle:checked + .hamburger + .nav-links {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        color: white;
        font-size: 1.1em;
        font-weight: bold;
        text-decoration: none;
    }

    .reader .block {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .reader .block .image,
    .reader .block .text {
        width: 100%;
    }

    .reader .block .image img {
        max-height: unset;
    }

    .reader .block .text p {
        text-align: left;
        padding: 0 10px;
    }

    .video-box iframe {
        height: 220px;
    }

    .partner-grid {
        gap: 12px;
    }

    .partner-grid img {
        width: 80px;
        height: 80px;
    }

    #contact {
        padding: 40px 20px;
    }

    form {
        padding: 0 10px;
    }

    input, textarea {
        font-size: 1em;
    }

    button {
        font-size: 1em;
        padding: 12px;
    }

    main {
        padding-top: 140px;
    }
    .partner-grid img {
        max-width: 80px;
        height: 80px;
    }
}

}