/* Jachttijden — stijl van Treibjagd: zwarte balken met goud, witte kaartjes met 1 px rand, Inter dun, kleine
   radius, automatisch donker. Kleuren/maten via tokens.css (kopie uit Treibjagd). */
@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/Inter-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--font); font-weight: var(--gewicht-tekst); font-size: var(--maat-tekst);
  line-height: var(--regel); color: var(--kleur-tekst); background: var(--kleur-pagina); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
b, strong { font-weight: var(--gewicht-nadruk); }
.hidden { display: none !important; }

/* Kopbalk: zwart met goud (Treibjagd) */
#topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--r-2);
  padding: calc(var(--r-2) + env(safe-area-inset-top)) var(--r-3) var(--r-2); min-height: 52px;
  background: #141414; border-bottom: 1px solid #F9AF15; color: #fff; }
#topbar .left, #topbar .right { display: flex; align-items: center; gap: var(--r-2); min-width: 0; }
#topbar .title { font-weight: 300; font-size: 19px; letter-spacing: .01em; color: #F9AF15; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--r-3); border-radius: var(--radius); border: 1px solid #2A2A2A;
  background: transparent; color: #64B5F6; font-size: var(--maat-klein); font-weight: var(--gewicht-nadruk); white-space: nowrap; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
.chip.small { padding: 0 var(--r-2); color: #E0E0E0; }

/* Schermen */
#schermen { max-width: 720px; margin: 0 auto; padding: var(--r-3) var(--gutter) calc(var(--r-8) + var(--tikdoel) + env(safe-area-inset-bottom)); }
.datumrij { display: flex; align-items: center; gap: var(--r-2); margin-bottom: var(--r-3); }
.datumrij label { font-size: var(--maat-klein); color: var(--kleur-tekst-2); }
.inp { min-height: 40px; padding: var(--r-1) var(--r-2); border: 1px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-achtergrond); color: var(--kleur-tekst); font: inherit; font-size: 16px; }
.knop-klein { min-height: 40px; padding: 0 var(--r-3); border: 1px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-achtergrond); color: var(--accent); font-size: var(--maat-klein); font-weight: var(--gewicht-nadruk); }
.waarschuwing { background: var(--nm-oranje-licht); color: var(--kleur-tekst); border: 1px solid var(--waarschuwing); border-radius: var(--radius); padding: var(--r-2) var(--r-3); font-size: var(--maat-klein); margin-bottom: var(--r-3); }
.groepkop { font-size: var(--maat-mini); color: var(--kleur-tekst-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin: var(--r-4) 0 var(--r-2); }

/* Soortregel: witte kaart, 1 px rand; links een stip (groen open / grijs dicht) */
.soort { display: flex; align-items: center; gap: var(--r-3); width: 100%; text-align: left; min-height: var(--tikdoel); padding: var(--r-2) var(--r-3);
  margin-bottom: var(--r-2); border: 1px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-achtergrond); color: var(--kleur-tekst); }
