/* Rebrand 16 november: burgundy #8D2339 en crème #FBD4B5 uit het nieuwe logo; balk burgundy met crème logo, net als de header van het thema. */
/* Mijn LOVD: dezelfde huisstijl als het nieuwe thema (themes/lovd/assets/lv.css): zand, inkt,
   rood en blush, Jost voor tekst en Fraunces voor de grote cijfers, ronde knoppen. Opzet van
   Mijn Aika (Aika-OS/portaal/web): per scherm een korte kop, één duidelijke handeling. */
:root {
  --zand: #F7F2EC; --inkt: #1E1917; --inkt-2: #5E5550; --licht: #9B918A; --rood: #8D2339; --rood-donker: #6E1A2C; --creme: #FBD4B5;
  --blush: #F6DEDC; --linnen: #EFE5DA; --wit: #fff; --rand: #E7DDD3; --groen: #2F7D4F; --groen-vlak: #E8F2EC;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --menu: 236px; --rond: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--zand); color: var(--inkt); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: .01em; }
h2 { font-size: 21px; line-height: 1.25; }
h3 { font-size: 16px; font-weight: 500; }
.serif { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
p { margin: 0; }
.klein { font-size: 13px; color: var(--inkt-2); }
.zacht { color: var(--inkt-2); }
.oog { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rood); }
.punt::after { content: '.'; color: var(--rood); }
[hidden] { display: none !important; }

/* ── Geraamte ─────────────────────────────────────────────────────────── */
.balk { position: sticky; top: 0; z-index: 20; height: 64px; background: var(--rood); color: var(--creme); border-bottom: 0; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 24px; width: auto; display: block; }
.logo small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--creme); padding-left: 12px; border-left: 1px solid rgba(251,212,181,.35); }
.balk .rechts { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.balk .rechts a { text-decoration: none; }
.balk .rechts a:hover { color: #fff; }
.menuknop { display: none; background: none; border: 0; color: var(--creme); padding: 8px; margin-left: -8px; cursor: pointer; }
.menuknop svg { width: 22px; height: 22px; }

.geheel { display: grid; grid-template-columns: var(--menu) minmax(0, 1fr); min-height: calc(100vh - 64px); }
nav.zij { background: var(--wit); border-right: 1px solid var(--rand); padding: 20px 12px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
nav.zij .wie { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--rand); }
.monogram { width: 38px; height: 38px; border-radius: 50%; background: var(--blush); color: var(--rood); display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; flex: none; line-height: 1; }
nav.zij .wie strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
nav.zij .wie div span { display: block; font-size: 12px; color: var(--inkt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
nav.zij a, nav.zij button.link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 999px; text-decoration: none; color: var(--inkt-2); font-size: 14.5px; background: none; border: 0; cursor: pointer; text-align: left; }
nav.zij a:hover, nav.zij button.link:hover { background: var(--zand); color: var(--inkt); }
nav.zij a[aria-current="page"] { background: var(--blush); color: var(--inkt); font-weight: 500; }
nav.zij svg { width: 19px; height: 19px; flex: none; }
nav.zij .onder { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rand); }

main { padding: 34px clamp(18px, 3.5vw, 48px) 96px; max-width: 1080px; width: 100%; }
.kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.kop p { color: var(--inkt-2); margin-top: 4px; font-size: 14.5px; }
.terug { display: inline-flex; gap: 6px; font-size: 13.5px; color: var(--inkt-2); text-decoration: none; margin-bottom: 12px; }
.terug:hover { color: var(--inkt); }

.raster { display: grid; gap: 14px; }
.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r12 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.vak { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--rond); padding: 22px; min-width: 0; }
.vak.blush { background: var(--blush); border-color: var(--blush); }
.vak-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
a.vak { text-decoration: none; display: block; transition: border-color .15s; }
a.vak:hover { border-color: #d5c6b8; }
.sectie { margin-top: 28px; }
.sectie-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }

/* ── Knoppen en velden ────────────────────────────────────────────────── */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid var(--inkt); background: var(--inkt); color: #fff; padding: 0 22px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.knop:hover { background: #3a322e; }
.knop.licht { background: transparent; color: var(--inkt); }
.knop.licht:hover { background: var(--inkt); color: #fff; }
.knop.rood { background: var(--rood); border-color: var(--rood); }
.knop.rood:hover { background: var(--rood-donker); }
.knop.klein { min-height: 36px; padding: 0 16px; font-size: 11px; }
.knop.breed { width: 100%; }
.knop:disabled { opacity: .45; cursor: default; }
.tekstknop { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--inkt); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rand); }
.tekstknop:hover { text-decoration-color: var(--rood); }
.knoppen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.veld { display: grid; gap: 6px; margin-bottom: 14px; }
.veld label { font-size: 13px; color: var(--inkt-2); }
.veld input, .veld select, .veld textarea { width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid var(--rand); border-radius: 14px; background: var(--wit); outline: none; font-size: 15px; }
.veld input:focus, .veld select:focus, .veld textarea:focus { border-color: var(--inkt); box-shadow: 0 0 0 3px var(--blush); }
.veld textarea { min-height: 96px; resize: vertical; }
.veld input[readonly] { background: var(--zand); color: var(--inkt-2); }
.velden2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.schakelaar { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #d9cfc6; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.schakelaar::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.schakelaar:checked { background: var(--rood); }
.schakelaar:checked::after { transform: translateX(18px); }

.melding { padding: 12px 16px; border-radius: 14px; font-size: 14px; margin: 0 0 14px; background: var(--wit); border: 1px solid var(--rand); }
.melding.goed { background: var(--groen-vlak); border-color: #cfe3d6; color: var(--groen); }
.melding.fout { background: #FCE8EC; border-color: #F4C7D0; color: var(--rood-donker); }

/* ── Stukjes ──────────────────────────────────────────────────────────── */
.speld { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 11px; border-radius: 999px; background: var(--zand); color: var(--inkt-2); white-space: nowrap; }
.speld::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.speld.onderweg, .speld.behandeling, .speld.wacht, .speld.aangemeld, .speld.label { background: var(--blush); color: var(--rood-donker); }
.speld.bezorgd, .speld.verwerkt, .speld.ontvangen { background: var(--groen-vlak); color: var(--groen); }

.tegel { display: flex; flex-direction: column; gap: 4px; }
.tegel .waarde { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 32px; line-height: 1.05; }
.tegel .waarde small { font-family: var(--sans); font-size: 13px; color: var(--inkt-2); margin-left: 6px; }
.tegel .actie { margin-top: auto; padding-top: 12px; }
.voortgang { height: 6px; background: var(--zand); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.voortgang span { display: block; height: 100%; background: var(--rood); border-radius: 999px; }

.beeld { width: 60px; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--linnen); object-fit: cover; display: block; flex: none; }
.beeld.groot { width: 84px; }
.beelden { display: flex; gap: 8px; }

.rijen { list-style: none; margin: 0; padding: 0; }
.rijen > li, .rijen > a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rand); text-decoration: none; }
.rijen > :first-child { padding-top: 0; }
.rijen > :last-child { border-bottom: 0; padding-bottom: 0; }
.rijen .groei { flex: 1; min-width: 0; }
.rijen .groei strong { font-weight: 500; }
.rijen .eind { margin-left: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
a.orderrij:hover strong { color: var(--rood); }
.regel { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14.5px; }
.regel.dik { border-top: 1px solid var(--rand); margin-top: 8px; padding-top: 10px; font-weight: 500; }

.tijdlijn { list-style: none; margin: 12px 0 0; padding: 0; }
.tijdlijn li { position: relative; padding: 0 0 16px 26px; color: var(--licht); font-size: 14.5px; }
.tijdlijn li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--rood); background: var(--wit); }
.tijdlijn li::after { content: ''; position: absolute; left: 8px; top: 19px; bottom: 1px; width: 1px; background: var(--rand); }
.tijdlijn li:last-child { padding-bottom: 0; }
.tijdlijn li:last-child::after { display: none; }
.tijdlijn li.gedaan { color: var(--inkt); }
.tijdlijn li.gedaan::before { background: var(--rood); }

