/* Toekanmuseum: een ernstig museum, met de grap in de feiten.
   Kleuren van de borden: donkergroen met oranje; papier als achtergrond. Geen externe lettertypes. */
:root {
  --groen: #1F3329;
  --groen-2: #2A4537;
  --oranje: #F28C28;
  --oranje-tekst: #B2550B;
  --papier: #FBF6EC;
  --wit: #FFFFFF;
  --inkt: #1B2A22;
  --grijs: #56645B;
  --lijn: #E4DCCB;
  --licht: #EEF2EC;
  --kop: "Century Schoolbook", "Cambria", Georgia, "Times New Roman", serif;
  --tekst: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --rond: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--inkt); font: 17px/1.55 var(--tekst); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oranje-tekst); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--oranje); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--kop); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 24px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p { margin: 0 0 12px; }
figure { margin: 0; }

.binnen { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px));
          padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* kop */
.kop { background: var(--groen); color: var(--papier); position: sticky; top: 0; z-index: 10; }
.kop-binnen { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
              padding-top: 10px; padding-bottom: 10px; }
.merk { display: flex; align-items: center; gap: 10px; color: var(--papier); text-decoration: none; }
.merk img { width: 60px; height: 60px; }
.merk b { display: block; font-family: var(--kop); font-size: 1.3rem; letter-spacing: .5px; }
.merk small { display: block; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; opacity: .8; }
nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
nav a { color: var(--papier); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0;
        border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--oranje); }

/* opening */
.held { padding: 48px 0 32px; }
.held-binnen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.bovenregel { color: var(--oranje-tekst); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .85rem; }
.intro { font-size: 1.15rem; color: var(--groen-2); margin: 16px 0 24px; }
.smal { max-width: 62ch; }
.held-foto img { border-radius: var(--rond); }
figcaption { font-size: .85rem; color: var(--grijs); margin-top: 8px; }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; }
.knop { display: inline-block; background: var(--oranje); color: var(--inkt); font-weight: 700; text-decoration: none;
        padding: 12px 20px; border-radius: 999px; }
.knop:hover { background: #E07A18; }
.knop-licht { background: transparent; color: var(--groen); box-shadow: inset 0 0 0 2px var(--groen); }
.knop-licht:hover { background: var(--licht); }

/* blokken */
.blok { padding: 64px 0; }
.blok-donker { background: var(--groen); color: var(--papier); }
.blok-donker h2, .blok-donker figcaption { color: var(--papier); }
.blok-licht { background: var(--licht); }
.raster { display: grid; gap: 24px; }
.raster > * { min-width: 0; }
.drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.twee { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--rond); padding: 24px; }
.groot { font-family: var(--kop); font-size: 1.6rem; font-weight: 700; color: var(--groen); margin-bottom: 8px; }
.mail { overflow-wrap: anywhere; }
.voetnoot { font-size: .92rem; color: var(--grijs); }
.tussen { margin-top: 20px; }
[hidden] { display: none !important; }
.webcam { scroll-margin-top: 96px; }
.vergroot { display: block; cursor: zoom-in; margin-top: 4px; border-radius: 8px; }

