/* totalis.nl: wat overal geldt.

   De pagina's zijn een kopie van de oude site en dragen hun maten als
   maatklassen in de html (opbouw.css, uit tools/opbouw.py). Hier staat alleen
   wat geen maat is: de lettertypen, de standaard per soort element, en wat
   een klasse met een waarde in de naam niet kan zeggen (een kleur onder de
   muis, een schaduw, het uitklappen van het menu).

   De standaard per element in het eerste blok is ook de standaard waar
   tools/overzetten.py vanuit ging (STANDAARD in dat script): een maatklasse
   staat alleen in de html waar een element daarvan afwijkt. Verander je hier
   de marge van een alinea, dan verschuift dus elke pagina.

   Kleuren komen uit tokens.css (tools/tokens.py); geen hexwaarden hier. */

@font-face { font-family: "Oxygen"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/oxygen-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oxygen"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/oxygen-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oxygen"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/oxygen-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oxygen"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/oxygen-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/lato-latin-ext-300.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/lato-latin-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-tekst: "Oxygen", sans-serif;
  --font-kop: "Lato", sans-serif;
  --font-systeem: Helvetica, Arial, sans-serif;
}

/* ---- De standaard per soort element (zie de kop van dit bestand) ---- */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 12px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-tekst); font-size: 12px; font-weight: 400; line-height: 1.8; color: var(--totalis-zwart); background: var(--totalis-wit); }
h1, h2, h3, h4, h5, h6 { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
p { margin: 0 0 1.5em; }
ul, ol { margin: 0 0 1.5em 1.655em; padding: 0; }
li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; }
strong, b, th { font-weight: 700; }
hr { margin: 0; border: 0; height: 0; overflow: hidden; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
td, th { padding: 0.5em 0.625em; vertical-align: middle; text-align: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---- Wat geen maat is ---- */

.skip { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: 12px 16px; background: var(--totalis-wit); color: var(--totalis-zwart); }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--totalis-zwart); outline-offset: 2px; }

/* Een icoon is een svg-bestand als masker: de kleur is de tekstkleur. De
   maat staat als maatklasse op het element (b- en h-). */
.icoon { display: inline-block; flex: none; vertical-align: -0.125em; background: currentColor; -webkit-mask: var(--icoon) center / contain no-repeat; mask: var(--icoon) center / contain no-repeat; }
.i-chevron-circle-right { --icoon: url("/assets/iconen/chevron-circle-right.svg"); }
.i-user { --icoon: url("/assets/iconen/user.svg"); }
.i-download { --icoon: url("/assets/iconen/download.svg"); }
.i-check { --icoon: url("/assets/iconen/check.svg"); }
.i-cogs { --icoon: url("/assets/iconen/cogs.svg"); }
.i-map-marker { --icoon: url("/assets/iconen/map-marker.svg"); }
.i-home { --icoon: url("/assets/iconen/home.svg"); }
.i-angle-down { --icoon: url("/assets/iconen/angle-down.svg"); }
.i-long-arrow-right { --icoon: url("/assets/iconen/long-arrow-alt-right.svg"); }
.i-arrow-right { --icoon: url("/assets/iconen/arrow-right.svg"); }
.i-arrow-left { --icoon: url("/assets/iconen/arrow-left.svg"); }
.i-image { --icoon: url("/assets/iconen/image.svg"); }
.i-times { --icoon: url("/assets/iconen/times.svg"); }

/* Een vak met zwevende kolommen (de oude bouwstenen van het thema): houdt
   zijn hoogte en houdt de marge van zijn eerste en laatste kind binnen. */
.clearfix::before, .clearfix::after { content: " "; display: table; }
.clearfix::after { clear: both; }

/* Een beeld dat als achtergrond achter een vak ligt. */
.laag { pointer-events: none; }

/* Tekst die alleen een schermlezer voorleest. */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Schaduwen. Die van de knop en de kaart groeien mee met de lettergrootte,
   zoals op de oude site. */
