/* VvE-portaal — één stylesheet, geen framework. Bewust rustig en zakelijk:
   dit is een archief voor een vereniging, geen productpagina. */

:root {
  --papier: #faf9f6;
  --vlak: #ffffff;
  --inkt: #15191f;
  --stil: #6a7079;
  --lijn: #e4e0d8;
  --lijn-hard: #cfc9be;
  --accent: #8f2d2d;
  --accent-diep: #6f2020;
  --accent-zacht: #f6ecea;
  --goed: #1f6b45;
  --goed-zacht: #e8f4ed;
  --fout: #99271f;
  --fout-zacht: #fbeceb;
  --letop: #8a6212;
  --letop-zacht: #fbf3e0;
  --schaduw: 0 1px 2px rgba(21, 25, 31, .05), 0 8px 24px -16px rgba(21, 25, 31, .35);
  --rond: 8px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #14171b;
    --vlak: #1b1f25;
    --inkt: #e9e7e2;
    --stil: #9aa1ab;
    --lijn: #2b3138;
    --lijn-hard: #3a424b;
    --accent: #d97a72;
    --accent-diep: #e59a93;
    --accent-zacht: #2b2020;
    --goed: #6bbd91;
    --goed-zacht: #1a2a22;
    --fout: #e6897f;
    --fout-zacht: #2c1e1d;
    --letop: #d9b46a;
    --letop-zacht: #2b2519;
    --schaduw: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font: 16px/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 0 0 .3em; }
h2 { font-size: 1.2rem; margin: 0 0 .5em; }
h3 { font-size: 1rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-diep); }

