/* OV-fiets Checker. Look & feel van CommuteApp (Theme.swift), vertaald naar web. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-700.woff2) format("woff2"); }

:root {
  --bg: #F2F2F2; --ink: #0F0F0F; --kaart: #E8E8E9; --amber: #FFCC00;
  --rood: #FF2200; --grijs: #8A8A8E; --wit: #FFFFFF;
  --r: 20px; --r-groot: 24px; --schaduw: 0 3px 8px rgba(0,0,0,.05);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; } /* ook voor elementen met display: flex */
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.4 Inter, system-ui, sans-serif; }
a { color: inherit; }
.icon { width: 22px; height: 22px; fill: currentColor; flex: none; }
.getal { font-variant-numeric: tabular-nums; }
.amber { color: var(--amber); }
.rood { color: var(--rood) !important; }

.pagina { max-width: 880px; margin: 0 auto; padding: 8px 16px 32px; }
.site { display: flex; justify-content: space-between; align-items: center; height: 48px; font-size: 14px; font-weight: 600; }
.site a { text-decoration: none; display: flex; align-items: center; gap: 6px; }
.site .merk { font-weight: 700; }
.site .icon { width: 20px; height: 20px; }
main { display: flex; flex-direction: column; gap: 16px; }
h1 { font-size: 28px; font-weight: 700; line-height: 1.15; padding: 4px 3px 0; }
.sectie { font-size: 15px; font-weight: 700; padding: 4px 0 0 3px; }
.voet { margin-top: 28px; font-size: 12px; color: var(--grijs); padding: 0 3px; }
.noot { font-size: 12px; color: var(--grijs); padding: 0 3px; }
.melding { font-size: 14px; padding: 0 3px; }

/* Het fietsicoon is ontworpen op 16 px: alleen veelvouden van 8 px tonen
   (16 en 24 px blijven scherp, ook op Retina waar 24 px = 48 schermpixels) */
.site .icon-fiets, .primair .icon-fiets { width: 20px; height: 20px; }
.regel > .icon-fiets { width: 24px; height: 24px; }

/* Grijze kaart met regels */
.kaart { background: var(--kaart); border-radius: var(--r); overflow: hidden; }
.regel { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; }
.regel + .regel { border-top: 1px solid var(--bg); }
.regel > .icon { width: 26px; height: 26px; }
.groei { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t { font-size: 15px; font-weight: 700; }
.d { font-size: 13px; color: var(--grijs); }
.v { font-size: 15px; font-weight: 700; }

/* Zoeken */
.start { display: flex; flex-direction: column; gap: 16px; }
.zoek { position: relative; }
.zoekveld { display: flex; align-items: center; gap: 10px; background: var(--kaart); border-radius: var(--r); padding: 0 16px; }
.zoekveld .icon { color: var(--grijs); }
.zoekveld input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; padding: 15px 0; outline: none; min-width: 0; }
.zoekveld:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.suggesties { margin-top: 6px; box-shadow: var(--schaduw); }
.suggesties .regel { cursor: pointer; padding: 10px 16px; }
.suggesties .regel.actief, .suggesties .regel:hover { background: #dcdcde; }

/* Dagkiezer en tijd */
.dagen { display: flex; gap: 8px; padding: 12px; }
.pil { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 11px 4px;
       border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--grijs); cursor: pointer;
       text-decoration: none; white-space: nowrap; }
.pil .icon { width: 17px; height: 17px; }
.pil.aan, .pil:has(input[type=radio]:checked) { background: var(--ink); color: var(--amber); }
.pil input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
/* Datumveld onzichtbaar bovenop de knop: op iOS opent een tik het datumwiel,
   op desktop opent app.js de kalender met showPicker() */
.pil .datum { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
              -webkit-appearance: none; appearance: none; font-size: 16px; }