.code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .06em; background: var(--blush); border: 1px dashed var(--rood); color: var(--rood-donker); padding: 5px 10px; border-radius: 8px; display: inline-block; }

.producten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product { text-decoration: none; display: grid; gap: 8px; }
.product img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--linnen); display: block; }
.product span { font-size: 14px; line-height: 1.35; }
.product small { font-size: 13px; color: var(--inkt-2); }

/* ── LOVD Club: de lidkaart ───────────────────────────────────────────── */
.lidkaart { position: relative; border-radius: 24px; overflow: hidden; color: var(--wit); background: var(--rood); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: end; isolation: isolate; }
.lidkaart::before { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); z-index: -1; }
.lidkaart.exclusive { background: var(--inkt); }
.lidkaart .oog { color: rgba(255, 255, 255, .8); }
.lidkaart .saldo { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 56px; line-height: 1; margin: 10px 0 6px; }
.lidkaart .saldo small { font-family: var(--sans); font-size: 15px; opacity: .85; margin-left: 8px; }
.lidkaart .sub { font-size: 14px; color: rgba(255, 255, 255, .85); }
.lidkaart .voortgang { background: rgba(255, 255, 255, .25); max-width: 360px; margin-top: 14px; }
.lidkaart .voortgang span { background: var(--wit); }
.lidkaart .acties { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.lidkaart .knop { background: var(--wit); color: var(--inkt); border-color: var(--wit); }
.lidkaart .knop:hover { background: var(--blush); }
.lidkaart .knop.rand { background: transparent; color: var(--wit); border-color: rgba(255, 255, 255, .6); }
.lidkaart .knop.rand:hover { background: rgba(255, 255, 255, .12); }

.tabs { display: flex; gap: 4px; margin: 20px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--inkt-2); white-space: nowrap; border: 1px solid var(--rand); background: var(--wit); }
.tabs a:hover { color: var(--inkt); border-color: var(--inkt); }
.tabs a[aria-current="page"] { background: var(--inkt); border-color: var(--inkt); color: var(--wit); }

