/* ==========================================================================
   home-premium.css — Startseite: helle Sektionen auf High-End-Niveau
   Namespace hp-*. Nur auf index.html geladen.

   Prinzip: Die Headlines der Startseite sind stark (Display + Serif-Akzent) —
   das Problem waren die Karten darunter (weisse Boxen, rote Icon-Klötze,
   Nummernkreise, Buchstaben-Avatare). Dieses System ersetzt sie:
   Haarlinien statt Schlagschatten · Mono-Mikrolabels · Rot als Akzent,
   nicht als Fläche · echte Hover-States · Ziffern als Typografie.
   ========================================================================== */

/* --- Lucide icon baseline ------------------------------------------------
   lucide-icons.js injiziert <svg viewBox="0 0 24 24"> in <i data-lucide>.
   Ohne eigene Dimension wuerde das SVG auf 24×24px (viewBox) aufblaehen.
   Container-spezifische Regeln (z.B. .hp-card__icon svg) ueberschreiben das. */
.hero-stat__qual-icon i[data-lucide],
.scene3d__icon i[data-lucide],
.hero-stage__scroll-chevron i[data-lucide],
.lead-magnet__cover i[data-lucide],
.organic-card__icon i[data-lucide],
.phase-card__icon i[data-lucide] {
  display: inline-flex; align-items: center; justify-content: center; line-height: 0;
}
.scene3d__icon i[data-lucide] svg { width: 20px; height: 20px; }
.hero-stat__qual-icon i[data-lucide] svg { width: 18px; height: 18px; }
.hero-stage__scroll-chevron i[data-lucide] svg { width: 16px; height: 16px; }
.lead-magnet__cover i[data-lucide] svg { width: 36px; height: 36px; }
.organic-card__icon i[data-lucide] svg { width: 32px; height: 32px; }
.phase-card__icon i[data-lucide] svg { width: 18px; height: 18px; }

:root {
  --hp-line: rgba(10, 14, 30, 0.10);
  --hp-line-soft: rgba(10, 14, 30, 0.06);
  --hp-ink: #0f1019;
  --hp-ink-2: #4a4f63;
  --hp-ink-3: #7b8199;
  --hp-red: #DC0018;
  --hp-mono: var(--font-mono, ui-monospace, "SF Mono", monospace);
}

/* Gemeinsames Mikrolabel */
.hp-kicker {
  font: 600 10.5px/1 var(--hp-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hp-ink-3);
}

/* ==========================================================================
   1) KURZPROFIL — „Dossier" statt Textwand + nackter Tabelle
   ========================================================================== */
.hp-dossier {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: stretch;
  border: 1px solid var(--hp-line);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(220, 0, 24, .035), transparent 55%),
    linear-gradient(180deg, #fff, #fcfcfe);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.hp-dossier::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--hp-red), rgba(220, 0, 24, 0));
}
@media (max-width: 880px) { .hp-dossier { grid-template-columns: 1fr; gap: 28px; } }

.hp-dossier__lead {
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.hp-dossier__answer {
  margin: 0;
  font-size: clamp(17.5px, 1.9vw, 21px);
  line-height: 1.62;
  color: var(--hp-ink);
  max-width: 56ch;
  text-wrap: pretty;
}
.hp-dossier__answer strong { font-weight: 650; color: var(--hp-red); }

/* Zweiter Antwortblock — „Was macht …?"
   Eigene Frage + eigene Antwort, damit die Passage unabhängig zitierfähig
   bleibt (Answer-First: der Block muss auch allein aus dem Kontext gerissen
   Sinn ergeben). */
.hp-qa {
  border-left: 2px solid rgba(220, 0, 24, .22);
  padding-left: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.hp-qa__q {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--hp-ink);
  display: flex; align-items: center; gap: 9px;
}
.hp-qa__q::before {
  content: "Frage";
  font: 600 9.5px/1 var(--hp-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--hp-red);
  border: 1px solid rgba(220, 0, 24, .28);
  border-radius: 5px;
  padding: 4px 6px;
  flex: none;
}
.hp-qa__a {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: var(--hp-ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.hp-qa__a strong { font-weight: 650; color: var(--hp-ink); }

/* Fakten-Ledger */
.hp-ledger { margin: 0; border-top: 1px solid var(--hp-line-soft); }
.hp-ledger__row {
  display: grid;
  grid-template-columns: minmax(104px, 32%) 1fr;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hp-line-soft);
  transition: background .22s ease, padding-left .22s ease;
}
.hp-ledger__row:hover { background: rgba(220, 0, 24, .022); padding-left: 8px; }
.hp-ledger dt {
  margin: 0;
  font: 600 11px/1.45 var(--hp-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hp-ink-3);
  align-self: center;
}
.hp-ledger dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--hp-ink);
  font-weight: 500;
}
.hp-ledger dd .mono {
  font-family: var(--hp-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* ==========================================================================
   2) PROZESS — Phasen-Schiene statt roter Nummernkreise
   ========================================================================== */
.hp-rail { position: relative; margin-top: 8px; }

.hp-rail__track {
  --hp-gap: clamp(14px, 2vw, 26px);
  --hp-dot: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hp-gap);
}
@media (max-width: 900px) { .hp-rail__track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .hp-rail__track { grid-template-columns: 1fr; } }