.pil:has(.datum.zichtbaar) > span, .pil:has(.datum.zichtbaar) > .icon { display: none; }
.pil .datum.zichtbaar { position: static; opacity: 1; pointer-events: auto; width: auto; font: inherit; border: 0; background: none; color: inherit; }
.pil noscript button { margin-left: 4px; }
.tijd { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--bg); }
.tijd { position: relative; }
.kiezer-kaart { overflow: visible; } /* het tijdkeuzevenster mag buiten de kaart vallen */
/* Tijdveld: altijd de tijd, in de nu-stand met een amber NU-label, en een pijltje om te kiezen */
.tijdform { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tijd .tijdform .waarde { flex: none; width: 5.2ch; }
.nu-label { display: none; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--ink); padding: 3px 7px;
            border-radius: 6px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.tijdform.nu .nu-label { display: inline-block; }
.kies-tijd { display: flex; align-items: center; cursor: pointer; color: var(--grijs); }
.kies-tijd .icon { width: 22px; height: 22px; }
.tijd .waarde { flex: 1; font: 700 24px Inter, sans-serif; font-variant-numeric: tabular-nums; border: 0; background: none; color: var(--ink); min-width: 0; padding: 0; }
.tijd input::-webkit-calendar-picker-indicator { display: none; }
.tijd input[type=time] { text-align: left; -webkit-appearance: none; appearance: none; }
.tijd input::-webkit-date-and-time-value { text-align: left; } /* iOS centreert anders */
.tijd input.waarde[type=text] { cursor: pointer; outline: none; }
.tijd input.waarde[type=text]:focus { text-decoration: underline 2px var(--amber); text-underline-offset: 6px; }

/* Tijdkeuzevenster op de computer: uren in een raster, minuten ernaast */
.tijdkiezer { position: absolute; left: 8px; top: calc(100% + 6px); z-index: 10; display: flex; gap: 10px; padding: 10px;
              background: var(--wit); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.tijdkiezer[hidden] { display: none; }
.tijdkiezer .uren { display: grid; grid-template-columns: repeat(6, 40px); gap: 4px; }
.tijdkiezer .minuten { display: grid; grid-template-columns: repeat(3, 52px); gap: 4px; align-content: start; padding-left: 10px; border-left: 1px solid var(--kaart); }
.tijdkiezer button { font: 600 14px Inter, sans-serif; font-variant-numeric: tabular-nums; border: 0; border-radius: 10px;
                     background: var(--bg); color: var(--ink); padding: 8px 0; min-width: 40px; cursor: pointer; }
.tijdkiezer .minuten button { min-width: 52px; }
.tijdkiezer button:hover { background: var(--kaart); }
.tijdkiezer button.aan { background: var(--ink); color: var(--amber); }
.chip { font: 700 13px Inter, sans-serif; padding: 7px 13px; border-radius: 999px; background: var(--bg); border: 0; cursor: pointer; text-decoration: none; color: var(--ink); }
.chip.aan { background: var(--ink); color: var(--amber); }
.rond { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--amber); border: 0; display: flex;
        align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rond .icon { width: 20px; height: 20px; }

.primair { display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--ink); color: var(--amber);
           font: 700 15px Inter, sans-serif; padding: 17px; border: 0; border-radius: var(--r); cursor: pointer; box-shadow: var(--schaduw); }

/* Antwoordkaart (cardBanner) */
.antwoord { border-radius: var(--r-groot); overflow: hidden; box-shadow: var(--schaduw); }
.antwoord .kaart { border-radius: 0; }
.banner { background: var(--ink); color: var(--wit); padding: 18px 20px 14px; }
.boven { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lab { font-size: 13px; font-weight: 600; }
.groot { font-size: 40px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.klein-groot { font-size: 26px; padding-top: 6px; }
.bijgewerkt { font-size: 26px; font-weight: 700; line-height: 1.1; padding-top: 6px; }
.rechts { text-align: right; }
.oordeel { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #2a2a2c; }
.oordeel .lbl { font-size: 15px; font-weight: 700; }
.oordeel .meestal { font-size: 13px; color: #BDBDC2; margin-left: auto; }

/* Grafiek */
.grafiek { padding: 12px 12px 8px; }
.grafiek svg { width: 100%; height: auto; display: block; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.grafiek svg:focus { outline: none; }
.grafiek svg:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.grafiek .hint { font-size: 11px; color: var(--grijs); padding: 2px 4px 0; }
.grafiek .raster { stroke: var(--bg); }
.grafiek .as { font-size: 10px; fill: var(--grijs); }
.grafiek .band { fill: #C9C9CC; }
.grafiek .mediaan { fill: none; stroke: var(--ink); stroke-width: 2; }
.grafiek .vandaag { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.grafiek .gekozen { stroke: var(--amber); stroke-width: 2; }
.grafiek .punt { fill: var(--amber); stroke: var(--ink); stroke-width: 2; }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--grijs); padding: 6px 4px 0; }
.legenda i { display: inline-block; width: 12px; margin-right: 4px; vertical-align: middle; }
.l-band { height: 8px; background: #C9C9CC; border-radius: 2px; }
.l-mediaan { height: 2px; background: var(--ink); }
.l-vandaag { height: 0; border-top: 2px dashed var(--ink); }
.l-gekozen { height: 8px; background: var(--amber); border-radius: 2px; }

/* Stationspagina: twee kolommen vanaf 800 px */
.titelrij { display: flex; justify-content: space-between; align-items: center; }
.kolommen, .kolom { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 800px) {
  .kolommen { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .start { max-width: 480px; }
}

/* Overzicht alle stations */
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { min-width: 34px; padding: 7px 0; text-align: center; border-radius: 10px; background: var(--kaart);
             font-weight: 700; font-size: 13px; text-decoration: none; }
.letters a:hover { background: var(--ink); color: var(--amber); }
.lettergroep { scroll-margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.regel > .icon:last-child { width: 18px; height: 18px; color: var(--grijs); }
a.regel:hover { background: #dcdcde; }

/* Statistiek */
.statkeuze { padding: 0; }
.statkern { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.statkern .kaart { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.statkern b { font-size: 28px; }
@media (min-width: 800px) { .statkern { grid-template-columns: repeat(4, 1fr); } }
.statrij { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; align-items: center; gap: 10px; padding: 8px 16px; font-size: 14px; }
.statrij + .statrij { border-top: 1px solid var(--bg); }
.statlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.balk { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.balk i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.statgetal { font-weight: 700; text-align: right; min-width: 64px; }
.statgetal small { color: var(--grijs); font-weight: 400; }
.grafiek .staaf-licht { fill: #C9C9CC; }
.grafiek .staaf { fill: var(--ink); }

/* Tekstpagina's */
.tekst { background: var(--wit); border-radius: var(--r); padding: 22px 20px; line-height: 1.55; max-width: 680px; }
.tekst h1 { padding: 0 0 6px; }
.tekst h2 { font-size: 16px; margin: 18px 0 4px; }
.tekst p { margin: 6px 0; }
.tekst table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 14px; }
.tekst td { padding: 6px 4px; border-top: 1px solid #eee; vertical-align: top; }
.stip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.stip.amber { color: var(--amber); }
.stip.rood { color: var(--rood); }

@media (max-width: 380px) {
  .groot { font-size: 34px; }
  .pil { font-size: 12px; }
}