.schaduw-knop { box-shadow: 0 0.15em 0.65em 0 rgb(0 0 0 / 0.25); }
.schaduw-kaart { box-shadow: 0 0.5em 2em 0.5px rgb(0 0 0 / 0.25); }
.schaduw-zacht { box-shadow: 0 0.25em 2em 0 rgb(0 0 0 / 0.15); }
.schaduw-balk { box-shadow: 0 1.8px 24px 0 rgb(0 0 0 / 0.15); }
.schaduw-kop { box-shadow: 0 2.4px 32px 0 rgb(0 0 0 / 0.15); }
.schaduw-logo { box-shadow: 1.6px 1.6px 16px 1.6px rgb(0 0 0 / 0.85); }
.schaduw-tekst, .held-kop { text-shadow: 2.4px 2.4px 3.2px var(--totalis-zwart); }

/* ---- De kop ---- */

/* Vanaf 1200 px ligt de balk doorzichtig over het beeld. Met `vast` (gezet
   door het script in partials/kop zodra het beeld uit zicht is) staat hij
   dicht en vast bovenaan. */
.balk-breed { top: 0; left: 0; background: var(--totalis-grijs-50); }
.balk-breed.vast { position: fixed; background: var(--totalis-grijs); }
.hoofdmenu > li > a:hover, .hoofdmenu > li > a:focus-visible, .hoofdmenu a.actief, .hoofdmenu > li:hover > a, .hoofdmenu > li:focus-within > a { background: var(--totalis-geel); }
.submenu { display: none; top: 100%; z-index: 9999; }
.heeft-sub:hover > .submenu, .heeft-sub:focus-within > .submenu { display: block; }
.heeft-sub.dicht > .submenu { display: none; }
.submenu a:hover, .submenu a:focus-visible { background: var(--totalis-wit-80); }
.submenu a.actief { font-weight: 700; }

/* Tot 1200 px: de balk met de menuknop staat vast bovenaan; het lege vak
   eronder houdt zijn plaats in de pagina vrij. */
.balk-smal { position: fixed; top: 0; left: 0; z-index: 9999; }
.menuknop { padding: 0; border: 0; cursor: pointer; }
.streepjes { display: block; width: 20px; height: 2px; background: var(--totalis-wit); box-shadow: 0 -6px 0 var(--totalis-wit), 0 6px 0 var(--totalis-wit); }
html:not(.js) .menuknop { display: none; }