.hp-phase { position: relative; display: flex; flex-direction: column; gap: 12px; }

/* Verbinder: von Knoten zu Knoten — endet am letzten Knoten, läuft nicht ins Leere.
   Schiene (grau) + Füllung (rot), die pro Segment nacheinander einläuft. */
.hp-phase:not(:last-child)::before,
.hp-phase:not(:last-child)::after {
  content: "";
  position: absolute;
  left: var(--hp-dot);
  top: 26px;
  width: calc(100% - var(--hp-dot) + var(--hp-gap));
  height: 2px;
  border-radius: 2px;
}
.hp-phase:not(:last-child)::before { background: var(--hp-line); }
.hp-phase:not(:last-child)::after {
  background: linear-gradient(90deg, var(--hp-red), rgba(220, 0, 24, .3));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.3, .6, .2, 1);
}
.hp-rail.is-in .hp-phase:nth-child(1)::after { transform: scaleX(1); transition-delay: .15s; }
.hp-rail.is-in .hp-phase:nth-child(2)::after { transform: scaleX(1); transition-delay: .75s; }
.hp-rail.is-in .hp-phase:nth-child(3)::after { transform: scaleX(1); transition-delay: 1.35s; }
/* Umbruch-Layouts: Verbinder würden ins Nichts zeigen */
@media (max-width: 900px) {
  .hp-phase::before, .hp-phase::after { display: none; }
}
.hp-phase__dot {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--hp-line);
  color: var(--hp-red);
  position: relative; z-index: 1;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.hp-phase__dot svg { width: 22px; height: 22px; }
.hp-phase:hover .hp-phase__dot {
  border-color: rgba(220, 0, 24, .45);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(220, 0, 24, .5);
}
.hp-phase__no {
  font: 700 11px/1 var(--hp-mono);
  letter-spacing: .16em;
  color: var(--hp-ink-3);
}
.hp-phase__title {
  font-family: var(--font-display, inherit);
  font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--hp-ink);
  margin: 0;
}
.hp-phase__desc {
  margin: 0;
  font-size: 14px; line-height: 1.58;
  color: var(--hp-ink-2);
  max-width: 34ch;
}
.hp-phase__meta {
  margin-top: auto; padding-top: 10px;
  border-top: 1px dashed var(--hp-line);
  font: 500 11.5px/1 var(--hp-mono);
  color: var(--hp-ink-3);
  letter-spacing: .04em;
}

/* ==========================================================================
   3) KARTEN-SYSTEM — ersetzt trust-grid / risk-grid (rote Icon-Klötze)
   ========================================================================== */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: hpcard;
}
@media (max-width: 940px) { .hp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hp-grid { grid-template-columns: 1fr; } }

.hp-card {
  counter-increment: hpcard;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--hp-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fcfcfe);
  padding: 22px 22px 20px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.hp-card::after {
  content: counter(hpcard, decimal-leading-zero);
  position: absolute; top: 18px; right: 18px;
  font: 600 11px/1 var(--hp-mono);
  letter-spacing: .1em;
  color: rgba(10, 14, 30, .18);
  transition: color .3s ease;
}
.hp-card:hover {
  border-color: rgba(220, 0, 24, .38);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(10, 14, 30, .5);
}
.hp-card:hover::after { color: rgba(220, 0, 24, .5); }

/* Icon: gestrichen + getönt, kein gefüllter roter Block */
.hp-card__icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(220, 0, 24, .06);
  border: 1px solid rgba(220, 0, 24, .16);
  color: var(--hp-red);
  transition: background .3s ease, transform .3s ease;
}
.hp-card__icon svg { width: 19px; height: 19px; }
.hp-card:hover .hp-card__icon { background: rgba(220, 0, 24, .1); transform: scale(1.06); }

.hp-card__title {
  margin: 4px 0 0;
  font-family: var(--font-display, inherit);
  font-size: 17px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--hp-ink);
  padding-right: 26px;
}
.hp-card__desc {
  margin: 0;
  font-size: 14px; line-height: 1.58;
  color: var(--hp-ink-2);
}
/* optionale Beleg-Zeile */
.hp-card__proof {
  margin-top: auto; padding-top: 11px;
  border-top: 1px dashed var(--hp-line);
  font: 500 11.5px/1.4 var(--hp-mono);
  color: var(--hp-ink-3);
  letter-spacing: .02em;
}
.hp-card__proof b { color: var(--hp-red); font-weight: 700; }

