body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #1f2933;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

h1 {
    color: #146c5a;
}
.kompassen {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.kaart {
    background-color: white;
    border: 1px solid #d8e0de;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kaart.actief {
    border: 2px solid #146c5a;
}

.kaart h2 {
    margin-top: 0;
    color: #146c5a;
}

.kaart span {
    color: #6b7280;
    font-weight: bold;
}

.kaart button {
    background-color: #146c5a;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 650px) {
    .kompassen {
     grid-template-columns: minmax(0, 1fr);
    }
}
.werk-keuze {
    margin: 32px 0;
}

.werk-keuze button {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-bottom: 12px;
    padding: 14px 18px;
    background-color: #146c5a;
    color: white;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.werk-keuze button:hover {
    background-color: #0f5547;
}
.kaart {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kaart button {
    max-width: 100%;
}
.kaart a {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 12px 18px;
    background-color: #146c5a;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
}

.kaart a:hover {
    background-color: #0f5547;
}

.kaart a:focus-visible {
    outline: 3px solid #1f2933;
    outline-offset: 4px;
}
main > section {
    margin-top: 48px;
}

main > section > h2 {
    color: #146c5a;
    margin-bottom: 20px;
}

main > section > .kompassen {
    margin-top: 0;
}

.kaart h3 {
    margin-top: 0;
    color: #146c5a;
    font-size: 24px;
}
.werk-keuze label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.werk-keuze input:not([type="hidden"]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 12px;
    border: 1px solid #aabbb5;
    border-radius: 8px;
    font-size: 16px;
}

.werk-keuze .helptext {
    display: block;
    max-width: 420px;
    margin-top: 8px;
    color: #52625c;
    line-height: 1.5;
}

.werk-keuze input:focus-visible {
    outline: 3px solid #146c5a;
    outline-offset: 2px;
}
nav[aria-label="Account"] a,
nav[aria-label="Account"] button {
    display: inline-block;
    padding: 12px 18px;
    background-color: #146c5a;
    color: white;
    border: 0;
    border-radius: 8px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

nav[aria-label="Account"] a:hover,
nav[aria-label="Account"] button:hover {
    background-color: #0f5547;
}

nav[aria-label="Account"] a:focus-visible,
nav[aria-label="Account"] button:focus-visible {
    outline: 3px solid #1f2933;
    outline-offset: 4px;
}
.werk-keuze input[type="checkbox"] {
    display: inline-block;
    width: 22px;
    height: 22px;
    padding: 0;
    accent-color: #146c5a;
    cursor: pointer;
}


/* Foto's op de Kompas-startpagina */
.kompas-start .kaart {
    overflow: hidden;
    padding: 0 24px 24px;
}

.kompas-start .kompas-foto {
    display: block;
    width: calc(100% + 48px);
    max-width: none;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    margin: 0 -24px 22px;
    border-radius: 13px 13px 0 0;
}

.kompas-start .kaart p {
    line-height: 1.6;
}

.kompas-start .kaart h3 a {
    padding: 0;
    background: transparent;
    color: #146c5a;
    font-size: inherit;
}

.kompas-start .kaart h3 a:hover {
    text-decoration: underline;
}

/* Warme achtergrond startpagina */
body.kompas-start {
    background-color: #f5f0e6;
}

.kompas-start .kaart {
    background-color: #ffffff;
    border-color: #ded8cc;
    box-shadow: 0 4px 16px rgba(65, 54, 35, 0.08);
}


/* Gezellige achtergrond TafelKompas */
body.tafel-achtergrond {
    min-height: 100vh;
    background-color: #eee4d5;
    background-image:
        linear-gradient(rgba(245, 240, 230, .30), rgba(245, 240, 230, .30)),
        url("fotos/tafel.jpg");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.tafel-achtergrond main {
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 1000px;
    margin: 32px auto;
    padding: 36px;
    background: rgba(255, 251, 245, .96);
    border: 1px solid #e4d8c7;
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(65, 45, 25, .18);
    overflow-wrap: anywhere;
}

.tafel-achtergrond .kaart {
    background: #ffffff;
    border-color: #e4d8c7;
}

.tafel-achtergrond p {
    line-height: 1.6;
}

.tafel-achtergrond nav[aria-label="Account"] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 650px) {
    .tafel-achtergrond main {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 24px 16px;
        border-radius: 16px;
    }
}


/* Vaste fotolaag TafelKompas */
body.tafel-achtergrond {
    position: relative;
    isolation: isolate;
    background-image: none;
}

body.tafel-achtergrond::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #eee4d5;
    background-image:
        linear-gradient(rgba(245, 240, 230, .30), rgba(245, 240, 230, .30)),
        url("fotos/tafel.jpg?v=20261012213234");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
