/* Thema Cupstack — op het Cupstack-designsysteem (v1/v2, zoals het klantportaal in tech 2.209+):
 * - Onest als enige lettertype (zelf gehost, fonts/);
 * - het merkblauw #0065FB als enige accent, lichtblauw vlak #EBF2FF;
 * - inkt #222222 (nooit zwart), gedempt #666666, lijnen #DDDDDD, canvas #F3F3F3;
 * - hoofdknop = pil (helemaal rond); andere knoppen en velden = 10px hoeken;
 * - 1px randen, geen schaduw; focus als ring in het merkblauw. */

@font-face { font-family: "Onest"; src: url("fonts/onest-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-700-normal.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --brand: #0065FB;
  --brand-hover: #0051CC;
  --brand-soft: #99C2FF;
  --brand-tint: #EBF2FF;
  --brand-accent: #4D94FF;
  --ink: #222222;
  --ink-soft: #666666;
  --paper: #FFFFFF;
  --mist: #F3F3F3;
  --line: #DDDDDD;
  --ok: #0B7A45;   /* donkerder dan het portaal (#2F8F3C), zodat kleine tekst leesbaar blijft (AA) */
  --bad: #C2271A;  /* idem (#C45C3E haalt 4,5:1 niet) */
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-field: 10px;
  --r-card: 16px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
b, strong { font-weight: 600; }

/* Koppen: Onest 700, iets ruimer dan de zware Inter-koppen */
h1 { font-weight: 700; letter-spacing: -0.03em; }
h2 { font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
.calc-big, .pcard-cap { font-weight: 700; }

/* Knoppen: hoofdknop is een pil, de rest 10px */
.btn { border-radius: 999px; font-weight: 600; padding: 14px 26px; }
.btn:hover { background: var(--brand-hover); }
.btn:active { background: #0046B0; }
.btn-small { padding: 9px 18px; }
.btn-invert { background: #fff; color: var(--brand); }
.btn-ghost { border-radius: var(--r-field); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, #fff); color: var(--ink); }
.menu-btn { border-radius: var(--r-field); font-weight: 500; }
.occasions a { border: 1px solid var(--line); background: #fff; font-weight: 500; }
.occasions a:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); background: var(--brand-tint); color: var(--brand-hover); }

/* Velden: 1px rand, 10px, focus als ring aan de binnenkant */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=search], select, textarea,
.addr input, .dates input {
  border: 1px solid var(--line); border-radius: var(--r-field); box-shadow: none;
}
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.qty { border-radius: var(--r-field); }
.seg { border-radius: var(--r-field); }
.seg label { border-radius: 7px; font-weight: 500; }

/* Kaarten en vlakken: wit met 1px rand, of het lichtblauwe vlak; geen schaduw */
.pcard-img, .product-media { border-radius: var(--r-card); }
.facts li { border-radius: 12px; background: var(--brand-tint); color: var(--ink); }
.cart-sum, .order-box { border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.rblock, .big-order, .calc-inline { border-radius: var(--r-card); }
.flash { border-radius: var(--r-field); background: var(--brand-tint); color: var(--ink); }
.calc { border-radius: 20px; }
.calc input, .calc select { border-color: transparent; }
.compare-bar { border-radius: var(--r-card); }
.consent-in, dialog.compare { box-shadow: 0 8px 28px rgba(34,34,34,.14); }
.cal-day { border-radius: 8px; }
.cal-slot { border-width: 1px; }

/* Kleine labels als pil */
.pill-site, .pcard-cap { letter-spacing: -0.03em; }
.cart-n { font-weight: 600; }
.vat-switch button { font-weight: 500; }