.soort:active { background: var(--kleur-vlak-hover); }
.stip { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #B0B0B0; }
.stip.open { background: var(--succes); }
.stip.deels { background: linear-gradient(90deg, var(--succes) 50%, #B0B0B0 50%); }
.stip.onbekend { background: transparent; border: 2px solid #B0B0B0; }
.soort .sub .onbekend, .regel .onbekend { color: var(--kleur-tekst-2); font-style: italic; }
/* Basis-label: jacht (geen label) · vrijstelling (groen) · ontheffing/opdracht (blauw) */
.basis { display: inline-block; font-size: var(--maat-mini); line-height: 1.4; padding: 0 6px; border-radius: 3px; border: 1px solid var(--kleur-rand); color: var(--kleur-tekst-2); vertical-align: 1px; margin-right: 2px; }
.basis.vrijstelling { border-color: var(--succes); color: var(--succes); }
.basis.ontheffing, .basis.opdracht { border-color: var(--accent); color: var(--accent); }
.regel .klasse { margin-left: 4px; }
.soort .tekst { flex: 1; min-width: 0; }
.soort .naam { font-weight: var(--gewicht-nadruk); }
.soort .sub { font-size: var(--maat-klein); color: var(--kleur-tekst-2); }
.soort .sub .open { color: var(--succes); font-weight: 500; }
.soort .sub .dicht { color: var(--kleur-tekst-2); }

/* Blad (soort-detail, regio-keuze) — van onderen op de telefoon */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; padding: var(--r-3); }
@media (min-width: 600px) { .modal { align-items: center; } }
.modal-card { width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; background: var(--kleur-achtergrond); border-radius: var(--radius-kaart); box-shadow: var(--schaduw-zwevend);
  padding: var(--r-6) var(--r-4) calc(var(--r-4) + env(safe-area-inset-bottom)); color: var(--kleur-tekst); }
.modal-card h2 { margin: 0 0 var(--r-3); font-size: var(--maat-h2); font-weight: var(--gewicht-kop); line-height: 1.25; }
.menu-label { font-size: var(--maat-mini); color: var(--kleur-tekst-2); margin: var(--r-3) 0 var(--r-2); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.rolebtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; justify-content: center; width: 100%; text-align: left; margin-bottom: var(--r-2);
  padding: var(--r-3) var(--r-4); min-height: var(--tikdoel); border: 1px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-achtergrond); color: var(--kleur-tekst); }
.rolebtn b { font-size: var(--maat-tekst); font-weight: var(--gewicht-nadruk); }
.rolebtn span { font-size: var(--maat-klein); color: var(--kleur-tekst-2); }
.rolebtn.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rolebtn.active b { color: var(--accent); }
.rolebtn.sluiten { background: var(--accent); border-color: var(--accent); align-items: center; text-align: center; }
.rolebtn.sluiten b { color: var(--accent-tekst); }
.regel { padding: var(--r-2) 0; border-bottom: 1px solid var(--kleur-rand); }
.regel:last-child { border-bottom: 0; }
.regel .klasse { font-weight: var(--gewicht-nadruk); }
.regel .periode { font-size: var(--maat-klein); }
.regel .periode.open { color: var(--succes); font-weight: 500; }
.regel .opm { font-size: var(--maat-klein); color: var(--kleur-tekst-2); margin-top: 2px; }
.bron { font-size: var(--maat-mini); color: var(--kleur-tekst-2); margin-top: var(--r-3); }
.bron a { color: var(--accent); word-break: break-all; }

/* Kalender: per soort/klasse een rij van 12 maanden met groene balkstukken */
.kal { border: 1px solid var(--kleur-rand); border-radius: var(--radius); background: var(--kleur-achtergrond); overflow: hidden; }
.kal-kop, .kal-rij { display: grid; grid-template-columns: minmax(96px, 1.4fr) repeat(12, 1fr); align-items: center; border-bottom: 1px solid var(--kleur-rand); }
.kal-rij:last-child { border-bottom: 0; }
.kal-kop { font-size: var(--maat-mini); color: var(--kleur-tekst-2); text-transform: uppercase; letter-spacing: .04em; }
.kal-kop > div, .kal-rij > .lbl { padding: var(--r-1) var(--r-2); }
.kal-kop > div { text-align: center; padding: var(--r-1) 0; }
.kal-rij .lbl { font-size: var(--maat-klein); line-height: 1.2; }
.kal-rij .lbl small { display: block; color: var(--kleur-tekst-2); font-size: var(--maat-mini); }
.kal-rij .m { height: 28px; position: relative; border-left: 1px solid var(--kleur-vlak); }
.kal-rij .m i { position: absolute; top: 8px; bottom: 8px; background: var(--succes); border-radius: 2px; }
.kal-rij .m.nu { background: var(--nm-magenta-licht); }
.kal-legenda { font-size: var(--maat-mini); color: var(--kleur-tekst-2); margin-top: var(--r-2); }

/* Info */
.kaartje { border: 1px solid var(--kleur-rand); border-radius: var(--radius); padding: var(--r-3) var(--r-4); background: var(--kleur-achtergrond); margin-bottom: var(--r-3); font-size: var(--maat-klein); }
.kaartje h3 { margin: 0 0 var(--r-2); font-size: var(--maat-tekst); font-weight: var(--gewicht-nadruk); }
.kaartje a { color: var(--accent); word-break: break-all; }
.disclaimer { font-size: var(--maat-mini); color: var(--kleur-tekst-2); margin-top: var(--r-4); }

/* Tabbalk onderaan: zwart (Treibjagd), goud = actief */
.tabbalk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: #141414; border-top: 1px solid #2A2A2A; padding-bottom: env(safe-area-inset-bottom); }
.tabbalk button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; min-height: var(--tikdoel);
  padding: var(--r-1) 0; border: 0; background: transparent; color: rgba(255,255,255,.72); font-size: var(--maat-mini); font-weight: 500; }
.tabbalk button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbalk button.actief { color: #F9AF15; }
.tabbalk button.actief::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 3px; background: #F9AF15; border-radius: 0 0 2px 2px; }
@media (min-width: 900px) {                                   /* breed scherm: tabbalk links, zoals NM */
  .tabbalk { top: 0; bottom: 0; right: auto; width: 96px; flex-direction: column; justify-content: flex-start; padding-top: 64px; border-top: 0; border-right: 1px solid #2A2A2A; }
  .tabbalk button { flex: none; min-height: 72px; }
  .tabbalk button.actief::before { left: 0; right: auto; top: 12%; bottom: 12%; width: 3px; height: auto; border-radius: 0 2px 2px 0; }
  #schermen, #topbar { margin-left: 96px; }
}
