/* =========================================================================
   redCOMPONENTS — Dachseite (redSTYLE)
   Markenrot führt den Akzent · Anthrazit trägt · Weiß atmet · Petrol nur für
   redSALES · Poppins (lokal) für Titel, Arial für Text. Farben aus
   red-style/red-tokens.css. Keine externen Fonts oder Skripte (DSGVO).

   Bewegung ist hier Teil der Aussage — zwei Werkzeuge, die ineinandergreifen.
   Jede Animation hat deshalb einen Ruhezustand, der auch ohne JavaScript und
   ohne Bewegungswunsch (prefers-reduced-motion) vollständig lesbar ist.
   ========================================================================= */

:root {
  /* Alias auf die redSTYLE-Tokens (red-style/red-tokens.css) */
  --red: var(--rc-rot);
  --red-dark: var(--rc-rot-dunkel);
  --red-glow: var(--rc-rot-auf-dunkel);   /* Rot auf dunklen Bühnen */
  --petrol: var(--rc-petrol);
  --petrol-dark: var(--rc-petrol-dunkel);
  --ink: var(--rc-anthrazit);             /* dunkle Bühnen */
  --dark: var(--rc-anthrazit);
  --text: var(--rc-anthrazit);
  --muted: var(--rc-grau-text);
  --line: var(--rc-linie);
  --paper: var(--rc-bg);
  --white: var(--rc-weiss);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--rc-font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--rc-font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
p { margin: 0 0 16px; }
a { color: var(--red); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--red-glow); outline-offset: 3px; }

