/* =====================================================================
   Beheervereniging Kop van Waal — huisstijl
   Grounded in the place: navy ink + ochre (de pergolakleur van de wijk).
   Mobile-first, geen overflow, mobiel menu.
   ===================================================================== */

:root {
  --ink:        #1c2433;   /* diep navy — architectuur, vertrouwen */
  --ink-2:      #2c3950;
  --ink-soft:   #51607a;
  --ink-muted:  #8896aa;
  --line:       #e4e7ee;
  --line-soft:  #eef1f6;
  --canvas:     #ffffff;
  --surface:    #f6f7fa;
  --surface-2:  #eceff4;

  /* Ochre — getrokken uit de houten pergola's van de wijk */
  --ochre:      #c98a2b;
  --ochre-dark: #a06a18;
  --ochre-soft: #fbf1de;
  --ochre-line: #ecd6a8;

  --green:      #1d7a52;
  --green-soft: #e7f4ee;
  --amber:      #9a6a00;
  --amber-soft: #fbf2dd;
  --red:        #b4322a;
  --red-soft:   #fbeae8;
  --info:       #2c4d80;
  --info-soft:  #eaf0f9;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28,36,51,.06);
  --shadow:    0 6px 20px rgba(28,36,51,.09);
  --maxw: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--ochre-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ochre-line); outline-offset: 2px; }

/* =====================================================================
   HEADER — solide navy, met mobiel menu
   ===================================================================== */
