/* ════════════════════════════════════════════════════════════════════
   Achterlaatbericht — basis styling
   ════════════════════════════════════════════════════════════════════ */

:root {
    --c-bg: #f5f5f4;
    --c-card: #fff;
    --c-text: #222;
    --c-muted: #666;
    --c-border: #e5e5e3;
    --c-primary: #0a4d3a;
    --c-primary-hover: #0d6047;
    --c-success: #16a34a;
    --c-warn: #b45309;
    --c-danger: #dc2626;
    --c-accent-bg: #fef3c7;
    --c-accent-border: #fcd34d;
    --radius: 8px;
    --font-base: 16px;
}

* { box-sizing: border-box; }

html { font-size: var(--font-base); }
body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .card { padding: 20px; }
}

/* ─── Site header ─── */
.site-header {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.site-header a.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}
@media (max-width: 600px) {
    .brand-logo { height: 40px; }
}
.site-header nav a {
    color: var(--c-muted);
    text-decoration: none;
    margin-left: 14px;
    font-size: 0.9rem;
}
.site-header nav a:hover { color: var(--c-primary); }
.site-header nav a.active { color: var(--c-primary); font-weight: 600; }

/* ─── Toegankelijkheid: tekst-grootte buttons + TTS ─── */
.a11y-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
}
.a11y-toolbar button {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.85rem;
}
.a11y-toolbar button:hover { background: var(--c-border); }
.a11y-toolbar button[aria-pressed="true"] {
    background: var(--c-primary);
    color: white;
}

/* ─── Headings ─── */
h1, h2, h3 { color: var(--c-primary); margin-top: 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; margin-top: 24px; }
h3 { font-size: 1.1rem; }

/* Engelse cursief eronder, kleiner */
.en, em.en, p.en {
    color: var(--c-muted);
    font-style: italic;
    font-size: 0.92em;
    margin-top: -8px;
    margin-bottom: 16px;
}

/* ─── Forms ─── */
form .field { margin-bottom: 18px; }
form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
form .hint {
    display: block;
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-top: 4px;
}

input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--c-primary);
    outline-offset: 1px;
}

textarea { min-height: 100px; resize: vertical; }

/* Honeypot — onzichtbaar voor mensen, ingevuld door bots */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    background: var(--c-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.btn:hover { background: var(--c-primary-hover); }
.btn-danger { background: var(--c-danger); }
.btn-secondary {
    background: white;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
}
.btn-success { background: var(--c-success); }
.btn-success:hover { background: #15803d; }

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ─── Alerts / waarschuwingen ─── */
.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}
.alert-warn {
    background: var(--c-accent-bg);
    border-color: var(--c-accent-border);
    color: #78350f;
}
.alert-error {
    background: #fee2e2;
    border-color: var(--c-danger);
    color: #7f1d1d;
}
.alert-success {
    background: #dcfce7;
    border-color: var(--c-success);
    color: #14532d;
}

/* ─── Sleutel weergave ─── */
.key-display {
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: #f5f5f4;
    border: 2px dashed var(--c-primary);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    user-select: all;
    white-space: pre-line;
    line-height: 1.8;
}

.kenmerk-display {
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-primary);
    background: #f5f5f4;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    user-select: all;
}

/* ─── Contactpersoon-blokken ─── */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
    align-items: end;
}
.contact-row .remove-btn {
    background: transparent;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
}
.contact-row .remove-btn:hover { color: var(--c-danger); border-color: var(--c-danger); }

@media (max-width: 600px) {
    .contact-row { grid-template-columns: 1fr; }
}

/* ─── Footer ─── */
.site-footer {
    text-align: center;
    color: var(--c-muted);
    font-size: 0.85rem;
    padding: 24px 16px;
}
.site-footer a { color: var(--c-muted); }
.site-footer p { margin: 6px 0; }
.footer-crisis { font-size: 0.85rem; line-height: 1.8; }
.footer-crisis a { color: var(--c-muted); text-decoration: none; }
.footer-crisis a:hover { text-decoration: underline; }
.crisis-logo {
    height: 22px;
    width: auto;
    vertical-align: middle;
    margin-right: 3px;
    display: inline-block;
}
.crisis-be {
    font-size: 0.82rem;
    color: var(--c-muted);
    font-style: italic;
}

/* ─── Zachte vangnet-notitie (quiet-note) ─── */
.quiet-note {
    font-size: 0.85rem;
    color: var(--c-muted);
    border-left: 3px solid var(--c-border);
    padding: 6px 10px;
    margin: 16px 0;
    line-height: 1.5;
}

/* ─── Tekst-grootte schaling ─── */
body[data-textsize="small"]  { font-size: 14px; }
body[data-textsize="normal"] { font-size: 16px; }
body[data-textsize="large"]  { font-size: 19px; }
body[data-textsize="xlarge"] { font-size: 22px; }
