:root {
  --tekst: #1e2a36;
  --tekst-zacht: #3c4855;
  --groen: #4f8c55;
  --groen-donker: #3f7a46;
  --groen-tekst: #2f5e35;
  --kaart: rgba(246, 248, 250, 0.9);
  --zometeen-bg: #e2eedf;
  --weer-blauw: #2e4a6b;
  --thema-bg: #f3e3d0;
  --thema-tekst: #6b3d16;
  --schaduw: 0 10px 30px rgba(30, 42, 54, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #c9d1da; overflow: hidden; cursor: none; }
body { font-family: Figtree, system-ui, sans-serif; color: var(--tekst); }

#podium {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  background: linear-gradient(180deg, #aeb8c4 0%, #c9d1da 45%, #dde3e9 100%);
}
.landschap { position: absolute; inset: 0; pointer-events: none; }

.inhoud { position: relative; display: flex; flex-direction: column; padding: 56px 64px 0; }
.groet { font-size: 40px; font-weight: 500; color: var(--tekst-zacht); height: 48px; line-height: 48px; }
.kolommen { display: flex; justify-content: space-between; gap: 64px; margin-top: 12px; height: 744px; }
.kolom { width: 780px; display: flex; flex-direction: column; justify-content: space-between; }

.dag {
  background: var(--groen); color: #fff; border-radius: 18px; padding: 4px 28px 14px;
  font-size: 136px; font-weight: 800; line-height: 1.05; letter-spacing: -2px;
}
.datumrij { display: flex; justify-content: space-between; align-items: baseline; }
.datum { font-size: 44px; font-weight: 600; }
.tijd { font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }

.dagdelen {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px;
  background: rgba(246, 248, 250, 0.7); border-radius: 22px;
}
.dagdeel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 16px; padding: 14px 0; font-size: 26px; font-weight: 600; color: var(--tekst-zacht);
  white-space: nowrap;
}
.dagdeel svg { display: none; }
.dagdeel.actief { background: var(--groen-donker); color: #fff; font-weight: 800; }
.dagdeel.actief svg { display: block; }

.kaart { background: var(--kaart); border-radius: 32px; box-shadow: var(--schaduw); }
.label { font-size: 24px; font-weight: 800; color: var(--groen-donker); text-transform: uppercase; letter-spacing: 1.5px; }

.nu { display: flex; align-items: center; gap: 32px; padding: 26px 36px 26px 26px; }
.nu .picto { width: 176px; height: 176px; border-radius: 22px; }
.nu .titel { font-size: 60px; font-weight: 800; line-height: 1.05; margin-top: 6px; }
.thema {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  background: var(--thema-bg); color: var(--thema-tekst); border-radius: 999px;
  padding: 6px 18px 6px 12px; font-size: 24px; font-weight: 700;
}
.thema[hidden] { display: none; }

.picto { background: #111; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.picto img { width: 100%; height: 100%; object-fit: contain; }
.picto.meerdere { gap: 8px; padding: 10px; }
.picto.meerdere img { width: auto; height: 86%; flex: 1 1 0; }
.picto svg { width: 58%; height: 58%; }

.wie { padding: 30px 40px 28px; }
.wie h2 { margin: 0 0 20px; font-size: 36px; font-weight: 800; }
.meeeten { padding: 22px 40px 20px; }
.meeeten[hidden] { display: none; }
.meeeten h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.meeeten p { margin: 0; font-size: 44px; font-weight: 800; line-height: 1.1; }
.mensen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.persoon { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 28px; font-weight: 700; text-align: center; }
.persoon .portret { position: relative; width: 128px; height: 128px; }
.persoon img, .persoon .initiaal {
  width: 128px; height: 128px; border-radius: 50%; border: 5px solid #fff; object-fit: cover;
  display: grid; place-items: center; background: #d5ddd8; font-size: 48px;
}
.persoon .sleutel {
  position: absolute; right: -2px; bottom: -2px; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #c48a12; color: #fff;
  box-shadow: 0 0 0 4px #fff;
}
.persoon .sleutel svg { width: 28px; height: 28px; display: block; }
.persoon .sleutel.los {
  position: static; width: 128px; height: 128px;
  box-shadow: 0 0 0 5px #fff;
}
.persoon .sleutel.los svg { width: 64px; height: 64px; }

.zometeen {
  display: flex; align-items: center; gap: 28px; background: var(--zometeen-bg);
  border: 4px solid var(--groen-donker); padding: 24px 36px 24px 24px;
  opacity: 1; transition: opacity 300ms ease;
}
.zometeen[hidden] { display: none; }
.zometeen .picto { width: 120px; height: 120px; border-radius: 20px; }
.zometeen .label { color: var(--groen-tekst); }
.zometeen .titel { font-size: 56px; font-weight: 800; line-height: 1.05; margin-top: 4px; }
.zometeen .tekst { font-size: 28px; font-weight: 600; color: #2f4a33; margin-top: 4px; }

.weer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding: 26px 36px; }
.weerdeel { display: flex; align-items: center; gap: 18px; }
.weericoon {
  width: 88px; height: 88px; border-radius: 50%; background: var(--weer-blauw);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.weericoon svg { width: 54px; height: 54px; }
.weerlabel { font-size: 20px; font-weight: 700; color: var(--tekst-zacht); text-transform: uppercase; letter-spacing: 1.2px; }
.weertemp { font-size: 36px; font-weight: 800; line-height: 1.1; }
.weeradvies { font-size: 22px; font-weight: 600; color: var(--tekst-zacht); min-height: 1.2em; }
.weeradvies.goed { color: var(--groen-tekst); }

.status {
  position: absolute; left: 64px; right: 64px; top: 892px; z-index: 2;
  display: flex; justify-content: space-between; align-items: stretch;
}
.statusblok { flex: none; width: 780px; padding: 18px 28px 20px; }
#awayBlock { margin-right: auto; }
#medsBlock { margin-left: auto; }
.statusblok[hidden] { display: none; }
.statuskop {
  margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--groen-donker);
}
.statusrij { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.25; }
.statusrij + .statusrij { margin-top: 6px; }
.statusrij[hidden] { display: none; }
.statussoort { font-weight: 700; color: var(--tekst-zacht); }
.statusregels { display: flex; flex-direction: column; gap: 4px; }
.statusregels p { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.25; }

body.toon-bereiding .kolom-links { visibility: hidden; }
#bereiding {
  --fit: 1;
  position: absolute; z-index: 3;
  left: 64px; top: 116px; width: 780px; height: 744px;
  margin: 0; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  background: rgba(246, 248, 250, 0.96); color: var(--tekst);
  border-radius: 32px; box-shadow: var(--schaduw);
}
#bereiding[hidden] { display: none; }
.bereiding-kop {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--groen-donker);
}
#bereidingMee {
  margin: 0; font-size: calc(28px * var(--fit)); font-weight: 800; line-height: 1.15;
  color: var(--groen-donker);
}
#bereidingMee[hidden] { display: none; }
#bereidingGerecht { margin: 0; font-size: calc(40px * var(--fit)); line-height: 1.12; font-weight: 800; }
#bereidingGerecht[hidden] { display: none; }
#bereidingExtra { display: flex; flex-direction: column; gap: 4px; }
#bereidingExtra:empty { display: none; }
#bereidingExtra p { margin: 0; font-size: calc(22px * var(--fit)); line-height: 1.25; font-weight: 600; }
#bereidingLijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
#bereidingLijst li {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: center; gap: 8px 16px;
  padding: calc(10px * var(--fit)) 0; border-top: 1px solid rgba(28, 39, 53, 0.12);
}
#bereidingLijst .naam { margin: 0; font-size: calc(26px * var(--fit)); font-weight: 800; line-height: 1.15; }
#bereidingLijst .meta {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px;
  font-size: calc(22px * var(--fit)); font-weight: 600; font-variant-numeric: tabular-nums;
}
#bereiding .stand { font-weight: 800; padding: 2px 10px; border-radius: 999px; background: rgba(28, 39, 53, 0.08); }
#bereiding .stand[data-stand="stomen"] { box-shadow: inset 0 0 0 3px #3d7ec8; }
#bereiding .stand[data-stand="oven"] { box-shadow: inset 0 0 0 3px #d15a3c; }
#bereiding .stand[data-stand="combinatie"] { box-shadow: inset 4px 0 0 #3d7ec8, inset -4px 0 0 #d15a3c; }
#bereidingTaken {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(28, 39, 53, 0.12); font-size: calc(24px * var(--fit)); line-height: 1.2;
}
#bereidingTaken:empty { display: none; }
#bereidingTaken p { display: flex; align-items: center; gap: 8px; margin: 0; }
#bereidingTaken img { width: 2.15em; height: 2.15em; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #fff; }
#bereidingTaken .rol { font-weight: 700; opacity: 0.72; }
#bereidingTaken .wie { font-weight: 800; }

