/* ==========================================================================
   Autark³ — Website
   Gestaltung nach dem Vorbild von terafab.ai: schwarz, feine Linien,
   große Typografie, ruhige Bewegung.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-2: #050506;
  --text: #ededee;
  --text-2: rgba(237, 237, 238, 0.62);
  --text-3: rgba(237, 237, 238, 0.38);
  --text-4: rgba(237, 237, 238, 0.22);

  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-guide: #1f1f1f;
  --line-guide-soft: #161616;

  --accent: #d9743f;
  --accent-soft: #f0a06a;
  --warm: #ff8a45;
  --warm-rgb: 255, 138, 69;

  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Archivo", "Inter Tight", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(255, 255, 255, 0.88); color: #000; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }
sup { font-size: 0.55em; line-height: 0; }

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: 1px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Grundtypografie ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.kicker .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--warm-rgb), 0.55);
}

.h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.1rem, 3.85vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  color: #fff;
  text-wrap: balance;
}

.h2 em { color: var(--text-3); }

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: 2px;
  padding: 8px 2px 8px 0;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cta__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

.cta:hover { color: #fff; }
.cta:hover .cta__arrow { transform: translateX(3px); }

.cta--fill {
  color: #0a0a0b;
  background: #ededee;
  border: 1px solid #ededee;
  padding: 13px 18px 13px 20px;
}

.cta--fill:hover { color: #0a0a0b; background: #fff; border-color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.nav.is-stuck {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line-soft);
}

.brand {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.brand sup {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.68em;
  vertical-align: 0.58em;
  letter-spacing: 0;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: clamp(28px, 5vw, 72px);
}

.nav__link {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}

.nav__link:hover { color: #fff; }

.nav__cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 14px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__cta:hover { border-color: #fff; background: #fff; color: #0a0a0b; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 170px) 0 clamp(72px, 10vh, 110px);
  overflow: hidden;
  background: #000;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(58% 46% at 76% 82%, rgba(var(--warm-rgb), 0.07), transparent 72%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 60%, #000 100%);
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.media__zoom {
  position: absolute;
  inset: 0;
  transform-origin: 62% 62%;
  animation: heroDrift 24s ease-in-out infinite alternate;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

@keyframes heroDrift {
  from { transform: scale(1.14); }
  to { transform: scale(1.27); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.14) 26%, transparent 48%),
    linear-gradient(0deg, #000 2%, rgba(0, 0, 0, 0.8) 18%, rgba(0, 0, 0, 0.32) 42%, transparent 62%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 30%, rgba(0, 0, 0, 0.3) 55%, transparent 74%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 125%;
  font-size: clamp(2.9rem, 9vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 20px 0 0;
}

.hero__title sup {
  font-size: 0.4em;
  vertical-align: 0.62em;
  color: var(--accent);
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 0.04em;
}

.hero__lede {
  margin-top: clamp(16px, 2.4vh, 24px);
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.7);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.3vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: rgba(237, 237, 238, 0.94);
}

.hero__copy {
  margin-top: 14px;
  text-shadow: 0 1px 26px rgba(0, 0, 0, 0.85);
  max-width: 42ch;
  font-size: clamp(0.94rem, 1.1vw, 1.02rem);
  line-height: 1.5;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(22px, 3.4vh, 32px);
}

.mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 237, 238, 0.55);
}

.hero__foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 237, 238, 0.34);
}

.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { font-style: normal; animation: bob 2.6s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

body.is-ready .hero__seq {
  animation: seqIn 1.05s var(--ease) both;
}

body.is-ready .hero__seq:nth-of-type(1) { animation-delay: 0.1s; }
body.is-ready .hero__title { animation-delay: 0.18s; }
body.is-ready .hero__lede { animation-delay: 0.3s; }
body.is-ready .hero__copy { animation-delay: 0.4s; }
body.is-ready .hero__actions { animation-delay: 0.5s; }

@keyframes seqIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ==========================================================================
   SZENE (Vollbild-Video)
   ========================================================================== */
.scene {
  position: relative;
  isolation: isolate;
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 16vh, 170px) 0 clamp(80px, 12vh, 130px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: #000;
}

