/* ──────────────────────────────────────────────────────────────────────────
   T.O.F. — publieke website bij de dispuutsapp (voorwaarden, privacy,
   support).

   Zelfde ontwerptaal als het inlogscherm van het beheerpaneel
   (website/bestuur/beheer.css → "Uitgelogd"): de diepe navy van de
   startsplash met gebroken facetten, een merkgloed in TOF-blauw, glaskaarten,
   het wapen en de vierkleurenbalk, koppen in Playfair Display. Juridische
   tekst staat op een lichte "papier"-kaart over die achtergrond, zodat lange
   stukken goed leesbaar blijven (in donkere modus een donker papier).

   - De facetten zijn een statisch bestand (assets/achtergrond.svg), getekend
     door scripts/website/maak-achtergrond.mjs met hetzelfde algoritme als het
     beheerpaneel. Zo blijven de publieke pagina's zonder JavaScript.
   - Playfair Display staat lokaal in assets/fonts/ (OFL), bewust niet via
     Google Fonts: een privacypagina die bezoekers-IP's naar Google stuurt,
     ondergraaft zichzelf.
   Alle kleuren staan hieronder als custom property.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/playfair-display-latin-800-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* dispuutskleuren */
  --navy: #003478;
  --rood: #c8102e;
  --groen: #00843d;
  --wit: #ffffff;

  /* donkere grond (splash-navy, nooit puur zwart) */
  --nacht: #061226;
  --nacht-2: #0b2347;
  --gl-tekst: #e8eef7;
  --gl-dof: #93a6c1;
  --gl-lijn: rgba(232, 238, 247, 0.14);
  --gl-accent: #6da2e4;
  --glas: linear-gradient(140deg, rgba(232, 238, 247, 0.11), rgba(232, 238, 247, 0.035) 55%, rgba(232, 238, 247, 0.06));
  --glas-kop: rgba(6, 18, 38, 0.62);

  /* papier (juridische tekst) — licht */
  --papier: #fafbfd;
  --papier-rand: rgba(255, 255, 255, 0.6);
  --kop-inkt: #062a54;
  --inkt: #1a2433;
  --tekst: #33415b;
  --tekst-dof: #5a6879;
  --tekst-flauw: #7d8a9a;
  --accent: #2b64ad;
  --accent-hover: #003478;
  --vlak: rgba(0, 52, 120, 0.05);
  --vlak-rand: rgba(0, 52, 120, 0.12);
  --balk-wit: #e6eaf1;

  --easing: cubic-bezier(.25, .46, .45, .94);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Donker papier voor wie het systeem op donker heeft staan. */
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #121b2b;
    --papier-rand: rgba(232, 238, 247, 0.1);
    --kop-inkt: #e8eef7;
    --inkt: #eef1f6;
    --tekst: #c3cbd8;
    --tekst-dof: #aab2bf;
    --tekst-flauw: #8590a0;
    --accent: #6da2e4;
    --accent-hover: #9dc0ef;
    --vlak: rgba(109, 162, 228, 0.08);
    --vlak-rand: rgba(109, 162, 228, 0.2);
    --balk-wit: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--nacht);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--nacht);
  color: var(--gl-tekst);
  font-family: var(--sans);
  font-size: 15px;
}

/* Achtergrond: facetten, merkgloed rechtsboven en een vignet. Vaste lagen
   (pseudo-elementen) i.p.v. background-attachment: fixed, dat iOS negeert. */
body::before,
body::after,
.gloed {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: 0;
  z-index: -3;
  background: var(--nacht) url("achtergrond.svg") center / cover no-repeat;
}

.gloed {
  top: -260px;
  right: -220px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  z-index: -2;
  background: radial-gradient(circle, rgba(43, 100, 173, 0.28) 0%, transparent 70%);
}

body::after {
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(4, 12, 26, 0.6) 100%);
}

main {
  flex: 1;
}

a {
  color: var(--gl-accent);
}