/* Rewards zoals op /pages/loyalty-club: hoge kaart, naam, punten als knop. */
.rewards { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 2.3); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rewards::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .rewards { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 14px; } }
@media (min-width: 1100px) { .rewards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.reward { scroll-snap-align: start; display: grid; gap: 10px; justify-items: start; align-content: start; min-width: 0; }
.reward__kaart { width: 100%; aspect-ratio: 2 / 3; border-radius: 16px; background: var(--blush); color: var(--rood); display: grid; place-content: center; justify-items: center; text-align: center; container-type: inline-size; }
.reward.kan .reward__kaart { background: var(--rood); color: var(--wit); }
.reward__waarde { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 27cqi; line-height: .95; white-space: nowrap; }
.reward__wat { margin-top: 5cqi; font-size: 10.5cqi; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.reward__naam { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 17px; line-height: 1.2; }
.reward .knop { min-height: 38px; padding: 0 16px; font-size: 11px; }
.reward .nog { font-size: 12.5px; color: var(--inkt-2); }

.niveaus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.niveau { border-radius: var(--rond); padding: 22px; background: var(--wit); border: 1px solid var(--rand); }
.niveau.donker { background: var(--inkt); color: var(--wit); border-color: var(--inkt); }
.niveau h3 { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 24px; font-weight: 400; }
.niveau ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 6px; }
.niveau .jij { display: inline-block; margin-left: 8px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--rood); color: var(--wit); border-radius: 999px; padding: 3px 9px; vertical-align: 4px; }

/* ── Retour: keuze tegoed of geld ─────────────────────────────────────── */
.keuzes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
.keuze { position: relative; display: grid; gap: 4px; padding: 18px; border: 1.5px solid var(--rand); border-radius: var(--rond); background: var(--wit); cursor: pointer; }
.keuze input { position: absolute; opacity: 0; }
.keuze:has(input:checked) { border-color: var(--inkt); box-shadow: 0 0 0 3px var(--blush); }
.keuze strong { font-weight: 600; }
.keuze .tag { justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--rood); color: var(--wit); border-radius: 999px; padding: 3px 10px; margin-bottom: 4px; }
.keuze .bedrag { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 24px; margin-top: 6px; }
.artikel { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rand); cursor: pointer; }
.artikel:last-child { border-bottom: 0; }
.artikel input[type=checkbox] { accent-color: var(--rood); width: 18px; height: 18px; flex: none; }
.artikel.uit { opacity: .55; cursor: default; }
.artikel select { min-height: 36px; padding: 0 10px; border: 1px solid var(--rand); border-radius: 10px; background: var(--wit); }

