/*
  Huisstijl LYNCK Technology (lynck.tech): Montserrat, koraal (#ea5546) als
  accent, navy (#001c32) in de lijnen en vlakken. De achtergrond blijft echt
  zwart (#000): zwart = spiegel, daar zie je jezelf.
  Kopie van de Smart Concepts-spiegel (smartconcepts-nl/spiegel); alleen
  huisstijl, logo's, presentaties en plaats zijn anders.
  Lettertype zelf gehost (Google Fonts, SIL OFL).

  Indeling: logo + klok bovenaan, leeg spiegelvlak op ooghoogte,
  presentaties onderaan op handhoogte. Liggende schermen: spiegel
  links, presentaties in een kolom rechts.

  Schalen: alle maten zijn een veelvoud van --u. Op een staand scherm van
  1080 x 1920 is --u 10,8px; op een liggend 1920 x 1080 ook. Grotere schermen
  (4K) schalen mee, kleine schermen (telefoon) houden een ondergrens zodat
  tekst leesbaar en tikvlakken groot genoeg blijven.
*/
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(fonts/montserrat-500.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: "Montserrat"; font-weight: 600; font-display: swap; src: url(fonts/montserrat-600.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: "Montserrat"; font-weight: 700; font-display: swap; src: url(fonts/montserrat-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: "Montserrat"; font-weight: 800; font-display: swap; src: url(fonts/montserrat-800.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 {
  --spiegel: #000000;
  --oppervlak: #071a2a;
  --licht: #f4f6f8;
  --gedimd: #8798a8;
  --lijn: #12283b;
  --lijn-sterk: #2b4459;
  --accent: #ea5546;
  --accent-vlak: #d8473a;
  --f-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --f-label: "Montserrat", system-ui, sans-serif;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* schaaleenheid: staand 1080 x 1920 en liggend 1920 x 1080 geven 10,8px */
  --u: min(1vw, 0.5625vh);
  color-scheme: dark;
}
@media (orientation: landscape) {
  :root { --u: min(0.5625vw, 1vh); }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
html { height: 100%; }
body {
  background: var(--spiegel);
  color: var(--licht);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
ul { list-style: none; margin: 0; padding: 0; }

.pagina {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: max(20px, calc(3.7 * var(--u)));
  padding:
    calc(max(20px, calc(7.4 * var(--u))) + env(safe-area-inset-top, 0px))
    calc(max(16px, calc(8 * var(--u))) + env(safe-area-inset-right, 0px))
    calc(max(20px, calc(6.7 * var(--u))) + env(safe-area-inset-bottom, 0px))
    calc(max(16px, calc(8 * var(--u))) + env(safe-area-inset-left, 0px));
}

/* ---------- bovenaan: logo links, klok rechts ---------- */
.kop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.logo {
  display: block;
  width: max(120px, calc(20 * var(--u)));
  height: auto;
  margin-top: max(6px, calc(1.3 * var(--u)));
}
.klok {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: max(6px, calc(1.1 * var(--u)));
}
.tijd {
  font-family: var(--f-display);
  font-size: max(44px, calc(9.6 * var(--u)));
  line-height: 0.9;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.datum {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: max(11px, calc(1.85 * var(--u)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gedimd);
  text-align: right;
}

/* rollende cijfers (klok en temperatuur): oud teken omhoog weg, nieuw teken van onderen in */
.rol { display: inline-block; position: relative; }
.rol-in { display: inline-block; animation: rol-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.rol-uit { position: absolute; left: 0; top: 0; animation: rol-uit .4s ease-in both; }
@keyframes rol-in { from { opacity: 0; transform: translateY(0.35em); } }
@keyframes rol-uit { to { opacity: 0; transform: translateY(-0.35em); } }

[hidden] { display: none !important; }

/* ---------- spiegelvlak: weer rechtsboven, nieuws onderaan, midden vrij ---------- */
.reflectie {
  flex: 1 1 auto;
  min-height: 2vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: max(20px, calc(4 * var(--u)));
}

/* wisselblok: kaarten liggen op elkaar (grid), zo verspringt er niets bij het wisselen */
.wissel {
  align-self: flex-end;
  display: grid;
  justify-items: end;
}
.kaart {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6em);
  transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s;
}
.kaart.actief {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .7s ease, transform .7s ease, visibility 0s;
}
.stippen { grid-area: 2 / 1; display: flex; gap: 8px; margin-top: max(10px, calc(1.8 * var(--u))); }
.stippen i { width: 7px; height: 7px; border-radius: 50%; background: var(--lijn-sterk); }
.stippen i.aan { background: var(--accent); }

.regen-kop {
  font-family: var(--f-display);
  font-size: max(30px, calc(6.4 * var(--u)));
  line-height: 0.95;
  text-transform: uppercase;
}
.regen-balk {
  width: max(200px, calc(32 * var(--u)));
  height: max(40px, calc(6.5 * var(--u)));
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 1fr;
  align-items: end;
  box-sizing: content-box;
  gap: max(4px, calc(0.7 * var(--u)));
  margin-top: max(10px, calc(2.2 * var(--u)));
  padding-top: max(8px, calc(1.6 * var(--u)));
  border-top: 1px solid var(--lijn);
}
/* de staafjes groeien van links naar rechts zodra de regenkaart in beeld komt;
   bij het wegwisselen zakken ze pas in als de kaart al onzichtbaar is */
.regen-balk span {
  display: block;
  background: var(--lijn-sterk);
  border-radius: 2px 2px 0 0;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0s linear .7s;
}
.kaart.actief .regen-balk span {
  transform: none;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1) calc(.25s + var(--i, 0) * 70ms);
}
.regen-balk span.nat { background: var(--licht); }
.regen-as {
  width: max(200px, calc(32 * var(--u)));
  display: flex;
  justify-content: space-between;
  margin-top: max(6px, calc(0.9 * var(--u)));
  font-family: var(--f-label);
  font-weight: 600;
  font-size: max(10px, calc(1.35 * var(--u)));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gedimd);
}
.weer-nu { display: flex; align-items: center; gap: max(10px, calc(1.8 * var(--u))); }
.weer-icoon svg, .uur-icoon svg {
  display: block;
  fill: none;
  stroke: var(--licht);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.weer-icoon svg { width: max(34px, calc(6.4 * var(--u))); height: max(34px, calc(6.4 * var(--u))); overflow: visible; }

/* ---------- weeranimatie: alleen het grote weericoon beweegt ---------- */
#weer-icoon svg * { transform-box: fill-box; transform-origin: center; }
#weer-icoon .a-stralen { animation: w-draai 30s linear infinite; }
#weer-icoon .a-kern { animation: w-puls 5s ease-in-out infinite; }
#weer-icoon .a-glans { animation: w-glans 4s ease-in-out infinite; }
#weer-icoon .a-wolk { animation: w-drijf 6s ease-in-out infinite alternate; }
#weer-icoon .a-maan { transform-origin: 45% 60%; animation: w-wieg 9s ease-in-out infinite alternate; }
#weer-icoon .a-ster { animation: w-twinkel 3.2s ease-in-out infinite; }
#weer-icoon .a-ster2 { animation-delay: -1.6s; }
#weer-icoon .a-mist { animation: w-drijf 5s ease-in-out infinite alternate; }
#weer-icoon .a-mist2 { animation-direction: alternate-reverse; animation-duration: 6.5s; }
#weer-icoon .a-drup { animation: w-drup 1.1s linear infinite; }
#weer-icoon .a-drup.a-d2 { animation-delay: -0.4s; }
#weer-icoon .a-drup.a-d3 { animation-delay: -0.75s; }
#weer-icoon .a-vlok { animation: w-vlok 2.8s ease-in-out infinite; }
#weer-icoon .a-vlok.a-d2 { animation-delay: -1s; }
#weer-icoon .a-vlok.a-d3 { animation-delay: -1.9s; }
#weer-icoon .a-flits { animation: w-flits 5s linear infinite; }

@keyframes w-draai { to { transform: rotate(360deg); } }
@keyframes w-puls { 50% { transform: scale(1.1); } }
@keyframes w-glans { 50% { opacity: 0.35; } }
@keyframes w-drijf { from { transform: translateX(-1.1px); } to { transform: translateX(1.1px); } }
@keyframes w-wieg { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }
@keyframes w-twinkel { 0%, 100% { opacity: 0.15; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes w-drup {
  0% { transform: translate(0.4px, -2.5px); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(-0.8px, 3px); opacity: 0; }
}
@keyframes w-vlok {
  0% { transform: translate(0, -3px); opacity: 0; }
  25% { opacity: 1; }
  50% { transform: translate(0.9px, 0); }
  100% { transform: translate(-0.6px, 3.5px); opacity: 0; }
}
@keyframes w-flits {
  0%, 84%, 100% { opacity: 0.2; }
  86%, 90% { opacity: 1; }
  88% { opacity: 0.3; }
}
.graden {
  font-family: var(--f-display);
  font-size: max(36px, calc(8 * var(--u)));
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.weer-tekst {
  margin: max(6px, calc(1.2 * var(--u))) 0 0;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: max(11px, calc(1.6 * var(--u)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gedimd);
}
.weer-uren {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: max(14px, calc(3 * var(--u)));
  margin-top: max(10px, calc(2.2 * var(--u)));
  padding-top: max(8px, calc(1.6 * var(--u)));
  border-top: 1px solid var(--lijn);
}
.weer-uren li { display: flex; flex-direction: column; align-items: flex-end; gap: max(4px, calc(0.7 * var(--u))); }
.weer-uren span:first-child {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: max(10px, calc(1.35 * var(--u)));
  letter-spacing: 0.1em;
  color: var(--gedimd);
}
.uur-icoon svg { width: max(18px, calc(2.8 * var(--u))); height: max(18px, calc(2.8 * var(--u))); stroke-width: 1.6; }
.weer-uren b {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: max(16px, calc(2.9 * var(--u)));
  line-height: 1;
}

.nieuws {
  display: flex;
  align-items: center;
  gap: max(14px, calc(2.6 * var(--u)));
  max-width: min(100%, calc(120 * var(--u)));
}
.nieuws-tekst { min-width: 0; }
.nieuws-intro {
  margin: max(8px, calc(1.3 * var(--u))) 0 0;
  font-size: max(14px, calc(2.2 * var(--u)));
  line-height: 1.45;
  color: #b4b7bd;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.nieuws-intro.in { animation: kop-in .6s .1s ease-out both; }
/* foto bij het nieuws: iets gedimd, zodat hij niet harder roept dan de spiegel zelf */
.nieuws-foto {
  flex: 0 0 auto;
  width: max(120px, calc(24 * var(--u)));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: var(--oppervlak);
  opacity: 0;
}
.nieuws-foto.in { animation: kop-in .6s ease-out both; }
.nieuws-foto img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(0.85); }
.nieuws h2 { margin-bottom: max(8px, calc(1.3 * var(--u))); }
.nieuws-kop {
  margin: 0;
  font-size: max(18px, calc(4 * var(--u)));
  font-weight: 600;
  line-height: 1.22;
  color: var(--licht);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.nieuws-kop.in { animation: kop-in .6s ease-out both; }
@keyframes kop-in { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
.nieuws-meta {
  margin: max(8px, calc(1.4 * var(--u))) 0 0;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: max(11px, calc(1.6 * var(--u)));
  letter-spacing: 0.12em;
  color: var(--gedimd);
  font-variant-numeric: tabular-nums;
}

/* ---------- kopjes als eyebrow: rood bolletje ervoor ---------- */
h2 {
  display: flex;
  align-items: center;
  margin: 0 0 max(12px, calc(1.9 * var(--u)));
  font-family: var(--f-label);
  font-weight: 700;
  font-size: max(11px, calc(1.7 * var(--u)));
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gedimd);
}
h2::before {
  content: "";
  flex: none;
  width: 0.56em;
  height: 0.56em;
  margin-right: 0.8em;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- presentaties: hele regel = presentatie ---------- */
.klanten ul { border-top: 1px solid var(--lijn); }
.klanten li {
  display: flex;
  align-items: stretch;
  min-height: max(64px, calc(10 * var(--u)));
  border-bottom: 1px solid var(--lijn);
}
.presentatie {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: max(12px, calc(2.6 * var(--u)));
  padding: 8px max(12px, calc(2.6 * var(--u))) 8px 0;
  transition: background-color .15s, color .15s;
}
.presentatie:active { background: var(--accent-vlak); color: #fff; }
.symbool {
  flex: none;
  width: max(44px, calc(7 * var(--u)));
  height: max(44px, calc(7 * var(--u)));
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--oppervlak);
  border: 1px solid var(--lijn);
  border-radius: 3px;
}
.symbool img { width: 76%; height: 76%; object-fit: contain; display: block; }
.symbool.logo-lynck img { width: 100%; height: 100%; }        /* koraal vlak vult het hele vakje */
.symbool.logo-bentsports img { width: 92%; height: 92%; }   /* breed woordmerk, randen eraf geknipt */
.naam {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--f-display);
  font-size: max(18px, calc(3.9 * var(--u)));
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.play {
  flex: none;
  width: max(44px, calc(5.9 * var(--u)));
  height: max(44px, calc(5.9 * var(--u)));
  display: grid;
  place-items: center;
  border: 1px solid var(--lijn-sterk);
  border-radius: 50%;
}
.play svg { width: 32%; height: 32%; margin-left: 6%; fill: var(--accent); }
.presentatie:active .play { border-color: #fff; }
.presentatie:active .play svg { fill: #fff; }


/* ---------- apps: lage ronde knoppen ---------- */
.apps ul { display: flex; flex-wrap: wrap; gap: max(10px, calc(1.5 * var(--u))); }
.apps a {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-height: max(52px, calc(6.3 * var(--u)));
  padding: 0 1.8em 0 1.3em;
  border: 1px solid var(--lijn-sterk);
  border-radius: 100px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: max(13px, calc(1.6 * var(--u)));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color .15s, border-color .15s;
}
.apps img { width: 1.7em; height: 1.7em; display: block; filter: brightness(0) invert(1); }
.apps a:active { background: var(--accent-vlak); border-color: var(--accent-vlak); color: #fff; }

/* ---------- sfeer: achtergrond die zacht met het weer meekleurt ---------- */
@property --gloed { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0); }
.pagina { position: relative; z-index: 1; }
.sfeer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gloed {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  --gloed: rgba(0, 0, 0, 0);
  background:
    radial-gradient(ellipse 75% 45% at 100% 0%, var(--gloed), transparent 70%),
    radial-gradient(ellipse 65% 35% at 0% 100%, var(--gloed), transparent 70%);
  transition: --gloed 4s ease;
}
body[data-weer="zon"]    .gloed { --gloed: rgba(255, 160, 60, 0.13); }
body[data-weer="half"]   .gloed { --gloed: rgba(230, 175, 110, 0.08); }
body[data-weer="maan"]   .gloed { --gloed: rgba(95, 120, 210, 0.10); }
body[data-weer="wolk"]   .gloed { --gloed: rgba(140, 155, 180, 0.08); }
body[data-weer="mist"]   .gloed { --gloed: rgba(170, 175, 185, 0.10); }
body[data-weer="regen"]  .gloed { --gloed: rgba(60, 115, 200, 0.12); }
body[data-weer="onweer"] .gloed { --gloed: rgba(120, 90, 200, 0.12); }
body[data-weer="sneeuw"] .gloed { --gloed: rgba(210, 225, 245, 0.10); }
.druppels i {
  position: absolute;
  top: -12vh;
  width: 1px;
  height: 8vh;
  background: linear-gradient(rgba(243, 241, 236, 0), rgba(243, 241, 236, 0.3));
  animation: val linear infinite;
}
.druppels.sneeuw i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(243, 241, 236, 0.4);
  animation-name: dwarrel;
}
@keyframes val { to { transform: translateY(125vh); } }
@keyframes dwarrel {
  50%  { transform: translate(2.5vw, 62vh); }
  100% { transform: translate(0, 125vh); }
}

/* ---------- nachtmodus: zwart met een gedimde, verspringende klok ---------- */
.nacht { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; background: #000; cursor: pointer; }
.nacht-klok {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(6px, calc(1 * var(--u)));
  color: #55585f;
  white-space: nowrap;
}
.nacht-klok span:first-child {
  font-family: var(--f-display);
  font-size: max(40px, calc(7 * var(--u)));
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.nacht-klok span:last-child {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: max(10px, calc(1.4 * var(--u)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3c3f45;
}

/* ---------- presentatie in de spiegel ---------- */
body.kijkt { overflow: hidden; }
.kijker { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; background: #000; opacity: 0; transition: opacity .4s ease; }
.kijker.open { opacity: 1; }
.kijker iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.kijker iframe.klaar { opacity: 1; transform: none; }

/* ---------- overgang spiegel <-> presentatie ----------
   Heen: de spiegel vervaagt en wijkt iets terug, de presentatie komt op vanuit het midden.
   Terug: de spiegel bouwt zich blok voor blok weer op (klok, weer, nieuws, presentaties). */
body.kijkt .pagina { opacity: 0; transform: scale(0.97); transition: opacity .4s ease, transform .4s ease; }
body.komt-terug .kop,
body.komt-terug .wissel,
body.komt-terug .nieuws,
body.komt-terug .klanten { animation: opbouw .7s cubic-bezier(.2, .7, .2, 1) both; }
body.komt-terug .kop { animation-delay: .1s; }
body.komt-terug .wissel { animation-delay: .22s; }
body.komt-terug .nieuws { animation-delay: .34s; }
body.komt-terug .klanten { animation-delay: .46s; }
@keyframes opbouw { from { opacity: 0; transform: translateY(calc(1.6 * var(--u))); } }
.terug {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: max(48px, calc(5.4 * var(--u)));
  padding: 0 1.5em 0 1.1em;
  border-radius: 100px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: max(13px, calc(1.5 * var(--u)));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.terug {
  position: absolute;
  top: calc(max(10px, calc(1.6 * var(--u))) + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.terug svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.terug:active { background: var(--accent-vlak); border-color: var(--accent-vlak); }
.terug { z-index: 2; }
.demo-vang {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.demo-vang span {
  position: absolute;
  top: calc(max(10px, calc(1.6 * var(--u))) + max(48px, calc(5.4 * var(--u))) + 10px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6em 1.2em;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--f-label);
  font-weight: 600;
  font-size: max(11px, calc(1.25 * var(--u)));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- smalle schermen (telefoon staand) ---------- */
@media (max-width: 520px) {
  .weer-uren { display: none; }
  .nieuws { flex-direction: column; align-items: flex-start; }
  .nieuws-foto { width: min(100%, 260px); }
  .naam { hyphens: auto; -webkit-hyphens: auto; }
  .logo { width: 104px; }
  .apps ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps a { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; border-radius: 16px; font-size: 12px; letter-spacing: 0.06em; }
  .apps img { width: 24px; height: 24px; }
}

/* ---------- liggende schermen: spiegel links, lijst rechts ---------- */
@media (orientation: landscape) and (min-width: 700px) {
  .pagina {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(400px, calc(78 * var(--u)), 62%));
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "kop     kop"
      "spiegel klanten"
      "spiegel apps";
    column-gap: max(28px, calc(7 * var(--u)));
    row-gap: max(16px, calc(3 * var(--u)));
  }
  .kop { grid-area: kop; }
  .reflectie { grid-area: spiegel; }
  .klanten { grid-area: klanten; align-self: end; }
  .apps { grid-area: apps; }
  .klanten li { min-height: max(56px, calc(9.4 * var(--u))); }
  .naam { font-size: max(16px, calc(3.4 * var(--u))); }
}

/* Lage liggende schermen (telefoon dwars): kleinere klok, mag scrollen */
@media (orientation: landscape) and (max-height: 500px) {
  .reflectie .wissel, .reflectie .nieuws { display: none; }
  .tijd { font-size: 40px; }
  .logo { width: 110px; }
  .klanten li { min-height: 52px; }
  .symbool { width: 40px; height: 40px; }
  .naam { font-size: 16px; }
  .play { width: 44px; height: 44px; }
  .apps ul { flex-wrap: nowrap; gap: 8px; }
  .apps a { min-height: 48px; padding: 0 1em 0 0.8em; font-size: 12px; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .druppels { display: none; }
  .nieuws-foto.in { opacity: 1; }
  .rol-uit { display: none; }
}

/* ---------- oude browsers: Android WebView/Chrome ouder dan 79 ----------
   De spiegels (Android 7.1, ingebouwde browser) draaien WebView 72. Die kent min(), max()
   en clamp() niet. Omdat die regels var(--u) bevatten, gooit de browser ze niet bij het
   inlezen weg, maar maakt hij ze pas bij het tekenen ongeldig: alles valt dan terug op
   standaardmaten (klok 16px, lege logovakjes). Een terugvalregel vlak ervoor helpt daardoor
   niet; deze blokken staan daarom ná alle andere regels en winnen zo.
   Hier dezelfde maten zonder ondergrens (de spiegel is groot genoeg), en marges in plaats
   van flex-gap (pas vanaf 84) en aspect-ratio (pas vanaf 88).
   Moderne browsers kennen max() wel en slaan dit hele blok over.
   Wijzig je hierboven een maat met max()/min()/clamp(), pas hem dan ook hier aan. */
@supports not (width: max(1px, 2px)) {
  :root { --u: 1vw; }

  .pagina {
    padding:
      calc(7.4 * var(--u) + env(safe-area-inset-top, 0px))
      calc(8 * var(--u) + env(safe-area-inset-right, 0px))
      calc(6.7 * var(--u) + env(safe-area-inset-bottom, 0px))
      calc(8 * var(--u) + env(safe-area-inset-left, 0px));
  }
  .pagina > * + * { margin-top: calc(3.7 * var(--u)); }

  .logo { width: calc(20 * var(--u)); margin-top: calc(1.3 * var(--u)); }
  .klok > * + * { margin-top: calc(1.1 * var(--u)); }
  .tijd { font-size: calc(9.6 * var(--u)); }
  .datum { font-size: calc(1.85 * var(--u)); }

  .wissel:not([hidden]) + .nieuws { margin-top: calc(4 * var(--u)); }
  .stippen { margin-top: calc(1.8 * var(--u)); }
  .stippen i + i { margin-left: 8px; }
  .weer-nu > * + * { margin-left: calc(1.8 * var(--u)); }
  .weer-icoon svg { width: calc(6.4 * var(--u)); height: calc(6.4 * var(--u)); }
  .graden { font-size: calc(8 * var(--u)); }
  .regen-kop { font-size: calc(6.4 * var(--u)); }
  .weer-tekst { margin: calc(1.2 * var(--u)) 0 0; font-size: calc(1.6 * var(--u)); }
  .weer-uren { gap: calc(3 * var(--u)); margin-top: calc(2.2 * var(--u)); padding-top: calc(1.6 * var(--u)); }
  .weer-uren li > * + * { margin-top: calc(0.7 * var(--u)); }
  .weer-uren span:first-child { font-size: calc(1.35 * var(--u)); }
  .uur-icoon svg { width: calc(2.8 * var(--u)); height: calc(2.8 * var(--u)); }
  .weer-uren b { font-size: calc(2.9 * var(--u)); }
  .regen-balk {
    width: calc(32 * var(--u));
    height: calc(6.5 * var(--u));
    gap: calc(0.7 * var(--u));
    margin-top: calc(2.2 * var(--u));
    padding-top: calc(1.6 * var(--u));
  }
  .regen-as { width: calc(32 * var(--u)); margin-top: calc(0.9 * var(--u)); font-size: calc(1.35 * var(--u)); }

  .nieuws { max-width: 100%; }
  .nieuws-foto { width: calc(24 * var(--u)); height: calc(13.5 * var(--u)); }
  .nieuws-foto:not([hidden]) + .nieuws-tekst { margin-left: calc(2.6 * var(--u)); }
  .nieuws h2 { margin-bottom: calc(1.3 * var(--u)); }
  .nieuws-kop { font-size: calc(4 * var(--u)); }
  .nieuws-intro { margin: calc(1.3 * var(--u)) 0 0; font-size: calc(2.2 * var(--u)); }
  .nieuws-meta { margin: calc(1.4 * var(--u)) 0 0; font-size: calc(1.6 * var(--u)); }

  h2 { margin: 0 0 calc(1.9 * var(--u)); font-size: calc(1.7 * var(--u)); }

  .klanten li { min-height: calc(10 * var(--u)); }
  .presentatie { padding: 8px calc(2.6 * var(--u)) 8px 0; }
  .presentatie > * + * { margin-left: calc(2.6 * var(--u)); }
  .symbool { width: calc(7 * var(--u)); height: calc(7 * var(--u)); }
  .naam { font-size: calc(3.9 * var(--u)); }
  .play { width: calc(5.9 * var(--u)); height: calc(5.9 * var(--u)); }

  .apps li { margin: 0 calc(1.5 * var(--u)) calc(1.5 * var(--u)) 0; }
  .apps a { min-height: calc(6.3 * var(--u)); font-size: calc(1.6 * var(--u)); }
  .apps a > * + * { margin-left: 0.8em; }

  .nacht-klok > * + * { margin-top: calc(1 * var(--u)); }
  .nacht-klok span:first-child { font-size: calc(7 * var(--u)); }
  .nacht-klok span:last-child { font-size: calc(1.4 * var(--u)); }

  .terug {
    min-height: calc(5.4 * var(--u));
    font-size: calc(1.5 * var(--u));
    top: calc(1.6 * var(--u) + env(safe-area-inset-top, 0px));
  }
  .terug svg { margin-right: 0.5em; }
  .demo-vang span {
    top: calc(7 * var(--u) + 10px + env(safe-area-inset-top, 0px));
    font-size: calc(1.25 * var(--u));
  }

  /* telefoon staand (zelfde als het blok "smalle schermen" hierboven) */
  @media (max-width: 520px) {
    .nieuws-foto { width: 260px; max-width: 100%; height: 146px; }
    .nieuws-foto:not([hidden]) + .nieuws-tekst { margin-left: 0; margin-top: 14px; }
    .logo { width: 104px; }
    .apps li { margin: 0; }
    .apps a { font-size: 12px; }
    .apps a > * + * { margin-left: 0; margin-top: 6px; }
  }

  /* liggend: --u volgt de hoogte; lijst rechts in het raster (grid-gap werkt in 72 wel) */
  @media (orientation: landscape) {
    :root { --u: 1vh; }
  }
  @media (orientation: landscape) and (min-width: 700px) {
    .pagina {
      grid-template-columns: minmax(0, 1fr) minmax(0, calc(78 * var(--u)));
      column-gap: calc(7 * var(--u));
      row-gap: calc(3 * var(--u));
    }
    .pagina > * + * { margin-top: 0; }
    .klanten li { min-height: calc(9.4 * var(--u)); }
    .naam { font-size: calc(3.4 * var(--u)); }
  }
  @media (orientation: landscape) and (max-height: 500px) {
    .tijd { font-size: 40px; }
    .logo { width: 110px; }
    .klanten li { min-height: 52px; }
    .symbool { width: 40px; height: 40px; }
    .naam { font-size: 16px; }
    .play { width: 44px; height: 44px; }
    .apps a { min-height: 48px; font-size: 12px; }
  }
}

/* ---------- LYNCK: Montserrat in plaats van Anton ----------
   Anton is smal en heeft één gewicht; Montserrat is breder, dus koppen iets
   strakker gespatieerd en zwaarder. Namen van presentaties in gewone schrijfwijze,
   zoals op lynck.tech. */
.tijd, .graden, .regen-kop, .nacht-klok span:first-child { font-weight: 800; letter-spacing: -0.03em; }
.weer-uren b { font-weight: 700; letter-spacing: -0.01em; }
.naam { font-weight: 700; text-transform: none; letter-spacing: -0.015em; line-height: 1.08; }
.regen-kop { text-transform: none; }
.datum, .weer-tekst, .weer-uren span:first-child, .regen-as, .nieuws-meta, h2 { font-weight: 600; }
