/* VOF PWA — basis-CSS, mobiel-eerst (390px viewport).
   Eén bestand met custom properties. Geen frameworks. */

:root {
    --kleur-bg:           #ffffff;
    --kleur-tekst:        #1a1a1a;
    --kleur-tekst-licht:  #6b6b6b;
    --kleur-primair:      #1f5f9e;  /* freelance-blauw */
    --kleur-accent:       #8e7558;  /* B&B-leer */
    --kleur-rand:         #e0e0e0;
    --kleur-bg-licht:     #f5f5f5;
    --kleur-rood:         #c43d3d;
    --kleur-groen:        #3d8e4f;

    --font-base:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --space:              1rem;
    --space-half:         0.5rem;
    --radius:             8px;

    --safe-top:           env(safe-area-inset-top, 0);
    --safe-bottom:        env(safe-area-inset-bottom, 0);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    background: var(--kleur-bg);
    color: var(--kleur-tekst);
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

main {
    padding: calc(var(--space) + var(--safe-top)) var(--space) calc(var(--space) + var(--safe-bottom));
    max-width: 100%;
}

header h1 {
    font-size: 1.75rem;
    margin: 0 0 var(--space-half);
}

.hint {
    color: var(--kleur-tekst-licht);
    margin: 0 0 var(--space);
    font-size: 0.95rem;
}

/* Startscherm-kaarten */
.kaarten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-half);
}

.kaart {
    background: var(--kleur-bg-licht);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--radius);
    padding: var(--space);
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

.kaart.placeholder {
    color: var(--kleur-tekst-licht);
    cursor: default;
}

/* Knoppen — minimaal 44px raakgrootte voor iOS */
button, .button {
    appearance: none;
    border: none;
    background: var(--kleur-primair);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    min-height: 44px;
}

/* Form-velden */
input, select, textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--kleur-rand);
    border-radius: var(--radius);
    font-size: 1rem;  /* >= 16px voorkomt iOS-zoom-on-focus */
    background: var(--kleur-bg);
    font-family: inherit;
}

label {
    display: block;
    margin-bottom: var(--space-half);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Bedragen rechts uitgelijnd in tabellen */
table {
    width: 100%;
    border-collapse: collapse;
}

td.bedrag, th.bedrag {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