:focus-visible {
  outline: 2px solid var(--gl-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Sla-over-link: alleen zichtbaar bij toetsenbordnavigatie. */
.overslaan {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 30;
  background: var(--papier);
  color: var(--kop-inkt);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}

.overslaan:focus {
  left: 0;
}

/* ── Vierkleurenbalk (het merkelement uit de app) ───────────────────────── */

.balk {
  display: flex;
  width: 96px;
  height: 4px;
  border-radius: 3px;
  overflow: hidden;
}

.balk span {
  flex: 1;
}

.balk span:nth-child(1) { background: var(--navy); }
.balk span:nth-child(2) { background: var(--rood); }
.balk span:nth-child(3) { background: var(--groen); }
.balk span:nth-child(4) { background: var(--wit); }

/* Op licht papier: navy blijft, wit krijgt een randje zodat het zichtbaar is. */
.balk--licht span:nth-child(4) { background: var(--balk-wit); }

/* ── Merk (wapen + woordmerk) ──────────────────────────────────────────── */

.merk {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gl-tekst);
  text-decoration: none;
}

.merk__wapen {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.merk__naam {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
}

.merk__sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gl-dof);
}

/* ── Kop (glasbalk) ────────────────────────────────────────────────────── */

.kop {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glas-kop);
  border-bottom: 1px solid var(--gl-lijn);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.kop__binnen {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 28px;
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--gl-dof);
  text-decoration: none;
  transition: color .2s var(--easing), background .2s var(--easing);
}

.nav a:hover {
  color: var(--gl-tekst);
  background: rgba(232, 238, 247, 0.06);
}

.nav a[aria-current="page"] {
  color: var(--gl-tekst);
  background: rgba(232, 238, 247, 0.1);
}

/* ── Voorpagina: glaskaart zoals het inlogscherm ───────────────────────── */

.welkom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 110px);
  min-height: calc(100dvh - 110px);
  padding: max(32px, env(safe-area-inset-top)) 16px 32px;
}

.glas {
  position: relative;
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: var(--glas);
  border: 1px solid rgba(232, 238, 247, 0.14);
  box-shadow: 0 40px 96px rgba(4, 12, 26, 0.6), inset 0 1px 0 rgba(232, 238, 247, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
  animation: in .6s var(--easing) both;
}

/* Lichtere glaslaag rechts met de schuine scheidslijn. */
.glas__schaduw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.glas__paneel {
  padding: 52px 56px;
  min-width: 0;
}

.glas__paneel--rechts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 64px;
}

.glas .merk {
  margin-bottom: 16px;
}

.glas .merk__wapen {
  width: 48px;
  height: 48px;
}

.glas .merk__naam {
  font-size: 22px;
}

.glas .balk {
  margin-bottom: 28px;
}


.held {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--gl-tekst);
  text-wrap: balance;
}

.intro {
  margin: 0;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gl-dof);
  text-wrap: pretty;
}


/* Knop naar de inlog van het bestuurspaneel (/bestuur/): het merkverloop van
   de actieve tab in het paneel, zodat hij zich onderscheidt van de
   documentlinks rechts. */
.knop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #2b64ad, #003478);
  box-shadow: 0 10px 24px -10px rgba(43, 100, 173, 0.8);
  transition: transform .2s var(--easing), box-shadow .2s var(--easing);
}

.knop:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(43, 100, 173, 0.95);
}

.knop:focus-visible {
  outline: 2px solid var(--gl-accent);
  outline-offset: 3px;
}

.knop__pijl {
  transition: transform .2s var(--easing);
}

.knop:hover .knop__pijl {
  transform: translateX(3px);
}

/* Documentlinks: glasrijen met icoon en pijl. */
.links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(232, 238, 247, 0.12);
  background: rgba(232, 238, 247, 0.04);
  color: var(--gl-tekst);
  text-decoration: none;
  transition: transform .2s var(--easing), background .2s var(--easing), border-color .2s var(--easing);
}

.link:hover {
  transform: translateY(-1px);
  background: rgba(232, 238, 247, 0.09);
  border-color: rgba(232, 238, 247, 0.3);
  color: var(--gl-tekst);
}

.link__icoon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2b64ad, #003478);
  box-shadow: 0 8px 20px -8px rgba(43, 100, 173, 0.7);
}

