body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f6f8;
    color: #222;
}

header {
    background-color: #234a6b;
    color: white;
    padding: 20px 30px;
}

header h1 {
    margin: 0;
}

main {
    position: relative;
    min-height: calc(100vh - 120px);
    padding: 30px;
    overflow: hidden;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("Haus im Winter.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.20;

    pointer-events: none;
    z-index: 0;
}

main > * {
    position: relative;
    z-index: 1;
}


/* =========================
   Bovenste regel
   ========================= */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top h1 {
    margin: 0;
}


/* Accountfuncties rechtsboven */

.account-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.account-menu form {
    display: inline;
    margin: 0;
    padding: 0;
}

.account-menu a {
    display: inline;
    background: none;
    color: #dce7ef;
    border: none;
    padding: 0;
    margin: 0;

    font-size: 13px;
    font-weight: normal;
    text-decoration: none;
}

.account-menu button {
    display: inline;
    width: auto;
    height: auto;

    background: none;
    color: #dce7ef;
    border: none;
    border-radius: 0;

    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    line-height: normal;

    cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover {
    background: none;
    color: white;
    text-decoration: underline;
}

.account-separator {
    color: #9fb4c5;
}


/* =========================
   Navigatie
   ========================= */

nav {
    margin-top: 15px;
}

nav a {
    display: inline-block;
    background-color: white;
    color: #234a6b;
    text-decoration: none;
    padding: 10px 18px;
    margin-right: 10px;
    border-radius: 5px;
    font-weight: bold;
}

nav a:hover {
    background-color: #e8eef3;
}

a {
    color: #234a6b;
}


/* =========================
   Algemene tabellen
   ========================= */

table {
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #cfd6dc;
    border-radius: 6px;
    overflow: hidden;
}

th {
    background-color: #234a6b;
    color: white;
    text-align: left;
    padding: 10px;
    border: 1px solid #cfd6dc;
}

td {
    padding: 9px 10px;
    border: 1px solid #b8c0c7;
}

tr:hover {
    background-color: #f1f5f8;
}


/* =========================
   Overzichtstabellen
   ========================= */

main > table {
    width: 100%;
}


/* =========================
   Formulieren
   ========================= */

.form-table {
    width: auto;
    min-width: 0;
    max-width: 900px;
}

.form-table th {
    width: 220px;
    white-space: nowrap;
}

.form-table td {
    width: auto;
}

.form-table input,
.form-table select,
.form-table textarea {
    box-sizing: border-box;
    max-width: 500px;
}


/* =========================
   Detailformulieren
   ========================= */

.detail-form {
    display: inline-block;
    background-color: white;
    border: 1px solid #cfd6dc;
    border-radius: 6px;
    padding: 20px;
}

.detail-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.detail-form-row:last-child {
    margin-bottom: 0;
}


/* Omschrijving van een veld */

.detail-form-label {
    width: 220px;
    box-sizing: border-box;

    padding: 9px 12px;

    background-color: #234a6b;
    color: white;

    border: 1px solid #cfd6dc;
    border-radius: 5px;

    font-weight: bold;
    text-align: left;

    white-space: nowrap;
}


/* Inhoud van een veld */

.detail-form-field {
    width: 500px;
    margin-left: 15px;
}

.detail-form-field input,
.detail-form-field select,
.detail-form-field textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
}


/* =========================
   Formulierknoppen
   ========================= */

.form-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.form-buttons button,
.form-buttons .button {
    height: 40px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}


/* =========================
   Algemene knoppen
   ========================= */

button {
    background-color: #234a6b;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

button:hover {
    background-color: #18364f;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #234a6b;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.button:hover {
    background-color: #18364f;
}

.button-small {
    font-size: 13px;
    padding: 5px 9px;
}

.button-cell {
    text-align: center;
}


/* =========================
   Formulierfouten
   ========================= */

.form-errors {
    color: #b00020;
    margin-top: 4px;
}


/* =========================
   Hoofdscherm
   ========================= */

.home-screen {
    min-height: 70vh;
    background-image: url("Haus im Winter.JPG");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
}

.home-menu {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.home-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 220px;
    height: 100px;

    background-color: #315a7d;
    color: white;
    text-decoration: none;

    font-size: 28px;
    font-weight: bold;

    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home-button:hover {
    background-color: #264965;
    color: white;
    text-decoration: none;
}


/* =========================
   Financieel overzicht
   ========================= */

.financieel-kolom {
    width: 140px;
    text-align: center;
    white-space: nowrap;
}
