/* Mijn Nalatenschap - vormgeving
   Warme, rustige kleuren. Werkt op telefoon en laptop, in licht en donker. */

:root {
  --papier: #faf6f0;
  --papier-diep: #f2ebe1;
  --inkt: #2a2320;
  --inkt-zacht: #6b5f56;
  --goud: #a6763f;
  --goud-diep: #8a5f30;
  --lijn: #e0d5c6;
  --groen: #4f6b52;
  --schaduw: rgba(42, 35, 32, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1c1917;
    --papier-diep: #26221f;
    --inkt: #f0e9e0;
    --inkt-zacht: #a89b8f;
    --goud: #d9a870;
    --goud-diep: #e8bd8a;
    --lijn: #3a332e;
    --groen: #8fb094;
    --schaduw: rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --papier: #1c1917;
  --papier-diep: #26221f;
  --inkt: #f0e9e0;
  --inkt-zacht: #a89b8f;
  --goud: #d9a870;
  --goud-diep: #e8bd8a;
  --lijn: #3a332e;
  --groen: #8fb094;
  --schaduw: rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  --papier: #faf6f0;
  --papier-diep: #f2ebe1;
  --inkt: #2a2320;
  --inkt-zacht: #6b5f56;
  --goud: #a6763f;
  --goud-diep: #8a5f30;
  --lijn: #e0d5c6;
  --groen: #4f6b52;
  --schaduw: rgba(42, 35, 32, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.binnen {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.scherm {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

/* Zonder deze regel wint "display: flex" van het verbergen, en zie je de
   knoppenbalk van de quiz ook op het welkomstscherm staan. */
.scherm[hidden] {
  display: none;
}

#quiz {
  justify-content: flex-start;
  padding: 0 0 140px;
}

/* ----------------------------------------------------------------- logo */
.logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 0 22px -6px;
}

.logo-klein {
  width: 34px;
  height: auto;
  opacity: 0.85;
}

/* Op donkere achtergrond mag het goud iets warmer oplichten. */
@media (prefers-color-scheme: dark) {
  .logo,
  .logo-klein {
    filter: brightness(1.12);
  }
}

:root[data-theme="dark"] .logo,
:root[data-theme="dark"] .logo-klein {
  filter: brightness(1.12);
}

:root[data-theme="light"] .logo,
:root[data-theme="light"] .logo-klein {
  filter: none;
}

/* ----------------------------------------------------------- typografie */
.titel {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.1;
  margin: 8px 0 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.ondertitel {
  color: var(--inkt-zacht);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

.uitgever {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: var(--goud);
  margin: 0;
}

.kop {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 4px 0 12px;
}

.lead {
  color: var(--inkt-zacht);
  margin: 0 0 28px;
}

.opening {
  border-left: 2px solid var(--goud);
  margin: 0 0 36px;
  padding: 4px 0 4px 20px;
  color: var(--inkt-zacht);
  font-style: italic;
}

.opening p {
  margin: 0 0 12px;
}

.opening p:last-child {
  margin-bottom: 0;
}

.disclaimer {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--lijn);
  font-size: 0.85rem;
  color: var(--inkt-zacht);
  font-family: system-ui, -apple-system, sans-serif;
}

.opslag-melding {
  font-size: 0.8rem;
  color: var(--inkt-zacht);
  font-family: system-ui, -apple-system, sans-serif;
  margin: 12px 0 0;
}

.notitie {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--papier-diep);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--inkt-zacht);
  font-family: system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------- knoppen */
.knop {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid var(--goud);
  border-radius: 999px;
  background: var(--goud);
  color: var(--papier);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.knop:hover:not(:disabled) {
  background: var(--goud-diep);
  border-color: var(--goud-diep);
}

.knop:disabled {
  opacity: 0.35;
  cursor: default;
}

.knop-stil {
  background: transparent;
  color: var(--inkt-zacht);
  border-color: var(--lijn);
}

.knop-stil:hover:not(:disabled) {
  background: var(--papier-diep);
  color: var(--inkt);
  border-color: var(--lijn);
}

.knop-groot {
  display: block;
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.knop-klein {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.knop-terug {
  background: transparent;
  border: none;
  color: var(--inkt-zacht);
  padding: 0 0 24px;
  font-size: 0.9rem;
}

.knop-terug:hover {
  background: transparent;
  color: var(--goud);
}

/* -------------------------------------------------------------- overzicht */
.hoofdstuk-kaart {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--lijn);
  padding: 18px 0;
  cursor: pointer;
  color: inherit;
}

.hoofdstuk-kaart:hover .hoofdstuk-titel {
  color: var(--goud);
}

.hoofdstuk-nummer {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--goud);
}

.hoofdstuk-titel {
  font-size: 1.25rem;
  margin: 2px 0 6px;
  transition: color 0.15s ease;
}

.hoofdstuk-meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  color: var(--inkt-zacht);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-balk {
  flex: 1;
  height: 4px;
  max-width: 140px;
  background: var(--lijn);
  border-radius: 99px;
  overflow: hidden;
}

.mini-balk span {
  display: block;
  height: 100%;
  background: var(--groen);
  border-radius: 99px;
}

.odo {
  font-style: italic;
  color: var(--inkt-zacht);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

/* ------------------------------------------------------------------ quiz */
/* Twee kolommen: links altijd het overzicht, rechts waar je aan werkt.
   Op een telefoon schuift de linkerkolom in en uit. */

#quiz {
  padding: 0;
  min-height: 100vh;
}

.werkblad {
  display: flex;
  min-height: 100vh;
}

/* --------------------------------------------------------------- zijbalk */
.zijbalk {
  width: 290px;
  flex-shrink: 0;
  background: var(--papier-diep);
  border-right: 1px solid var(--lijn);
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.zijbalk-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.zijbalk-sluiten {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--inkt-zacht);
  cursor: pointer;
  padding: 0 6px;
}

.voortgang-blok {
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: 11px;
  padding: 13px 15px;
  margin-bottom: 20px;
}

.voortgang-cijfer {
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.voortgang-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: var(--inkt-zacht);
  margin-top: 2px;
}

.voortgang-balk {
  height: 5px;
  background: var(--lijn);
  border-radius: 99px;
  margin-top: 10px;
  overflow: hidden;
}

.voortgang-balk span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--goud);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.zijbalk-nav {
  flex: 1;
  margin-bottom: 16px;
}

.nav-groep {
  margin-bottom: 14px;
}

.nav-kop {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--goud);
  font-weight: 600;
  padding: 0 8px;
  margin: 0 0 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--inkt);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.86rem;
  text-align: left;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--lijn);
}

