/* Autorijschool Aktief, mobile-first */
:root {
  --navy: #0f1b2d; --navy-2: #172a45; --yellow: #ffd400; --yellow-2: #ffe14d;
  --ink: #111827; --muted: #6b7280; --line: #e5e7eb; --bg: #f6f7f9; --white: #fff;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --err: #b91c1c; --err-bg: #fee2e2;
  --radius: 14px; --shadow: 0 6px 24px rgba(15, 27, 45, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.logo svg { width: 38px; height: 38px; }
.logo small { display: block; font-weight: 500; font-size: .72rem; color: var(--yellow); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav { position: fixed; inset: 64px 0 auto 0; background: var(--navy); padding: 1rem; display: none; flex-direction: column; gap: .25rem; border-top: 1px solid rgba(255,255,255,.1); }
.nav.open { display: flex; }
.nav a { color: var(--white); text-decoration: none; padding: .75rem .5rem; border-radius: 8px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--navy-2); color: var(--yellow); }
.nav .btn { margin-top: .5rem; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; background: none; padding: 0; border: 0; }
  .nav a { padding: .5rem .75rem; }
  .nav .btn { margin: 0 0 0 .5rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .05s, background .15s; min-height: 48px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-2); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-wa { background: #25d366; color: #06301a; }
.btn-danger { background: var(--err); color: var(--white); }
.btn-sm { padding: .4rem .75rem; min-height: 36px; font-size: .9rem; border-radius: 8px; }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #22406b 0%, var(--navy) 60%); color: var(--white); padding: 3rem 0 4rem; overflow: hidden; position: relative; }
.hero .grid { display: grid; gap: 2rem; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: #d6deea; max-width: 34rem; }
.hero .swoosh { width: 100%; max-width: 460px; margin-inline: auto; }
.hero .badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.hero .badges li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: .35rem .75rem; border-radius: 999px; font-size: .9rem; }
.hero .accent { color: var(--yellow); }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1.2fr 1fr; } .hero { padding: 5rem 0 6rem; } }

/* Cards & grids */
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card h3 { margin-bottom: .35rem; }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; margin-bottom: .75rem; font-weight: 800; }