#cams { position: fixed; inset: 0; display: none; opacity: 0; transition: opacity 1s ease; background: #141d2e; color: #eef0f4; z-index: 20; cursor: auto; }
#cams.show { display: block; }
#cams.open, #cams.closing { opacity: 1; }
.cams-inner {
  position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 3vh;
  padding: 4vh 4vw;
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2vh 2vw; min-height: 0; }
.tile {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 0;
  background: linear-gradient(160deg, #2a3b58, #1b273c); display: grid; place-items: center;
}
.tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.tile .ph { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0.55; font-size: 22px; }
.tile .ph[hidden] { display: none; }
.tile .ph svg { width: 64px; height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile .camlabel {
  position: absolute; left: 1.2rem; bottom: 1.1rem; background: rgba(10, 16, 28, 0.7);
  padding: 8px 16px; border-radius: 999px; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; gap: 10px; z-index: 1;
}
.tile .camlabel i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #8fd19e; display: block; }
.cam-bar { display: flex; align-items: center; gap: 3vw; }
.countdown { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; overflow: hidden; }
.countdown div { height: 100%; width: 100%; background: rgba(255, 255, 255, 0.55); border-radius: 3px; }
#closeCams {
  font: 700 28px Figtree, system-ui, sans-serif; color: #141d2e; background: #f3efe6; border: 0;
  border-radius: 999px; padding: 14px 36px; cursor: pointer;
}
.curtain {
  position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 46px, rgba(255, 255, 255, 0.08) 46px 50px, transparent 50px 90px),
    linear-gradient(180deg, #e8dcc8, #d9c9b0);
  transition: transform 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.45s;
}
.curtain.l { left: 0; box-shadow: inset -18px 0 30px rgba(0, 0, 0, 0.12); }
.curtain.r { right: 0; box-shadow: inset 18px 0 30px rgba(0, 0, 0, 0.12); }
#cams.open .curtain.l { transform: translateX(-100%); }
#cams.open .curtain.r { transform: translateX(100%); }
#pulse {
  position: fixed; left: 50%; top: 50%; width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.85); opacity: 0; transform: scale(0.15); pointer-events: none; z-index: 30;
}
#pulse.go { animation: pulse 1.5s ease-out; }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(0.15); } 100% { opacity: 0; transform: scale(1); } }

#drankjesKeuken {
  position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 15;
  background: transparent; pointer-events: none;
}
#drankjesKeuken[hidden] { display: none !important; }
#drankjesKeuken.actief { pointer-events: auto; }