.nav-item.actief {
  background: color-mix(in srgb, var(--goud) 16%, var(--papier));
  color: var(--goud-diep);
  font-weight: 600;
}

.nav-naam {
  flex: 1;
  min-width: 0;
}

.stip {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--lijn);
  flex-shrink: 0;
  border: 1px solid var(--inkt-zacht);
}

.stip.half {
  background: var(--goud);
  border-color: var(--goud);
  opacity: 0.5;
}

.stip.vol {
  background: var(--groen);
  border-color: var(--groen);
}

.nav-tel {
  font-size: 0.73rem;
  color: var(--inkt-zacht);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.zijbalk-terug {
  width: 100%;
}

.zijbalk-waas {
  display: none;
}

/* ------------------------------------------------------------ werkgebied */
.werkgebied {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.werk-kop {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--papier);
  border-bottom: 1px solid var(--lijn);
  padding: 13px 32px calc(13px);
  padding-top: calc(13px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menuknop {
  display: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  padding: 8px 14px;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  background: transparent;
  color: var(--inkt-zacht);
  cursor: pointer;
}

.stap-teller {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: var(--inkt-zacht);
  margin-left: auto;
}

.werk-inhoud {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 32px 120px;
}

.hoofdstuk-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--goud);
  margin: 0;
}

/* ------------------------------------------------------------ formulier */
.veld {
  margin-bottom: 28px;
}

.veld label,
.veld legend {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--inkt);
}

input[type="text"],
input[type="date"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--inkt);
  background: var(--papier-diep);
  border: 1px solid var(--lijn);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--goud);
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

textarea.groot {
  min-height: 240px;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.optie {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
  cursor: pointer;
  font-size: 0.97rem;
}

.optie input {
  margin: 4px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--goud);
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ voet */
.quiz-voet {
  position: sticky;
  bottom: 0;
  background: var(--papier);
  border-top: 1px solid var(--lijn);
  box-shadow: 0 -4px 20px var(--schaduw);
}

.quiz-voet-binnen {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 32px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-voet-binnen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.bewaard {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: var(--groen);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.bewaard.zichtbaar {
  opacity: 1;
}

/* -------------------------------------------------------------- toegang */
.toegang-formulier {
  margin-bottom: 8px;
}

.toegang-formulier .veld {
  margin-bottom: 20px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--inkt);
  background: var(--papier-diep);
  border: 1px solid var(--lijn);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--goud);
}

.veld-hulp {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: var(--inkt-zacht);
  margin: 7px 0 0;
}

.toestemming {
  align-items: flex-start;
  margin: 4px 0 20px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--inkt-zacht);
}