/* ── Fortschrittsbalken ────────────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); transform-origin: 0 50%; }

/* ── Kopf ──────────────────────────────────────────────────────────────── */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.head-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.head.is-stuck {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.mark { display: inline-flex; align-items: center; }
.mark img { height: 22px; width: auto; display: block; }
.mark .mark-hell { display: none; }
.head.is-stuck .mark .mark-dunkel { display: none; }
.head.is-stuck .mark .mark-hell { display: block; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 600; }
.nav a:hover { color: #fff; }
.head.is-stuck .nav a { color: var(--muted); }
.head.is-stuck .nav a:hover { color: var(--dark); }
.head.is-stuck .nav .btn-red { color: #fff; }
.nav .btn .kurz { display: none; }

/* ── Knöpfe ────────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 6px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  will-change: transform;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-petrol { background: var(--petrol); color: #fff; }
.btn-petrol:hover { background: var(--petrol-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Überschriften-Bausteine ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--red); flex: none; }
.eyebrow--light { color: var(--rc-rot-auf-dunkel); }

.display {
  font-size: clamp(38px, 7.2vw, 88px);
  color: #fff;
  margin: 0 0 22px;
  max-width: 16ch;
}
.display em { font-style: normal; color: var(--red); }  /* wie redpim.de: Akzent im vollen Markenrot */

.h2 { font-size: clamp(28px, 4.2vw, 48px); margin-bottom: 18px; }
.h2--light { color: #fff; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.8); max-width: 62ch; }
.sub { font-size: 18px; color: var(--muted); max-width: 62ch; }

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--paper { background: var(--paper); }
.head-block { margin-bottom: clamp(36px, 5vw, 64px); }
.head-block--light .h2 { color: #fff; }

/* ── Auftritt ──────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: min(96vh, 900px);
  display: flex; align-items: center;
  background: var(--ink);
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Leseschutz: der Text sitzt links, das Feld darf rechts hell bleiben. */
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(47,47,40,.94) 0%, rgba(47,47,40,.82) 42%, rgba(47,47,40,.35) 72%, rgba(47,47,40,.55) 100%),
    radial-gradient(1200px 600px at 12% 30%, rgba(175,28,28,.28), transparent 62%);
}
.hero-in { position: relative; will-change: transform, opacity; }
.hero-canvas { will-change: transform; }

/* Der weiche rote Schein folgt dem Zeiger (nur auf dunklen Bühnen). */
[data-rc-glow] { position: relative; }
[data-rc-glow]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 420px at var(--gx, 50%) var(--gy, 50%), rgba(224,106,106,.16), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
[data-rc-glow].is-glowing::after { opacity: 1; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.scrollhint {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 56px;
  color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.scrollhint-line { width: 56px; height: 1px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.scrollhint-line::after {
  content: ""; position: absolute; inset: 0; width: 22px; background: var(--red-glow);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { 0% { transform: translateX(-24px); } 100% { transform: translateX(60px); } }

/* Wort-für-Wort-Auftritt der Schlagzeile */
.display .word { display: inline-block; overflow: hidden; vertical-align: top; }
.display .word > span {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transition: transform .9s var(--ease);
}
.display.is-in .word > span { transform: none; }

/* ── Laufband ──────────────────────────────────────────────────────────── */
.ticker {
  background: var(--red); color: #fff; overflow: hidden;
  padding: 14px 0; white-space: nowrap;
}
.ticker-run { display: inline-flex; align-items: center; gap: 0; will-change: transform; }
.ticker-run span {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 0 22px;
}
.ticker-run i { width: 7px; height: 7px; background: rgba(255,255,255,.55); flex: none; }

/* ── Die zwei Häuser ───────────────────────────────────────────────────── */
.houses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.house {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.house:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(47,47,40,.16); border-color: transparent; }

.house-art { position: relative; height: 190px; background: var(--ink); overflow: hidden; }
.house-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(47,47,40,.9) 100%);
}

/* redPIM: Datenzeilen, die sich sortieren */
.house--pim .row {
  position: absolute; left: 8%; height: 10px; border-radius: 2px;
  background: rgba(255,255,255,.14);
}
.house--pim .row:nth-child(1) { top: 20px;  width: 64%; }
.house--pim .row:nth-child(2) { top: 44px;  width: 38%; background: var(--red); }
.house--pim .row:nth-child(3) { top: 68px;  width: 52%; }
.house--pim .row:nth-child(4) { top: 92px;  width: 30%; }
.house--pim .row:nth-child(5) { top: 116px; width: 58%; background: rgba(175,28,28,.55); }
.house--pim .row:nth-child(6) { top: 140px; width: 44%; }
.house:hover .row { animation: sortieren 1.6s var(--ease) both; }
.house:hover .row:nth-child(2) { animation-delay: .06s; }
.house:hover .row:nth-child(3) { animation-delay: .12s; }
.house:hover .row:nth-child(4) { animation-delay: .18s; }
.house:hover .row:nth-child(5) { animation-delay: .24s; }
.house:hover .row:nth-child(6) { animation-delay: .30s; }
@keyframes sortieren {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(14%); }
  100% { transform: translateX(0); }
}

/* redSYNC: Dateien wandern vom Hersteller zum Händler */
.house--sync .tile {
  position: absolute; width: 22%; height: 22px; border-radius: 2px;
  background: rgba(255,255,255,.14);
}
.house--sync .tile:nth-child(1) { left: 8%;  top: 28px; }
.house--sync .tile:nth-child(2) { left: 8%;  top: 62px; background: var(--red); }
.house--sync .tile:nth-child(3) { left: 8%;  top: 96px; }
.house--sync .tile:nth-child(4) { right: 8%; top: 28px; }
.house--sync .tile:nth-child(5) { right: 8%; top: 62px; background: rgba(175,28,28,.55); }
.house--sync .tile:nth-child(6) { right: 8%; top: 96px; }
.house--sync .wire { position: absolute; left: 32%; right: 32%; top: 72px; height: 2px; background: rgba(255,255,255,.18); }
.house--sync .wire::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; background: var(--red);
}
.house--sync:hover .wire::after { animation: wandern 1.4s var(--ease) both; }
@keyframes wandern { 0% { left: 0; } 100% { left: calc(100% - 8px); } }

/* redSALES: Balken, die steigen */
.house-art--bars { display: flex; align-items: flex-end; gap: 10px; padding: 24px 8% 0; }
.house--sales .bar { flex: 1; background: rgba(255,255,255,.14); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.house--sales .bar:nth-child(1) { height: 30%; }
.house--sales .bar:nth-child(2) { height: 46%; }
.house--sales .bar:nth-child(3) { height: 38%; }
.house--sales .bar:nth-child(4) { height: 62%; background: var(--petrol); }
.house--sales .bar:nth-child(5) { height: 54%; }
.house--sales .bar:nth-child(6) { height: 78%; background: var(--petrol); }
.house:hover .bar { animation: steigen 1.4s var(--ease) both; }
.house:hover .bar:nth-child(2) { animation-delay: .05s; }
.house:hover .bar:nth-child(3) { animation-delay: .10s; }
.house:hover .bar:nth-child(4) { animation-delay: .15s; }
.house:hover .bar:nth-child(5) { animation-delay: .20s; }
.house:hover .bar:nth-child(6) { animation-delay: .25s; }
@keyframes steigen { 0% { transform: scaleY(.55); } 100% { transform: scaleY(1); } }

.house-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.house-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.house-title { font-size: 34px; margin-bottom: 14px; color: var(--dark); }
.house-title b { color: var(--red); }
.house--sales .house-title b { color: var(--petrol); }
.house-text { color: var(--muted); }
.house-list { list-style: none; margin: 4px 0 24px; padding: 0; }
.house-list li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text); font-size: 15px; }
.house-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--red); }
.house--sales .house-list li::before { background: var(--petrol); }
.house-go {
  margin-top: auto; align-self: flex-start;
  font-weight: 700; color: var(--red);
  border-bottom: 2px solid transparent; transition: border-color .3s var(--ease);
}
.house--sales .house-go { color: var(--petrol); }
.house:hover .house-go { border-bottom-color: currentColor; }

/* ── Bühne „Der Weg" ───────────────────────────────────────────────────── */
.stage { background: var(--ink); position: relative; }
.stage-sticky { padding: clamp(72px, 9vw, 120px) 0; }

