/* Instructiefilms (tabblad Uitleg). De speler is een donkere "schermzaal" in het FOS-blauw; de nagebouwde app
   in het beeld gebruikt de gewone klassen uit style.css, zodat ze er net zo uitziet als de echte. */
main:has(.film) { max-width: 1480px; }
.film {
  --zaal: #0A0D2B; --paneel: #141A45; --paneel-rand: #262E66; --tekst: #EEF0FA; --tekst-zacht: #A9AFD3; --accent: #F0544A;
}
.film-kies { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.film-kies h1 { margin: 0; }
.film-kies p { margin: 4px 0 0; color: var(--ink-muted); }
.film-speler { background: var(--zaal); color: var(--tekst); border-radius: var(--radius-lg); padding: 16px; }
.film .indeling { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .film .indeling { grid-template-columns: minmax(0, 1fr); } }

.film .beeld-kolom { min-width: 0; background: var(--zaal); }
.film .beeld-kolom:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 16px; }
/* het beeld past altijd samen met de bediening op het scherm */
.film .beeld { position: relative; width: min(100%, calc((100vh - 170px) * 1.6)); aspect-ratio: 16 / 10; max-width: 100%; border-radius: 14px;
  overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--paneel-rand), 0 24px 60px rgba(0,0,0,.45); margin-inline: auto;
  container-type: inline-size; }
.film .beeld-kolom:fullscreen .beeld { width: min(100%, calc((100vh - 90px) * 1.6)); }
.film .podium { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; overflow: hidden; }

/* ondertitels in beeld, zoals bij een film */
.film .ondertitel { position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); width: max-content; max-width: 86%; z-index: 40;
  padding: .45em .9em; background: rgba(10,13,43,.9); color: #fff; border-radius: .5em;
  font-size: max(14px, 2.15cqw); line-height: 1.35; font-weight: 600; text-align: center; text-wrap: balance; pointer-events: none; }
.film .ondertitel:empty { display: none; }