.tekstlink {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--goud);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tekstlink:hover {
  color: var(--goud-diep);
}

.wissel {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: var(--inkt-zacht);
  text-align: center;
  margin: 4px 0 0;
}

.foutmelding,
.goedmelding {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 0 0 18px;
}

.foutmelding {
  background: color-mix(in srgb, #b4432c 12%, var(--papier));
  color: color-mix(in srgb, #b4432c 75%, var(--inkt));
  border: 1px solid color-mix(in srgb, #b4432c 28%, transparent);
}

.goedmelding {
  background: color-mix(in srgb, var(--groen) 14%, var(--papier));
  color: color-mix(in srgb, var(--groen) 80%, var(--inkt));
  border: 1px solid color-mix(in srgb, var(--groen) 30%, transparent);
}

.accountregel {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  color: var(--inkt-zacht);
  margin: 10px 0 0;
}

.accountregel strong {
  color: var(--inkt);
  font-weight: 600;
}

/* -------------------------------------------------------- privacytekst */
.tekstblok h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 6px;
}

.tekstblok p {
  color: var(--inkt-zacht);
  margin: 0 0 12px;
}

.tekstblok a {
  color: var(--goud);
}

/* --------------------------------------------- vaste balk onderaan alles */
.vaste-voet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--papier);
  border-top: 1px solid var(--lijn);
  padding: 9px 0;
  z-index: 5;
}

.vaste-voet-binnen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.76rem;
  color: var(--inkt-zacht);
}

.vaste-disclaimer {
  margin: 0;
}

.vaste-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.vaste-links .tekstlink {
  font-size: 0.76rem;
}

/* Ruimte houden zodat de balk niets afdekt. */
.scherm {
  padding-bottom: 92px;
}

/* ------------------------------------------------------- proefperiode */
.proefmelding {
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 24px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
}

.proefmelding-proef {
  background: var(--papier-diep);
  color: var(--inkt-zacht);
  border: 1px solid var(--lijn);
}

.proefmelding-verlopen {
  background: color-mix(in srgb, var(--goud) 14%, var(--papier));
  color: color-mix(in srgb, var(--goud-diep) 85%, var(--inkt));
  border: 1px solid color-mix(in srgb, var(--goud) 35%, transparent);
}

.proefmelding strong {
  color: var(--inkt);
}

.proefmelding-tekst {
  margin: 0 0 12px;
}

.proefmelding .knop-klein {
  margin: 0;
}

/* Velden die niet meer bewerkt mogen worden. */
input[readonly],
textarea[readonly] {
  opacity: 0.72;
  cursor: default;
}

.optie input:disabled + span {
  opacity: 0.5;
}

/* --------------------------------------------------------------- FAQ */
.tekstblok details {
  border-bottom: 1px solid var(--lijn);
  padding: 4px 0;
}

.tekstblok summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tekstblok summary::-webkit-details-marker {
  display: none;
}