.link__icoon--rood {
  background: linear-gradient(135deg, #e0334f, #8f0c22);
  box-shadow: 0 8px 20px -8px rgba(200, 16, 46, 0.6);
}

.link__icoon--groen {
  background: linear-gradient(135deg, #1fa35a, #00602c);
  box-shadow: 0 8px 20px -8px rgba(0, 132, 61, 0.6);
}

.link__tekst {
  flex: 1;
  min-width: 0;
}

.link__titel {
  display: block;
  font-size: 15px;
  font-weight: 600;
}


.link__pijl {
  flex: none;
  color: var(--gl-dof);
  transition: transform .2s var(--easing), color .2s var(--easing);
}

.link:hover .link__pijl {
  transform: translateX(3px);
  color: var(--gl-accent);
}


/* ── Juridisch document: licht papier op de facetten ───────────────────── */

.doc {
  max-width: 800px;
  margin: 40px auto 64px;
  padding: 56px 64px 64px;
  border-radius: 28px;
  background: var(--papier);
  border: 1px solid var(--papier-rand);
  box-shadow: 0 40px 96px rgba(4, 12, 26, 0.55);
  color: var(--tekst);
  animation: in .5s var(--easing) both;
}


.doc h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--kop-inkt);
}

.doc__datum {
  margin-top: 10px;
  font-size: 13px;
  color: var(--tekst-flauw);
}

.doc .balk {
  margin: 22px 0 32px;
}


.doc h2 {
  margin: 34px 0 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--kop-inkt);
}

.doc .balk + h2 {
  margin-top: 0;
}


.doc p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.doc ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.7;
}

.doc li + li {
  margin-top: 6px;
}

.doc b {
  color: var(--inkt);
}

.doc p + p,
.doc ul + p {
  margin-top: 12px;
}

.doc a {
  color: var(--accent);
}

.doc a:hover {
  color: var(--accent-hover);
}

.doc :focus-visible {
  outline-color: var(--accent);
}

/* ── Contactblok (supportpagina) ───────────────────────────────────────── */

.hulp {
  margin: 26px 0 8px;
  background: var(--vlak);
  border: 1px solid var(--vlak-rand);
  border-left: 4px solid var(--rood);
  border-radius: 14px;
  padding: 20px 22px;
}

.hulp__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tekst-flauw);
}

.hulp__mail {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--kop-inkt);
  text-decoration: none;
  word-break: break-word;
}

.doc .hulp__mail {
  color: var(--kop-inkt);
}

.doc .hulp__mail:hover {
  color: var(--rood);
  text-decoration: underline;
}

.hulp__meta {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tekst-dof);
}

.hulp + h2 {
  margin-top: 34px;
}

/* ── Voet ──────────────────────────────────────────────────────────────── */

.voet {
  border-top: 1px solid var(--gl-lijn);
  background: var(--glas-kop);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.voet__binnen {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 28px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.voet__links {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gl-dof);
}




@keyframes in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ── Smalle schermen ───────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .glas {
    grid-template-columns: minmax(0, 1fr);
  }

  .glas__schaduw {
    display: none;
  }

  .glas__paneel {
    padding: 34px 24px 8px;
  }

  .glas__paneel--rechts {
    padding: 24px 24px 28px;
    border-top: 1px solid var(--gl-lijn);
    margin-top: 26px;
    background: rgba(232, 238, 247, 0.04);
  }

  .held {
    font-size: 34px;
  }

  .welkom {
    padding-top: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .kop__binnen {
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 10px;
  }

  /* Op een telefoon past alleen het wapen naast het menu. */
  .kop .merk__tekst {
    display: none;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .doc {
    margin: 16px 12px 40px;
    padding: 34px 22px 40px;
    border-radius: 22px;
  }

  .doc h1 {
    font-size: 31px;
  }

  .doc h2 {
    font-size: 20px;
  }

  .hulp__mail {
    font-size: 19px;
  }

  .voet__binnen {
    padding: 22px 16px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .glas,
  .doc {
    animation: none;
  }

  .link,
  .link__pijl,
  .nav a {
    transition: none;
  }
}

/* ── Afdrukken (juridische stukken worden ook uitgeprint) ──────────────── */

@media print {
  .kop,
  .voet,
  .overslaan,
  .gloed,
  body::before,
  body::after {
    display: none;
  }

  html,
  body {
    background: #ffffff;
  }

  .doc {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #ffffff;
    animation: none;
  }

  .doc,
  .doc p,
  .doc ul,
  .doc h1,
  .doc h2,
  .doc b,
  .doc a {
    color: #000000;
  }
}
