/* Oergezond B2B: basislaag van de schil (ogfund). Tokens volgen de winkelbrochure (businesses/oergezond/b2b/brochure).
   De onderdelenset van ogontwerp (/gedeeld/ui/ui.css) komt hier bovenop. Geen inline styles (CSP). */
@font-face { font-family: 'DM Sans'; src: url('/gedeeld/fonts/DMSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/gedeeld/fonts/DMSans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/gedeeld/fonts/DMSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/gedeeld/fonts/DMSerifDisplay-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --og-groen: #084D37; --og-bos: #1A2E1A; --og-creme: #F7F2EA; --og-zand: #EFE6D8; --og-klei: #AF683D; --og-goud: #D9A56B;
  --og-lijn: #E3DACB; --og-tekst: #2A2A22; --og-zacht: #6f6a5d; --og-wit: #fffdf9; --og-rood: #9b3b2a;
  --og-radius: 12px; --og-schaduw: 0 1px 2px rgba(26,46,26,.06), 0 4px 16px rgba(26,46,26,.06);
  --og-zij: 248px; --og-balk: 26px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--og-tekst); background: var(--og-creme); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: var(--og-bos); margin: 0; }
h1 { font-size: 28px; line-height: 1.2; } h2 { font-size: 22px; } h3 { font-size: 18px; }
a { color: var(--og-groen); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--og-klei); outline-offset: 2px; }
.verborgen { display: none !important; }

/* knoppen en velden */
.og-knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--og-groen); background: var(--og-groen); color: var(--og-creme); font-weight: 500; cursor: pointer; text-decoration: none; }
.og-knop:hover { background: var(--og-bos); }
.og-knop svg { width: 18px; height: 18px; flex: none; }
.og-knop[disabled] { opacity: .55; cursor: default; }
.og-knop.licht { background: transparent; color: var(--og-groen); }
.og-knop.licht:hover { background: var(--og-zand); }
.og-veld { display: grid; gap: 6px; margin-bottom: 14px; }
.og-veld label { font-size: 13px; font-weight: 500; color: var(--og-zacht); }
.og-veld input { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--og-lijn); background: var(--og-wit); width: 100%; }
.og-veld input:focus { border-color: var(--og-groen); outline: none; }
.og-fout { color: var(--og-rood); font-size: 14px; min-height: 20px; margin: 0 0 8px; }
.og-hint { color: var(--og-zacht); font-size: 14px; }

/* Nepdata-label (lokaal, staging of testaccount) */
.og-nepdata { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--og-goud); color: var(--og-bos);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* als smalle balk bovenaan in de normale opbouw: valt nooit over knoppen of velden (ogqa K12) */
.og-nepdata-balk { display: block; border-radius: 0; text-align: center; padding: 4px 12px; font-size: 12px; line-height: 18px; height: var(--og-balk); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-transform: none; letter-spacing: .02em; }
/* met de balk erboven past de zijbalk precies in het scherm, zodat Uitloggen nooit wegvalt */
body:has(.og-nepdata-balk) .og-zij { height: calc(100vh - var(--og-balk)); }

/* inlogscherm */
.og-inlog { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.og-inlog-kaart { width: 100%; max-width: 400px; background: var(--og-wit); border: 1px solid var(--og-lijn); border-radius: 18px; padding: 32px 28px; box-shadow: var(--og-schaduw); }
.og-inlog-kaart .og-logo { height: 44px; width: auto; display: block; margin-bottom: 18px; }
.og-inlog-kaart h1 { margin-bottom: 6px; }
.og-inlog-kaart p { margin: 0 0 20px; color: var(--og-zacht); }
.og-inlog-kaart .og-knop { width: 100%; }

/* schil: zijbalk + hoofdvlak */
.og-schil { display: grid; grid-template-columns: var(--og-zij) 1fr; min-height: 100vh; }
.og-zij { background: var(--og-bos); color: var(--og-creme); display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.og-merk { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--og-creme); text-decoration: none; }
.og-merk img { height: 30px; width: auto; }
.og-merk span { font-family: 'DM Serif Display', serif; font-size: 18px; }
.og-nav { display: grid; gap: 2px; }
.og-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: rgba(247,242,234,.82); text-decoration: none; }
.og-nav a:hover { background: rgba(247,242,234,.08); color: var(--og-creme); }
.og-nav a.actief { background: rgba(247,242,234,.14); color: var(--og-creme); font-weight: 500; }
.og-nav svg { width: 18px; height: 18px; flex: none; }
.og-zij-voet { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(247,242,234,.12); display: grid; gap: 8px; font-size: 14px; }
.og-zij-voet b { display: block; } .og-zij-voet small { color: rgba(247,242,234,.65); font-size: 12px; }
.og-zij-voet .og-knop.licht { color: var(--og-creme); border-color: rgba(247,242,234,.4); min-height: 44px; }
.og-zij-voet .og-knop.licht:hover { background: rgba(247,242,234,.08); }
.og-hoofd { min-width: 0; }
.og-boven { display: none; }
.og-pagina { max-width: 1120px; margin: 0 auto; padding: 28px 32px 64px; }
.og-pagina.breed { max-width: none; }
.og-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.og-kop-acties { display: flex; gap: 8px; flex-wrap: wrap; }
.og-leeg { background: var(--og-wit); border: 1px dashed var(--og-lijn); border-radius: var(--og-radius); padding: 48px 24px; text-align: center; color: var(--og-zacht); }
.og-leeg h2 { margin-bottom: 8px; }

/* melding (geen native alert) */
.og-meldingen { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.og-melding { background: var(--og-bos); color: var(--og-creme); padding: 12px 16px; border-radius: 12px; box-shadow: var(--og-schaduw); }
.og-melding.fout { background: var(--og-rood); }

/* telefoon */
@media (max-width: 860px) {
  .og-schil { grid-template-columns: 1fr; }
  .og-zij { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.og-nav-open .og-zij { transform: none; }
  .og-scherm-dicht { display: none; }
  body.og-nav-open .og-scherm-dicht { display: block; position: fixed; inset: 0; background: rgba(26,46,26,.35); z-index: 30; }
  .og-boven { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: var(--og-creme); border-bottom: 1px solid var(--og-lijn); padding: 8px 16px; }
  .og-boven img { height: 26px; width: auto; }
  .og-boven button { min-width: 44px; min-height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
  .og-boven svg { width: 22px; height: 22px; }
  .og-pagina { padding: 20px 16px 56px; }
  h1 { font-size: 24px; }
}