.tekstblok summary::before {
  content: "+";
  color: var(--goud);
  font-size: 1.2rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.tekstblok details[open] summary::before {
  content: "−";
}

.tekstblok details[open] summary {
  color: var(--goud);
}

.tekstblok details p {
  padding-left: 24px;
  margin: 0 0 14px;
}

/* ------------------------------------------------------------ voortgang */
.voortgang-samenvatting {
  background: var(--papier-diep);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: var(--inkt-zacht);
}

.voortgang-samenvatting strong {
  color: var(--inkt);
  font-weight: 600;
}

/* ====================================================== op de telefoon */

/* Ruimte vrijhouden voor de inkeping bovenaan en de streep onderaan bij
   moderne telefoons, zodat er niets onder wegvalt. */
.quiz-kop {
  padding-top: env(safe-area-inset-top);
}

.quiz-voet,
.vaste-voet {
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.binnen {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Voorkomt dat de telefoon inzoomt zodra je in een veld tikt. Dat gebeurt
   bij lettergroottes onder de 16 pixels. */
input,
textarea,
select {
  font-size: max(16px, 1rem);
}

/* Als de app vanaf het beginscherm wordt geopend, is er geen adresbalk die
   je per ongeluk kunt aantikken - dan mag alles iets ruimer. */
@media (display-mode: standalone) {
  .quiz-binnen {
    padding-top: 28px;
  }
}

.knop-installeren {
  display: block;
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .binnen {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  body {
    font-size: 16px;
  }
  /* Vingers zijn geen muizen: knoppen en aanvinkhokjes ruimer maken. */
  .knop {
    padding: 14px 22px;
  }
  .optie {
    padding: 12px 0;
  }
  .optie input {
    width: 21px;
    height: 21px;
  }
  .tekstblok summary {
    padding: 17px 0;
  }
  .titel {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .quiz-voet-binnen .bewaard {
    display: none;
  }
  /* Op een smal scherm past de disclaimer niet naast de links. */
  .vaste-voet-binnen {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .scherm {
    padding-bottom: 112px;
  }
  .logo {
    width: 150px;
    margin-bottom: 16px;
  }
  /* Op een smal scherm is er geen ruimte voor knop + logo + teller. */
  .logo-klein {
    display: none;
  }
}

/* ------------------------------------------------------------- vlinder */
/* De vlinder hoort bij het boek: transformatie, voortleven. Hij staat op de
   plekken waar het gevoel telt (net binnen, en bij de terugblik). Op de
   voordeur staat het kluis-logo, want daar telt vertrouwen. */
.vlinder {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 auto 24px;
  opacity: 0.95;
}

@media (prefers-color-scheme: dark) {
  .vlinder {
    filter: brightness(1.12);
  }
}

:root[data-theme="dark"] .vlinder {
  filter: brightness(1.12);
}

:root[data-theme="light"] .vlinder {
  filter: none;
}

@media (max-width: 520px) {
  .vlinder {
    width: 130px;
  }
}

/* ------------------------------------------------------ verwijzing quiz */
/* Voor bezoekers die nog twijfelen: eerst zeven vragen, dan pas een account. */
.quizverwijzing {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--papier-diep);
  border-radius: 12px;
}

.quizverwijzing p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  color: var(--inkt-zacht);
  line-height: 1.5;
  margin: 0 0 14px;
}

.quizverwijzing strong {
  color: var(--inkt);
}

.quizverwijzing .knop {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* ---------------------------------------------------- documenten uploaden */
.veld-bestanden .veld-hulp {
  margin: 0 0 12px;
}

.bestandenlijst {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.bestand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--papier-diep);
  border: 1px solid var(--lijn);
  border-radius: 10px;
  margin-bottom: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
}

.bestand-naam {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--goud);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.bestand-naam:hover {
  color: var(--goud-diep);
}

.bestand-grootte {
  color: var(--inkt-zacht);
  font-size: 0.8rem;
  white-space: nowrap;
}

.bestand-weg {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--inkt-zacht);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.bestand-weg:hover:not(:disabled) {
  color: #b4432c;
}

.bestand-weg:disabled {
  opacity: 0.4;
  cursor: default;
}

.bestand-leeg {
  color: var(--inkt-zacht);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  padding: 4px 0 8px;
}

.bestand-kies {
  display: inline-block;
  cursor: pointer;
}

.bestandmelding {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.84rem;
  margin: 0 0 12px;
}

.bestandmelding.goed {
  color: var(--groen);
}

.bestandmelding.fout {
  color: #b4432c;
}

.bestandmelding.info {
  color: var(--inkt-zacht);
}

/* ------------------------------------- invulscherm op tablet en telefoon */
@media (max-width: 900px) {
  /* De zijbalk schuift over de inhoud heen in plaats van ernaast te staan. */
  .zijbalk {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: min(300px, 85vw);
    max-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 4px 0 24px var(--schaduw);
    padding-top: calc(20px + env(safe-area-inset-top));
  }

  .zijbalk.open {
    transform: none;
  }

  .zijbalk-sluiten {
    display: block;
  }

  .zijbalk-waas {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.4);
  }

  .zijbalk-waas[hidden] {
    display: none;
  }

  .menuknop {
    display: inline-block;
  }

  .werk-kop {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .werk-inhoud {
    padding: 28px max(20px, env(safe-area-inset-left)) 110px;
  }

  .quiz-voet-binnen {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

/* ---------------------------------------------------------------- slogan */
/* Direct onder de naam: wat dit portaal is, in één zin. */
/* Twee regels: de eerste raakt, de tweede legt uit. Eén zin kan niet
   allebei tegelijk. */
.slogan {
  font-size: 1.22rem;
  line-height: 1.4;
  color: var(--inkt);
  font-style: italic;
  margin: 0 0 12px;
  max-width: 28ch;
}

.omschrijving {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--inkt-zacht);
  margin: 0 0 20px;
  max-width: 42ch;
}

.slogan + .ondertitel {
  font-size: 0.95rem;
  margin-bottom: 28px;
}

@media (max-width: 520px) {
  .slogan {
    font-size: 1.05rem;
  }
}
