/* Opbouw en stijl zoals het beheerportaal van de Admin2Win MCP van ETS.
   Kleuren ETS: teal #1695a6, petrol #014f52, koper #d77f4e (waarschuwingen), beige #f2eeeb. Nooit paars.
   Lettertype: DM Sans (vrij, SIL Open Font License, zie fonts/OFL.txt). */
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-ext-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-ext-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --teal: #1695a6;
  --petrol: #014f52;
  --koper: #d77f4e;
  --koper-donker: #7f421e;
  --beige: #f2eeeb;
  --rand: #e3ded9;
  --zwart: #26201c;
  --grijs: #6b625c;
  --fout: #c62828;
  --ok-achter: #e3f2ea;
  --ok-tekst: #1f6b45;
  --wacht-achter: #fbe9df;
  --lettertype: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--beige); }
body { margin: 0; font-family: var(--lettertype); font-size: .95rem; line-height: 1.5; color: var(--zwart); background: var(--beige); min-height: 100vh; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--petrol); text-decoration: underline; }

/* Band */
.band { background: var(--petrol); color: #fff; font-size: .9rem; }
.band-binnen { max-width: 1072px; margin: 0 auto; padding: 6px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; min-height: 40px; }
.band-rechts { display: flex; align-items: center; gap: 12px; }
.band-naam { text-decoration: underline; }
.knop-band { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 4px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.knop-band:hover { background: rgba(255,255,255,.12); }

/* Kop met menu */
.kop { background: #fff; }
.kop-binnen { max-width: 1072px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.merk img { display: block; height: 60px; width: auto; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { color: var(--teal); padding: 8px 12px; border-bottom: 2px solid transparent; font-weight: 500; }
nav a:hover { text-decoration: none; color: var(--petrol); }
nav a.actief { color: var(--petrol); font-weight: 700; border-bottom-color: var(--teal); }

.inhoud { max-width: 1072px; margin: 0 auto; padding: 32px 16px 56px; }

/* Titels */
.titelrij { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.titelrij h1 { margin: 0; }
.titel-met-label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h1 { color: var(--petrol); font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin: 0 0 20px; }
h2 { color: var(--petrol); font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; }
.kruimel { font-size: .85rem; color: var(--grijs); margin: 0 0 6px; }
.kruimel a { color: var(--grijs); }

/* Kaarten */
.kaart { background: #fff; border-radius: 6px; padding: 20px 24px; margin-bottom: 20px; }
.kaart > h2:first-child, details > summary + * { margin-top: 0; }
details.kaart > summary { cursor: pointer; color: var(--petrol); font-weight: 600; list-style: none; }
details.kaart > summary::before { content: "▶"; font-size: .7em; margin-right: 10px; display: inline-block; transition: transform .15s; }
details.kaart[open] > summary::before { transform: rotate(90deg); }
details.kaart[open] > summary { margin-bottom: 16px; }
details.binnen { margin-top: 16px; border-top: 1px solid var(--rand); padding-top: 14px; }
details.binnen > summary { cursor: pointer; color: var(--petrol); font-weight: 500; list-style: none; }
details.binnen > summary::before { content: "▶"; font-size: .7em; margin-right: 10px; display: inline-block; }
details.binnen[open] > summary::before { transform: rotate(90deg); }
h3 { color: var(--petrol); font-size: 1rem; font-weight: 700; margin: 24px 0 8px; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; font-size: .85rem; color: var(--grijs); padding: 10px 8px; border-bottom: 1px solid var(--rand); }
td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tabel-wrap { overflow-x: auto; }
.naam { color: var(--petrol); font-weight: 700; }
.sub { display: block; font-size: .85rem; color: var(--grijs); }
.rechts { text-align: right; white-space: nowrap; }

/* Formulieren */
label { display: block; font-weight: 500; margin: 14px 0 6px; }
input[type=number], input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], select {
  width: 100%; max-width: 440px; padding: 10px 14px; border: 1px solid #d3ccc6; border-radius: 4px; font: inherit; color: var(--zwart); background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.zoekrij { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.zoekrij input { max-width: 520px; flex: 1 1 280px; }

/* Knoppen */
button, .knop { display: inline-block; background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: 999px; padding: 10px 24px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3; }
button:hover, .knop:hover { background: var(--petrol); border-color: var(--petrol); color: #fff; text-decoration: none; }
button.tweede, .knop.tweede { background: #fff; color: var(--petrol); border-color: var(--teal); font-weight: 500; }
button.tweede:hover, .knop.tweede:hover { background: #e9f5f7; color: var(--petrol); }
button.klein, .knop.klein { padding: 5px 14px; font-size: .9rem; }
button.gevaar { background: #fff; color: var(--koper-donker); border-color: var(--koper); font-weight: 500; }
button.gevaar:hover { background: var(--wacht-achter); color: var(--koper-donker); }
button.link { background: none; border: 0; padding: 0; color: inherit; font-weight: inherit; border-radius: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--koper); outline-offset: 2px; }
form.inline { display: inline; }
.rij { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.knoppen { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* Labels */
.label { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 500; background: var(--beige); color: var(--zwart); white-space: nowrap; }
.label.ok { background: var(--ok-achter); color: var(--ok-tekst); }
.label.nee, .label.wacht { background: var(--wacht-achter); color: var(--koper-donker); }

/* Meldingen */
.melding { background: #fff; border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 4px; }
.waarschuwing { background: var(--wacht-achter); border-left: 4px solid var(--koper); padding: 12px 16px; border-radius: 4px; }
.fout { color: var(--fout); font-weight: 500; }
.klein { font-size: .85rem; color: var(--grijs); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--beige); padding: 2px 6px; border-radius: 4px; word-break: break-all; font-size: .85em; }
pre.mail { white-space: pre-wrap; background: var(--beige); padding: 14px; border-radius: 6px; font-size: .85rem; }
.smal { max-width: 460px; background: #fff; border-radius: 6px; padding: 28px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* Tools testen */
.veld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; max-width: 560px; }
.veld label { font-weight: 500; }
pre.antwoord { background: #f6f7f7; border: 1px solid var(--rand); border-radius: 6px; padding: 14px; overflow-x: auto;
    white-space: pre-wrap; word-break: break-word; font-size: .85rem; max-height: 520px; overflow-y: auto; }
