/* VDH klantportaal */
:root {
  --ijs: #a0c8d6; --blauw: #62a1cd; --blauw-d: #2c6f9e; --groen: #96caac; --groen-d: #2f7d55; --rood: #e66a60; --rood-d: #c2453b;
  --inkt: #141b22; --tekst: #1c2530; --zacht: #5d6b78; --lijn: #e3e9ee; --bg: #f4f7f9; --kaart: #fff;
  --streep: linear-gradient(90deg, var(--ijs) 0 25%, var(--blauw) 25% 50%, var(--groen) 50% 75%, var(--rood) 75% 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --tekst: #e3e9ee; --zacht: #9aa7b3; --lijn: #26313c; --bg: #0f151b; --kaart: #18212a; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--tekst); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blauw-d); }
@media (prefers-color-scheme: dark) { a { color: #8cc0e3; } }
h1 { font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
.pt-binnen { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.pt-kop { background: var(--inkt); color: #fff; }
.pt-kop .pt-binnen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.pt-streep { height: 4px; background: var(--streep); }
.pt-merk { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.pt-merk img { background: #fff; border-radius: 50%; padding: 2px; }
.pt-merk span { display: flex; flex-direction: column; line-height: 1.15; }
.pt-merk small { color: var(--ijs); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.pt-menu { display: flex; align-items: center; gap: 14px; }
.pt-klant { color: #c9d6df; font-size: .9rem; }
.pt-menu form { margin: 0; }
.pt-menu button { background: #ffffff14; color: #fff; border: 1px solid #ffffff26; border-radius: 8px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: .85rem; }
.pt-voorbeeld { background: #fdf1e2; color: #7a4204; text-align: center; padding: 8px 16px; font-size: .88rem; }
.pt-inhoud { padding-top: 24px; padding-bottom: 32px; }
.pt-voet { color: var(--zacht); font-size: .78rem; padding-bottom: 28px; text-align: center; }
.pt-zacht { color: var(--zacht); margin: 0 0 10px; }
.pt-klein { color: var(--zacht); font-size: .8rem; }
.pt-fout { color: var(--rood-d); font-size: .85rem; margin: 4px 0; }
.pt-kaart { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20,27,34,.05), 0 4px 16px rgba(20,27,34,.05); }
.pt-kaartkop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pt-kaartkop small { color: var(--zacht); }
.pt-smal { max-width: 640px; }
.pt-knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--inkt); color: #fff !important; border: 0; border-radius: 10px; padding: 10px 16px; font: 600 .92rem inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.pt-knop:hover { background: var(--blauw-d); }
.pt-knop-groot { padding: 13px 20px; font-size: 1rem; }
.pt-knop-licht { background: transparent; color: var(--blauw-d) !important; border: 1px solid var(--lijn); padding: 6px 12px; font-size: .85rem; }
.pt-welkom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pt-tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pt-tegel { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; border-left: 4px solid var(--blauw); }
.pt-tegel b { font-size: 1.8rem; line-height: 1.1; }
.pt-tegel span { color: var(--zacht); font-size: .85rem; }
.pt-tegel.rood { border-left-color: var(--rood); } .pt-tegel.rood b { color: var(--rood-d); }
.pt-fgas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pt-fgas div { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.pt-fgas b { font-size: 1.3rem; } .pt-fgas span { color: var(--zacht); font-size: .82rem; }
.pt-tabel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--zacht); padding: 8px 10px; border-bottom: 1px solid var(--lijn); }
td { padding: 10px; border-bottom: 1px solid var(--lijn); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--zacht); }
.pt-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: #e6f0f7; color: var(--blauw-d); }
.pt-status.in_bedrijf, .pt-status.opgelost { background: #e5f4ec; color: var(--groen-d); }
.pt-status.storing, .pt-status.nieuw { background: #fde8e6; color: var(--rood-d); }
.pt-status.buiten_gebruik { background: #eef1f3; color: var(--zacht); }
.pt-status.ingepland, .pt-status.behandeling { background: #fdf1e2; color: #a85a06; }
.pt-te-laat { color: var(--rood-d); font-weight: 700; }
.pt-lijst { list-style: none; margin: 0; padding: 0; }
.pt-lijst li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lijn); }
.pt-lijst li:last-child { border-bottom: 0; }
.pt-lijst li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pt-lijst small { color: var(--zacht); }
.pt-reactie { color: var(--tekst) !important; background: var(--bg); padding: 4px 8px; border-radius: 6px; margin-top: 4px; }
.pt-gegevens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.pt-gegevens dt { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--zacht); }
.pt-gegevens dd { margin: 2px 0 0; font-weight: 600; }
.pt-tijdlijn { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--lijn); }
.pt-tijdlijn li { position: relative; padding: 0 0 14px 12px; display: flex; flex-direction: column; }
.pt-tijdlijn li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--blauw); border: 2px solid var(--kaart); }
.pt-tijdlijn span { color: var(--zacht); font-size: .88rem; }
.pt-login { display: grid; place-items: center; min-height: 60vh; }
.pt-login .pt-kaart { width: min(420px, 100%); }
form label, .pt-veld label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .88rem; margin-bottom: 12px; }
input[type=text], input[type=password], input[type=email], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--lijn); border-radius: 10px; background: var(--bg); color: var(--tekst); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blauw); border-color: var(--blauw); }
.pt-form { display: flex; flex-direction: column; gap: 4px; }
.pt-veld { margin-bottom: 8px; }
.pt-keuze ul, .pt-keuze div[id] { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.pt-keuze label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; border: 1px solid var(--lijn); border-radius: 10px; padding: 10px 14px; margin: 0; cursor: pointer; }
.pt-berichten { list-style: none; padding: 0; margin: 0 0 16px; }
.pt-berichten li { padding: 12px 16px; border-radius: 10px; background: #e5f4ec; color: var(--groen-d); margin-bottom: 8px; }
.pt-berichten li.error { background: #fde8e6; color: var(--rood-d); }
.pt-berichten li.info { background: #e6f0f7; color: var(--blauw-d); }
@media (max-width: 700px) {
  h1 { font-size: 1.35rem; }
  .pt-klant { display: none; }
  .pt-welkom .pt-knop-groot { width: 100%; }
  .pt-tabel thead { display: none; }
  .pt-tabel tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--lijn); }
  .pt-tabel td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; }
  .pt-tabel td::before { content: attr(data-label); color: var(--zacht); font-size: .8rem; }
  .pt-kaart { padding: 16px; }
}
.pt-keuze > label { border: 0 !important; padding: 0 !important; font-weight: 600 !important; margin-bottom: 6px !important; }

/* contracten */
.pt-contract { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; color: inherit; text-decoration: none; }
.contract-tekst { line-height: 1.65; font-size: 15px; }
.contract-tekst h2 { font-size: 21px; margin: 4px 0 8px; } .contract-tekst h3 { font-size: 16px; margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #e3e8ec; }
.contract-tekst ul, .contract-tekst ol { margin: 4px 0 12px 20px; padding: 0; }
.pt-akkoord { background: #eef8f2; border: 1px solid #96caac; border-radius: 10px; padding: 10px 14px; }
.pt-akkoordblok { border: 2px solid #62a1cd; }
.pt-form p { margin: 0 0 12px; } .pt-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.pt-form input[type=text] { width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid #cfd8df; border-radius: 10px; font-size: 15px; }
.pt-form input[type=checkbox] { margin-right: 8px; }
.pt-form p:has(input[type=checkbox]) label { display: inline; font-weight: 400; }

/* iPhone zoomt in op invoervelden kleiner dan 16px */
@media (pointer: coarse), (max-width: 900px) {
  input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea { font-size: 16px !important; }
}
.pt-code { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; }
.pt-onthoud { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.pt-nogeens { margin-top: 14px; font-size: 14px; color: #5d6b78; }
.pt-link { background: none; border: 0; color: #2c6f9e; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.pt-tabel { overflow-x: auto; } .pt-tabel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-tabel th, .pt-tabel td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e3e8ec; vertical-align: top; }
.pt-tabel th { font-size: 12px; color: #5d6b78; text-transform: uppercase; letter-spacing: .03em; } .pt-tabel small { color: #5d6b78; }
.pt-filter { display: flex; gap: 12px; flex-wrap: wrap; } .pt-filter label { display: flex; flex-direction: column; font-size: 13px; color: #5d6b78; gap: 4px; }
.pt-filter select { padding: 8px 10px; border-radius: 10px; border: 1px solid #cfd8df; }