.topbar {
  background: var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 18px; min-height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--ochre); display: grid; place-items: center;
  color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  color: #fff; letter-spacing: -.01em; white-space: nowrap;
}
.brand-sub { font-size: 11.5px; color: #9fb0c9; letter-spacing: .03em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-logout {
  font-family: inherit; font-size: 14px; color: #c7d2e2;
  padding: 8px 13px; border-radius: var(--r-sm); border: none; background: none;
  cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.nav a:hover, .nav .nav-logout:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.nav .nav-cta { background: var(--ochre); color: var(--ink); font-weight: 600; }
.nav .nav-cta:hover { background: #d99a3f; color: var(--ink); }

/* Hamburger — verborgen op desktop */
.navtoggle, .navburger { display: none; }
.navburger {
  width: 40px; height: 40px; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; border-radius: var(--r-sm);
}
.navburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

@media (max-width: 720px) {
  .navburger { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ink-2); padding: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
  }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav a, .nav .nav-logout { padding: 13px 14px; font-size: 15px; text-align: left; width: 100%; }
  .nav form { width: 100%; }
  .nav .nav-logout { width: 100%; }
  .nav .nav-cta { text-align: center; margin-top: 4px; }
  .navtoggle:checked ~ .navburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle:checked ~ .navburger span:nth-child(2) { opacity: 0; }
  .navtoggle:checked ~ .navburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =====================================================================
   LAYOUT
   ===================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; width: 100%; }
.main { padding: 26px 0 72px; }

.page-head { margin-bottom: 24px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(25px, 6vw, 34px);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.08; color: var(--ink);
}
.page-head p { color: var(--ink-soft); margin-top: 7px; font-size: 15px; }

/* Signature: ochre eyebrow rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ochre-dark); margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--ochre); }

.grid { display: grid; gap: 18px; }
.grid-main { grid-template-columns: 1fr; }
@media (min-width: 880px) {
  .grid-main { grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
}

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-pad-lg { padding: 26px; }
@media (max-width: 560px) { .card { padding: 18px; } .card-pad-lg { padding: 20px; } }

.card-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 16px;
}

/* =====================================================================
   AUTH — split screen
   ===================================================================== */
.auth-shell { min-height: calc(100vh - 62px); display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth-shell { grid-template-columns: 1.05fr 1fr; } }
.auth-aside { display: none; position: relative; overflow: hidden; background: var(--ink); }
@media (min-width: 900px) { .auth-aside { display: block; } }
.auth-aside img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.auth-aside-overlay {
  position: absolute; inset: 0; padding: 54px 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(28,36,51,.15), rgba(28,36,51,.9)); color: #fff;
}
.auth-aside-overlay .eyebrow { color: #e7c073; }
.auth-aside-overlay .eyebrow::before { background: var(--ochre); }
.auth-aside-overlay h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 12px;
}
.auth-aside-overlay p { color: rgba(255,255,255,.82); font-size: 15px; max-width: 38ch; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 44px 18px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.auth-box .sub { color: var(--ink-soft); margin: 8px 0 26px; font-size: 15px; }

/* =====================================================================
   FORMS
   ===================================================================== */
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--ink-muted); }
.input {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--canvas); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--ink-muted); }
.input:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 4px var(--ochre-soft); }
textarea.input { line-height: 1.55; min-height: 84px; resize: vertical; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer; transition: .15s; text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-accent { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.btn-accent:hover { background: #d99a3f; }
.btn-ghost { background: var(--canvas); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #f7d9d6; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* =====================================================================
   FLASH
   ===================================================================== */
.flashes { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.flash {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 16px; border-radius: var(--r); font-size: 14.5px; border: 1px solid;
}
.flash-icon { flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.flash-success { background: var(--green-soft); color: var(--green); border-color: #bfe3d0; }
.flash-error   { background: var(--red-soft); color: var(--red); border-color: #f0c8c4; }
.flash-info    { background: var(--info-soft); color: var(--info); border-color: #c6d6ee; }
.flash-warning { background: var(--amber-soft); color: var(--amber); border-color: #ecd9a8; }

/* =====================================================================
   BADGE
   ===================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge-pending { background: var(--amber-soft); color: var(--amber); } .badge-pending::before { background: var(--amber); }
.badge-approved { background: var(--green-soft); color: var(--green); } .badge-approved::before { background: var(--green); }
.badge-rejected { background: var(--red-soft); color: var(--red); } .badge-rejected::before { background: var(--red); }
.badge-paid { background: var(--green-soft); color: var(--green); } .badge-paid::before { background: var(--green); }
.badge-open, .badge-pending-pay { background: var(--amber-soft); color: var(--amber); } .badge-open::before { background: var(--amber); }
.badge-failed, .badge-canceled, .badge-expired { background: var(--red-soft); color: var(--red); }
.badge-failed::before, .badge-canceled::before, .badge-expired::before { background: var(--red); }

/* =====================================================================
   JOURNEY — verticale tijdlijn (signature)
   ===================================================================== */
.journey { list-style: none; position: relative; }
.journey::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.journey-step { position: relative; padding: 0 0 22px 46px; min-height: 32px; }
.journey-step:last-child { padding-bottom: 0; }
.journey-dot {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--canvas);
  border: 2px solid var(--line); color: var(--ink-muted); font-size: 13px; font-weight: 700; z-index: 1;
}
.journey-step.done .journey-dot { background: var(--green); border-color: var(--green); color: #fff; }
.journey-step.active .journey-dot { background: var(--ochre); border-color: var(--ochre); color: var(--ink); box-shadow: 0 0 0 5px var(--ochre-soft); }
.journey-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.journey-step.upcoming .journey-label { color: var(--ink-muted); font-weight: 500; }
.journey-desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }

/* =====================================================================
   PAYMENT CTA — ochre, uitgesproken
   ===================================================================== */
.pay-cta { background: var(--ink); border-radius: var(--r-lg); padding: 26px; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pay-cta::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ochre); }
.pay-cta .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #e7c073; }
.pay-amount { font-family: var(--font-display); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -.03em; margin: 10px 0 4px; color: #fff; }
.pay-period { color: rgba(255,255,255,.78); font-size: 14.5px; margin-bottom: 20px; }
.pay-note { background: rgba(255,255,255,.08); border-radius: var(--r); padding: 14px 16px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.14); }
.pay-note strong { color: var(--ochre); }
.pay-cta .btn-accent { background: var(--ochre); color: var(--ink); }
.pay-cta .btn-accent:hover { background: #d99a3f; }
.steplist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.steplist li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.92); }
.steplist .n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ochre); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }

/* =====================================================================
   BANNERS
   ===================================================================== */
.banner { border-radius: var(--r-lg); padding: 22px; border: 1px solid; }
.banner h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; font-family: var(--font-display); }
.banner p { font-size: 14.5px; line-height: 1.55; }
.banner-success { background: var(--green-soft); border-color: #bfe3d0; color: var(--green); } .banner-success p { color: #1a6347; }
.banner-amber { background: var(--amber-soft); border-color: #ecd9a8; color: var(--amber); } .banner-amber p { color: #7d5600; }
.banner-info { background: var(--info-soft); border-color: #c6d6ee; color: var(--info); } .banner-info p { color: #28456f; }

/* =====================================================================
   DEFINITION LIST
   ===================================================================== */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.dl dt { font-size: 13.5px; color: var(--ink-soft); padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.dl dd { font-size: 14px; color: var(--ink); padding: 11px 0; text-align: right; border-bottom: 1px solid var(--line-soft); word-break: break-word; min-width: 0; }
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: none; }

/* =====================================================================
   TABLE
   ===================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line-soft); }
table.data tr:last-child td { border-bottom: none; }

/* =====================================================================
   PEOPLE ROWS
   ===================================================================== */
.people { display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.person:last-child { border-bottom: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--ochre-soft); color: var(--ochre-dark); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.person-main { flex: 1; min-width: 0; }
.person-name { font-weight: 600; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-meta { font-size: 13px; color: var(--ink-soft); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 600px) { .person-side .hide-sm { display: none; } }

/* =====================================================================
   STATS — wrapt netjes op mobiel
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 620px) { .stats, .stats-4 { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat-n { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.stat-n.accent { color: var(--ochre-dark); }
.stat-l { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; font-weight: 500; }

/* =====================================================================
   IDEEËNBUS
   ===================================================================== */
.idea-row { display: flex; gap: 14px; align-items: flex-start; }
.vote-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 46px; }
.vote-score { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; }
.vote-btn {
  width: 36px; height: 30px; display: grid; place-items: center;
  font-size: 13px; line-height: 1; background: var(--surface); color: var(--ink-muted);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: .12s; font-family: inherit;
}
.vote-btn:hover { background: var(--surface-2); color: var(--ink); }
.vote-up-active { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.vote-down-active { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.idea-title { font-weight: 600; font-size: 16px; color: var(--ink); font-family: var(--font-display); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }

/* =====================================================================
   EMPTY / MISC
   ===================================================================== */
.empty { text-align: center; padding: 38px 18px; color: var(--ink-muted); }
.empty .em-mark { font-size: 26px; margin-bottom: 10px; opacity: .5; }
.empty p { font-size: 14px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: none; }
.muted { color: var(--ink-soft); font-size: 14px; }
.text-sm { font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--ink); text-decoration: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stack-sm > * + * { margin-top: 12px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding: 22px 0; margin-top: 36px; background: var(--canvas); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer p { font-size: 13px; color: var(--ink-muted); }
.footer a { font-size: 13px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
