/* Qisses Popart — „Der Spiegelkuss"
   Palette: Lippenstift-Rot #E3002C · Kachel-Mint #5FC7B4 · Messing-Gold #D4A017
            Leder-Schwarz #141018 · Puder-Creme #FFF3E4 · Blond #F5CE45 */

@font-face {
  font-family: 'Shrikhand';
  src: url('assets/fonts/shrikhand.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --rot: #E3002C;
  --rot-tief: #A30020;
  --mint: #5FC7B4;
  --gold: #D4A017;
  --gold-hell: #F2CC58;
  --ink: #141018;
  --creme: #FFF3E4;
  --blond: #F5CE45;
  --display: 'Shrikhand', 'Comic Sans MS', cursive;
  --body: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  font-family: var(--body);
  color: var(--ink);
}

button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blond); outline-offset: 2px; }

/* ---------- Bühne ---------- */
#spiegel { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; /* Größe/Position setzt JS (Cover-Rechteck) */ }
#hero { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
#vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 18vmin rgba(10, 6, 8, 0.55);
}

/* Brillen-Reflexion (Marquee, per matrix3d in die Gläser gemappt) */
#lens-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lens-clip { position: absolute; inset: 0; overflow: hidden; }
.lens-fx { position: absolute; top: 0; left: 0; transform-origin: 0 0; overflow: hidden; }
.lens-band {
  position: absolute; top: 50%; left: 0; width: 300%;
  transform: translateY(-50%);
  font: 700 22px/1 var(--body);
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.34);
  white-space: nowrap;
  text-transform: uppercase;
  animation: band-lauf 26s linear infinite;
}
@keyframes band-lauf { to { transform: translate(-33.33%, -50%); } }

/* ---------- Hotspots (fixer Layer ÜBER dem Video, damit die Zahn-Labels beim Start stehen bleiben;
   Position/Größe == Stage, setzt das JS) ---------- */
#hotspots { position: fixed; z-index: 41; pointer-events: none; }
.spot { pointer-events: auto; }
body.sequenz .spot { pointer-events: none !important; }
.spot {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0;
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-align: center;
  transition: filter 0.15s ease;
}
.spot span { display: block; }
.spot:hover, .spot:focus-visible { filter: drop-shadow(0 0 10px rgba(227, 0, 44, 0.9)); color: var(--rot); }
.spot.gold:hover, .spot.gold:focus-visible { filter: drop-shadow(0 0 14px rgba(242, 204, 88, 0.95)); }

.spot { cursor: pointer; }

/* ---------- Fußzeile ---------- */
#fuss {
  position: fixed; right: 14px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30;
  display: flex; gap: 7px; align-items: center;
  color: rgba(255, 243, 228, 0.75);
  font-size: 11px;
}
#fuss button, #fuss a {
  background: none; border: 0; padding: 4px 2px;
  color: rgba(255, 243, 228, 0.75);
  font-size: 11px; letter-spacing: 0.06em;
  text-decoration: underline transparent;
}
#fuss button:hover, #fuss a:hover { color: var(--creme); text-decoration-color: var(--creme); }

/* ---------- Hinweis-Bubble ---------- */
#hinweis {
  position: fixed; z-index: 25;
  background: var(--creme);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 10px 16px;
  font: 500 15px/1.3 var(--body);
  filter: drop-shadow(4px 4px 0 rgba(20, 16, 24, 0.85));
  transform: rotate(-2deg);
}
#hinweis strong { font-family: var(--display); font-weight: 400; color: var(--rot); }
/* Sprechblasen-Zipfel als echtes Element (Pseudo wurde vom Schatten verschluckt) */
#hinweis-zipfel {
  position: absolute; left: 26px; bottom: -13px;
  width: 20px; height: 14px;
  background: var(--creme);
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 12% 100%);
}

/* ---------- Kino (Video-Overlay) ----------
   Transparent + identische object-position wie der Stage-Crop (50% 72%):
   Frame 1 des Videos liegt deckungsgleich auf dem Hero — nahtloser Einstieg. */
#kino { position: fixed; inset: 0; z-index: 40; background: transparent; }
#kino video, #endplate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
#kino-skip {
  position: absolute; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0;
  background: rgba(20, 16, 24, 0.72);
  color: var(--creme); font-size: 12px; letter-spacing: 0.08em;
  padding: 7px 12px; border-radius: 16px;
  opacity: 0.85;
}

