@font-face { font-family: 'Suisse'; src: url('../src/fonts/SuisseIntl-Book.otf'); font-display: swap; }
@font-face { font-family: 'SuisseSB'; src: url('../src/fonts/SuisseIntl-SemiBold.otf'); font-display: swap; }
@font-face { font-family: 'DINC'; src: url('../src/fonts/DINCondensed-Bold.ttf'); font-display: swap; }

:root {
  --bg: #06080a; --bg2: #0c1013; --line: rgba(215, 253, 0, 0.16); --ink: #eef2e8; --mute: #97a1a0; --green: #d7fd00; --red: #ff4a36;
  --paper: #f1efe6; --paper-ink: #16181a; --r: 14px;
  --pad: clamp(20px, 5.5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 'Suisse', system-ui, sans-serif; overflow-x: hidden; }
body.locked #page { display: none; }
body.locked { overflow: hidden; height: 100svh; touch-action: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'SuisseSB', system-ui, sans-serif; font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 8vw, 56px); line-height: 1.04; margin: 6px 0 28px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.2; }
p { margin: 0; }
.kicker { font: 15px/1 'DINC', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
.small { font-size: 14px; color: #5d625f; margin-top: 8px; }
.center { text-align: center; }
.internal { font-size: 13px; color: #c99a2e; margin-top: 14px; }
.internal::before { content: '◆ '; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 15px/1 'DINC', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, opacity 0.2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--green); color: #0b0d06; box-shadow: 0 0 0 0 rgba(215, 253, 0, 0.5); }
.btn-primary:not(:disabled):hover { box-shadow: 0 0 32px -6px rgba(215, 253, 0, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.btn-wide { width: 100%; margin-top: 26px; }
.link { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- hero / tresor ---------- */
#hero { position: relative; height: 100svh; min-height: 520px; background: #000; }
.pin { position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; }
body.opened #hero { height: 380svh; }      /* 280svh Scrollweg: Kamera fliegt über den Plan, das Blatt faltet sich auf, wird zur Seite */
.stage { position: absolute; inset: 0; transition: transform 1.4s var(--ease), border-radius 1.4s var(--ease), inset 1.4s var(--ease); overflow: hidden; }
#vault { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
body.opened #vault { touch-action: pan-y; cursor: default; }      /* Oktay 26.11. 02:17: nach dem Öffnen muss Wischen die Seite scrollen (sonst schluckt der Tresor den Finger) */
#vault.dragging { cursor: grabbing; }
#lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.gate { position: absolute; inset: auto 0 0 0; padding: var(--pad); padding-bottom: max(var(--pad), env(safe-area-inset-bottom)); display: grid; justify-items: start; gap: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 30%, rgba(0, 0, 0, 0)); transition: opacity 0.6s, transform 0.6s var(--ease); }
.gate-title { font-size: clamp(30px, 8.5vw, 60px); line-height: 1.02; max-width: 14ch; }
.gate-sub { color: var(--mute); margin-bottom: 14px; }
.gate.out { opacity: 0; transform: translateY(20px); pointer-events: none; }
.loadbar { width: 160px; height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.loadbar i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.3s; }

.hud { position: absolute; inset: auto 0 0 0; padding: var(--pad); padding-bottom: max(28px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 12px; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.slots { display: flex; gap: 12px; }
.slot { width: 46px; height: 58px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.45); display: grid; place-items: center;
  font: 34px/1 'DINC', sans-serif; color: var(--green); transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease); }
.slot.on { border-color: rgba(215, 253, 0, 0.7); background: rgba(215, 253, 0, 0.08); transform: translateY(-2px); }
.slot.bad { border-color: var(--red); color: var(--red); background: rgba(255, 74, 54, 0.1); animation: shake 0.45s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.hint { font-size: 15px; color: rgba(238, 242, 232, 0.82); text-align: center; text-shadow: 0 1px 8px #000; }
.tip { pointer-events: auto; display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 34ch; padding: 14px 16px; border-radius: var(--r); background: rgba(10, 13, 10, 0.8); border: 1px solid var(--line); }
.tip p { font-size: 15px; }

.lockup { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: var(--pad); text-align: center; pointer-events: none; opacity: 0; }
.lockup-row { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 34px); }
.lk-baes { width: clamp(150px, 42vw, 360px); filter: drop-shadow(0 0 28px rgba(215, 253, 0, 0.45)); }
.lk-x { font: clamp(30px, 8vw, 64px)/1 'Suisse', sans-serif; color: var(--ink); opacity: 0.7; }
.lk-n4f { width: clamp(110px, 30vw, 260px); }
.lockup-sub { max-width: 38ch; color: rgba(238, 242, 232, 0.86); }
.lockup-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
body.opened .lockup { pointer-events: auto; }
.lockup > * { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.lockup.show { opacity: 1; }
.lockup.show > * { opacity: 1; transform: none; }
.lockup.show > :nth-child(1) { transition-delay: 0.1s; } .lockup.show > :nth-child(3) { transition-delay: 0.9s; } .lockup.show > :nth-child(4) { transition-delay: 1.1s; }
.lockup.show .lk-baes { animation: fly 1.1s var(--ease) both; }
.lockup.show .lk-x, .lockup.show .lk-n4f { opacity: 0; animation: fade 0.7s 0.65s var(--ease) both; }
@keyframes fly { from { transform: scale(0.25); filter: drop-shadow(0 0 60px rgba(215, 253, 0, 1)) brightness(2); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.scrollcue { position: relative; display: block; width: 26px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 14px; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--green); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }


/* ---------- page ---------- */
#page { opacity: 0; transition: opacity 0.8s; }
body.opened #page { opacity: 1; }
.wrap { padding: clamp(64px, 14vw, 130px) var(--pad) 0; max-width: 1080px; margin: 0 auto; }
.facts { display: grid; gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 15px/1.6 'DINC', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; }

.build { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 22px; }
.build li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.build .num { font: 28px/1 'DINC', sans-serif; color: var(--green); padding-top: 2px; }
.build p { color: var(--mute); margin-top: 6px; }
.videos { display: grid; gap: 22px; }
.videos figure { margin: 0; }
.vid { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.vid video { width: 100%; height: 100%; display: block; object-fit: cover; }
.videos figcaption { font-size: 14px; color: var(--mute); margin-top: 10px; }

.planscroll { height: 340svh; position: relative; margin-top: clamp(64px, 14vw, 130px); }
.plan-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #050708; }
#planCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-dims { position: absolute; inset: 0; pointer-events: none; }
.plan-dims span { position: absolute; transform: translate(-50%, -50%); font: 15px/1 'DINC', sans-serif; letter-spacing: 0.08em; color: var(--green); background: #080b0d; padding: 4px 6px; border: 1px solid var(--line); opacity: 0; transition: opacity 0.4s; }
.plan-dims span.v { transform: translate(0, -50%) rotate(-90deg); transform-origin: left center; }
.plan-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 18px); max-width: 520px; }
.plan-copy h2 { margin-bottom: 8px; text-shadow: 0 2px 20px #000; }
.plan-copy p:last-child { color: rgba(238, 242, 232, 0.86); text-shadow: 0 1px 10px #000; }
.plan-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); height: 2px; background: rgba(255, 255, 255, 0.12); }
.plan-progress i { display: block; height: 100%; width: 0; background: var(--green); }
.note-max p { color: var(--mute); max-width: 56ch; border-left: 2px solid var(--green); padding-left: 16px; }
.note-max { padding-top: 40px; }

.refs { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ref { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #0b0f11; border: 1px solid rgba(255, 255, 255, 0.08); }
.ref video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(to top, rgba(0,0,0,.78), transparent); display: grid; gap: 4px; }
.ref figcaption small { font: 11px/1 'DINC', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.ref figcaption b { font-weight: 600; font-size: 17px; color: var(--ink); }
.refs-more { margin-top: 14px; } .refs-more a { color: var(--mute); }

/* ---------- vertrag ---------- */
.paper { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: clamp(22px, 6vw, 56px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px); background-size: 100% 32px; }
.paper-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--paper-ink); margin-bottom: 6px; }
.paper-logo { width: 74px; filter: invert(1); }
.paper-type { font: 14px/1 'DINC', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #6a6d66; }
.paper-title { font: 21px/1.2 'SuisseSB', sans-serif; margin-top: 4px; }
.clause { padding: 18px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.clause h4 { font: 14px/1 'DINC', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #6a6d66; margin-bottom: 10px; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.parties div { display: grid; }
.parties small { font-size: 12px; color: #6a6d66; text-transform: uppercase; letter-spacing: 0.1em; }
.parties b { font: 19px/1.3 'SuisseSB', sans-serif; font-weight: 400; }
.parties span { font-size: 15px; color: #3c3f3b; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 12px; height: 6px; border-left: 2px solid var(--paper-ink); border-bottom: 2px solid var(--paper-ink); transform: rotate(-45deg); }
.amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 8px; background: rgba(215, 253, 0, 0.55); box-shadow: inset 0 0 0 2px #9fbe00; }
.amount-label { font: 14px/1 'DINC', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.amount-val { font: 34px/1 'SuisseSB', sans-serif; letter-spacing: -0.02em; }
.field b { font-family: 'SuisseSB', sans-serif; font-weight: 400; display: inline-block; min-width: 3ch; border-bottom: 1px solid currentColor; text-align: center; }
.signs { display: grid; gap: 20px; margin-top: 24px; }
.sign-pad { position: relative; height: 150px; border-bottom: 2px solid var(--paper-ink); background: rgba(255, 255, 255, 0.45); border-radius: 6px 6px 0 0; }
.sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sign-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #8b8e86; font-size: 15px; pointer-events: none; transition: opacity 0.3s; }
.sign-pad.static { display: grid; place-items: center; background: transparent; }
.sign-script { font: italic 34px/1 'Snell Roundhand', 'Brush Script MT', cursive; color: #1d2a52; }
.sign-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #5d625f; margin-top: 8px; }
.stamp { position: absolute; right: 8%; top: 38%; transform: rotate(-14deg) scale(1.4); opacity: 0; border: 3px solid #5d7a00; color: #5d7a00; border-radius: 8px; padding: 8px 16px; font: 26px/1 'DINC', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; transition: transform 0.5s var(--ease), opacity 0.3s; pointer-events: none; }
.stamp.show { opacity: 0.85; transform: rotate(-14deg) scale(1); }
.done { text-align: center; padding: 34px 0 0; }
.done h3 { font-size: 30px; color: var(--green); margin-bottom: 8px; }
.foot { display: grid; justify-items: center; gap: 10px; padding-bottom: 60px; color: var(--mute); font-size: 14px; }
.foot-logo { width: 120px; opacity: 0.7; }

dialog { border: 0; padding: 0; background: #000; max-width: min(960px, 94vw); width: 100%; border-radius: var(--r); overflow: hidden; }
dialog::backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px); }
dialog video { width: 100%; display: block; }
dialog .btn { margin: 14px auto; display: flex; }

@media (min-width: 760px) {
  .videos { grid-template-columns: 1fr 1fr; }
  .refs { grid-template-columns: repeat(3, 1fr); }
  .signs { grid-template-columns: 1fr 1fr; }
  .build { grid-template-columns: repeat(3, 1fr); }
  .build li { grid-template-columns: 1fr; }
  .gate { inset: auto auto 0 0; max-width: 720px; background: none; }
  #hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(0,0,0,0.82) 18%, rgba(0,0,0,0) 62%); opacity: var(--gateShade, 1); transition: opacity 0.6s; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01s !important; transition-duration: 0.01s !important; } html { scroll-behavior: auto; } }

.gate, .hud, .lockup, .scrollcue { z-index: 2; }
#hero::after { z-index: 1; }

/* ---------- Ablauf 26.11.: Teaser → letzte Zahl unscharf + Code → OPEN → Planrolle ---------- */
.cine { position: absolute; inset: 0; background: #000; transition: opacity 0.9s var(--ease); }
.cine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; transition: opacity 0.45s; }
.cine .still { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover; opacity: 0; filter: blur(12px) brightness(0.55) saturate(1.15); transform: scale(1.04); transition: opacity 0.6s; }
.cine:not(.play) video { opacity: 0.55; }
.cine.frozen video { opacity: 0; }
.cine.frozen .still { opacity: 1; animation: stillLive 4.5s cubic-bezier(.2,.7,.2,1) both; }
/* Teaser-Ende lebt weiter statt Standbild: von scharf in unscharf, langsamer Zoom auf die 9, leises Glühen */
@keyframes stillLive {
  0%   { transform: scale(1.04); filter: blur(0px) brightness(0.95) saturate(1.15); }
  18%  { filter: blur(12px) brightness(0.6) saturate(1.15); }
  60%  { filter: blur(12px) brightness(0.68) saturate(1.25); }
  100% { transform: scale(1.18); filter: blur(13px) brightness(0.55) saturate(1.15); }
}
@media (prefers-reduced-motion: reduce) { .cine.frozen .still { animation: none; } }
.cine.gone { opacity: 0; pointer-events: none; }
.skip { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; padding: 8px 14px; font-size: 14px; opacity: 0.75; }

.codebox { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: var(--pad); text-align: center;
  opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.codebox.show { opacity: 1; transform: none; }
.code-title { margin: 0; font: clamp(26px, 7vw, 40px)/1 'DINC', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); text-shadow: 0 0 24px rgba(215, 253, 0, 0.35); }
.codebox .slots { gap: 14px; }
.codebox .slot { width: 62px; height: 76px; font-size: 46px; color: rgba(255, 255, 255, 0.55); background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.codebox .slot.on { color: var(--green); }
.codebox .slot.ok { border-color: var(--green); color: var(--green); background: rgba(215, 253, 0, 0.14); box-shadow: 0 0 26px rgba(215, 253, 0, 0.55); }
.keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; margin-top: 4px; }
.keypad button { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 12, 12, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ink); font: 30px/1 'DINC', sans-serif; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.12s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.keypad button:hover { border-color: rgba(215, 253, 0, 0.5); }
.keypad button:active, .keypad button.hit { transform: scale(0.92); background: rgba(215, 253, 0, 0.18); border-color: var(--green); }
.keypad .del { font: 22px/1 system-ui, sans-serif; background: transparent; border-color: transparent; color: var(--mute); }
.codebox .hint { margin: 0; min-height: 1.5em; }
.codebox.done .keypad button, .codebox.done .slot { backdrop-filter: none; -webkit-backdrop-filter: none; }
.codebox.done .keypad, .codebox.done .hint, .codebox.done .tip { opacity: 0; transform: scale(0.96); transition: opacity 0.35s, transform 0.35s; pointer-events: none; }
@media (max-height: 640px) { .keypad { grid-template-columns: repeat(3, 54px); gap: 8px; } .keypad button { width: 54px; height: 54px; font-size: 26px; } .codebox { gap: 12px; } }

.opensign { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: transform 1.1s var(--ease), opacity 0.6s; }
.opensign span { font: clamp(72px, 22vw, 168px)/1 'DINC', sans-serif; letter-spacing: 0.08em; color: #f4ffb8; padding: 0.12em 0.32em 0.02em; border: 4px solid var(--green); border-radius: 0.18em;
  text-shadow: 0 0 6px var(--green), 0 0 22px var(--green), 0 0 60px rgba(215, 253, 0, 0.8); box-shadow: 0 0 18px var(--green), inset 0 0 18px rgba(215, 253, 0, 0.6), 0 0 80px rgba(215, 253, 0, 0.35); }
.opensign.on { animation: neon 0.9s steps(1) forwards; }
@keyframes neon { 0% { opacity: 0; } 10% { opacity: 1; } 18% { opacity: 0.15; } 26% { opacity: 1; } 34% { opacity: 0.3; } 44%, 100% { opacity: 1; } }
.opensign.up { transform: translateY(-34svh) scale(0.42); }
.opensign.gone { opacity: 0 !important; animation: none; }

/* ---------- Bauplan faltet sich beim Scrollen auf und wird zur Seite ---------- */
.foldhint { position: absolute; left: 0; right: 0; bottom: max(5svh, 26px); margin: 0; display: grid; justify-items: center; gap: 12px; z-index: 3; pointer-events: none;
  font: 15px/1 'DINC', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); text-shadow: 0 1px 10px #000; opacity: 0; transition: opacity 0.6s; }
body.opened .foldhint.show { opacity: 1; }
.fold { position: absolute; inset: 0; z-index: 4; pointer-events: none; perspective: 1400px; overflow: hidden; }
.fold-back, .fold-sheet, .flap { background-color: #06090b;
  background-image: linear-gradient(rgba(215, 253, 0, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 253, 0, 0.10) 1px, transparent 1px), linear-gradient(rgba(160, 190, 200, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 190, 200, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: center; }
.fold-back { position: absolute; inset: 0; opacity: 0; }
.fold-sheet { position: absolute; opacity: 0; transform-style: preserve-3d; box-shadow: inset 0 0 0 1px rgba(215, 253, 0, 0.3); will-change: opacity, transform; }
.fold-plan { position: absolute; inset: 0; overflow: hidden; }
.fold-plan img { position: absolute; left: -24.31%; top: 11.6%; width: 153.64%; max-width: none; mix-blend-mode: screen; filter: sepia(1) hue-rotate(28deg) saturate(3.2) brightness(1.05); }
.flap { position: absolute; backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(215, 253, 0, 0.22); opacity: 0; will-change: transform, opacity; }
.flap.t { left: 0; right: 0; bottom: 100%; height: 100svh; transform-origin: 50% 100%; }
.flap.b { left: 0; right: 0; top: 100%; height: 100svh; transform-origin: 50% 0; }
.flap.l { right: 100%; top: -100svh; bottom: -100svh; width: 100vw; transform-origin: 100% 50%; }
.flap.r { left: 100%; top: -100svh; bottom: -100svh; width: 100vw; transform-origin: 0 50%; }
.fold-title { position: absolute; left: 0; right: 0; top: 50%; padding: 0 var(--pad); text-align: center; opacity: 0; will-change: opacity, transform; }
.fold-title h2 { margin: 6px 0 12px; }
.fold-title p:last-child { margin: 0; color: var(--mute); }

/* Teaser hochkant (9:16, Handy-Test 26.11.) */
.vid.tall { aspect-ratio: 9 / 16; max-height: 78svh; margin-inline: auto; }

.codebox .replay { padding: 8px 16px; font-size: 14px; opacity: 0.8; }
.codebox.done .replay { opacity: 0; pointer-events: none; }

/* ---------- Reise der Festplatte (Scroll) ---------- */
.tripscroll { height: 420svh; position: relative; margin-top: clamp(64px, 14vw, 130px); }
.trip-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #050708; }
.trip-map { position: absolute; left: 0; right: 0; top: 13svh; width: 100%; height: auto; aspect-ratio: 360 / 230; }
.trip-map text { font: 9px/1 'DINC', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--mute); }
.trip-map .t-tb { font: 6.4px/1 'DINC', sans-serif; letter-spacing: 0.06em; fill: #eef2e8; dominant-baseline: middle; }
.t-cloud { fill: rgba(238, 242, 232, 0.07); stroke: rgba(238, 242, 232, 0.26); stroke-width: 0.5; transition: opacity 0.5s; }
.t-cloud.f { fill: rgba(238, 242, 232, 0.14); stroke: rgba(238, 242, 232, 0.4); }
.trip-map .t-sea { fill: rgba(151, 161, 160, 0.35); letter-spacing: 0.5em; font-size: 8px; }
.t-pin circle { fill: #3a4246; transition: fill 0.4s; }
.t-pin .pulse { fill: none; stroke: rgba(215, 253, 0, 0); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.t-pin.on circle { fill: var(--green); }
.t-pin.on text { fill: var(--ink); }
.t-pin.on .pulse { fill: none; stroke: rgba(215, 253, 0, 0.6); animation: tripPulse 1.8s var(--ease) infinite; }
@keyframes tripPulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.trip-stops { position: absolute; left: var(--pad); right: var(--pad); top: calc(13svh + 63.9vw + 18px); margin: 0; padding: 0; list-style: none; display: flex; justify-content: space-between; gap: 4px; }
.trip-stops::before { content: ''; position: absolute; left: 4px; right: 4px; top: 4px; height: 1px; background: rgba(255, 255, 255, 0.14); }
.trip-stops li { position: relative; flex: 1 1 0; min-width: 0; padding-top: 18px; text-align: center; font: 11px/1.15 'DINC', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(151, 161, 160, 0.6); transition: color 0.3s; }
.trip-stops li:first-child { text-align: left; } .trip-stops li:last-child { text-align: right; }
.trip-stops li::before { content: ''; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #050708; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); transition: background 0.3s, box-shadow 0.3s; }
.trip-stops li:first-child::before { left: 4.5px; } .trip-stops li:last-child::before { left: auto; right: -0.5px; }
.trip-stops li.done { color: var(--mute); }
.trip-stops li.done::before { background: var(--green); box-shadow: none; }
.trip-stops li.now { color: var(--ink); }
.trip-stops li.now::before { background: var(--green); box-shadow: 0 0 0 4px rgba(215, 253, 0, 0.22); }
@media (min-width: 760px) {
  .trip-map { top: 4svh; height: 62svh; aspect-ratio: auto; }
  .trip-stops { top: calc(4svh + 62svh + 10px); max-width: 900px; margin: 0 auto; }
  .trip-stops li { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .t-pin.on .pulse { animation: none; } }

/* Handy ohne Live-3D: abgefilmtes Öffnen + Auffalt-Bildfolge liegen über dem (leeren) Tresor-Canvas */
#openVid, #foldSeq { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: #000; }
#openVid[hidden], #foldSeq[hidden] { display: none; }
#foldSeq { background: none; }

/* One-Shot (Oktay auf dem Flügel) vor der Reise-Grafik: spielt beim Erreichen von #reise, schrumpft dann aufs Flugzeug-Symbol */
.trip-shot { position: absolute; left: 0; right: 0; top: 13svh; aspect-ratio: 16 / 9; z-index: 3; transform-origin: 0 0; will-change: transform, opacity; pointer-events: none; }
.trip-shot video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.trip-shot.gone { opacity: 0; transition: transform 1.1s cubic-bezier(.65,0,.35,1), opacity 0.45s 0.7s; }
.trip-shot.off { display: none; }
@media (min-width: 760px) { .trip-shot { top: 4svh; height: 62svh; left: 50%; right: auto; aspect-ratio: 16 / 9; transform: translateX(-50%); } .trip-shot.gone { transform: none; } }
html.shotlock, html.shotlock body { overflow: hidden; overscroll-behavior: none; }
html.shotlock .trip-shot { pointer-events: auto; cursor: pointer; }
.shot-tap { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: none; place-items: center; font-size: 30px; padding-left: 6px; box-sizing: border-box; color: #06080a; background: #d7fd00; box-shadow: 0 0 0 10px rgba(215,253,0,.18); }
.trip-shot.needtap { pointer-events: auto; cursor: pointer; } .trip-shot.needtap .shot-tap { display: grid; }
