/* CSS bij RWD : ECO pagina - mobile first */

/* ---------- BASIS (mobiel, 1 kolom) ---------- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background: #fff url("../images/bg.jpg") no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
}

/* header */
header {
    padding: 1rem;
    text-align: center;
}

header img {
    margin: 0 auto;
    width: 160px;
}

/* navigatie: onder elkaar op mobiel */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    border-top: 1px solid #fff;
}

nav a {
    display: block;
    padding: 0.8rem 1rem;
    background: #4a9a2f;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

nav a:hover,
nav a:focus,
nav a.actief {
    background: #2f6b1a;
}

/* hoofdinhoud */
main {
    display: flex;
    flex-direction: column-reverse;
    padding: 1rem;
}

/* banner: op mobiel gecentreerd boven de tekst */
aside {
    text-align: center;
}

aside img {
    margin: 0 auto;
}

section {
    min-width: 0;
}

h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 700;
    color: #2f6b1a;
    margin-bottom: 1rem;
}

article {
    margin-bottom: 1rem;
}

article p {
    margin-bottom: 1rem;
}

.inleiding {
    font-weight: 700;
    color: #2f6b1a;
}

footer {
    min-height: 1rem;
    background: #4a9a2f;
}

/* ---------- TABLET (vanaf 600px) ---------- */
@media screen and (min-width: 600px) {

    header {
        text-align: left;
        padding: 1.5rem 2rem;
    }

    header img {
        margin: 0;
        width: 200px;
    }

    /* menu naast elkaar */
    nav ul {
        display: flex;
    }

    nav li {
        flex: 1;
        border-top: 0;
        border-left: 1px solid #fff;
    }

    nav li:first-child {
        border-left: 0;
    }

    main {
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    /* wereldbol links van de tekst */
    article:first-of-type p:first-child {
        float: left;
        margin: 0 1.5rem 1rem 0;
    }
}

/* ---------- DESKTOP (vanaf 900px) ---------- */
@media screen and (min-width: 900px) {

    /* banner links, tekst rechts */
    main {
        flex-direction: row;
        align-items: flex-start;
        
    }

    aside {
        flex: 0 0 120px;
    }

    section {
        flex: 1;
    }

    h1 {
        font-size: 2.4rem;
    }

    /* artikels naast elkaar */
    section {
        display: flex;
        flex-wrap: wrap;
        
    }

    section h1 {
        flex: 0 0 100%;
    }

    article {
        flex: 1 1 280px;
        min-width: 0;
    }
}