.scene__media { position: absolute; inset: 0; z-index: 0; background: #000; }

.scene__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
}

.scene__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 9%, transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 28%, rgba(0, 0, 0, 0.14) 50%, transparent 64%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 6%, transparent 18%);
  pointer-events: none;
}

.scene__content { position: relative; z-index: 2; max-width: none; }
.scene__content .h2 { margin-top: 16px; max-width: 17ch; font-size: clamp(2.1rem, 4.4vw, 4rem); }
.scene .h2 em { color: rgba(237, 237, 238, 0.5); }

.scene__num {
  position: absolute;
  z-index: 1;
  right: clamp(16px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(9rem, 26vw, 24rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.list {
  margin-top: clamp(24px, 3.6vh, 36px);
  max-width: 480px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.list li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.99rem;
  color: var(--text-2);
}

/* Filmkorn über der ganzen Seite */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: normal;
}

@media (max-width: 760px) {
  /* Auf dem iPhone kostet das Vollbild-Korn Scroll-Performance. */
  .grain { display: none; }
}

/* ---------- Grundlage-Streifen ---------- */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #000;
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.trust__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-4);
}

.trust .mark { color: rgba(237, 237, 238, 0.62); }

.trust__note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

@media (max-width: 760px) {
  .trust__note { display: none; }
  .trust__label { display: none; }
  .trust__inner { gap: 8px 16px; }
}

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement-sec {
  position: relative;
  padding: clamp(88px, 15vh, 180px) 0;
  border-top: 1px solid var(--line-soft);
}

.statement {
  max-width: 22ch;
  font-weight: 300;
  font-size: clamp(1.8rem, 4.1vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: rgba(237, 237, 238, 0.26);
  text-wrap: pretty;
}

.statement .w {
  color: rgba(237, 237, 238, 0.2);
  transition: color 0.45s var(--ease);
}

.statement .w.is-lit { color: #fff; }
.statement .w--warm.is-lit { color: var(--accent-soft); }

/* ==========================================================================
   SKALA (sticky)
   ========================================================================== */
.scale {
  position: relative;
  height: 240vh;
  border-top: 1px solid var(--line);
}

.scale__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 50%, rgba(var(--warm-rgb), 0.08), transparent 62%),
    #000;
}

.scale__pin::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: radial-gradient(60% 50% at 74% 50%, rgba(var(--warm-rgb), 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.scale__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 18%, rgba(0, 0, 0, 0.62) 55%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  z-index: 0;
}

.scale__stage { position: relative; z-index: 2; }

.scale__stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.scale__copy .h2 { margin-top: 16px; max-width: 16ch; }

.scale__list { margin-top: clamp(28px, 4.5vh, 48px); max-width: 520px; }

.tier {
  display: grid;
  grid-template-columns: 78px 1fr;
  grid-template-areas: "id name" ". desc";
  gap: 2px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  opacity: 0.42;
  transition: opacity 0.45s var(--ease);
}

.tier:last-child { border-bottom: 1px solid var(--line-soft); }
.tier.is-active { opacity: 1; }

.tier__id {
  grid-area: id;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 5px;
}

.tier__name {
  grid-area: name;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
}

.tier__desc {
  grid-area: desc;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 46ch;
  transition: color 0.45s var(--ease);
}

.tier.is-active .tier__desc { color: var(--text-2); }
.tier.is-active .tier__id { color: var(--accent); }

.scale__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}

.scale__ringwrap { position: relative; width: 100%; }

.rings { width: 100%; height: auto; overflow: visible; }

.ring {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: 200px 200px;
  transition: stroke 0.6s var(--ease), stroke-dashoffset 1.1s var(--ease), stroke-width 0.6s var(--ease);
}

.ring.is-on {
  stroke: rgba(var(--warm-rgb), 0.55);
  stroke-dashoffset: 0;
  stroke-width: 1.4;
}

.ring-core { fill: var(--accent); filter: drop-shadow(0 0 12px rgba(var(--warm-rgb), 0.7)); }