/* webcambeeld: de foto, met de helderheid van het uur (webcam.js zet --helder en --kleur), en het uur erop */
.webcam-beeld { display: block; position: relative; container-type: inline-size; overflow: hidden; border-radius: 8px;
                background: #0B0F0C; }
.webcam-beeld img { width: 100%; filter: brightness(var(--helder, 1)) saturate(var(--kleur, 1));
                    transition: opacity .2s; }
.webcam-beeld.laadt img { opacity: .15; }
.webcam-naam, .webcam-tijd { position: absolute; top: 2.2cqi; color: #fff; font: 700 clamp(9px, 2.1cqi, 19px)/1.25
  Consolas, "Courier New", monospace; letter-spacing: .04em; text-shadow: 0 0 2px #000, 0 1px 3px #000; }
.webcam-naam { left: 2.6cqi; }
.webcam-tijd { right: 2.6cqi; text-align: right; }
.vergroot .webcam-beeld { border: 1px solid var(--lijn); }
.vergroot:hover .webcam-beeld { border-color: var(--oranje); }

/* de webcam als popup, ook zonder script: :target toont de lichtbak, Sluit of een klik ernaast gaat terug */
.lichtbak { display: none; }
.lichtbak:target { display: flex; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center;
                   padding: 16px; }
.lichtbak-achter { position: absolute; inset: 0; background: #0F1914; cursor: zoom-out; }
.lichtbak-inhoud { position: relative; display: grid; gap: 14px; justify-items: center; color: var(--papier);
                   text-align: center; }
/* zo breed als past, in de breedte en in de hoogte; 2.0445 is de verhouding van de foto (1793 x 877) */
.lichtbak .webcam-beeld { width: min(calc(100vw - 32px), 1793px, calc((100vh - 150px) * 2.0445)); }
.lichtbak-knoppen { display: flex; gap: 12px; margin: 0; }
.lichtbak .knop-licht { color: var(--papier); box-shadow: inset 0 0 0 2px var(--papier); }
.lichtbak .knop-licht:hover { background: rgba(251, 246, 236, .12); }
.lichtbak-regel { margin: 0; font-size: .92rem; opacity: .8; }

.tarieven { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.tarieven th, .tarieven td { padding: 10px 0; border-bottom: 1px solid var(--lijn); text-align: left; }
.tarieven td { text-align: right; font-weight: 700; }

/* collectie: tekeningen in de stijl van de borden, op het donkergroen */
.stuk img { border-radius: 10px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
            box-shadow: 0 0 0 1px rgba(251, 246, 236, .14); }
.stuk figcaption { color: var(--papier); font-size: .95rem; margin-top: 12px; }
.stuk figcaption b { display: block; font-family: var(--kop); font-size: 1.15rem; }
.geen-breuk { white-space: nowrap; }
.regel { margin-top: 28px; font-family: var(--kop); font-size: 1.3rem; }

/* dertien vragen */
.vragen { list-style: none; counter-reset: bord; padding: 0; margin: 24px 0 0; display: grid;
          grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.vragen li { counter-increment: bord; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--rond);
             overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.vragen img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.vragen b { font-family: var(--kop); font-size: 1.12rem; padding: 14px 16px 4px; }
.vragen b::before { content: "Bord " counter(bord); display: block; font-family: var(--tekst); font-size: .78rem;
                    letter-spacing: 1.5px; text-transform: uppercase; color: var(--oranje-tekst); margin-bottom: 4px; }
.vragen b { padding-bottom: 16px; }

/* activiteiten */
/* museumpas en VR: elk een staand beeld van 720 x 900 op dezelfde breedte, zodat de twee tegels even hoog zijn */
.kaart-beeld { display: block; width: 60%; margin: 0 auto 12px; border-radius: 10px; overflow: hidden; }
.activiteiten { margin-top: 0; }

/* wandelen: per wandeling de kaart, de afstand en de links */
.wandelingen { margin-top: 24px; align-items: start; }
.wandeling img { border-radius: 8px; border: 1px solid var(--lijn); margin-bottom: 16px; }
.afstand { font-family: var(--kop); font-size: 1.4rem; font-weight: 700; color: var(--oranje-tekst); }

/* vrienden: de pagina /vrienden/, het formulier en de lidkaart (ook op de kaartpagina van de dienst vrienden) */
.held-beeld img { width: min(100%, 400px); margin: 0 auto; }
.voordelen { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px;
             grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.voordelen li { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--rond); padding: 24px; }
.voordelen img { width: 96px; height: 96px; margin-bottom: 14px; }
.voordelen h3 { font-size: 1.15rem; }
.voordelen p { margin: 0; color: var(--grijs); }
.voordelen li > h3:last-child { margin-bottom: 0; }
/* het vriendenblok op de startpagina: logo naast de titel, daaronder de vier voordelen */
.vrienden-kop { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; align-items: center; }
.vrienden-kop h2 { margin-bottom: 8px; }
.vrienden-kop .intro { margin: 0 0 20px; }
.inschrijven { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; margin-top: 0; }
.formulier { margin: 0; }
.veld { display: grid; gap: 6px; margin: 0 0 18px; }
.veld label { font-weight: 600; }
.veld small, .vrij { color: var(--grijs); font-size: .9rem; font-weight: 400; }
.formulier input[type="text"], .formulier input[type="email"], .formulier select {
  font: inherit; color: var(--inkt); background: var(--wit); width: 100%; padding: 10px 12px;
  border: 1px solid #C9BFA9; border-radius: 10px; }
.formulier input:focus-visible, .formulier select:focus-visible, button:focus-visible {
  outline: 3px solid var(--oranje); outline-offset: 2px; }
.vinkje { display: flex; gap: 10px; align-items: flex-start; }
.vinkje input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--groen); flex: none; }
.vinkje label { font-weight: 400; }
/* honingpot: een mens ziet dit veld niet, een robot vult het in */
.verborgen { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button.knop { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.inschrijven-badge { align-self: center; }
.inschrijven-badge img { width: min(100%, 280px); margin: 0 auto; transform: rotate(-8deg); }

/* lidkaart: 85,6 x 54 mm, zoals een bankkaart; de maten binnenin volgen de breedte van de kaart (cqi) */
.lidkaarten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.lidkaarten figcaption { text-align: center; }
.lidkaart { container-type: inline-size; position: relative; aspect-ratio: 85.6 / 54; overflow: hidden;
            border-radius: 3.7% / 5.9%; box-shadow: 0 10px 28px rgba(31, 51, 41, .22); }
.lidkaart p, .lidkaart dl, .lidkaart ul { margin: 0; }
.voorkant { background: var(--groen) url("/beeld/lidkaart-bladeren.svg") center / cover no-repeat; color: var(--papier); }
.lk-kop { position: absolute; left: 6cqi; right: 6cqi; top: 5.5cqi; display: flex; align-items: center; gap: 2.5cqi; }
.lk-kop img { width: 11cqi; height: 11cqi; }
.lk-merk b { display: block; font-family: var(--kop); font-size: 4.6cqi; line-height: 1.1; }
.lk-merk small { display: block; font-size: 2.4cqi; letter-spacing: .5cqi; text-transform: uppercase; opacity: .8; }
.lk-soort { margin-left: auto; align-self: flex-start; padding-top: 1cqi; font-size: 2.6cqi; font-weight: 700;
            letter-spacing: .8cqi; text-transform: uppercase; color: var(--oranje); }
.lk-naam { position: absolute; left: 6cqi; right: 32cqi; top: 25cqi; font-family: var(--kop); font-weight: 700;
           font-size: 7cqi; line-height: 1.05; overflow-wrap: anywhere; }
.lk-naam.lang { font-size: 5cqi; }
.lk-naam small { display: block; margin-bottom: 1.2cqi; font-family: var(--tekst); font-size: 2.4cqi;
                 letter-spacing: .6cqi; text-transform: uppercase; color: var(--oranje); }
.lk-velden { position: absolute; left: 6cqi; bottom: 9.5cqi; display: flex; gap: 3.5cqi; }
.lk-velden dt { font-size: 2.2cqi; letter-spacing: .4cqi; text-transform: uppercase; opacity: .75; }
.lk-velden dd { margin: 0; font-size: 3.6cqi; font-weight: 700; font-variant-numeric: tabular-nums; }
.lk-geldig { position: absolute; left: 6cqi; bottom: 4cqi; font-size: 2.4cqi; font-style: italic; opacity: .8; }
.lk-badge { position: absolute; right: 4cqi; bottom: 3cqi; width: 23cqi; transform: rotate(-10deg); }
.achterkant { background: var(--papier); color: var(--inkt); border: 1px solid var(--lijn); }
.lk-strook { position: absolute; left: 0; right: 0; top: 5cqi; height: 9cqi; background: var(--groen); }
.lk-titel { position: absolute; left: 6cqi; top: 17.5cqi; font-size: 2.6cqi; font-weight: 700; letter-spacing: .6cqi;
            text-transform: uppercase; color: var(--oranje-tekst); }
.lk-voordelen { position: absolute; left: 6cqi; right: 5cqi; top: 22cqi; padding-left: 3.5cqi; font-size: 3.05cqi;
                line-height: 1.35; }
.lk-voordelen li { margin-bottom: .5cqi; }
.lk-handtekening { position: absolute; left: 6cqi; top: 43cqi; width: 52cqi; height: 7cqi; border: 1px solid var(--lijn);
                   background: repeating-linear-gradient(-45deg, var(--wit) 0 1.2cqi, var(--licht) 1.2cqi 2.4cqi); }
.lk-handtekening span { position: absolute; left: 1.5cqi; top: .6cqi; font-size: 1.9cqi; color: var(--grijs); }
.lk-klein { position: absolute; left: 6cqi; right: 6cqi; bottom: 3cqi; font-size: 2.1cqi; line-height: 1.3;
            color: var(--grijs); }

/* afdrukken: alleen de lidkaart, op ware grootte */
@media print {
  .kop, .voet, .geen-afdruk { display: none; }
  body { background: #fff; }
  .blok, .held { padding: 0; }
  .lidkaarten { grid-template-columns: 85.6mm 85.6mm; gap: 6mm; }
  .lidkaarten figcaption { display: none; }
  .lidkaart { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* shop */
.shop { align-items: center; margin-top: 0; }
.lijst { padding-left: 20px; margin: 0; }
.lijst li { margin-bottom: 6px; }

/* voet */
.voet { background: var(--groen); color: var(--papier); padding: 40px 0 48px; font-size: .95rem; }
.voet a { color: #F7B66E; }
.voet summary { cursor: pointer; font-weight: 600; }
.voet ul { padding-left: 18px; margin: 10px 0 0; font-size: .85rem; opacity: .9; }
.voet .voet-links { list-style: none; padding: 0; margin: 0 0 12px; font-size: .95rem; opacity: 1; }
.voet .voet-links li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .held-binnen, .drie, .twee, .inschrijven { grid-template-columns: minmax(0, 1fr); }
  .lidkaarten { grid-template-columns: minmax(0, 480px); }
  .vrienden-kop { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vrienden-kop img { width: 220px; }
  .held { padding-top: 28px; }
  .blok { padding: 44px 0; }
  .kop { position: static; }
}
