/* Huisstijl van De Groene Generatie, overgenomen van degroenegeneratie.nl: Space Grotesk, marineblauw,
   oranje pil-knoppen en de gebogen onderrand. Eén afwijking: op oranje staat marineblauw in plaats van wit,
   anders is de knop buiten in de zon slecht leesbaar. Alleen licht, om dezelfde reden. */
:root {
  --navy: #092048; --oranje: #f39313; --groen: #07612e; --limoen: #8dc039; --rood: #c8202b;
  --bg: #f4f4f4; --wit: #ffffff; --tekst: #092048; --zacht: #4c5c78; --lijn: #d6d6d6; --navy-zacht: #b9c6dc;
  --letter: "Space Grotesk", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--tekst); font: 17px/1.45 var(--letter); overflow-x: clip;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 92px max(16px, env(safe-area-inset-left, 0px));
  font-variant-numeric: tabular-nums;
}
main { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h1 { font-size: 34px; overflow-wrap: anywhere; }
h2 { font-size: 21px; margin-bottom: 6px; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid var(--oranje); outline-offset: 2px; }
a { color: inherit; }
::selection { background: var(--oranje); color: var(--navy); }

/* Kop met de gebogen onderrand van hun site */
.mast {
  width: 100vw; margin-left: calc(50% - 50vw); padding: 12px 20px 46px; background: var(--navy); color: #fff;
  border-radius: 0 0 50% 50% / 0 0 30px 30px;
}
.mast-binnen { max-width: 640px; margin: 0 auto; }
.merk { display: block; height: 38px; width: auto; }
.mast .regels { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.mast .sub { color: var(--navy-zacht); margin-top: 4px; overflow-wrap: anywhere; }
.mast .terug { display: inline-flex; align-items: center; background: none; border: 0; color: #fff; padding: 0; min-height: 44px; font-weight: 500; }
.mast .terug + h1 { margin-top: 4px; }
.pijlen { display: flex; gap: 6px; flex: none; }
.pijlen button {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy-zacht); background: none; color: #fff;
  font-size: 20px; line-height: 1;
}

.knop {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px;
  border: 2px solid var(--navy); border-radius: 100px; padding: 10px 22px; background: none; color: var(--navy);
  text-decoration: none; font-weight: 700;
}
.knop.hoofd { background: var(--oranje); border-color: var(--oranje); }
.knop.klein { min-height: 42px; padding: 6px 16px; font-size: 15px; }
.knop.gevaar { color: var(--rood); border-color: var(--rood); }
.knoppen { display: flex; gap: 10px; flex-wrap: wrap; }
.knoppen > * { flex: 1 1 130px; }

/* De eerstvolgende klus ligt over de boog heen; de rest is een rustige lijst */
.vel {
  position: relative; margin-top: -30px; background: var(--wit); border-radius: 6px; padding: 16px;
  box-shadow: 0 14px 28px -12px rgba(9, 32, 72, .35); display: flex; flex-direction: column; gap: 12px;
}
.vel .open { display: block; width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.vel .tijd { font-size: 15px; font-weight: 500; color: var(--zacht); }
.vel strong { display: block; font-size: 25px; line-height: 1.12; overflow-wrap: anywhere; margin: 2px 0; }
.vel .adres { color: var(--zacht); overflow-wrap: anywhere; }
.bij-vel { margin-top: 26px; }
.klusrij {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; width: 100%; padding: 13px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--lijn);
}
.klusrij .uur { font-weight: 700; }
.klusrij strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.klusrij .adres { color: var(--zacht); font-size: 15px; overflow-wrap: anywhere; }
.status { display: block; font-size: 14px; font-weight: 700; margin-top: 3px; }
.status.goed { color: var(--groen); }
.status.mist { color: var(--rood); }
.status.wacht { color: var(--zacht); }

section.blok { display: flex; flex-direction: column; margin-top: 30px; }
section.blok.dicht { margin-top: 18px; }
.regel { padding: 10px 0; border-bottom: 1px solid var(--lijn); overflow-wrap: anywhere; }
.regel small { display: block; color: var(--zacht); font-size: 14px; }
.stuk { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--lijn); }
.stuk b { font-weight: 700; }
.leeg { color: var(--zacht); padding: 4px 0; }
.lijst { display: flex; flex-direction: column; gap: 10px; }
.melding { font-size: 15px; padding: 10px 12px; border-radius: 6px; background: #fdeed6; margin-top: 12px; }
.melding.fout { background: #fbe3e4; }
.uitleg { font-size: 14px; color: var(--zacht); }
main > .vel + .melding { margin-top: 14px; }

form.veld { display: flex; flex-direction: column; gap: 16px; }
form.veld.over { position: relative; margin-top: -26px; background: var(--wit); border-radius: 6px; padding: 16px; box-shadow: 0 14px 28px -12px rgba(9, 32, 72, .35); }
.veld label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.veld input:not([type=checkbox]):not([type=radio]):not([type=file]), .veld textarea, .veld select {
  border: 2px solid var(--lijn); border-radius: 6px; padding: 11px; background: var(--wit); width: 100%; color: var(--tekst); font-weight: 400;
}
.veld input:focus, .veld textarea:focus, .veld select:focus { border-color: var(--navy); outline: none; }
.veld textarea { min-height: 96px; resize: vertical; }
.veld .vinkregel { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.veld .vinkregel input { width: 24px; height: 24px; accent-color: var(--groen); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
legend { padding: 0; margin-bottom: 6px; font-weight: 500; }
.keuze { display: flex; gap: 8px; }
.keuze label { flex: 1; position: relative; }
.keuze input { position: absolute; opacity: 0; }
.keuze span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--navy); border-radius: 100px;
  padding: 4px 12px; text-align: center; font-weight: 500;
}
.keuze input:checked + span { background: var(--navy); color: #fff; font-weight: 700; }
.keuze input:focus-visible + span { outline: 3px solid var(--oranje); outline-offset: 2px; }
.keuze.meer { flex-wrap: wrap; }
.keuze.meer label { flex: 1 1 auto; }
#suggesties { display: flex; flex-direction: column; }
#suggesties button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--lijn); padding: 10px 2px; min-height: 44px; }
canvas.handtekening { display: block; width: 100%; height: 200px; background: #fff; border: 2px solid var(--navy); border-radius: 6px; touch-action: none; }

/* foto's */
.fotos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fotos:empty { display: none; }
.duim { position: relative; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--lijn); }
.duim img { display: block; width: 100%; height: 100%; object-fit: cover; }
.weg {
  position: absolute; top: -6px; right: -6px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--wit);
  background: var(--navy); color: #fff; font-size: 18px; line-height: 1; padding: 0;
}
.fotovak { position: relative; width: 84px; height: 84px; }
.fotovak .duim { display: block; }
.groot { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(9, 32, 72, .94); border: 0; }
.groot img { max-width: 100%; max-height: 100%; border-radius: 4px; }

/* uren: één groot getal, de rest eromheen */
.urenkop { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: -30px; background: var(--wit); border-radius: 6px; padding: 16px; box-shadow: 0 14px 28px -12px rgba(9, 32, 72, .35); }
.urenkop .groot-getal { font-size: 62px; font-weight: 700; line-height: 1; color: var(--groen); }
.urenkop .naam { color: var(--zacht); font-size: 15px; }
.urenkop dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-content: center; font-size: 15px; }
.urenkop dt { font-weight: 700; text-align: right; }
.urenkop dd { margin: 0; color: var(--zacht); }
.urenkop dt.rood { color: var(--rood); }
#urenkaart { height: 260px; margin-top: 18px; border-radius: 6px; background: var(--lijn); z-index: 0; }
.leaflet-container { font: 13px var(--letter); }
.bij-kaart { margin-top: 6px; }

.rij { display: grid; grid-template-columns: 92px 6px minmax(0, 1fr) auto; gap: 10px; align-items: stretch; padding: 9px 0; border-bottom: 1px solid var(--lijn); }
.rij .tijd { font-size: 14px; color: var(--zacht); padding-top: 2px; }
.rij .balk { border-radius: 3px; background: var(--lijn); }
.rij.plek .balk { background: var(--groen); } .rij.stop .balk { background: var(--rood); }
.rij.gat .balk { background: repeating-linear-gradient(180deg, var(--lijn) 0 4px, transparent 4px 8px); }
.rij .wat { min-width: 0; }
.rij .wat strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.rij .wat span { font-size: 14px; color: var(--zacht); overflow-wrap: anywhere; }
.rij .duur { font-size: 15px; font-weight: 500; text-align: right; padding-top: 2px; }
.rij.onderweg strong, .rij.gat strong { font-weight: 400; color: var(--zacht); }

nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; background: var(--navy); z-index: 10;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}
nav.tabs button { flex: 1; min-height: 46px; border: 0; border-radius: 100px; background: none; font-weight: 500; font-size: 16px; color: var(--navy-zacht); }
nav.tabs button[aria-current=page] { background: var(--oranje); color: var(--navy); font-weight: 700; }

/* kantoor: breder, meldingen krijgen de ruimte */
.mast.kantoor .mast-binnen, main.breed { max-width: 1040px; }
main.breed { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
main.breed > div > section.blok:first-child { margin-top: 10px; }
@media (max-width: 860px) { main.breed { grid-template-columns: minmax(0, 1fr); } }
body.kantoor { padding-bottom: 40px; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.filter button { border: 2px solid var(--navy); background: none; border-radius: 100px; padding: 6px 14px; font-weight: 500; }
.filter button[aria-pressed=true] { background: var(--navy); color: #fff; }
.monteur { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--lijn); }
.monteur .gebruiker { display: block; color: var(--zacht); font-size: 14px; overflow-wrap: anywhere; }
.nieuwe-inlog { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--wit); border-left: 4px solid var(--oranje); padding: 10px 12px; overflow-wrap: anywhere; }
.nieuwe-inlog small { color: var(--zacht); font-size: 14px; margin-bottom: 6px; }
form.inloggen { grid-column: 1 / -1; width: 100%; max-width: 380px; margin-top: 24px; }
details summary { font-weight: 500; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.vraagregel { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--lijn); }
.vraagregel input[type=text] { grid-column: 1 / -1; grid-row: 1; }
.vraagregel select { grid-column: 1 / -1; }
.vraagregel .vinkregel { font-size: 15px; }
img.handtekening { display: block; max-width: 320px; width: 100%; background: #fff; border: 2px solid var(--lijn); border-radius: 6px; margin-top: 6px; }
.fotos a { display: block; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: var(--lijn); }
.fotos a img { display: block; width: 100%; height: 100%; object-fit: cover; }
