/* Tatverdacht — Landingpage. Film noir: dunkles Papier, Schreibmaschine, Gold. */

:root {
  --paper: #16130f;
  --paper-raised: #1e1a14;
  --paper-edge: #2c2620;
  --ink: #d8cdb2;
  --ink-dim: #8f8471;
  --ink-faint: #5c5546;
  --gold: #c9a869;
  --accent: #b3402e;
  --mono: 'Courier New', 'Nimbus Mono PS', Courier, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.landing {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Akt 2: gepinntes Scroll-Video – der Mörder im Korridor, volle Bühne */
.scrub-act { height: 320vh; position: relative; }
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.scrub-sticky video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scrub-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(10, 8, 6, 0.6) 100%);
}
.scrub-caption {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  transform: translate(-50%, 14px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 42rem;
  padding: 0 1.2rem;
  pointer-events: none;
}
.scrub-caption.vis { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.scrub-caption h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.scrub-caption .eyebrow { margin-bottom: 0.6rem; }
.scrub-caption .cta { margin-top: 1.4rem; pointer-events: auto; }
.scrub-hint {
  position: absolute;
  bottom: 2.2vh;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #000;
}
/* Ohne Video (Mobile/Reduced Motion): Akt bleibt ein einzelner Screen mit Standbild */
.scrub-act.static { height: auto; }
.scrub-act.static .scrub-sticky { position: relative; height: 72vh; }
.scrub-act.static .scrub-caption { opacity: 1; transform: translate(-50%, 0); }
.scrub-act.static .scrub-caption:nth-of-type(3), .scrub-act.static .scrub-caption:nth-of-type(4) { display: none; }
.scrub-act.static .scrub-hint { display: none; }

/* Kopf */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(to bottom, rgba(12, 10, 8, 0.92), rgba(12, 10, 8, 0));
}
.wordmark {
  letter-spacing: 0.35em;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.mark-icon { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }

/* CTA-Knöpfe */
.cta {
  display: inline-block;
  background: var(--gold);
  color: #16130f;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201, 168, 105, 0.25); }
.cta.small { padding: 0.45rem 1rem; font-size: 0.78rem; }
.cta.ghost {
  background: none;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem 1.4rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.6) brightness(0.5);
  animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, transparent 30%, rgba(12, 10, 8, 0.75) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.18;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.type-line { color: var(--gold); }
.type-line::after {
  content: '▌';
  animation: blink 1.1s steps(1) infinite;
  color: var(--gold);
}
@keyframes blink { 50% { opacity: 0; } }
.hero .lead {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--ink);
  font-size: 1.02rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8rem;
  background: linear-gradient(to bottom, transparent, var(--paper));
  z-index: 3;
}

/* Akte */
.act {
  max-width: 60rem;
  margin: 0 auto;
  padding: 5.5rem 1.4rem 2rem;
}
.act-head { max-width: 40rem; }
.act h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.act-head p { color: var(--ink-dim); max-width: 36rem; }
.act-note {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-top: 1.6rem;
  font-style: italic;
}

/* Terminal-Szene */
.terminal {
  margin-top: 2.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
}
.t-line { margin-bottom: 1rem; }
.t-input { color: var(--ink-dim); }
.t-narration { color: var(--ink); }
.t-speaker {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ink-dim);
  margin-bottom: 0.2rem;
}
.t-npc {
  border-left: 2px solid var(--ink-faint);
  padding-left: 0.9rem;
}
.t-flag {
  border: 1px solid rgba(179, 64, 46, 0.6);
  background: rgba(179, 64, 46, 0.08);
  color: #d4a08f;
  border-radius: 3px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}
.t-flag-head {
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}
.t-confront {
  display: inline-block;
  margin-top: 0.6rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.15rem 0.7rem;
  border-radius: 2px;
  font-size: 0.78rem;
}

/* Engine-Karten */
.dark-band {
  max-width: none;
  background: #100e0b;
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
  padding-bottom: 5rem;
}
.dark-band .act-head, .dark-band .cards {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 1.6rem;
}
.card-no {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.7rem;
}
.card h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.card p { color: var(--ink-dim); font-size: 0.88rem; }

/* Fall-Karten */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.case {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.case:hover { transform: translateY(-3px); border-color: var(--gold); }
.case-img {
  height: 11rem;
  background-size: cover;
  background-position: center;
  filter: saturate(0.7) brightness(0.8);
  transition: filter 0.3s ease;
}
.case:hover .case-img { filter: saturate(0.9) brightness(1); }
.case-body { padding: 1.2rem 1.3rem 1.4rem; }
.case-no {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.35rem;
}
.case h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.case p { color: var(--ink-dim); font-size: 0.85rem; }

/* Beta */
.beta-band { padding-bottom: 5rem; }
.beta-box {
  background: var(--paper-raised);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 0 80px rgba(201, 168, 105, 0.08);
}
.beta-box p { color: var(--ink-dim); max-width: 28rem; margin: 0 auto 1.8rem; }
.beta-box h2 { margin-bottom: 0.8rem; }
.beta-box .eyebrow { margin-bottom: 0.8rem; }

/* Fuss */
.site-foot {
  border-top: 1px solid var(--paper-edge);
  padding: 3rem 1.4rem 3.4rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
}
.foot-print {
  width: clamp(10rem, 24vw, 14rem);
  margin: 0 auto 1rem;
  display: block;
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 68%);
  mask-image: radial-gradient(circle, #000 45%, transparent 68%);
}
.foot-fine { color: var(--ink-faint); font-size: 0.72rem; margin-top: 0.4rem; }

/* Scroll-Reveals – nur wenn JS aktiv ist (sonst alles sofort sichtbar) */
body.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js .reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
