/* The product film: five moments on a dark stage that spans the viewport. The caption lives in the
   section head above the stage, the interface fills the stage, and the camera dollies and pans.
   The world has a fixed logical size (1440 × 800) scaled to fit. Only transforms and opacity move;
   no backdrop-filter inside the world. Light tokens are restored on every moment so the interface
   stays the light Enthy surface on the dark room. */

/* ---------- The film: a sticky viewport. The headline above, the rail at the left edge, the stage across the width ---------- */
.film-track { position: relative; }
.film { position: relative; width: min(calc(100vw - 48px), 1560px); margin-left: calc((100% - min(calc(100vw - 48px), 1560px)) / 2); }
.film-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-bottom: 18px; }
.film-switch { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.film-switch-pills { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--gl-edge); background: var(--gl-bg-3); }
.film-switch button { padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.film-switch button:hover { color: var(--ink); }
.film-switch button[aria-pressed="true"] { background: var(--pill-active); border-color: var(--gl-edge); color: var(--ink); }
.film-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.film-head .film-count { grid-column: 3; grid-row: 1; justify-self: end; }
.startseite .film-title { grid-column: 2; grid-row: 1; min-height: 1.15em; color: var(--ink); text-align: center; font-size: clamp(24px, 2.2vw, 30px); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.film-title:not(.is-in) { opacity: 0; transform: translateY(8px); }
.film-meta { display: contents; color: var(--ink-soft); }
.film-count { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.film-count b { color: var(--ink); }
.preview-note { max-width: none; margin: 14px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; text-align: left; }
@media (min-width: 901px) {
  /* No scroll snapping: the page scrolls freely, the scroll position alone chooses the chapter. */
  .film-track { height: calc(100vh + 5 * 60vh); }
  .film-track .film { position: sticky; top: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100vh; margin-left: 0; padding: 92px 48px 40px 188px; }
  .preview-note { position: absolute; right: 48px; bottom: 16px; margin: 0; }
  .startseite .preview.section-frame { width: 100%; padding: 0 0 80px; }
}

/* ---------- The rail: five marks on a hairline at the left edge. The segment fills while the chapter plays. ---------- */
.film-spine { position: absolute; left: 48px; top: 50%; z-index: 2; transform: translateY(-50%); }
.spine-list { list-style: none; margin: 0; padding: 0; }
.spine-item { position: relative; height: 56px; }
.spine-item:last-child { height: 20px; }
.spine-dot { position: relative; display: block; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.spine-dot::before { content: ""; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); opacity: .7; transform: scale(.72); transition: background .35s, opacity .35s, transform .35s, box-shadow .35s; }
.spine-item.is-past .spine-dot::before { background: var(--accent); opacity: .9; transform: scale(.85); }
.spine-item.is-on .spine-dot::before { background: var(--accent); opacity: 1; transform: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); }
/* The title appears once a chapter has played or plays; chapters ahead keep their mark and show the name on hover. */
.spine-dot span { position: absolute; left: 26px; top: 50%; color: var(--ink-soft); font-size: 12px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap; opacity: 0; transform: translate(-4px, -50%); pointer-events: none; transition: opacity .35s, transform .35s, color .35s; }
.spine-item.is-past .spine-dot span { opacity: .78; transform: translate(0, -50%); }
.spine-item.is-on .spine-dot span { opacity: 1; transform: translate(0, -50%); color: var(--ink); font-weight: 750; }
.spine-dot:hover span, .spine-dot:focus-visible span { opacity: .7; transform: translate(0, -50%); }
.spine-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spine-seg { position: absolute; left: 9px; top: 17px; width: 2px; height: 42px; border-radius: 1px; background: color-mix(in srgb, var(--ink-soft) 42%, transparent); overflow: hidden; }
.spine-seg b { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(0); transition: transform 0ms linear; }
.spine-item:last-child .spine-seg { display: none; }

/* ---------- Stage, world, camera. No frame: the stage is the dark room itself. ---------- */
.film-stage { position: relative; z-index: 1; height: calc(var(--fit, 1) * 800px); overflow: hidden; }
.world { position: absolute; left: 50%; top: 0; z-index: 1; width: 1440px; height: 800px; margin-left: -720px; transform-origin: 50% 0; transform: scale(var(--fit, 1)); }
.camera { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform var(--cam-ms, 1200ms) var(--cam-ease, cubic-bezier(.5, 0, .1, 1)); }
.world-inner { position: absolute; inset: 0; }
.moment { position: absolute; inset: 0; opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  --ink: #183f3b; --ink-2: #33524f; --ink-soft: #5d7a7c; --accent: #0f6e73; --accent-2: #2d8a8f; --line: rgb(24 56 50 / 10%); --hair: rgb(24 56 50 / 11%);
  --gl-bg: rgb(255 255 255 / 44%); --gl-bg-2: rgb(255 255 255 / 62%); --gl-bg-3: rgb(255 255 255 / 36%); --gl-edge: rgb(255 255 255 / 80%); --gl-ring: rgb(24 56 50 / 7%);
  --gl-inner: inset 0 1px 0 rgb(255 255 255 / 95%), inset 0 -1px 0 rgb(255 255 255 / 30%); --pill-bg: rgb(255 255 255 / 42%); --pill-active: rgb(255 255 255 / 88%); color: var(--ink); }
/* A chapter enters the way the page moves: from below when scrolling down, from above when scrolling up, in place when it loops. */
.world-inner[data-dir="up"] .moment { transform: translateY(-26px) scale(.985); }
.world-inner[data-dir="loop"] .moment { transform: scale(.985); }
.world-inner .moment.is-in { opacity: 1; transform: none; }
.world-inner .moment.is-out { opacity: 0; transform: translateY(-22px) scale(1.01); transition: opacity .34s ease-in, transform .34s ease-in; }
.world-inner[data-dir="up"] .moment.is-out { transform: translateY(22px) scale(1.01); }
.world-inner .moment.is-gone { opacity: 0; transform: none; transition: opacity .42s ease-in; }

/* Reveals: anything that enters slides up and settles */
.studio-file, .studio-plan, .plan-weeks, .ui-rail, .rail-rows li, .ui-read, .ui-feedback, .ui-enthy, .enthy-question, .enthy-typing, .enthy-answer, .ui-laptop, .ui-pad, .ui-exam, .ui-end, .sel-chip, .plan-rows li { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .65s cubic-bezier(.2, .8, .2, 1); }
.studio-file.is-in, .studio-plan.is-in, .plan-weeks.is-in, .ui-rail.is-in, .rail-rows li.is-in, .ui-read.is-in, .ui-feedback.is-in, .ui-enthy.is-in, .enthy-question.is-in, .enthy-typing.is-in, .enthy-answer.is-in, .ui-laptop.is-in, .ui-pad.is-in, .ui-exam.is-in, .ui-end.is-in, .sel-chip.is-in, .plan-rows li.is-in { opacity: 1; transform: none; }
.enthy-typing { position: absolute; }
.enthy-typing.is-in { position: static; }

/* ---------- Shared pieces ---------- */
.ui-card { position: absolute; border-radius: 26px; border: 1px solid rgb(255 255 255 / 85%); background: linear-gradient(160deg, rgb(255 255 255 / 96%), rgb(240 246 243 / 96%)); box-shadow: 0 50px 100px -40px rgb(0 0 0 / 70%), 0 0 0 1px rgb(0 0 0 / 12%), inset 0 1px 0 #fff; }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stage-kicker { display: block; color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ui-source { color: var(--ink-soft); font-size: 11.5px; font-weight: 650; }
.ui-disclosure { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 10px; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ui-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 11px; border: 1px solid var(--gl-edge); border-radius: 999px; background: rgb(255 255 255 / 70%); color: var(--ink); font-size: 12px; font-weight: 650; }
.ui-chip i { color: var(--accent); font-style: normal; font-size: 11px; }
.moment .button { transition: transform .25s, box-shadow .25s, filter .25s; }
.moment .button.is-pressed { transform: scale(.96); filter: brightness(1.08); box-shadow: 0 0 0 6px rgb(15 110 115 / 18%), 0 16px 36px -14px #14484c99; }
.summary-index { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--gl-edge); background: #fff; color: var(--ink-soft); font-size: 10.5px; font-weight: 800; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 01 Studio: the prompt, the work, the plan ---------- */
.ui-studio { position: absolute; inset: 0; }
.studio-head { margin-top: 112px; text-align: center; transition: opacity .5s, transform .6s; }
.studio-head .stage-kicker { color: #8fd4cf; }
.startseite .studio-head h3 { margin-top: 12px; color: #f1f8f6; font-size: 48px; font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.studio-head p { margin-top: 12px; color: #b6cfcc; font-size: 15px; }
.studio-head.is-away { opacity: 0; transform: translateY(-16px); }
.studio-input { left: 400px; top: 316px; width: 640px; padding: 22px 24px 18px; border-radius: 30px; transition: opacity .5s, transform .6s; }
.studio-input.is-away { opacity: 0; transform: translateY(-20px) scale(.98); }
.studio-field { min-height: 48px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.studio-placeholder { color: var(--ink-soft); transition: opacity .3s; }
.studio-placeholder.is-off { display: none; }
.studio-caret { display: inline-block; width: 1.5px; height: 18px; margin-left: 1px; background: var(--accent); vertical-align: -3px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.studio-files { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgb(24 56 50 / 18%); }
.studio-file { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 12px 6px 8px; border: 1px solid var(--gl-edge); border-radius: 12px; background: rgb(255 255 255 / 75%); box-shadow: var(--gl-inner); transform: translateY(-30px) scale(.9); }
.studio-file.is-in { transform: none; }
.studio-file i { display: block; width: 22px; height: 26px; border-radius: 5px 8px 5px 5px; background: linear-gradient(160deg, #2f7f84, #16545b); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%); }
.studio-file b { font-size: 12.5px; font-weight: 700; }
.studio-file small { color: var(--ink-soft); font-size: 11px; }
.studio-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.studio-hint { font-size: 11.5px; }
.studio-plan { left: 340px; top: 96px; width: 760px; padding: 24px 26px 22px; }
.startseite .studio-plan h4 { margin-top: 12px; font-size: 24px; font-weight: 750; letter-spacing: -.03em; line-height: 1.25; }
.plan-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; }
.plan-rows li { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 12px; border: 1px solid var(--gl-edge); border-radius: 16px; background: rgb(255 255 255 / 60%); box-shadow: var(--gl-inner); }
.plan-rows b { flex: 1 1 auto; font-size: 14.5px; font-weight: 720; }
.plan-rows em { padding: 5px 11px; border-radius: 999px; background: rgb(15 110 115 / 12%); color: var(--accent); font-size: 11.5px; font-style: normal; font-weight: 750; }
.plan-weeks { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.plan-weeks > div { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--gl-edge); background: rgb(255 255 255 / 55%); }
.plan-weeks b { display: block; margin-top: 3px; font-size: 12px; font-weight: 650; line-height: 1.35; }
.plan-weeks .plan-exam { border-color: rgb(15 110 115 / 35%); background: rgb(15 110 115 / 8%); }
.plan-weeks .plan-exam b { color: var(--accent); }

/* ---------- The course shell: the chapter rail on the left, the content beside it ---------- */
.ui-rail { left: 40px; top: 40px; width: 300px; height: 720px; display: flex; flex-direction: column; padding: 22px 18px 18px; transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .65s cubic-bezier(.2, .8, .2, 1); }
/* Enthy opens: the course rail leaves to the left, the content takes its place, the question keeps its width. */
.has-enthy .ui-rail { opacity: 0; transform: translateX(-380px); transition: opacity .6s cubic-bezier(.5, 0, .1, 1), transform .9s cubic-bezier(.5, 0, .1, 1); }
.rail-head b { display: block; margin-top: 8px; font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.rail-head small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 12px; }
.rail-progress { display: block; height: 4px; margin-top: 14px; border-radius: 2px; background: rgb(24 56 50 / 10%); overflow: hidden; }
.rail-progress i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #2f7f84, #6fd3cf); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.rail-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.rail-rows li { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 10px; border: 1px solid transparent; border-radius: 16px; transition: opacity .55s, transform .65s, background .4s, border-color .4s; }
.rail-rows li.is-on { border-color: var(--gl-edge); background: rgb(255 255 255 / 70%); box-shadow: var(--gl-inner); }
.rail-name { flex: 1 1 auto; min-width: 0; }
.rail-name b { display: block; font-size: 14px; font-weight: 720; }
.rail-name small { display: block; color: var(--ink-soft); font-size: 11.5px; }
.rail-check { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgb(24 56 50 / 16%); transition: background .35s, border-color .35s; }
.rail-check::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; opacity: 0; transform: rotate(45deg) scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .2, 1.2); }
.rail-rows li.is-done .rail-check { background: linear-gradient(145deg, #3aa0a6, #1d6c73); border-color: transparent; }
.rail-rows li.is-done .rail-check::after { opacity: 1; transform: rotate(45deg) scale(1); }
.rail-rows li.is-done .summary-index { color: var(--accent); }
.rail-exam { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px; border: 1px dashed rgb(24 56 50 / 22%); opacity: .6; transition: opacity .5s, border-color .5s, background .5s; }
.rail-exam img { width: 22px; height: 22px; border-radius: 7px; }
.rail-exam b { display: block; font-size: 12.5px; font-weight: 700; }
.rail-exam.is-ready { opacity: 1; border: 1px solid rgb(15 110 115 / 40%); background: rgb(15 110 115 / 9%); }
.ui-content { position: absolute; left: 380px; top: 40px; width: 1020px; height: 720px; transition: left .9s cubic-bezier(.5, 0, .1, 1), width .9s cubic-bezier(.5, 0, .1, 1); }
.has-enthy .ui-content { left: 40px; width: 1360px; }
.ui-content > .ui-card { left: 0; top: 0; }

/* ---------- 02 Kurs: the chapter opens ---------- */
.ui-read { left: 80px !important; width: 860px; padding: 26px 32px 24px; }
.startseite .ui-read h4 { margin-top: 12px; font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; }
.ui-read p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.read-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 03 Frage, Enthy beside it ---------- */
.ui-question { width: 1020px; padding: 26px 30px 24px; }
.startseite .ui-question h4 { margin-top: 12px; font-size: 24px; font-weight: 750; letter-spacing: -.03em; line-height: 1.25; }
.ui-statements { display: grid; gap: 7px; margin-top: 18px; }
.ui-statement { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 8px 8px 8px 16px; border: 1px solid var(--gl-edge); border-radius: 16px; background: rgb(255 255 255 / 60%); font-size: 14px; font-weight: 550; line-height: 1.4; box-shadow: var(--gl-inner); transition: border-color .4s, background .4s, transform .3s; }
.ui-statement.is-set { transform: translateX(2px); }
.ui-statement.is-right { border-color: rgb(15 110 115 / 40%); background: rgb(15 110 115 / 8%); }
.ui-statement.is-wrong { border-color: rgb(183 131 73 / 70%); background: rgb(183 131 73 / 14%); }
.tf { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--gl-edge); background: rgb(255 255 255 / 70%); }
.tf b { min-height: 28px; padding: 4px 12px; border-radius: 999px; color: var(--ink-soft); font-size: 12px; font-weight: 700; line-height: 20px; transition: background .3s, color .3s; }
.tf b.on { background: linear-gradient(145deg, #2f7f84, #16545b); color: #fff; }
.ui-feedback { position: relative; margin-top: 16px; padding: 14px 18px 18px; border-radius: 18px; border: 1px solid var(--gl-edge); background: rgb(255 255 255 / 70%); box-shadow: var(--gl-inner); }
.ui-verdict { display: flex; align-items: center; gap: 10px; }
.ui-verdict i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #b78349; color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.ui-verdict b { font-size: 14.5px; font-weight: 750; }
.ui-verdict span { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.ui-feedback > p { position: relative; margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
/* The marking: a marker sweep across the sentence, then the chip hangs off it like a selection popover. */
/* The marking is a real text highlight: it clones per line and sweeps in from the left of each line. */
.sel { padding: 1px 3px; margin: 0 -3px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(rgb(111 211 207 / 50%), rgb(111 211 207 / 50%)) no-repeat 0 0 / 0% 100%; transition: background-size 1.1s cubic-bezier(.35, .05, .2, 1), color .4s; }
.sel.is-on { background-size: 100% 100%; color: var(--ink); font-weight: 650; }
.sel-chip { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border: 0; border-radius: 999px; background: linear-gradient(145deg, #2f7f84, #16545b); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 14px 30px -12px rgb(24 56 50 / 70%), inset 0 1px #ffffff40; }
.sel-chip::before { content: ''; position: absolute; left: 16px; top: -4px; width: 8px; height: 8px; background: #2d7c81; transform: rotate(45deg); }
.sel-chip i { font-style: normal; font-size: 11px; opacity: .9; }
.sel-chip.is-in { animation: chip-pulse 1.5s ease-out .25s 1; }
@keyframes chip-pulse { 30% { box-shadow: 0 14px 30px -12px rgb(24 56 50 / 60%), 0 0 0 10px rgb(15 110 115 / 16%); } 100% { box-shadow: 0 14px 30px -12px rgb(24 56 50 / 60%), 0 0 0 0 rgb(15 110 115 / 0%); } }
.sel-chip.is-pressed { transform: scale(.95); filter: brightness(1.12); }
/* Enthy: the panel beside the question, the thread above, the composer below with the marked passage in it. */
.ui-enthy { left: 1040px !important; width: 320px; height: 720px; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 12px; transform: translateX(30px); }
.ui-enthy.is-in { transform: none; }
.enthy-head { display: flex; align-items: center; gap: 10px; }
.enthy-head img { width: 32px; height: 32px; border-radius: 10px; }
.enthy-head b { display: block; font-size: 14px; font-weight: 750; }
.enthy-scope { margin-left: auto; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--gl-edge); background: rgb(255 255 255 / 70%); color: var(--ink-soft); font-size: 10.5px; font-weight: 700; }
.enthy-thread { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px); mask-image: linear-gradient(to bottom, transparent 0, #000 32px); } /* a chat: the newest line stays visible, older ones leave upwards */
.enthy-quote { display: block; padding: 8px 11px; border-left: 2px solid var(--accent); border-radius: 8px; background: rgb(15 110 115 / 7%); color: var(--ink-2); font-size: 12px; line-height: 1.5; overflow: hidden; max-height: 140px; transition: max-height .45s, opacity .3s, margin .45s, padding .45s; }
.enthy-quote i { display: block; margin-bottom: 2px; color: var(--accent); font-size: 9.5px; font-style: normal; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.enthy-quote.is-away { max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; opacity: 0; }
.enthy-question { max-width: 340px; margin-left: auto; padding: 10px 14px 11px; border-radius: 18px 18px 4px 18px; background: linear-gradient(145deg, #2f7f84, #16545b); color: #fff; font-size: 13.5px; line-height: 1.5; }
.enthy-question .enthy-quote { margin-bottom: 8px; border-left-color: rgb(255 255 255 / 60%); background: rgb(255 255 255 / 12%); color: rgb(255 255 255 / 88%); font-size: 11.5px; }
.enthy-question .enthy-quote i { color: rgb(255 255 255 / 75%); }
.enthy-typing { display: inline-flex; gap: 5px; padding: 11px 15px; border-radius: 18px 18px 18px 4px; background: rgb(255 255 255 / 80%); border: 1px solid var(--gl-edge); width: fit-content; }
.enthy-typing i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: typing 1s ease-in-out infinite; }
.enthy-typing i:nth-child(2) { animation-delay: .15s; } .enthy-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
.enthy-answer p { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; }
.enthy-answer p + p { margin-top: 8px; }
.enthy-reference { display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--gl-edge); background: rgb(255 255 255 / 70%); color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.enthy-composer { margin-top: auto; padding: 10px; border-radius: 18px; border: 1px solid rgb(15 110 115 / 22%); background: #fff; box-shadow: 0 14px 30px -18px rgb(24 56 50 / 40%); }
.enthy-field { position: relative; display: flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 8px 46px 8px 12px; border-radius: 12px; border: 1px solid var(--gl-edge); background: rgb(240 246 243 / 80%); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.enthy-composer .enthy-quote.is-away + .enthy-field { margin-top: 0; }
.enthy-field .studio-caret { height: 15px; }
.enthy-send { position: absolute; right: 7px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: linear-gradient(145deg, #2f7f84, #16545b); color: #fff; font-size: 15px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.enthy-send.is-pressed { transform: scale(.88); box-shadow: 0 0 0 6px rgb(15 110 115 / 18%); }

/* ---------- 04 Denkraum: the laptop window in 16:9 and the iPad, the same sheet ---------- */
.ui-laptop { position: absolute; left: 60px; top: 40px; width: 860px; }
.laptop-screen { border-radius: 20px; padding: 12px; background: linear-gradient(180deg, #1c2426, #0f1517); box-shadow: 0 60px 110px -50px rgb(0 0 0 / 85%), inset 0 1px 0 rgb(255 255 255 / 12%), 0 0 0 1px rgb(0 0 0 / 40%); }
.laptop-lip { height: 14px; margin: 0 -30px; border-radius: 0 0 16px 16px / 0 0 10px 10px; background: linear-gradient(180deg, #d5dbdb, #a8b1b1 70%, #8d9696); box-shadow: 0 24px 40px -24px rgb(0 0 0 / 70%); }
.laptop-lip::before { content: ''; display: block; width: 120px; height: 5px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #7c8585; }
.wb { display: flex; flex-direction: column; height: 470px; overflow: hidden; border-radius: 12px; background: radial-gradient(120% 90% at 18% 10%, #dcece6 0%, #e9f0ec 45%, #eef1ec 100%); }
.wb-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--hair); }
.wb-brand { display: flex; align-items: center; gap: 10px; }
.wb-brand img { width: 28px; height: 28px; border-radius: 9px; }
.wb-brand b { display: block; font-size: 13px; font-weight: 750; }
.wb-devices { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gl-edge); background: rgb(255 255 255 / 60%); color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.wb-devices i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgb(15 110 115 / 15%); }
.wb-body { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) 268px; min-height: 0; }
.wb-work { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 12px 14px 14px 16px; border-right: 1px solid var(--hair); }
.wb-task { display: grid; gap: 3px; padding: 9px 14px; border-radius: 12px; border: 1px solid rgb(15 110 115 / 28%); background: linear-gradient(135deg, rgb(15 110 115 / 9%), rgb(255 255 255 / 55%)); }
.wb-task p { color: var(--ink); font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.wb-paper { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--gl-edge); background: #fbfcfb; box-shadow: var(--gl-inner); }
.wb-paper .ink, .pad-sheet .ink { position: absolute; inset: 0; width: 100%; height: 100%; background-image: radial-gradient(rgb(24 56 50 / 16%) 1px, transparent 1.2px); background-size: 7% 8.2%; background-position: 3.5% 4.1%; }
.wb-guide { display: flex; flex-direction: column; min-height: 0; padding: 12px 14px; }
.wb-coach { padding: 14px; border-radius: 16px; border: 1px solid rgb(15 110 115 / 30%); background: linear-gradient(145deg, rgb(15 110 115 / 10%), rgb(255 255 255 / 55%)); box-shadow: var(--gl-inner); transition: border-color .5s, background .5s; }
.wb-coach.is-hint { border-color: rgb(183 131 73 / 55%); background: linear-gradient(145deg, rgb(183 131 73 / 12%), rgb(255 255 255 / 55%)); }
.wb-coach.is-ok { border-color: rgb(15 110 115 / 45%); }
.hint-head { display: flex; align-items: center; gap: 10px; }
.hint-head img { width: 28px; height: 28px; border-radius: 9px; }
.hint-head b { display: block; font-size: 13px; font-weight: 750; }
/* Enthy reads line by line: the log fills while the pencil writes. */
.coach-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.coach-log:empty { display: none; }
.coach-log li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: 11.5px; line-height: 1.4; opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s; }
.coach-log li.is-in { opacity: 1; transform: none; }
.coach-log li i { position: relative; flex: none; display: block; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; }
.coach-log .is-ok i { background: linear-gradient(145deg, #3aa0a6, #1d6c73); }
.coach-log .is-ok i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.coach-log .is-hint i { background: #b78349; }
.coach-log .is-hint i::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
.coach-log .is-wait i { border: 1.5px solid rgb(24 56 50 / 15%); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint-body { margin-top: 10px; display: grid; gap: 8px; color: var(--ink-2); font-size: 12px; line-height: 1.55; }
.hint-body:empty { display: none; }
.hint-body.is-fresh { animation: room-arrive .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes room-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hint-next { padding: 9px 11px; border-radius: 12px; border-left: 2px solid var(--accent); background: rgb(15 110 115 / 7%); }
.hint-next span { display: block; color: var(--accent); font-size: 9.5px; font-weight: 800; letter-spacing: .14em; }
.hint-next p { margin-top: 2px; color: var(--ink); font-weight: 600; }
.ink-stroke { fill: none; stroke: #153f45; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ink-mark { fill: rgb(183 131 73 / 16%); stroke: rgb(183 131 73 / 55%); stroke-width: 2; opacity: 0; transition: opacity .5s; }
.ink-mark.is-ok { fill: rgb(15 110 115 / 12%); stroke: rgb(15 110 115 / 50%); }
.ink-mark.is-on { opacity: 1; }
.ink-tick { opacity: 0; transition: opacity .3s; }
.ink-tick.is-on { opacity: 1; }
.ink-tick circle { fill: #fff; stroke: #2f7f84; stroke-width: 2.5; }
.ink-tick path { fill: none; stroke: #2f7f84; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s .15s; }
.ink-tick.is-on path { stroke-dashoffset: 0; }
.ink-tick.is-hint circle, .ink-tick.is-hint path { stroke: #b78349; }
.ui-pad { position: absolute; left: 970px; top: 170px; width: 420px; height: 336px; padding: 11px; border-radius: 26px; background: linear-gradient(160deg, #2c3437, #0e1315); box-shadow: 0 60px 100px -40px rgb(0 0 0 / 85%), inset 0 1px 0 rgb(255 255 255 / 14%), 0 0 0 1px rgb(0 0 0 / 40%); transform: translate(30px, 24px) rotateZ(-4deg); }
.ui-pad.is-in { transform: rotateZ(-4deg); }
.ui-pad::before { content: ''; position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #0a0d0e; box-shadow: inset 0 0 0 1.5px #23292b; }
.pad-bar { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 14px; border-radius: 16px 16px 0 0; background: #f7faf8; color: var(--ink-soft); font-size: 9.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.pad-bar span:last-child { color: var(--accent); }
.pad-sheet { position: relative; height: calc(100% - 26px); overflow: hidden; border-radius: 0 0 16px 16px; background: #fbfcfb; }
.pencil { position: absolute; left: 0; top: 0; width: 6px; height: 74px; margin: -74px 0 0 -3px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #f4f4f2, #d7d9d6 85%, #7a7f7d); box-shadow: 0 8px 12px -4px rgb(0 0 0 / 35%); transform-origin: 50% 100%; opacity: 0; transition: opacity .25s; will-change: transform; }
.pencil::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 0; height: 0; margin-left: -3px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 6px solid #3d4342; }
.pencil.is-on { opacity: 1; }

/* ---------- 05 Prüfung and the end ---------- */
.ui-exam { left: 90px !important; top: 130px !important; width: 840px; padding: 26px 30px 24px; }
.startseite .ui-exam h4 { margin-top: 12px; font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; }
.exam-facts { display: grid; grid-template-columns: 1fr 1fr 2.2fr; gap: 8px; margin-top: 18px; }
.exam-facts div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gl-edge); background: rgb(255 255 255 / 60%); box-shadow: var(--gl-inner); }
.exam-facts b { display: block; font-size: 14px; font-weight: 720; line-height: 1.35; }
.exam-clock { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 12px 18px; border-radius: 14px; background: linear-gradient(135deg, #1b3f43, #0f2427); color: #fff; }
.exam-clock .stage-kicker { color: #8fd4cf; }
.exam-clock b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.exam-bar { flex: 1 1 auto; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 18%); overflow: hidden; }
.exam-bar i { display: block; height: 100%; width: 100%; background: #6fd3cf; transform-origin: 100% 50%; transition: transform 6s linear; }
.exam-clock.is-running .exam-bar i { transform: scaleX(.94); }
.exam-clock.is-running b { animation: clock-tick 1s steps(1) infinite; }
@keyframes clock-tick { 50% { opacity: .75; } }
.m-finish.is-ending .ui-rail, .m-finish.is-ending .ui-content { opacity: 0; transform: scale(.88) translateY(24px); transition: opacity .7s cubic-bezier(.5, 0, .1, 1), transform .9s cubic-bezier(.5, 0, .1, 1); }
/* The end: the mark blooms out of the receding course, two rings, the line rises in two beats, the door opens. */
.ui-end { position: absolute; left: 50%; top: 50%; width: 680px; margin: -200px 0 0 -340px; text-align: center; transform: none; transition: opacity .3s; }
.ui-end img { position: relative; width: 76px; height: 76px; border-radius: 24px; opacity: 0; transform: scale(.4); filter: drop-shadow(0 0 0 rgb(111 211 207 / 0%)); transition: opacity .6s, transform 1s cubic-bezier(.2, .9, .2, 1.1), filter 1.2s; }
.ui-end.is-in img { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 36px rgb(111 211 207 / 60%)); }
.end-glow { position: absolute; left: 50%; top: 38px; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgb(111 211 207 / 26%), rgb(111 211 207 / 0%) 62%); opacity: 0; transform: scale(.3); transition: opacity 1.4s, transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.ui-end.is-in .end-glow { opacity: 1; transform: scale(1); }
.end-bloom { position: absolute; left: 50%; top: 38px; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1.5px solid rgb(111 211 207 / 70%); opacity: 0; transform: scale(.6); }
.ui-end.is-in .end-bloom { animation: bloom 1.7s cubic-bezier(.2, .7, .2, 1) .15s both; }
.ui-end.is-in .end-bloom-2 { animation-delay: .5s; animation-duration: 2s; }
@keyframes bloom { 0% { opacity: 0; transform: scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: scale(7); } }
.startseite .ui-end h4 { margin-top: 22px; color: #f1f8f6; font-size: 46px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.ui-end h4 span { display: block; opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.ui-end.is-in h4 span:nth-child(1) { opacity: 1; transform: none; transition-delay: .55s; }
.ui-end.is-in h4 span:nth-child(2) { opacity: 1; transform: none; transition-delay: .8s; }
.ui-end p { margin-top: 14px; color: #b6cfcc; font-size: 15px; opacity: 0; transform: translateY(12px); transition: opacity .6s 1.05s, transform .7s 1.05s; }
.ui-end .end-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.ui-end .button { opacity: 0; transform: translateY(12px); transition: opacity .6s 1.3s, transform .7s 1.3s; }
.ui-end .end-replay { transition-delay: 1.5s; }
.startseite .ui-end .end-replay { border: 1px solid rgb(176 224 218 / 24%); background: rgb(255 255 255 / 8%); color: #e9f3f0; box-shadow: none; }
.startseite .ui-end .end-replay:hover { background: rgb(255 255 255 / 14%); }
.ui-end.is-in p, .ui-end.is-in .button { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .film-spine { display: none; }
  .film-head { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .film-switch { grid-column: 1; flex-wrap: wrap; gap: 8px; }
  .film-switch button { padding: 6px 10px; font-size: 12px; }
  .film-head .film-count { grid-column: 2; grid-row: 1; }
  .startseite .film-title { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .startseite .film-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .camera, .moment, .film-title, .ui-enthy, .ui-pad, .ui-laptop, .sel, .ui-question, .ui-rail, .ui-content { transition: none; }
  .enthy-typing i, .studio-caret, .sel-chip.is-in, .ui-end.is-in .end-bloom, .coach-log .is-wait i, .exam-clock.is-running b { animation: none; }
}
