/* tissie-status: de pagina rondom de Grafana-panelen */
@font-face { font-family: "General Sans"; font-weight: 400; font-display: swap; src: url(/thema/fonts/general-sans-400.woff2) format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-display: swap; src: url(/thema/fonts/general-sans-500.woff2) format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 600; font-display: swap; src: url(/thema/fonts/general-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/thema/fonts/bricolage-grotesque-700.woff2) format("woff2"); }

:root {
  --ink: #211a16; --zacht: #5d4f45; --cream: #f7eee6; --wit: #fff; --teal: #2cc3c3;
  --boven: #2fc5c5; --onder: #3dd6d4;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --schaduw: 0 16px 34px -22px rgba(70, 40, 18, .38);
}
body[data-stand="let-op"] { --boven: #efae4a; --onder: #f5c675; }
body[data-stand="storing"] { --boven: #ec7a6a; --onder: #f29a8a; }
body[data-stand="laden"], body[data-stand="onbekend"] { --boven: #d8cabb; --onder: #e6dbcf; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--cream);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--cream); }
a { color: inherit; }

.binnen { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.demo {
  margin: 0; padding: 10px 18px; text-align: center;
  background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 500;
}

.held {
  position: relative; overflow: hidden; padding: 26px 0 30px;
  background:
    radial-gradient(60rem 36rem at 88% 120%, rgba(255, 255, 255, .3), transparent 62%),
    radial-gradient(38rem 26rem at -8% -20%, rgba(255, 255, 255, .2), transparent 60%),
    linear-gradient(180deg, var(--boven), var(--onder));
  border-radius: 0 0 36px 36px;
  transition: background .5s var(--ease);
}

.kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 34px; width: auto; }
.label {
  padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
}

.stand { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); align-items: end; gap: 24px; margin-top: 30px; }
.pil {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); font-size: 15px; font-weight: 500;
}
.pil b { font-weight: 500; }
.pil i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: puls 2.4s ease-in-out infinite; }
h1 {
  margin: 16px 0 10px; max-width: 13em;
  font: 700 clamp(44px, 7vw, 84px)/.98 var(--display); letter-spacing: -.028em; text-wrap: balance;
}
.lead { margin: 0; max-width: 32em; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; text-wrap: pretty; }
.tijd { margin: 12px 0 0; font-size: 15px; color: rgba(33, 26, 22, .72); }

.fluf { margin: 0 0 -30px; justify-self: end; width: min(100%, 230px); }
.fluf img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(12, 74, 74, .25)); }

.cijfers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; position: relative; z-index: 2; }
.cijfers > div { padding: 14px 18px; border-radius: 18px; background: var(--wit); box-shadow: var(--schaduw); }
.cijfers dt { font-size: 14px; color: var(--zacht); }
.cijfers dd { margin: 2px 0 0; font: 700 27px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.panelen { padding-top: 0; }
#panelen { display: block; width: 100%; height: 1500px; border: 0; background: transparent; opacity: 0; transition: opacity .35s var(--ease); }
body.klaar #panelen { opacity: 1; }
body.klaar .laden { display: none; }
.laden { position: absolute; left: 0; right: 0; display: grid; gap: 14px; padding: inherit; }
.panelen { position: relative; }
.laden.fout { position: static; padding: 18px 20px; border-radius: 18px; background: var(--wit); }
.laden i { display: block; height: 150px; border-radius: 18px; background: rgba(255, 255, 255, .7); animation: puls 1.8s ease-in-out infinite; }
.laden i:nth-child(2) { height: 260px; animation-delay: .15s; }
.laden i:nth-child(3) { height: 220px; animation-delay: .3s; }

.voet {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  margin-top: 26px; padding-bottom: 34px; font-size: 15px; color: var(--zacht);
}
.voet a { color: var(--ink); font-weight: 500; text-decoration: none; }
.voet a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pil i, .laden i { animation: none; } .held, #panelen { transition: none; } }

@media (max-width: 760px) {
  .binnen { padding: 0 16px; }
  .held { padding: 18px 0 18px; border-radius: 0 0 26px 26px; }
  .logo img { height: 28px; }
  .stand { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; margin-top: 20px; }
  .fluf { width: 96px; margin: 0; align-self: start; }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .cijfers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .cijfers > div { padding: 11px 14px; border-radius: 15px; }
  .cijfers dd { font-size: 23px; }
  .panelen { padding-top: 6px; }
}