.scale__numeral {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.scale__numeral [data-numeral] {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0.14em;
  color: #fff;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.scale__numeral.is-swap [data-numeral] {
  opacity: 0;
  transform: translateY(10px);
}

.scale__readout {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

.scale__rail {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: var(--line-soft);
  z-index: 3;
}

.scale__rail i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

/* ==========================================================================
   BLÖCKE
   ========================================================================== */
.block {
  position: relative;
  padding: clamp(80px, 13vh, 170px) 0;
  border-top: 1px solid var(--line);
}

.block__head { margin-bottom: clamp(44px, 6vh, 76px); }
.block__head .h2 { margin-top: 16px; max-width: 20ch; }

.block__lead {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--text-2);
  font-size: 1rem;
}

/* ---------- Ablauf ---------- */
.phase {
  border-top: 1px solid var(--line);
  padding: clamp(26px, 4vh, 40px) 0 clamp(22px, 3vh, 32px);
}

.phase__row {
  display: grid;
  grid-template-columns: 250px 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
}

.phase__n {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

.phase__name {
  margin-top: 8px;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
  color: #dcdcdf;
  transition: color 0.3s var(--ease);
}

.phase:hover .phase__name { color: #fff; }

.phase__col li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.45;
}

.phase__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 9px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.phase__note {
  margin: clamp(16px, 2.5vh, 24px) 0 0 250px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--text-3);
}

/* ---------- System ---------- */
.system {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(80px, 13vh, 170px) 0;
  background: #000;
}

.system__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 74% 52%, rgba(var(--warm-rgb), 0.075), transparent 70%),
    radial-gradient(100% 70% at 50% 120%, rgba(255, 255, 255, 0.02), transparent 60%);
  pointer-events: none;
}

.system__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.system__title {
  margin-top: 16px;
  font-weight: 300;
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
}

.system__body {
  margin: 24px 0 32px;
  max-width: 46ch;
  color: var(--text-2);
  font-size: 1.02rem;
}

.plan { position: relative; }

.plan svg { width: 100%; height: auto; }

