/* =========================================
   1. BASISINSTELLINGEN
========================================= */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;

    font-size: 18px;
    line-height: 1.6;

    color: #f5e9c8;

    background-image: url('/static/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    max-width: 100%;
    overflow-x: hidden;
}


/* =========================================
   2. LAYOUT-CONTAINER
========================================= */

.container {
    width: 92%;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}


/* =========================================
   3. CONTENT BOXEN
========================================= */

.box {
    padding: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;

    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


/* =========================================
   4. TITELS & TEKST
========================================= */

h1, h2 {
    margin-top: 0;
    color: #fff8dc;
}

h1 {
    font-size: 3rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
}

p, div, span {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


/* =========================================
   5. LINKS
========================================= */

a {
    color: #ffd27f;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: #ffe9a6;
    text-decoration: underline;
}


/* =========================================
   6. BUTTONS
========================================= */

button,
.button {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    color: #f5e9c8;
    border: 1px solid #f5e9c8;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-right: 10px;
}

button:last-child,
.button:last-child {
    margin-right: 0;
}

button:hover,
.button:hover {
    background: #f5e9c8;
    color: #1a1a1a;
}


/* =========================================
   7. Lijnen
========================================= */

hr {
    border: none;
    border-top: 2px solid #f5e9c8;
    margin: 20px 0;
}


/* =========================================
   8. FORMULIER — BASIS
========================================= */

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #666;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #f5e9c8;
    font-size: 1em;
    box-sizing: border-box;
    text-align: left;
}

input::placeholder,
textarea::placeholder {
    color: #d8cfae;
}

.form-row {
    margin-bottom: 15px;
}


/* =========================================
   9. DESKTOP FORMULIER — LINKS UITLIJNEN
========================================= */

@media (min-width: 768px) {

    form {
        max-width: 600px;
        margin: 0 auto;
    }

    .form-row {
        display: flex;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .form-row label {
        width: 180px;
        margin-right: 20px;
        font-weight: bold;
        font-size: 1em;
        text-align: left;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        width: 350px;
        max-width: 100%;
        text-align: left;
    }
}


/* =========================================
   10. MOBIEL FORMULIER — PERFECTE SCHALING
========================================= */

@media (max-width: 768px) {

    html, body {
        font-size: 16px !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .form-row {
        display: block;
        width: 100%;
        margin-bottom: 16px;
    }

    .form-row label {
        width: 100%;
        margin-bottom: 6px;
        font-size: 1em;
        text-align: left;
    }

    input,
    select,
    textarea {
        width: 100%;
        padding: 14px;
        font-size: 1em;
        text-align: left;
    }

    button,
    .button {
        width: 100%;
        padding: 16px 22px;
        font-size: 1em;
    }

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


/* =========================================
   11. TABELLEN
========================================= */

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    word-wrap: break-word;
    text-align: left;
}

th {
    background: rgba(255,255,255,0.1);
    font-weight: bold;
}


/* =========================================
   12. VEILIGE BREEDTE
========================================= */

img, .box, .container, .content {
    max-width: 100%;
    box-sizing: border-box;
}


/* =========================================
   13. LANGBAR
========================================= */

.langbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.langbar a {
    white-space: nowrap;
}