.vraaglijst details { border-bottom: 1px solid var(--rand); padding: 14px 0; }
.vraaglijst details:first-child { padding-top: 0; }
.vraaglijst details:last-child { border-bottom: 0; padding-bottom: 0; }
.vraaglijst summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.vraaglijst summary::-webkit-details-marker { display: none; }
.vraaglijst summary::after { content: '+'; color: var(--rood); font-size: 18px; line-height: 1; }
.vraaglijst details[open] summary::after { content: '−'; }
.vraaglijst details p { margin-top: 8px; color: var(--inkt-2); font-size: 14px; }

.leeg { text-align: center; padding: 32px 16px; color: var(--inkt-2); font-size: 14.5px; }
.laden { color: var(--licht); padding: 20px 0; font-size: 14.5px; }

/* ── Inloggen ─────────────────────────────────────────────────────────── */
.inlog { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--zand); }
.inlog .sfeer { position: relative; background: var(--linnen) center 0% / cover no-repeat; }
.inlog .sfeer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,25,23,0) 55%, rgba(30,25,23,.35)); }
.inlog .stempel { position: absolute; right: 32px; bottom: 32px; z-index: 1; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--rood); color: var(--wit); font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 22px; line-height: 1; transform: rotate(-10deg); }
.inlog .paneel { display: grid; place-items: center; padding: 36px 22px; }
.inlog .kaart { width: min(400px, 100%); }
.inlog .kaart > img { height: 26px; width: auto; display: block; margin-bottom: 28px; }
.inlog h1 { margin: 8px 0 10px; font-size: 34px; }
.inlog .uitleg { color: var(--inkt-2); margin-bottom: 22px; font-size: 15px; }
.inlog .klein { margin-top: 18px; }
.codevak { font-size: 26px !important; letter-spacing: .45em; text-align: center; font-family: var(--serif) !important; }

/* ── Mobiel ───────────────────────────────────────────────────────────── */
nav.onder { display: none; }
.scherm { display: none; }
@media (max-width: 900px) {
  .menuknop { display: inline-flex; }
  .balk { padding: 0 14px; }
  .balk .rechts .winkel { display: none; }
  .logo small { display: none; }
  .geheel { grid-template-columns: minmax(0, 1fr); }
  nav.zij { position: fixed; left: 0; top: 64px; bottom: 0; width: min(300px, 86vw); z-index: 30; transform: translateX(-102%); transition: transform .2s ease; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
  body.menu-open nav.zij { transform: none; }
  body.menu-open .scherm { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(30,25,23,.3); z-index: 25; }
  main { padding: 24px 16px 108px; }
  h1 { font-size: 26px; }
  .r2, .r3, .r12, .niveaus { grid-template-columns: minmax(0, 1fr); }
  .producten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .velden2 { grid-template-columns: 1fr; }
  .vak { padding: 18px; }
  .rijen .eind { flex-direction: column; align-items: flex-end; gap: 4px; }
  .lidkaart { grid-template-columns: 1fr; padding: 24px 20px; }
  .lidkaart .acties { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .lidkaart .saldo { font-size: 48px; }
  .keuzes { grid-template-columns: 1fr; }
  nav.onder { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--wit); border-top: 1px solid var(--rand); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  nav.onder a, nav.onder button { background: none; border: 0; text-decoration: none; font-size: 11px; color: var(--inkt-2); display: grid; justify-items: center; gap: 2px; padding: 4px 8px; cursor: pointer; }
  nav.onder a[aria-current="page"] { color: var(--rood); }
  nav.onder svg { width: 22px; height: 22px; }
  .inlog { grid-template-columns: 1fr; }
  .inlog .sfeer { min-height: 210px; }
  .inlog .stempel { width: 88px; height: 88px; font-size: 17px; right: 18px; bottom: -30px; }
}