.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 3px solid var(--yellow); }
.price-card .tag { position: absolute; top: -12px; right: 16px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: .25rem 0; }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.checklist li { padding-left: 1.6rem; position: relative; margin: .3rem 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.price-card .btn { margin-top: auto; }

.notice { border-radius: 10px; padding: .85rem 1rem; margin: 1rem 0; background: #eef2ff; color: #1e3a8a; }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--err { background: var(--err-bg); color: var(--err); }

/* Reviews */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.stars { color: #f59e0b; letter-spacing: 2px; }
.review-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; padding: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-weight: 800; margin-bottom: .5rem; }

/* Forms */
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; padding: .75rem .85rem; border: 1.5px solid #cfd5df; border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); min-height: 48px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); outline: 3px solid rgba(255, 212, 0, .5); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: .2rem; flex: none; }
.form-error { color: var(--err); font-weight: 600; }
.ts-widget { margin: 1rem 0; min-height: 65px; }
.row-2 { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .4rem; }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - 64px - 200px); display: grid; place-items: center; padding: 2.5rem 1rem; }
.auth-card { width: min(520px, 100%); }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 3rem 0 6rem; font-size: .95rem; }
.site-footer a { color: #e2e8f0; }
.site-footer .cols { display: grid; gap: 2rem; }
@media (min-width: 800px) { .site-footer .cols { grid-template-columns: 1.3fr 1fr 1fr; } .site-footer { padding-bottom: 3rem; } }
.site-footer h3 { color: var(--yellow); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.legal-data dt { font-weight: 600; color: #e2e8f0; }
.legal-data dd { margin: 0 0 .4rem; }

/* Floating WhatsApp/bel-balk (mobiel) */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem; background: rgba(15,27,45,.96); }
.quickbar .btn { min-height: 46px; }
@media (min-width: 900px) { .quickbar { display: none; } .wa-float { display: flex; } }
.wa-float { display: none; position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25d366; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 5rem; z-index: 60; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 1.25rem; max-width: 560px; }
@media (min-width: 900px) { .cookie-banner { bottom: 1.25rem; left: 1.25rem; right: auto; } }
.cookie-banner h2 { font-size: 1.1rem; }

/* Legal pages */
.prose { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.prose h2 { font-size: 1.3rem; margin-top: 1.5em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem; text-align: left; vertical-align: top; }
.placeholder { background: #fff3bf; color: #5c4400; padding: 0 .2em; border-radius: 4px; }

/* Dashboard */
.page-head { background: var(--navy); color: var(--white); padding: 2rem 0 2.5rem; }
.page-head p { color: #cbd5e1; margin: 0; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; margin-top: 1.25rem; scrollbar-width: none; }
.tabs a, .tabs button { flex: none; color: #cbd5e1; background: transparent; border: 0; font: inherit; font-weight: 600; padding: .6rem .9rem; border-radius: 8px 8px 0 0; text-decoration: none; cursor: pointer; }
.tabs a[aria-current="page"], .tabs button[aria-selected="true"] { background: var(--bg); color: var(--navy); }
.stat { display: flex; flex-direction: column; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat .lbl { color: var(--muted); }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #e5e7eb; color: #374151; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--err { background: var(--err-bg); color: var(--err); }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.list > li:last-child { border-bottom: 0; }
.lesson-date { font-weight: 700; }
.extras { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Booking */
.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.day { flex: none; scroll-snap-align: start; width: 72px; padding: .6rem .25rem; border-radius: 12px; border: 2px solid var(--line); background: var(--white); text-align: center; cursor: pointer; font: inherit; }
.day b { display: block; font-size: 1.35rem; }
.day span { font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.day[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.day[aria-pressed="true"] span { color: var(--yellow); }
.day:disabled { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot { padding: .7rem .25rem; border-radius: 10px; border: 2px solid var(--line); background: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.seg { display: inline-flex; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--white); padding: .6rem 1rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.seg button:disabled { color: #9ca3af; cursor: not-allowed; }

/* Admin */
.admin-grid { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .admin-grid.two { grid-template-columns: 1fr 1fr; } }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--white); font-size: .93rem; }
table.data th, table.data td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: #f1f5f9; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #475569; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover { background: #f8fafc; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar .spacer { flex: 1; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: .5rem; overflow-x: auto; }
.cal-col { background: var(--white); border-radius: 10px; padding: .5rem; min-height: 160px; }
.cal-col h4 { margin: 0 0 .5rem; font-size: .9rem; }
.cal-col.today { outline: 2px solid var(--yellow); }
.cal-item { background: #eef2ff; border-left: 4px solid var(--navy); border-radius: 6px; padding: .4rem .5rem; margin-bottom: .4rem; font-size: .85rem; cursor: pointer; }
.cal-item.d90 { border-left-color: #f59e0b; background: #fff7e6; }
.cal-item.cancelled, .cal-item.no_show { opacity: .5; text-decoration: line-through; }
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-month .cell { background: var(--white); min-height: 84px; border-radius: 6px; padding: .3rem; font-size: .78rem; cursor: pointer; }
.cal-month .cell.other { opacity: .45; }
.cal-month .cell b { display: block; }
.cal-month .dot { display: block; background: #eef2ff; border-radius: 4px; padding: 0 .25rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-month .head { font-weight: 700; text-align: center; font-size: .8rem; padding: .25rem; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, 100% - 2rem); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(15, 27, 45, .55); }
dialog .dlg-body { padding: 1.25rem 1.25rem .5rem; max-height: 75vh; overflow: auto; }
dialog .dlg-foot { padding: .75rem 1.25rem 1.25rem; display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: .8rem 1.2rem; border-radius: 10px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 2rem); }
.toast.err { background: var(--err); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.btn-row--center { justify-content: center; } .map { border: 0; border-radius: 10px; margin-top: 1rem; }

.slots > p { grid-column: 1 / -1; }
.extras label { font-weight: 500; font-size: .9rem; }
@media (max-width: 899px) { body { padding-bottom: 72px; } }