/* ---------- Inhalt auf dem Notizzettel (liegt ÜBER dem eingefrorenen End-Frame) ---------- */
#content-layer { position: fixed; pointer-events: none; z-index: 42; }
#notiz {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  overflow: hidden;
  color: var(--ink);
  /* Der Zettel selbst ist im Video — hier nur Tinte drauf */
}
#notiz .nz-cta { flex-shrink: 0; }
.nz-eyebrow {
  margin: 0 0 0.8em;
  background: var(--ink); color: var(--gold-hell);
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35em 0.8em;
  transform: rotate(-1.2deg);
}
.nz-titel {
  margin: 0 0 0.35em;
  font-family: var(--display); font-weight: 400;
  line-height: 1.05;
  color: var(--rot);
  text-shadow: 0.045em 0.045em 0 rgba(20, 16, 24, 0.22);
}
.nz-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 0 0.7em;
  line-height: 1.5;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(227, 0, 44, 0.65) rgba(20, 16, 24, 0.08);
  padding-right: 0.5em;
  /* unten ausblenden = „da kommt noch was" */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 1.6em), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 1.6em), transparent 100%);
}
.nz-scroll::-webkit-scrollbar { width: 7px; }
.nz-scroll::-webkit-scrollbar-thumb { background: rgba(227, 0, 44, 0.55); border-radius: 4px; }
.nz-scroll::-webkit-scrollbar-track { background: rgba(20, 16, 24, 0.08); border-radius: 4px; }
.nz-lead { margin: 0 0 0.8em; font-weight: 700; }
.nz-liste { list-style: none; margin: 0 0 0.8em; padding: 0; }
.nz-liste li { margin: 0 0 0.45em; padding-left: 1.1em; position: relative; }
.nz-liste li::before {
  content: '»';
  position: absolute; left: 0;
  color: var(--rot);
  font-weight: 700;
}
.nz-beweis {
  margin: 0;
  border-left: 3px solid var(--rot);
  padding-left: 0.8em;
  font-style: italic;
  color: #4a3a40;
}
.nz-ps { margin: 0.8em 0 0; color: #6b5a60; }
.nz-cta {
  background: var(--gold); color: var(--ink) !important;
  border: 2.5px solid var(--ink);
  font-family: var(--display);
  text-decoration: none;
  padding: 0.45em 0.9em 0.55em;
  box-shadow: 3px 3px 0 rgba(20, 16, 24, 0.85);
  transform: rotate(-1deg);
  pointer-events: auto;
}
.nz-cta:hover { translate: -1px -1px; box-shadow: 4px 4px 0 rgba(20, 16, 24, 0.85); }

/* Schließen-Knopf */
#content-zu {
  position: fixed; z-index: 55;
  top: max(14px, env(safe-area-inset-top)); right: 16px;
  width: 46px; height: 46px;
  background: var(--rot); color: var(--creme);
  border: 3px solid var(--ink); border-radius: 50%;
  font: 400 24px/1 var(--body);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
}
#content-zu:hover { transform: rotate(8deg) scale(1.07); }

/* ---------- Statischer Zettel (prefers-reduced-motion) ---------- */
#rm-notiz {
  position: fixed; z-index: 50;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  width: min(560px, 92vw);
  max-height: 80vh; overflow-y: auto;
  background:
    radial-gradient(rgba(20, 16, 24, 0.05) 1.3px, transparent 1.4px) 0 0/11px 11px,
    var(--creme);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(20, 16, 24, 0.85);
  padding: 30px 34px;
}
#rm-notiz .nz-eyebrow { display: inline-block; font-size: 11px; }
#rm-notiz .nz-titel { font-size: clamp(26px, 5vmin, 36px); }
#rm-notiz .nz-scroll { font-size: 15px; max-height: 46vh; }
#rm-notiz .nz-cta { display: inline-block; font-size: 16px; }
#rm-zu {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px;
  background: var(--rot); color: var(--creme);
  border: 3px solid var(--ink); border-radius: 50%;
  font: 400 20px/1 var(--body);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Legal-Modal ---------- */
#ebene {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 3vmin, 30px);
  background: rgba(20, 16, 24, 0.42);
}
#panel {
  position: relative; z-index: 2;
  width: min(620px, 100%);
  max-height: min(78vh, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(rgba(227, 0, 44, 0.07) 1.5px, transparent 1.6px) 0 0/12px 12px,
    var(--creme);
  border: 4px solid var(--ink);
  border-radius: 6px;
  box-shadow: 10px 10px 0 rgba(20, 16, 24, 0.9);
  padding: clamp(20px, 4vmin, 36px) clamp(20px, 4.5vmin, 42px) clamp(24px, 4vmin, 36px);
}
#panel-zu {
  position: absolute; top: 10px; right: 10px;
  width: 42px; height: 42px;
  background: var(--rot); color: var(--creme);
  border: 3px solid var(--ink); border-radius: 50%;
  font: 400 22px/1 var(--body);
  box-shadow: 3px 3px 0 var(--ink);
}
#panel-zu:hover { transform: rotate(8deg) scale(1.06); }
#panel-eyebrow {
  margin: 0 0 10px;
  display: inline-block;
  background: var(--ink); color: var(--gold-hell);
  font: 700 11px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px;
}
#panel-titel {
  margin: 4px 0 14px;
  font: 400 clamp(28px, 5.4vmin, 42px)/1.05 var(--display);
  color: var(--rot);
}
#panel-inhalt { font-size: clamp(14px, 2vmin, 16px); line-height: 1.6; }
#panel-inhalt p { margin: 0 0 12px; }
#panel-inhalt a { color: var(--rot); font-weight: 700; }
.legal-text h3 { font: 400 19px var(--display); color: var(--ink); margin: 18px 0 6px; }
.legal-text p { font-size: 13.5px; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  #kino-skip { font-size: 11px; }
  #fuss { left: 12px; right: auto; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lens-band { animation: none; }
  .nz-cta, #content-zu, #panel-zu { transition: none; }
}