/* Variante auf hellgrauem Grund (Sektion mit surface-2) */
.hp-grid--on-grey .hp-card { background: #fff; }

/* Akzent-Karte — hervorgehobene Aussage, ohne den Grid-Rhythmus zu brechen */
.hp-card--accent {
  border-color: rgba(220, 0, 24, .3);
  background: linear-gradient(135deg, rgba(220, 0, 24, .05), rgba(255, 255, 255, .9));
}
.hp-card--accent .hp-card__icon { background: rgba(220, 0, 24, .11); border-color: rgba(220, 0, 24, .3); }
.hp-card--accent::after { color: rgba(220, 0, 24, .35); }
.hp-card__desc strong { font-weight: 650; color: var(--hp-ink); }

/* ==========================================================================
   4) KUNDENSTIMMEN — ohne Riesen-Anführungszeichen & Buchstaben-Avatare
   ========================================================================== */
.hp-quotes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1040px) { .hp-quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hp-quotes { grid-template-columns: 1fr; } }

.hp-quote {
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--hp-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fcfcfe);
  padding: 24px 22px 20px;
  transition: border-color .3s ease, transform .3s ease;
  position: relative;
}
.hp-quote::before {
  content: "";
  position: absolute; left: 22px; top: 0; width: 26px; height: 2px;
  background: var(--hp-red);
  border-radius: 0 0 2px 2px;
}
.hp-quote:hover { border-color: rgba(220, 0, 24, .3); transform: translateY(-3px); }

.hp-quote__text {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 19px; line-height: 1.46;
  color: var(--hp-ink);
  font-style: italic;
  text-wrap: pretty;
}
.hp-quote__by {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--hp-line-soft);
  display: flex; align-items: baseline; gap: 9px;
  flex-wrap: wrap;
}
.hp-quote__name {
  font-size: 13.5px; font-weight: 700; color: var(--hp-ink);
  letter-spacing: -0.01em;
}
.hp-quote__name::before {
  content: "";
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--hp-red); margin-right: 8px; vertical-align: middle;
}
.hp-quote__role {
  font: 500 11.5px/1 var(--hp-mono);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--hp-ink-3);
}

/* ==========================================================================
   Mobile-Stagger — Karten faden versetzt ein (wie der Rest der Startseite).
   Bewusst SELBST-ENTHALTEN: die alten Regeln dafür stehen in
   mobile-homepage-2026.css, die main.js erst zur Laufzeit nachlädt. Würde ich
   deren Keyframes referenzieren und die Injektion fällt aus, blieben die
   Karten dauerhaft auf opacity:0 — also eigene Keyframes.
   ========================================================================== */
@keyframes hpRevealCard {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .hp-grid .hp-card,
  .hp-quotes .hp-quote,
  .hp-rail__track .hp-phase {
    opacity: 0;
    animation: hpRevealCard .8s cubic-bezier(.16, 1, .3, 1) forwards;
  }
  .hp-grid .hp-card:nth-child(1), .hp-quotes .hp-quote:nth-child(1), .hp-rail__track .hp-phase:nth-child(1) { animation-delay: .05s; }
  .hp-grid .hp-card:nth-child(2), .hp-quotes .hp-quote:nth-child(2), .hp-rail__track .hp-phase:nth-child(2) { animation-delay: .12s; }
  .hp-grid .hp-card:nth-child(3), .hp-quotes .hp-quote:nth-child(3), .hp-rail__track .hp-phase:nth-child(3) { animation-delay: .19s; }
  .hp-grid .hp-card:nth-child(4), .hp-quotes .hp-quote:nth-child(4), .hp-rail__track .hp-phase:nth-child(4) { animation-delay: .26s; }
  .hp-grid .hp-card:nth-child(5) { animation-delay: .33s; }
  .hp-grid .hp-card:nth-child(6) { animation-delay: .40s; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hp-card, .hp-quote, .hp-phase__dot, .hp-card__icon, .hp-ledger__row { transition: none; }
  .hp-card:hover, .hp-quote:hover, .hp-phase:hover .hp-phase__dot { transform: none; }
  .hp-phase::after { transition: none; transform: scaleX(1) !important; }
  /* Ohne Animation dürfen die Karten nicht auf opacity:0 hängenbleiben */
  .hp-grid .hp-card, .hp-quotes .hp-quote, .hp-rail__track .hp-phase {
    animation: none !important;
    opacity: 1 !important;
  }
}