.stil { color: var(--stil); }
.klein { font-size: .85rem; }
.mono { font-family: var(--mono); font-size: .85em; }
.rechts { text-align: right; }
.rij { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spreid { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }

/* --- Balk ---------------------------------------------------------------- */
.balk { background: var(--vlak); border-bottom: 1px solid var(--lijn); }
.balk-binnen {
  max-width: 1180px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.merk { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.merk-teken {
  background: var(--accent); color: #fff; font-family: var(--serif);
  font-size: .8rem; letter-spacing: .04em; padding: .3rem .45rem; border-radius: 5px;
}
.merk-teken.groot { font-size: 1.1rem; padding: .5rem .7rem; }
.merk-naam { font-family: var(--serif); font-size: 1.02rem; }
.balk nav { display: flex; align-items: center; gap: 1.1rem; font-size: .93rem; }
.balk nav a { color: var(--stil); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.balk nav a:hover { color: var(--inkt); }
.balk nav a.aan { color: var(--inkt); border-bottom-color: var(--accent); }
.uitlog { margin: 0; }
.knop-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--stil); font: inherit; font-size: .93rem;
}
.knop-link:hover { color: var(--inkt); text-decoration: underline; }

/* --- Raamwerk ------------------------------------------------------------ */
.omhulsel { max-width: 1180px; width: 100%; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; flex: 1; }
.ruim { width: 100%; padding: 0; flex: 1; display: flex; flex-direction: column; }
.voet { padding: 1rem 1.25rem; color: var(--stil); font-size: .8rem; text-align: center; }
body.breed .voet { display: none; }

.kaart {
  background: var(--vlak); border: 1px solid var(--lijn);
  border-radius: var(--rond); box-shadow: var(--schaduw); padding: 1.25rem;
}
.kaart + .kaart { margin-top: 1rem; }
.kaart-kop { padding: 1rem 1.25rem; border-bottom: 1px solid var(--lijn); }
.kaart-strak { padding: 0; overflow: hidden; }

/* --- Poort (inloggen) ---------------------------------------------------- */
.poort { max-width: 420px; margin: 3rem auto; }
.poort-kop { text-align: center; margin-bottom: 1.5rem; }
.poort-kop h1 { margin: .8rem 0 .1rem; font-size: 1.35rem; }
.poort-kop p { margin: 0; font-size: .9rem; }
.poort .kaart { padding: 1.5rem; }

/* --- Formulieren --------------------------------------------------------- */
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: .55rem .7rem; font: inherit; color: var(--inkt);
  background: var(--papier); border: 1px solid var(--lijn-hard); border-radius: 6px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.veld { margin-bottom: .9rem; }
.veld .hint { font-size: .8rem; color: var(--stil); margin-top: .25rem; font-weight: 400; }
.code-veld {
  width: 100%; font-family: var(--mono); font-size: 1.4rem; letter-spacing: .3em; text-align: center;
}

button, .knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1rem; font: inherit; font-size: .93rem; font-weight: 500;
  border-radius: 6px; border: 1px solid var(--lijn-hard);
  background: var(--vlak); color: var(--inkt); cursor: pointer; text-decoration: none;
}
button:hover, .knop:hover { border-color: var(--stil); color: var(--inkt); }
.knop-hoofd, button.hoofd {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.knop-hoofd:hover, button.hoofd:hover { background: var(--accent-diep); border-color: var(--accent-diep); color: #fff; }
.knop-klein { padding: .3rem .6rem; font-size: .82rem; }
.knop-gevaar { color: var(--fout); }
.knop-gevaar:hover { border-color: var(--fout); }
button[disabled] { opacity: .5; cursor: not-allowed; }
.vol { width: 100%; }

/* --- Meldingen ----------------------------------------------------------- */
.melding {
  padding: .7rem .9rem; border-radius: 6px; margin-bottom: 1.25rem;
  font-size: .9rem; border: 1px solid transparent;
}
.melding.goed { background: var(--goed-zacht); color: var(--goed); border-color: currentColor; }
.melding.fout { background: var(--fout-zacht); color: var(--fout); border-color: currentColor; }
.melding.let-op { background: var(--letop-zacht); color: var(--letop); border-color: currentColor; }

/* --- Tabellen / lijsten -------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
     color: var(--stil); font-weight: 600; padding: .6rem .9rem; border-bottom: 1px solid var(--lijn); }
td { padding: .65rem .9rem; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, transparent); }

.naam-cel { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.naam-cel a { color: inherit; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.naam-cel a:hover { color: var(--accent); text-decoration: underline; }
.icoon { flex: none; width: 20px; height: 20px; color: var(--stil); }
.icoon.map { color: var(--accent); }

.leeg { padding: 2.5rem 1.25rem; text-align: center; color: var(--stil); }

.speld {
  display: inline-block; padding: .1rem .45rem; border-radius: 999px;
  font-size: .73rem; font-weight: 600; border: 1px solid var(--lijn-hard); color: var(--stil);
  white-space: nowrap;
}
.speld.gedeeld { color: var(--accent); border-color: currentColor; background: var(--accent-zacht); }
.speld.beheerder { color: var(--accent); border-color: currentColor; }
.speld.uit { color: var(--fout); border-color: currentColor; }

/* --- Kruimelpad ---------------------------------------------------------- */
.kruimels { font-size: .9rem; color: var(--stil); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.kruimels a { text-decoration: none; color: var(--stil); }
.kruimels a:hover { color: var(--accent); text-decoration: underline; }
.kruimels .nu { color: var(--inkt); font-weight: 500; }

/* --- Uploadzone ---------------------------------------------------------- */
.zone {
  border: 1.5px dashed var(--lijn-hard); border-radius: var(--rond); padding: 1.1rem;
  text-align: center; color: var(--stil); font-size: .9rem; background: var(--vlak);
  transition: border-color .15s, background .15s;
}
.zone.sleep { border-color: var(--accent); background: var(--accent-zacht); color: var(--accent); }
.zone input[type=file] { display: none; }
.balkje { height: 4px; background: var(--lijn); border-radius: 2px; overflow: hidden; margin-top: .6rem; display: none; }
.balkje.aan { display: block; }
.balkje > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* --- Delen --------------------------------------------------------------- */
.deel-lijst { list-style: none; margin: 0 0 1rem; padding: 0; }
.deel-lijst li {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid var(--lijn);
}
.deel-lijst li:last-child { border-bottom: 0; }
.teller { font-size: .82rem; color: var(--stil); }
.teller.vol { color: var(--fout); font-weight: 600; }

/* --- Editor -------------------------------------------------------------- */
.editor-balk {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; background: var(--vlak); border-bottom: 1px solid var(--lijn); flex-wrap: wrap;
}
.editor-balk .titel { font-family: var(--serif); font-size: 1rem; }
#office { flex: 1; min-height: 0; }
#office iframe { border: 0; width: 100%; height: 100%; display: block; }
.tekst-editor {
  width: 100%; min-height: 60vh; font-family: var(--mono); font-size: .9rem; line-height: 1.6;
  border: 1px solid var(--lijn); border-radius: var(--rond); padding: 1rem; resize: vertical;
}

/* --- Diversen ------------------------------------------------------------ */
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.qr { display: block; margin: 1rem auto; width: 190px; height: 190px; background: #fff; padding: 8px; border-radius: 6px; }
.geheim-code {
  font-family: var(--mono); font-size: .95rem; background: var(--papier); border: 1px solid var(--lijn);
  border-radius: 6px; padding: .6rem; text-align: center; word-break: break-all; user-select: all;
}
.kopieer-rij { display: flex; gap: .5rem; align-items: stretch; }
.kopieer-rij input { font-family: var(--mono); font-size: .82rem; }
.scheiding { border: 0; border-top: 1px solid var(--lijn); margin: 1.25rem 0; }
.stappen { counter-reset: stap; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.stappen li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; }
.stappen li::before {
  counter-increment: stap; content: counter(stap);
  position: absolute; left: 0; top: .05rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--accent-zacht); color: var(--accent); font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}

@media (max-width: 640px) {
  .verberg-klein { display: none; }
  .balk-binnen { padding: .6rem .9rem; }
  .omhulsel { padding: 1.25rem .9rem 2rem; }
  h1 { font-size: 1.35rem; }
}