.film .bediening { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.film .bediening button, .film .bediening select { font: inherit; font-weight: 700; color: var(--tekst); background: var(--paneel);
  border: 1px solid var(--paneel-rand); border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: none; }
.film .bediening button:hover, .film .bediening select:hover { border-color: var(--tekst-zacht); box-shadow: none; }
.film button:focus-visible, .film select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.film .bediening .speel { background: var(--accent); border-color: var(--accent); color: #fff; min-width: 116px; }
.film .hst-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tekst-zacht); font-weight: 700; white-space: nowrap; }
.film .balkjes { flex: 1 1 260px; display: flex; gap: 3px; height: 14px; min-width: 0; }
.film .bediening .balkje { flex-basis: 0; min-width: 0; background: var(--paneel-rand); border-radius: 4px; overflow: hidden; position: relative; border: 0; padding: 0; }
.film .balkje i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.film .bediening .balkje:hover { border: 0; background: #3A4386; }
.film .tijd { font-variant-numeric: tabular-nums; color: var(--tekst-zacht); font-weight: 600; font-size: .95rem; min-width: 92px; text-align: right; }
.film .bediening label { display: flex; flex-direction: row; align-items: center; gap: 6px; color: var(--tekst-zacht); font-weight: 600; font-size: .95rem; cursor: pointer; }
.film .bediening input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

.film .hoofdstukken-vak { padding: 12px; background: var(--paneel); border-radius: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.film .hoofdstukken { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.film .groep-kop { font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  margin: 12px 10px 4px; color: var(--accent); font-weight: 700; }
.film .groep-kop:first-child { margin-top: 2px; }
.film .hoofdstukken button { width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--tekst); background: transparent; border: 0;
  border-radius: 9px; box-shadow: none; padding: 7px 10px; cursor: pointer; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: baseline; }
.film .hoofdstukken button:hover { background: #1D2458; box-shadow: none; }
.film .hoofdstukken button b { font-family: var(--font-display); color: var(--tekst-zacht); font-variant-numeric: tabular-nums; }
.film .hoofdstukken button small { display: block; color: var(--tekst-zacht); font-size: .82rem; font-weight: 400; margin-top: 1px; }
.film .hoofdstukken button.nu { background: #222B6B; }
.film .hoofdstukken button.nu b { color: var(--accent); }
.film .tip { margin: 14px 4px 0; color: var(--tekst-zacht); font-size: .85rem; line-height: 1.5; }

/* startknop over het beeld */
.film .start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; border-radius: 0;
  box-shadow: none; cursor: pointer; background: rgba(10,13,43,.6); color: #fff; font: inherit; z-index: 70; }
.film .start:hover { box-shadow: none; }
.film .start[hidden] { display: none; }
.film .start .rond { width: 110px; height: 110px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.4); transition: transform .15s; }
.film .start:hover .rond { transform: scale(1.06); }
.film .start .rond svg { width: 44px; height: 44px; margin-left: 8px; }
.film .start strong { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 2rem); }
.film .start span { font-weight: 600; opacity: .85; }

/* ---------- overlays binnen het podium ---------- */
.film .cursor { position: absolute; left: 0; top: 0; width: 30px; height: 30px; z-index: 50; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.film .rimpel { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--das-rood); z-index: 49;
  pointer-events: none; animation: film-rimpel .55s ease-out forwards; }
@keyframes film-rimpel { to { transform: scale(3.2); opacity: 0; } }
.film .ring { position: absolute; z-index: 45; pointer-events: none; border: 4px solid var(--accent); border-radius: 14px;
  box-shadow: 0 0 0 6px rgba(240,84,74,.18); animation: film-ring 1s ease-in-out infinite alternate; }
@keyframes film-ring { from { box-shadow: 0 0 0 3px rgba(240,84,74,.15); } to { box-shadow: 0 0 0 12px rgba(240,84,74,.22); } }
.film .toets { position: absolute; right: 28px; top: 112px; z-index: 48; display: flex; gap: 8px; align-items: center; pointer-events: none;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 30px; color: var(--ink); }
.film .toets kbd { font: inherit; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-bottom-width: 6px; border-radius: 12px;
  padding: 10px 20px; min-width: 64px; text-align: center; }
.film .toets .plus { color: #fff; text-shadow: 0 1px 4px #000; }

/* titelkaart tussen de delen */
.film .titelkaart { position: absolute; inset: 0; z-index: 60; background: var(--fos-blauw); color: #fff; display: grid; align-content: center;
  padding: 0 120px; opacity: 0; pointer-events: none; }
.film .titelkaart .boven { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 22px; color: #FFB4AE; }
.film .titelkaart h2 { font-family: var(--font-display); font-weight: 800; font-size: 88px; line-height: 1; margin: 14px 0 18px; letter-spacing: -.02em; }
.film .titelkaart p { font-size: 30px; margin: 0; max-width: 960px; opacity: .9; }
.film .titelkaart .das { position: absolute; left: 120px; bottom: 90px; width: 160px; height: 10px; background: var(--das-rood); border-radius: 5px; }
/* een winkelsituatie krijgt een eigen, warme kaart */
.film .titelkaart.situatie { background: var(--havik-bruin); }
.film .titelkaart.situatie .boven { color: #FFE2BF; }

/* samenvatting op het einde */
.film .slot { position: absolute; inset: 0; z-index: 55; background: rgba(247,243,236,.97); color: var(--ink); padding: 36px 70px; opacity: 0; pointer-events: none; }
.film .slot h2 { font-family: var(--font-display); font-size: 52px; margin: 0 0 6px; color: var(--fos-blauw); }
.film .slot > p { font-size: 22px; margin: 0 0 24px; color: var(--ink-muted); }
.film .slot .kolommen { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.film .slot .blok { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 24px; }
.film .slot h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; }
.film .slot ol, .film .slot ul { margin: 0; padding-left: 26px; font-size: 19px; line-height: 1.5; }
.film .slot .twee { columns: 2; column-gap: 28px; }
.film .slot li::marker { color: var(--das-rood); font-weight: 700; }
.film .slot kbd { font: 700 16px ui-monospace, Consolas, monospace; background: var(--blauw-licht); color: var(--fos-blauw); border-radius: 6px; padding: 2px 8px; }

/* ---------- de nagebouwde app ---------- */
.film .app { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; display: flex; flex-direction: column; background: var(--surface);
  color: var(--ink); text-align: left; transform: translate(610px, 300px) scale(.275); transform-origin: 0 0; }
.film .app .balk { flex: none; flex-wrap: nowrap; gap: 10px; }
.film .app .logo img { height: 50px; }
.film .app .logo span { display: none; }
.film .app .balk nav { flex-wrap: nowrap; }
.film .app .balk nav a { white-space: nowrap; }
.film .app .balk nav a { padding: 6px 7px; font-size: .9rem; }
.film .app .jaar { white-space: nowrap; }
.film .app .rol { flex: 1; overflow: hidden; position: relative; }
.film .app main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 140px; }
.film .app button, .film .app .maat-chip { cursor: default; }
.film .app .artikels td, .film .app .m-veld { position: relative; }
.film .app .keuzelijst.suggesties { right: auto; min-width: 100%; }
/* het "focus"-kader van de film, want echte focus kan een filmbeeld niet hebben */
.film .app input.f, .film .app select.f, .film .app textarea.f { border-color: var(--fos-blauw); box-shadow: 0 0 0 2px var(--blauw-licht); }
.film .app button.f, .film .app .marge.f, .film .app .schakelaar.f { outline: 3px solid var(--fos-blauw); outline-offset: 2px; }
.film .app .vink.f { border-color: var(--fos-blauw); box-shadow: 0 0 0 2px var(--blauw-licht); }
.film .app .ingedrukt { filter: brightness(.88); }
.film .app textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); resize: none; }
.film .app .m-melding { position: absolute; top: 108px; left: 50%; transform: translateX(-50%); background: var(--fos-blauw); color: #fff;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 1.1rem; opacity: 0; transition: opacity .2s; z-index: 40; white-space: nowrap; }
.film .app .m-melding.zichtbaar { opacity: 1; }
.film .app .m-melding.fout { background: var(--das-rood); }
/* vensters (in de echte app een <dialog>, hier een gewone laag binnen het beeld) */
.film .app .m-achtergrond { position: absolute; inset: 0; z-index: 30; background: rgba(26,31,43,.45); display: grid; place-items: center; }
.film .app .m-venster { border-radius: var(--radius-md); padding: 20px 22px; width: 640px; background: #fff; box-shadow: 0 20px 60px rgba(26,31,43,.25); }
.film .app .m-venster label { margin: 0; }
.film .app .m-venster label > input, .film .app .m-venster label > select { width: 100%; }
.film .app .m-bevestig { width: 440px; padding: 22px 24px; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(26,31,43,.3); }
.film .app .m-bevestig p { margin: 0 0 18px; font-size: 1.05rem; white-space: pre-line; }
.film .app .m-bevestig .knoppen { display: flex; justify-content: flex-end; gap: 8px; }
/* een eenvoudige pagina zonder de app eromheen (aanmelden, geen toegang, papier) */
.film .app .m-kaal { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; z-index: 20; }
.film .app .m-kaal .tekst { max-width: 760px; font: 18px/1.5 ui-monospace, Consolas, monospace; color: var(--ink); padding: 0 40px; }
.film .app .m-aanmelden { width: 440px; padding: 40px 44px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.film .app .m-aanmelden h3 { font-size: 1.5rem; margin: 18px 0 16px; font-weight: 600; }
.film .app .m-aanmelden input { width: 100%; border: 0; border-bottom: 1px solid #666; border-radius: 0; padding: 8px 0; }
.film .app .m-aanmelden .ms { display: grid; grid-template-columns: repeat(2, 10px); gap: 2px; }
.film .app .m-aanmelden .ms i { width: 10px; height: 10px; }
.film .app .m-aanmelden .knop-ms { display: block; margin: 24px 0 0 auto; background: #0067B8; color: #fff; border-radius: 0; box-shadow: none; padding: 7px 30px; }
.film .app .m-wifi { font-size: 120px; line-height: 1; text-align: center; }
.film-kies .schakelaar a { padding: 9px 18px; border-radius: 0; box-shadow: none; color: var(--ink); text-decoration: none; font-weight: 600; }
.film-kies .schakelaar a:hover { background: var(--blauw-licht); }
.film-kies .schakelaar a.aan { background: var(--fos-blauw); color: var(--on-blauw); }
/* startknop schaalt mee met het beeld (smal scherm) */
.film .start { gap: 1.2cqw; }
.film .start .rond { width: clamp(52px, 11cqw, 110px); height: clamp(52px, 11cqw, 110px); }
.film .start .rond svg { width: 40%; height: 40%; }
.film .start strong { font-size: clamp(1rem, 3cqw, 2rem); }
.film .start span { font-size: clamp(.75rem, 1.6cqw, 1rem); }

/* ---------- het toneel: de winkel rond de laptop ---------- */
.film .wereld { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; will-change: transform; }
.film .decor { position: absolute; inset: 0; width: 1280px; height: 800px; font-family: var(--font-sans); }
.film .cursor { transition: opacity .2s; }
.film .bubbel { position: absolute; z-index: 5; max-width: 440px; width: max-content; transform: translateY(-100%);
  padding: 14px 20px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px;
  font-size: 25px; line-height: 1.3; font-weight: 600; box-shadow: 0 6px 0 rgba(26,31,43,.12); animation: film-bubbel .25s ease-out; }
.film .bubbel b { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--das-rood); margin-bottom: 2px; }
.film .bubbel::after { content: ""; position: absolute; bottom: -19px; width: 26px; height: 26px; background: #fff;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.film .bubbel.links::after { left: 70px; }
.film .bubbel.rechts::after { right: 56px; }
@keyframes film-bubbel { from { transform: translateY(-100%) scale(.85); opacity: 0; } }
.film .toneel-papier { position: absolute; left: 330px; top: 150px; z-index: 6; width: 640px; padding: 26px 32px; background: #FFFDF6;
  border: 1px solid #E8DFC8; box-shadow: 0 14px 40px rgba(0,0,0,.25); transform: rotate(-1.5deg); animation: film-bubbel-op .3s ease-out;
  font: 22px/1.6 "Segoe Print", "Comic Sans MS", cursive; color: #233; }
.film .toneel-papier h3 { font: inherit; font-weight: 700; margin: 0 0 8px; }
.film .toneel-papier td { padding: 2px 12px 2px 0; border-bottom: 1px dashed #D9CFB4; }
@keyframes film-bubbel-op { from { opacity: 0; transform: rotate(-1.5deg) translateY(20px); } }