.pl-line { stroke: #3f3f46; stroke-width: 1.2; }
.pl-line--soft { stroke: #26262b; }
.pl-line--warm { stroke: var(--accent); stroke-width: 1.4; }
.pl-line--ground { stroke: #2c2c31; stroke-width: 1; }

.pl-pv path {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.1;
  opacity: 0.85;
}

.pl-leader { stroke: #333338; stroke-width: 1; stroke-dasharray: 2 3; fill: none; }

.pl-label text {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  fill: #74747c;
}

.pl-dot circle { fill: var(--accent); }

.plan figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* ---------- Zahlen ---------- */
.figures {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.figures::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 0;
  background: url("assets/video/dawn.jpg") center 76% / cover no-repeat;
  opacity: 0.5;
  animation: figuresDrift 40s ease-in-out infinite alternate;
  pointer-events: none;
}

.figures::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 26%, rgba(0, 0, 0, 0.5) 60%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  pointer-events: none;
}

.figures .container { position: relative; z-index: 2; }

@keyframes figuresDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.figs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
}

.fig { border-top: 1px solid var(--line); padding-top: 22px; }

.fig__n {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(3.4rem, 7.4vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.fig__pre {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  font-stretch: 100%;
  font-size: 0.2em;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 0.55em;
  vertical-align: 0.35em;
}

.fig__u { color: var(--accent); font-size: 0.62em; margin-left: 0.06em; }

.fig p {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 0.95rem;
  color: var(--text-2);
}

.fig p sup { color: var(--text-4); }

.figs__note {
  margin-top: clamp(36px, 5vh, 56px);
  max-width: 82ch;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(237, 237, 238, 0.3);
}

/* ---------- Vergleich ---------- */
.compare__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 4vw, 56px);
}

.compare__col { border-top: 1px solid var(--line); padding-top: 26px; }

.compare__col h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.compare__col ul { margin-top: 18px; }

.compare__col li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
  color: rgba(237, 237, 238, 0.4);
}

.compare__col li::before {
  content: "—";
  display: inline-block;
  width: 26px;
  color: var(--text-4);
}

.compare__col--win { border-top-color: rgba(var(--warm-rgb), 0.6); }

.compare__col--win h3 { color: var(--accent-soft); }
.compare__col--win li { color: #ededee; }
.compare__col--win li::before { content: "+"; color: var(--accent); }

/* ---------- Bausteine ---------- */
.mods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mods--six { grid-template-columns: repeat(3, 1fr); gap: 16px; }

.mods--six .mod { padding: 30px 28px 34px; }

.mods--six .mod p { max-width: 34ch; }

.mod {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 30px;
  border: 1px solid var(--line-guide);
  background: linear-gradient(180deg, #070708 0%, #030303 100%);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.mod::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--warm-rgb), 0.07), transparent 58%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.mod:hover { border-color: rgba(255, 255, 255, 0.32); transform: translateY(-3px); }
.mod:hover::after { opacity: 1; }

.mod__n {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-4);
}

.mod__icon {
  width: 34px;
  height: 34px;
  margin: 22px 0 18px;
  stroke: #cfcfd4;
  stroke-width: 1.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s var(--ease);
}

.mod:hover .mod__icon { stroke: var(--accent-soft); }

.mod h3 {
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.mod p {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(80px, 13vh, 150px) 0 30px;
  background: #000;
}

.footer::before {
  content: "";
  position: absolute;
  inset: -6% -2% 0;
  background: url("assets/video/night.jpg") center 82% / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 45%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 45%, #000 100%);
  pointer-events: none;
}

.footer__dots {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 34%, rgba(0, 0, 0, 0.35) 62%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 34%, rgba(0, 0, 0, 0.35) 62%, transparent 82%);
  pointer-events: none;
}

.footer .container { position: relative; }

.footer__head {
  margin-top: 18px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(2.2rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  text-transform: none;
}

.footer__head em { color: var(--text-3); }

.footer__sub {
  margin-top: 24px;
  max-width: 40ch;
  color: var(--text-2);
  font-size: 1.02rem;
}

.footer__cta .cta { margin-top: 34px; }

.footer__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: clamp(60px, 10vh, 110px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer__col h3 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 12px;
}

.footer__col p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.footer__col a { transition: color 0.2s var(--ease); }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 237, 238, 0.28);
}

.footer__seal { color: rgba(237, 237, 238, 0.34); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RECHTSSEITEN
   ========================================================================== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px var(--pad) 96px;
}

.legal-page .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.legal-page h1 {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.legal-page .updated {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
}

.legal-page h2 {
  margin: 38px 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.legal-page p,
.legal-page address,
.legal-page li {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-2);
}

.legal-page address { font-style: normal; }
.legal-page p + p { margin-top: 10px; }
.legal-page strong { color: #fff; font-weight: 500; }
.legal-page a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--accent-soft); }
.legal-page ul { margin: 8px 0 0 4px; }
.legal-page li { padding: 3px 0 3px 18px; position: relative; }
.legal-page li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.legal-page .back {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
}

.legal-page .back:hover { color: #fff; }

.legal-foot {
  padding: 0 var(--pad) 40px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 237, 238, 0.25);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .scale__stage { grid-template-columns: 1fr; gap: 24px; }
  .scale__visual { display: none; }
  .scale__list { max-width: none; }
  .phase__row { grid-template-columns: 190px 1fr 1fr; }
  .phase__note { margin-left: 190px; }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .mods--six { grid-template-columns: repeat(2, 1fr); }
  .system__grid { grid-template-columns: 1fr; }
  .system__copy { max-width: 52ch; }
  .plan { max-width: 620px; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .hero { padding-top: 110px; min-height: 88svh; padding-bottom: 40px; }
  .hero__foot { display: none; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .kicker { font-size: 8.5px; letter-spacing: 0.16em; }

  .statement { max-width: 20ch; }

  /* Skala bleibt auch auf dem Telefon eine Scroll-Szene */
  .scale { height: 240vh; }
  .scale__pin { height: 100svh; padding: 104px 0 64px; }
  .scale__stage { gap: 0; }
  .scale__copy .h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .scale__list { margin-top: 22px; }
  .tier { grid-template-columns: 72px 1fr; padding: 14px 0; }
  .tier__desc { font-size: 0.9rem; }
  .scale__rail { bottom: 22px; }

  .scene { min-height: 92svh; padding-top: 96px; }
  .scene__num { display: none; }
  .scene__content .h2 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .scene .list { margin-top: 22px; }

  .phase__row { grid-template-columns: 1fr; gap: 4px; }
  .phase__id { display: flex; align-items: baseline; gap: 12px; }
  .phase__name { margin-top: 0; }
  .phase__col { margin-top: 14px; }
  .phase__note { margin-left: 0; }

  .figs { grid-template-columns: 1fr; gap: 34px; }
  .fig p { max-width: 34ch; }

  .compare__grid { grid-template-columns: 1fr; gap: 40px; }
  .mods { grid-template-columns: 1fr; }
  .mods--six { grid-template-columns: 1fr; }
  .mod { padding: 24px 20px 26px; }

  .footer__meta { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__base { flex-direction: column; gap: 8px; }

  .legal-page { padding-top: 96px; }
}

@media (max-width: 420px) {
  .footer__meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html:not(.force-motion) .js .reveal { opacity: 1; transform: none; }
  html:not(.force-motion) .hero__seq { opacity: 1 !important; }
}

/* ---------- Person ---------- */
.person__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.person__copy .h2 { margin-top: 16px; max-width: none; font-size: clamp(1.95rem, 3vw, 2.7rem); }

.person__body {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-2);
  font-size: 1.02rem;
}

.person__facts { border-top: 1px solid var(--line); }

.person__facts li {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--text-2);
}

.person__facts span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

@media (max-width: 900px) {
  .person__grid { grid-template-columns: 1fr; gap: 40px; }
  .person__copy .h2 { max-width: none; }
}

/* ---------- Video-Fallback (Autoplay blockiert) ---------- */
.vid-play {
  position: absolute;
  z-index: 5;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(56px, 8vh, 84px);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ededee;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.vid-play:hover { border-color: #fff; background: rgba(0, 0, 0, 0.75); }

.is-video-paused .vid-play { display: inline-flex; }


/* ---------- Notfall: ohne JS-Fortschritt bleibt nichts unsichtbar ---------- */
html.no-anim .reveal,
html.no-anim .statement .w {
  opacity: 1 !important;
  transform: none !important;
  color: inherit;
}

html.no-anim .hero__seq { animation: none !important; opacity: 1 !important; }


  to { transform: scale(1.07); }
}


/* ---------- Scroll-Fortschritt ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 950;
  background: linear-gradient(90deg, rgba(217, 116, 63, 0.9), rgba(240, 160, 106, 0.9));
  pointer-events: none;
}

/* ---------- Nummern im Hausdiagramm ---------- */
.pl-marker path { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.pl-marker circle { fill: #0b0b0c; stroke: var(--accent); stroke-width: 1; }
.pl-marker text {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  fill: var(--accent-soft);
  text-anchor: middle;
}


/* ---------- Gewerke-Liste ---------- */
.gewerke {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 5vw, 72px);
  list-style: none;
}

.gewerke li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 14px;
  padding: 18px 0 19px;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}

.gewerke li:nth-child(1),
.gewerke li:nth-child(2) { border-top-color: var(--line); }

.gewerke__n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  transition: color 0.25s var(--ease);
}

.gewerke__body h3 {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #ededee;
}

.gewerke__body p {
  margin-top: 5px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-2);
  max-width: 44ch;
}

.gewerke li:hover .gewerke__n { color: var(--accent); }

@media (max-width: 760px) {
  .gewerke { grid-template-columns: 1fr; }
  .gewerke li { grid-template-columns: 36px 1fr; padding: 15px 0 16px; }
  .gewerke li:nth-child(2) { border-top-color: var(--line-soft); }
}


/* ==========================================================================
   Lebensraum — Scroll-Szene wie die Skala
   ========================================================================== */
.lebensraum {
  position: relative;
  height: 200vh;
  border-top: 1px solid var(--line);
  background: #000;
}

.lebensraum__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.lebensraum__pin::before {
  content: "";
  position: absolute;
  inset: -3%;
  background: url("assets/video/night.jpg") center 58% / cover no-repeat;
  opacity: 0.72;
  animation: nightDrift 46s ease-in-out infinite alternate;
  pointer-events: none;
}

.lebensraum__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 28%, rgba(0, 0, 0, 0.22) 60%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

@keyframes nightDrift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.lebensraum__stage { position: relative; z-index: 2; }

.lebensraum__stage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  width: 100%;
}

.lebensraum__head .h2 { margin-top: 16px; max-width: none; font-size: clamp(1.9rem, 3.1vw, 2.75rem); }

.lebensraum__lead {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.lebensraum__detail { display: none; }

/* Liste in der Szene */
.gewerke--scene {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
}

.gewerke--scene li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 16px;
  padding: 18px 0 19px;
  border-top: 1px solid var(--line-soft);
  opacity: 0.34;
  transition: opacity 0.35s var(--ease);
}

.gewerke--scene li.is-past { opacity: 0.62; }
.gewerke--scene li.is-active { opacity: 1; }

.gewerke--scene li.is-active .gewerke__n { color: var(--accent); }
.gewerke--scene li.is-active .gewerke__body h3 { color: #fff; }

.gewerke--scene .gewerke__body h3 {
  font-size: 1.05rem;
  color: #d7d7da;
  transition: color 0.3s var(--ease);
}

.gewerke--scene .gewerke__body p {
  margin-top: 5px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-2);
  max-width: 34ch;
}

.lebensraum__rail {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 150px;
  height: 1px;
  background: var(--line-soft);
  z-index: 3;
}

.lebensraum__rail i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

@media (max-width: 1000px) {
  .lebensraum { height: 200vh; }
  .lebensraum__pin { padding: 76px 0 40px; }
  .lebensraum__stage { grid-template-columns: 1fr; gap: 18px; }
  .lebensraum__head .h2 { max-width: none; font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .lebensraum__lead { display: block; font-size: 0.86rem; line-height: 1.45; margin-top: 12px; max-width: 40ch; }

  .gewerke--scene {
    grid-template-columns: 1fr;
  }

  .gewerke--scene li { padding: 6px 0 7px; opacity: 0.3; }
  .gewerke--scene .gewerke__body p { display: none; }
  .gewerke--scene .gewerke__body h3 { font-size: 0.95rem; line-height: 1.3; }
  .gewerke--scene .gewerke__n { font-size: 9px; }

  .lebensraum__detail {
    display: block;
    grid-column: 1 / -1;
    margin-top: 14px;
    min-height: 3.2em;
    max-width: 34ch;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-2);
  }

  .lebensraum__rail { bottom: 22px; }
}


@media (max-width: 1000px) and (max-height: 760px) {
  .lebensraum__lead { display: none; }
  .gewerke--scene li { padding: 7px 0 8px; }
}


@keyframes nightDrift { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes figuresDrift { from { transform: scale(1.02); } to { transform: scale(1.08); } }

/* ==========================================================================
   HAUS-STORY (Kapitel wie bei ravenphone.com)
   ========================================================================== */
.story {
  position: relative;
  height: 820vh;
  border-top: 1px solid var(--line);
  background: #000;
}

.story-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  overflow: hidden;
}

.story-copy { position: relative; min-height: 260px; }

.story-copy article {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.story-copy article.is-active {
  opacity: 1;
  transform: none;
}

.story-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-copy h2 {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: #fff;
  max-width: 16ch;
}

.story-copy p + p,
.story-copy article > p:last-child {
  margin-top: 18px;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* Kapitel-Navigation */
.story-nav {
  position: fixed;
  left: clamp(12px, 1.6vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

body.story-active .story-nav { opacity: 1; pointer-events: auto; }

.story-nav a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 237, 238, 0.28);
  transition: color 0.25s var(--ease);
}

.story-nav a.is-active { color: #fff; }
.story-nav a:hover { color: var(--accent-soft); }

/* Hauszeichnung */
.house { margin: 0; }

.house svg { width: 100%; height: auto; overflow: visible; }

.house svg path,
.house svg line,
.house svg rect,
.house svg circle { stroke: currentColor; fill: none; }

.house .sys { color: rgba(237, 237, 238, 0.26); transition: color 0.5s var(--ease), filter 0.5s var(--ease); }

.house .sys--huelle { color: rgba(237, 237, 238, 0.4); }

.narrative[data-sys="huelle"] .sys--huelle,
.narrative[data-sys="waerme"] .sys--waerme,
.narrative[data-sys="luft"] .sys--luft,
.narrative[data-sys="wasser"] .sys--wasser,
.narrative[data-sys="strom"] .sys--strom,
.narrative[data-sys="kuehlung"] .sys--kuehlung,
.narrative[data-sys="licht"] .sys--licht,
.narrative[data-sys="sicherheit"] .sys--sicherheit,
.narrative[data-sys="automation"] .sys--automation,
.narrative[data-sys="warm"] .sys--waerme,
.narrative[data-sys="warm"] .sys--kuehlung,
.narrative[data-sys="klima"] .sys--waerme,
.narrative[data-sys="klima"] .sys--luft,
.narrative[data-sys="klima"] .sys--kuehlung,
.narrative[data-sys="all"] .sys {
  color: var(--accent-soft);
  filter: drop-shadow(0 0 10px rgba(var(--warm-rgb), 0.45));
}

.narrative[data-sys="warm"] .sys--waerme,
.narrative[data-sys="warm"] .sys--kuehlung,
.narrative[data-sys="klima"] .sys--waerme,
.narrative[data-sys="klima"] .sys--luft,
.narrative[data-sys="klima"] .sys--kuehlung,
.narrative[data-sys="all"] .sys { color: rgba(240, 160, 106, 0.8); }

.story-labels text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.narrative[data-sys="huelle"] text[data-for="huelle"],
.narrative[data-sys="waerme"] text[data-for="waerme"],
.narrative[data-sys="luft"] text[data-for="luft"],
.narrative[data-sys="wasser"] text[data-for="wasser"],
.narrative[data-sys="strom"] text[data-for="strom"],
.narrative[data-sys="kuehlung"] text[data-for="kuehlung"],
.narrative[data-sys="licht"] text[data-for="licht"],
.narrative[data-sys="sicherheit"] text[data-for="sicherheit"],
.narrative[data-sys="automation"] text[data-for="automation"],
.narrative[data-sys="warm"] text[data-for="waerme"],
.narrative[data-sys="warm"] text[data-for="kuehlung"] { opacity: 1; }

/* Abschluss der Story */
.story-close {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--pad) clamp(80px, 12vh, 140px);
  text-align: center;
}

.story-close p {
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--text-3);
}

.story-close .story-close-strong { color: #fff; margin-top: 6px; }

@media (max-width: 1150px) {
  .story-nav { display: none; }
}

@media (max-width: 900px) {
  .story { height: 820vh; }
  .story-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding-top: 84px;
    padding-bottom: 40px;
  }
  .house { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .story-copy { min-height: 200px; }
  .story-copy h2 { font-size: clamp(1.6rem, 6.4vw, 2.2rem); max-width: 18ch; }
  .story-copy article > p:last-child { font-size: 0.92rem; }
  .story-close { padding-bottom: 90px; }
}

/* Hero zentriert (Raven-Stil) */
.hero__content { text-align: center; }
.hero__actions { justify-content: center; }
.hero .kicker { justify-content: center; }
.hero__copy { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   NARRATIVE (Methodik ravenphone.com: eine Bühne, viele Kapitel)
   ========================================================================== */
.narrative {
  position: relative;
  height: calc(100svh + 12 * 100vh);
  background: #000;
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.stage-bg { position: absolute; inset: 0; z-index: 0; }

.stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 58%;
  opacity: 0.5;
}

.stage-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.stage-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.stage-copy { position: relative; min-height: 340px; }

.stage-copy article {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.stage-copy article.is-active { opacity: 1; transform: none; pointer-events: auto; }

.stage-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.stage-title {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(1.9rem, 3.3vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: #fff;
  max-width: 17ch;
}

.stage-title--hero {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: none;
}

.stage-title--hero sup {
  font-size: 0.38em;
  vertical-align: 0.66em;
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.04em;
}

.stage-lede {
  margin-top: 20px;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(237, 237, 238, 0.94);
}

.stage-support {
  margin-top: 12px;
  max-width: 38ch;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text-2);
}

.stage-cta { margin-top: 28px; }

.stage-text {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-2);
}

.stage-object {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.stage-object .house { width: 100%; }

.stage-object .house svg { width: 100%; height: auto; overflow: visible; }

.narrative:not([data-chapter="start"]) .spec { opacity: 1; }

/* System-Karte */
.spec {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  position: static;
  align-self: center;
  margin-top: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
}

.spec-label {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
}

.spec-list {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(237, 237, 238, 0.72);
}

.spec-list li { white-space: nowrap; }

/* Kapitel-Navigation */
.story-tools {
  position: fixed;
  left: clamp(12px, 1.6vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

body.story-active .story-tools { opacity: 1; pointer-events: auto; }

.story-tools a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 237, 238, 0.28);
  transition: color 0.25s var(--ease);
}

.story-tools a.is-active { color: #fff; }
.story-tools a:hover { color: var(--accent-soft); }

/* Abschluss */
.stage-close {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 0 var(--pad);
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.narrative.is-closing .stage-close { opacity: 1; pointer-events: auto; }

.narrative.is-closing .stage-copy,
.narrative.is-closing .spec { opacity: 0; transition: opacity 0.5s var(--ease); }

.narrative.is-closing .stage-object { opacity: 0.32; transition: opacity 0.6s var(--ease); }

.narrative.is-closing .story-tools { opacity: 0; pointer-events: none; }

.stage-close-soft {
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--text-3);
}

.stage-close-strong {
  margin-top: 6px;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.stage-close .cta { margin-top: 32px; }

/* Reader (Fallback / SEO) */
.reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1150px) {
  .story-tools { display: none; }
}

@media (max-width: 900px) {
  .narrative { height: calc(100svh + 12 * 100svh); }
  .stage-inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding-top: 92px;
    padding-bottom: 48px;
  }
  .stage-object { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .spec { position: static; margin: 10px auto 0; width: max-content; }
  .stage-copy { min-height: 250px; }
  .stage-title { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }
  .stage-title--hero { font-size: clamp(2.6rem, 13vw, 4rem); }
  .stage-lede { font-size: 1.15rem; }
  .stage-support, .stage-text { font-size: 0.9rem; }
}

/* ==========================================================================
   WEG — Leistungsphasen und Lebenszyklus
   ========================================================================== */
.weg { position: relative; }

.steps {
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 0 20px;
  padding: 20px 0 21px;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.3s var(--ease);
}

.step:hover { border-bottom-color: var(--line); }

.step__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.step__body h3 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #ededee;
}

.step__body p {
  margin-top: 4px;
  max-width: 58ch;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-2);
}

.step__out {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
  white-space: nowrap;
  text-align: right;
}

.steps__life { margin-top: clamp(40px, 6vh, 72px); }

.steps__life-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 14px;
}

.steps--life .step__n { color: var(--text-3); }
.steps--life .step__body h3 { color: #d8d8db; }
.steps--life .step__out { color: rgba(var(--warm-rgb), 0.75); }

@media (max-width: 760px) {
  .step {
    grid-template-columns: 44px 1fr;
    padding: 16px 0 17px;
  }
  .step__out {
    grid-column: 2;
    text-align: left;
    margin-top: 6px;
    color: var(--text-4);
  }
  .step__body p { font-size: 0.9rem; }
}

.stage-typo {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* ---------- Ohne JavaScript: lesbare Fassung ---------- */
html:not(.js) .narrative { display: none; }

html:not(.js) .reader {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

html:not(.js) .reader section {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}

html:not(.js) .reader h2 {
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

html:not(.js) .reader p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 1rem;
}

.stage-typo--second { margin-top: 6px; }

.steps__note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-4);
}