.rail { position: relative; height: 4px; background: rgba(255,255,255,.10); margin: 0 0 42px; border-radius: 2px; }
.rail-line { position: absolute; inset: 0; }
.rail-beam {
  position: absolute; top: -5px; left: 0; width: 14px; height: 14px;
  background: var(--red-glow); border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(224,106,106,.20), 0 0 34px rgba(224,106,106,.95);
  transition: left .25s linear;
}
/* Der zurückgelegte Weg bleibt rot stehen — man sieht, wie weit die Kette ist. */
.rail::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px;
  width: var(--rail, 0%);
  background: linear-gradient(90deg, rgba(175,28,28,.55), var(--red-glow));
  transition: width .25s linear;
}

.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phase {
  border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  padding: 28px 26px 26px; color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.02);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), color .5s var(--ease);
}
.phase.is-live {
  background: rgba(255,255,255,.07);
  border-color: rgba(224,106,106,.45);
  border-left: 3px solid var(--red-glow);
  color: rgba(255,255,255,.9);
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0,0,0,.35);
}
.phase.is-live .phase-nr { background: var(--red); color: #fff; padding: 3px 8px; border-radius: 3px; }
.phase-nr {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--rc-rot-auf-dunkel); margin-bottom: 12px;
}
.phase-title { font-size: 26px; color: #fff; margin-bottom: 12px; }
.phase p { font-size: 15px; }
.phase-tool {
  display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 700; background: rgba(175,28,28,.9); color: #fff;
}
.phase-tool--petrol { background: rgba(49,162,172,.9); }

/* ── Haltung ───────────────────────────────────────────────────────────── */
.beliefs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.belief {
  margin: 0; padding: 30px 32px; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.belief:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(47,47,40,.10); }
.belief p { margin: 0; font-size: 19px; font-weight: 700; color: var(--dark); line-height: 1.4; }

/* ── Kontakt ───────────────────────────────────────────────────────────── */
.contact { background: var(--ink); padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; position: relative; }
.contact-in { display: grid; grid-template-columns: 1.3fr .85fr; gap: 48px; align-items: center; position: relative; }
.card-person {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: 30px 32px; color: rgba(255,255,255,.7);
}
.card-person-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rc-rot-auf-dunkel); margin: 0 0 14px; }
.card-person-name { font-family: var(--rc-font-display); font-size: 24px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.card-person-role { margin: 0 0 16px; font-size: 14px; }
.card-person-text { margin: 0; font-size: 15px; }

/* ── Fuß ───────────────────────────────────────────────────────────────── */
.foot { background: var(--rc-anthrazit); border-top: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.55); padding: 44px 0; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }
.mark--foot img { height: 20px; }
.foot-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot-nav a { color: rgba(255,255,255,.7); font-size: 15px; font-weight: 600; }
.foot-nav a:hover { color: #fff; }
.foot-note { width: 100%; margin: 0; font-size: 13px; }
.foot-note a { color: rgba(255,255,255,.7); }

/* ── Auftritts-Animation (JS setzt is-in) ──────────────────────────────── */
/* Versteckt wird NUR, wenn JavaScript läuft und es auch wieder aufdecken kann.
   Die Klasse setzt ein winziges Skript im <head>, noch vor dem ersten Bild. */
.rc-js [data-rc-in] { opacity: 0; transform: translateY(26px); }
.rc-js [data-rc-in].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rc-js [data-rc-delay="1"].is-in { transition-delay: .10s; }
.rc-js [data-rc-delay="2"].is-in { transition-delay: .20s; }
.rc-js [data-rc-delay="3"].is-in { transition-delay: .30s; }

/* ── Schmale Fenster ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .houses, .beliefs, .phases, .contact-in { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .hero { min-height: auto; padding: 120px 0 72px; }
  .display { max-width: none; }
}
@media (max-width: 520px) {
  .head-in { height: 62px; gap: 16px; }
  .mark img { height: 17px; }
  .nav .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
  .nav .btn .lang { display: none; }
  .nav .btn .kurz { display: inline; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .cta { gap: 10px; }
  .cta .btn { flex: 1 1 100%; }
}

/* ── Bewegung abbestellt ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .rc-js [data-rc-in] { opacity: 1; transform: none; }
  .display .word > span { transform: none; }
}

/* ── Textseiten (Impressum, Datenschutz) ───────────────────────────────── */
.rechtlich { background: var(--white); }
.doc { padding: 130px 0 90px; }
.doc .wrap { max-width: 760px; }
.doc .h2 { color: var(--dark); margin-bottom: 10px; }
.doc .sub { margin-bottom: 40px; }
.doc h2 {
  font-size: 20px; color: var(--dark); margin: 34px 0 10px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.doc p { color: var(--muted); }
.doc a { border-bottom: 1px solid rgba(175,28,28,.35); }
.doc a:hover { border-bottom-color: var(--red); }
.rechtlich .foot { margin-top: 40px; }