.menupaneel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001; width: min(384px, 100% - 6px); padding: 32px; overflow-y: auto; background: var(--totalis-grijs); box-shadow: 0 0 32px 0 rgb(0 0 0 / 0.25); font-size: 16px; line-height: 1; transform: translateX(105%); visibility: hidden; transition: transform 0.3s ease, visibility 0s 0.3s; }
.menudoek { position: fixed; inset: 0; z-index: 10000; background: rgb(0 0 0 / 0.75); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.menu-open .menupaneel { transform: none; visibility: visible; transition: transform 0.3s ease; }
.menu-open .menudoek { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.menu-open body { overflow: hidden; }
.menusluit { position: absolute; top: 0; right: 0; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--totalis-zwart-50); cursor: pointer; }
.paneelmenu, .paneelsub { margin: 0; list-style: none; }
.paneelrij { display: flex; align-items: center; min-height: 58px; margin-top: 2px; padding: 16px 20px 16px 25px; border-radius: 4px; background: rgb(0 0 0 / 0.07); }
.paneelrij.actief, a.paneelrij:hover { background: var(--totalis-geel); }
div.paneelrij { padding: 0; }
div.paneelrij > a { flex: 1; padding: 21px 20px 21px 25px; }
.subknop { align-self: stretch; width: 58px; padding: 0; border: 0; background: none; cursor: pointer; }
.subknop[aria-expanded="true"] .icoon { transform: rotate(180deg); }
.paneelsub { display: none; background: var(--totalis-paneel-sub); }
.paneelsub.open { display: block; }
.paneelsub a { display: flex; align-items: center; min-height: 43.6px; padding: 8.8px 20px 8.8px 25px; color: var(--totalis-zwart-50); }
.paneelsub a:hover, .paneelsub a[aria-current] { color: var(--totalis-zwart); }
/* Zonder javascript is er geen knop; het menu staat dan onder de kop. */
html:not(.js) .menupaneel { position: static; width: auto; transform: none; visibility: visible; box-shadow: none; }
html:not(.js) .menusluit, html:not(.js) .subknop { display: none; }
html:not(.js) .paneelsub { display: block; }
@media (min-width: 1200px) { .menupaneel, .menudoek { display: none; } }
@media (prefers-reduced-motion: reduce) { .menupaneel, .menudoek, [data-dia] > img { transition: none; } }

/* Het beeld bovenaan: hooguit 300 px hoog (650 op de startpagina); wat
   niet past valt aan de onderkant weg. De titel of het logo staat in het
   midden van het vak. */
.held { max-height: 300px; }
.held-in { top: 0; bottom: 0; left: 0; right: 0; }
.held-hoog { max-height: 650px; }
.dia { flex: none; }

/* Beelden die elkaar aflossen (het script staat in layouts/pagina): ze
   liggen op elkaar en alleen het beeld met `toon` is te zien. */
.diareeks { display: grid; }
[data-dia] > img { grid-area: 1 / 1; opacity: 0; transition: opacity 1s ease; }
[data-dia] > img.toon { opacity: 1; }

/* ---- Het formulier (contact en support) ----
   Maten en kleuren van het formulier op de oude site (Forminator). */
.formulier { font-size: 14px; line-height: 1.4; }
.veld { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.veld > label:not(.vink), .veld > legend { display: block; padding: 0; font-size: 12px; font-weight: 700; line-height: 20.4px; color: var(--totalis-veld-rand); }
.ster { color: var(--totalis-rood); }
.veld input[type="text"], .veld input[type="email"], .veld input[type="tel"], .veld textarea { display: block; width: 100%; padding: 9px; border: 1px solid var(--totalis-veld-rand); border-radius: 2px; background: var(--totalis-veld-vlak); font-size: 16px; line-height: 20.8px; }
.veld textarea { height: 140px; line-height: 20px; resize: vertical; }
.veld [aria-invalid="true"] { border-color: var(--totalis-rood); }
.vink { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; line-height: 20px; cursor: pointer; }
.vink input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--totalis-zwart); }
.keuzes { display: flex; flex-wrap: wrap; gap: 0 20px; }
.veldfout { margin: 4px 0 0; font-size: 12px; color: var(--totalis-rood); }
.verzend { padding: 10px; border: 0; border-radius: 2px; background: var(--totalis-geel); color: var(--totalis-knoptekst); font-size: 14px; font-weight: 500; line-height: 20.3px; cursor: pointer; }
.verzend:hover, .verzend:focus-visible { background: var(--totalis-zwart); color: var(--totalis-wit); }
.verzend:disabled { opacity: 0.6; cursor: default; }
.melding { margin: 0 0 20px; padding: 12px 14px; border-left: 4px solid; background: var(--totalis-grijs-vlak); }
.melding-goed { border-color: var(--totalis-groen); color: var(--totalis-groen); }
.melding-fout { border-color: var(--totalis-rood); color: var(--totalis-rood); }
@media (max-width: 479.98px) { .verzend { width: 100%; } }

/* De link naar de kaart, op de plek van de kaart van de oude site. */
.kaartlink:hover, .kaartlink:focus-visible { text-decoration: underline; }

/* ---- Het nieuws ---- */

/* De tekst van een bericht is Markdown en heeft dus geen maatklassen; de
   marges van alinea's en lijsten zijn de standaard bovenaan dit bestand. */
.bericht img { display: inline-block; vertical-align: bottom; }
.bericht h2, .bericht h3 { margin: 1.5em 0 0.5em; font-weight: 700; }
.bericht a { text-decoration: underline; }
.kaart:hover h2, .kaart:focus-visible h2 { text-decoration: underline; }
.bladzijden a:hover, .bladzijden a:focus-visible { background: var(--totalis-zwart-30); }
