/* ============================================================
   Code & Cash — Design System (Redesign)
   Fonts: Barlow Condensed (display) + Manrope (body)
   Color: Dark Navy-Black + Amber (committed brand strategy)
   ============================================================ */

/* ===== SELF-HOSTED FONTS (latin subset, DSGVO-konform, keine Google-Anfrage) ===== */
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/barlow-condensed-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/barlow-condensed-800.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap;
  src: url(fonts/barlow-condensed-900.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/barlow-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/barlow-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/barlow-800.woff2) format('woff2');
}
/* Manrope = variable font, ein File deckt 400–700 ab */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/manrope-var.woff2) format('woff2');
}

/* ===== TOKENS ===== */
:root {
  --bg-base:    oklch(9%  0.010 255);
  --bg-surface: oklch(12% 0.012 255);
  --bg-raised:  oklch(16% 0.014 255);

  --amber:        oklch(74% 0.14  68);
  --amber-dim:    oklch(62% 0.10  68);
  --amber-ghost:  oklch(74% 0.14  68 / 0.11);
  --amber-border: oklch(74% 0.14  68 / 0.24);

  --blue:  oklch(62% 0.17 255);
  --green: oklch(71% 0.16 155);
  --red:   oklch(60% 0.17  25);
  --gold:  oklch(72% 0.14  78);

  --text-1: oklch(95% 0.006 255);
  --text-2: oklch(65% 0.010 255);
  --text-3: oklch(44% 0.008 255);

  --border:        oklch(20% 0.010 255);
  --border-strong: oklch(30% 0.012 255);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-head:    'Barlow', sans-serif;
  --font-body:    'Manrope', sans-serif;

  --nav-h: 64px;
  --max-w: 1200px;
  --narrow: 780px;
  --r:    8px;
  --r-lg: 16px;
}

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.price-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s;
}
.price-card:hover { border-color: var(--border-strong); }
.price-card--featured {
  border-color: oklch(62% 0.17 255 / 0.5);
  background: oklch(62% 0.17 255 / 0.06);
}
.price-card--featured:hover { border-color: var(--blue); }
.pc-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 99px;
  white-space: nowrap;
}
.pc-head { display: flex; flex-direction: column; gap: 0.4rem; }
.pc-name {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pc-price { display: flex; align-items: baseline; gap: 0.2rem; line-height: 1; }
.pc-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-1);
}
.pc-period { font-size: 0.85rem; color: var(--text-3); }
.pc-trial {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}
.pc-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pc-features li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.pc-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.pc-cta { width: 100%; text-align: center; margin-top: auto; }

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

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
/* Bild-Download erschweren (Deterrent, kein echter Schutz) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== LAYOUT ===== */
.wrap    { max-width: var(--max-w);  margin: 0 auto; padding: 0 2rem; }
.wrap-sm { max-width: var(--narrow); margin: 0 auto; padding: 0 2rem; }

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 6.9rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.012em;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}
.kicker {
  display: block;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s cubic-bezier(0.4,0,0.2,1);
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn-amber {
  background: var(--amber);
  color: oklch(9% 0.010 255);
}
.btn-amber:hover {
  background: oklch(68% 0.13 68);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px -10px oklch(74% 0.14 68 / 0.5);
}
.btn-amber.lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--amber-dim); color: var(--amber); }

.btn-discord {
  background: var(--amber-ghost);
  color: var(--amber);
  border: 1px solid var(--amber-border);
  padding: 0.55rem 1.2rem;
  font-size: 0.87rem;
}
.btn-discord:hover {
  background: oklch(74% 0.14 68 / 0.2);
  border-color: var(--amber-dim);
}
.btn-plain {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  font-size: 0.88rem;
}
.btn-plain:hover { border-color: var(--amber-dim); color: var(--amber); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; width: 100%;
  height: var(--nav-h);
  z-index: 200;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: oklch(9% 0.010 255 / 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo em { color: var(--amber); font-style: normal; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0 auto;
}
.nav-links a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-1); }
.nav-cta { flex-shrink: 0; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: var(--nav-h); width: 100%;
  background: oklch(9% 0.010 255 / 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem 2rem;
  transform: translateY(-108%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.32s, visibility 0s 0.32s;
  z-index: 199;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.32s; }
.nav-drawer ul { list-style: none; margin-bottom: 1.5rem; }
.nav-drawer li a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-drawer li:last-child a { border-bottom: none; }
.nav-drawer li a:hover { color: var(--text-1); }
.nav-drawer .btn-amber { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 5rem) 2rem 6rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -22%; right: -12%;
  width: 64%; height: 76%;
  background: radial-gradient(circle, oklch(74% 0.14 68 / 0.07), transparent 64%);
  pointer-events: none;
}

/* Equity-curve backdrop (real portfolio data, +420 % since 2020) */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(78deg, transparent 14%, black 56%);
          mask-image: linear-gradient(78deg, transparent 14%, black 56%);
}
.hero-bg svg { width: 100%; height: 100%; }
.eq-grid line { stroke: var(--border); }
.eq-axis text {
  fill: var(--text-3);
  font: 600 11px var(--font-head);
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.eq-fill {
  opacity: 0;
  animation: eqFadeIn 1.6s ease 1.4s forwards;
}
.eq-curve {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  opacity: 0.62;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: eqDraw 2.6s cubic-bezier(0.33, 1, 0.68, 1) 0.4s forwards;
}
.eq-dot { opacity: 0; animation: eqFadeIn 0.5s ease 2.85s forwards; }
.eq-dot circle { fill: var(--amber); }
.eq-dot .eq-dot-ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: eqPulse 2.6s ease-out 3.1s infinite;
}
.eq-tag {
  fill: var(--amber);
  font: 700 13px var(--font-head);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: eqFadeIn 0.6s ease 3s forwards;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: center;
}
.hero-tag   { animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.05s both; }
.hero-sub   { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.hero-ctas  { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.68s both; }
.hero-panel { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.35s both; }

/* Staggered headline reveal */
.hl-mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hl-line {
  display: block;
  transform: translateY(112%);
  animation: lineRise 0.85s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hl-mask:nth-child(1) .hl-line { animation-delay: 0.1s; }
.hl-mask:nth-child(2) .hl-line { animation-delay: 0.22s; }
.hl-mask:nth-child(3) .hl-line { animation-delay: 0.34s; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 1.5rem;
}
.hero-tag .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.2s ease-out infinite;
}
.hero-headline { margin-bottom: 1.75rem; }
.hero-kw {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--text-2);
  margin-top: 1.35rem;
}
.hero-kw strong { font-weight: 700; color: var(--text-1); }
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-2);
  line-height: 1.77;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Terminal-style status panel */
.status-panel {
  background: var(--bg-surface);
  border: 1px solid oklch(26% 0.02 68);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 90px -36px oklch(74% 0.14 68 / 0.35);
}
.sp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.25rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.sp-title {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sp-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
}
.sp-live .live-dot { animation: pulse-dot 2.2s ease-out infinite; }

.sp-algo-list { padding: 0.5rem 1.25rem; }
.sp-algo {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.5s ease-out both;
}
.sp-algo:nth-child(1) { animation-delay: 0.75s; }
.sp-algo:nth-child(2) { animation-delay: 0.85s; }
.sp-algo:nth-child(3) { animation-delay: 0.95s; }
.sp-algo:nth-child(4) { animation-delay: 1.05s; }
.sp-algo:last-child { border-bottom: none; }
.sp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.sp-name { font-size: 0.84rem; font-weight: 600; }
.sp-mkt  { font-size: 0.7rem; color: var(--text-3); font-family: var(--font-head); }
.sp-ok   { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; color: var(--green); }

.sp-divider { height: 1px; background: var(--border); }
.sp-stats { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.sp-stat  { display: flex; justify-content: space-between; align-items: baseline; }
.sp-stat-label { font-size: 0.77rem; color: var(--text-2); }
.sp-stat-val {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--amber);
}
.sp-stat-val.ok { color: var(--green); }

.sp-foot {
  border-top: 1px solid var(--border);
  padding: 0.8rem 1.25rem;
}
.sp-verify {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-3);
  font-weight: 500;
  transition: color 0.2s;
}
.sp-verify svg { color: var(--green); flex-shrink: 0; }
.sp-verify:hover { color: var(--green); }

/* ===== TICKER TAPE ===== */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 1.1rem 0;
  white-space: nowrap;
}
.ticker-item::after {
  content: '';
  align-self: center;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: oklch(74% 0.14 68 / 0.4);
  margin: 0 2.2rem;
}
.ti-lbl {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ti-val {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.ti-val.up { color: var(--amber); }
.ti-val.ok { color: var(--green); }

/* ===== SECTION BASE ===== */
.section { padding: 7rem 0; }
.section-alt { background: var(--bg-surface); }

.s-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.s-lead {
  font-size: 1.03rem;
  color: var(--text-2);
  line-height: 1.78;
}
.s-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.78;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== ALGORITHM LIST ===== */
.algo-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.algo-entry {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: background 0.18s;
}
.algo-entry:last-child { border-bottom: none; }
.algo-entry:hover { background: var(--bg-surface); }
.algo-entry:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

.ae-n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--amber);
  opacity: 0.28;
  line-height: 1;
  transition: opacity 0.18s;
}
.algo-entry:hover .ae-n { opacity: 0.55; }

.ae-info strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.ae-info span { font-size: 0.78rem; color: var(--text-3); }

.ae-tag {
  padding: 0.28rem 0.72rem;
  border-radius: 99px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--amber-ghost);
  color: var(--amber-dim);
  border: 1px solid var(--amber-border);
}
/* All tag variants use the same visual weight — no special overrides */
.ae-tag.is-flagship,
.ae-tag.is-gold {
  background: var(--amber-ghost);
  color: var(--amber-dim);
  border-color: var(--amber-border);
}
.ae-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.18s, transform 0.2s cubic-bezier(0.4,0,0.2,1);
}
.algo-entry:hover .ae-arrow { color: var(--amber); transform: translateX(4px); }

/* Gold row: no special coloring — consistent with other rows */

.algo-cta { text-align: center; margin-top: 2rem; }

/* ===== PERFORMANCE TABLE ===== */
.perf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.perf-table {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.pt-head-row, .pt-data-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}
.pt-head-row {
  background: var(--bg-raised);
  padding: 0.85rem 1.75rem;
}
.pt-head-row span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.pt-data-row {
  padding: 0.95rem 1.75rem;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: background 0.14s;
}
.pt-data-row:hover { background: var(--bg-raised); }
.pt-lbl { font-size: 0.87rem; color: var(--text-2); }
.pt-val { font-family: var(--font-head); font-weight: 700; font-size: 0.97rem; }
.pt-val.accent { color: var(--amber); }
.pt-val.good   { color: var(--green); }

.perf-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.81rem;
  color: var(--text-3);
}
.perf-foot svg { color: var(--green); flex-shrink: 0; }
.perf-foot a { color: var(--green); text-decoration: underline; text-decoration-color: oklch(71% 0.16 155 / 0.38); }
.perf-foot .more { margin-left: auto; color: var(--amber-dim); font-weight: 600; transition: color 0.2s; }
.perf-foot .more:hover { color: var(--amber); }

/* ===== STEPS ===== */
.steps { margin-bottom: 2.5rem; }
.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
}
.step + .step { border-top: 1px solid var(--border); }
.step-n {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--amber);
  opacity: 0.22;
  line-height: 1;
  padding-top: 0.05rem;
  transition: opacity 0.2s;
}
.step:hover .step-n { opacity: 0.5; }
.step-body h3 { margin-bottom: 0.55rem; }
.step-body p  { font-size: 0.92rem; color: var(--text-2); line-height: 1.77; }
.step-body a  { color: var(--amber-dim); text-decoration: underline; text-decoration-color: oklch(62% 0.10 68 / 0.38); }
.step-body a:hover { color: var(--amber); }
.step-body strong { color: var(--text-1); font-weight: 600; }

.setup-note {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.5rem;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.7;
}
.setup-note a { color: var(--amber-dim); text-decoration: underline; }
.setup-note a:hover { color: var(--amber); }

/* ===== FAQ ===== */
.faq-list {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.75rem;
  background: none;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
  transition: background 0.15s;
}
.faq-btn:hover { background: var(--bg-surface); }
.faq-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.faq-icon {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--amber); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.faq-body p {
  padding: 0 1.75rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.82;
}
.faq-body a { color: var(--amber-dim); text-decoration: underline; }
.faq-body strong { color: var(--text-1); }

/* ===== CTA ===== */
.cta-section { padding: 8rem 2rem; text-align: center; }
.cta-wrap { max-width: 620px; margin: 0 auto; }
.cta-wrap h2 { margin-bottom: 1rem; }
.cta-wrap p {
  font-size: 1.03rem;
  color: var(--text-2);
  line-height: 1.78;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}
.cta-note { margin-top: 1.1rem; font-size: 0.78rem; color: var(--text-3); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-1); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.disclaimer { font-size: 0.71rem; color: var(--text-3); line-height: 1.65; max-width: 540px; }
.legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.79rem;
  color: var(--text-3);
  flex-shrink: 0;
}
.legal a { transition: color 0.2s; }
.legal a:hover { color: var(--text-1); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 oklch(71% 0.16 155 / 0.5); }
  60%       { box-shadow: 0 0 0 5px oklch(71% 0.16 155 / 0); }
}

@keyframes lineRise { to { transform: translateY(0); } }
@keyframes eqDraw   { to { stroke-dashoffset: 0; } }
@keyframes eqFadeIn { to { opacity: 1; } }
@keyframes eqPulse {
  0%        { transform: scale(1);   opacity: 0.55; }
  75%, 100% { transform: scale(3.2); opacity: 0; }
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }

::selection { background: var(--amber); color: oklch(10% 0.010 255); }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.55s cubic-bezier(0.16,1,0.3,1) var(--delay, 0s),
    transform 0.55s cubic-bezier(0.16,1,0.3,1) var(--delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== LIVE / MYFXBOOK ===== */
.live-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.live-head .s-lead em { color: var(--amber); font-style: normal; }
.mfb-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 2.75rem;
  align-items: center;
}
.mfb-widget {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 44px -20px rgba(0,0,0,0.65);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.mfb-widget:hover { transform: translateY(-3px); }
.mfb-widget img { display: block; width: 100%; height: auto; }
.mfb-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
}
.mfb-meta-txt {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
}
@media (max-width: 768px) {
  .mfb-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }
  .mfb-meta { align-items: stretch; text-align: left; }
  .mfb-meta .btn { width: 100%; }
}

/* ===== ÜBER MICH ===== */
.about {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-raised);
}
.about-photo img { width: 100%; height: auto; display: block; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-lead {
  font-size: 1.08rem;
  color: var(--text-1);
  line-height: 1.78;
  margin-bottom: 1.25rem;
}
.about-text p {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.about-sign {
  margin-top: 1.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--amber);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .live-head { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .about { grid-template-columns: 300px 1fr; gap: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .status-panel { max-width: 460px; }
  .s-head { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(3.2rem, 11.5vw, 4.6rem); }
  h2 { font-size: clamp(1.8rem, 5.5vw, 2.3rem); }

  .ticker-item { padding: 0.9rem 0; }
  .ticker-item::after { margin: 0 1.4rem; }
  .ti-val { font-size: 0.88rem; }

  /* Equity backdrop: nur noch dezente Textur, keine Labels */
  .hero-bg { opacity: 0.45; }
  .eq-axis, .eq-tag, .eq-dot { display: none; }

  .section  { padding: 5rem 0; }
  .wrap, .wrap-sm { padding: 0 1.25rem; }

  .algo-entry { grid-template-columns: 44px 1fr auto; gap: 1rem; padding: 1.25rem; }
  .ae-arrow   { display: none; }

  .perf-head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .pt-head-row span:last-child { display: none; }
  .pt-head-row, .pt-data-row { grid-template-columns: 1.4fr 1fr; }
  .pt-data-row .pt-val:last-child { display: none; }
  .perf-foot .more { margin-left: 0; }

  .step { grid-template-columns: 52px 1fr; gap: 1.25rem; }
  .step-n { font-size: 2rem; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .footer-top  { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .legal { flex-wrap: wrap; gap: 1rem; }
  .cta-section { padding: 5rem 1.25rem; }

  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { position: static; max-width: 340px; }
}
@media (max-width: 480px) {
  .hero { padding: calc(var(--nav-h) + 3rem) 1.25rem 4rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-tag, .hero-sub, .hero-ctas, .hero-panel, .sp-algo, .hl-line {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .eq-curve { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .eq-fill, .eq-dot, .eq-tag { animation: none; opacity: 1; }
  .eq-dot .eq-dot-ring { display: none; }
  .live-dot, .sp-live .live-dot { animation: none; }
  .ticker-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }
  .ticker-group { flex-wrap: wrap; justify-content: center; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .ae-arrow, .faq-icon { transition: none; }
}

/* ===== LEGAL PAGES (Impressum / Datenschutz) ===== */
.legal-hero {
  padding: calc(var(--nav-h) + 4rem) 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}
.legal-body { padding: 3.5rem 0 5rem; }
.legal-body h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 68ch;
}
.legal-body strong { color: var(--text-1); font-weight: 600; }
.legal-body a { color: var(--amber-dim); text-decoration: underline; text-decoration-color: oklch(62% 0.10 68 / 0.4); }
.legal-body a:hover { color: var(--amber); }
.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  margin: 1.25rem 0 1.75rem;
}
.legal-card p { margin-bottom: 0; }

/* ===== STICKY MOBILE CTA-LEISTE ===== */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: none;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: oklch(11% 0.012 255 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-cta .btn { width: 100%; padding: 0.8rem 1.5rem; font-size: 0.95rem; }
@media (max-width: 1024px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 4.5rem; }
}

/* ===== KAPITAL-RECHNER (Portfolio) ===== */
.calc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.calc-head h2 { font-family: var(--font-head); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.4rem 0 0.6rem; }
.calc-head p { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; max-width: 70ch; }
.calc-slider { margin: 1.75rem 0 1.5rem; }
.calc-slider label { display: block; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.calc-cap { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--amber); line-height: 1.05; margin: 0.1rem 0 0.7rem; }
.calc-slider input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 99px;
  background: var(--bg-raised); outline: none; cursor: pointer;
}
.calc-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--bg-surface);
  box-shadow: 0 2px 10px oklch(74% 0.14 68 / 0.5); cursor: pointer;
}
.calc-slider input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--bg-surface);
  box-shadow: 0 2px 10px oklch(74% 0.14 68 / 0.5); cursor: pointer;
}
.calc-slider input[type=range]:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-3); font-family: var(--font-head); }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 0.5rem; }
.calc-cell { background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.calc-cell.accent { border-color: var(--amber-border); background: var(--amber-ghost); }
.calc-cell-lbl { font-size: 0.72rem; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.calc-cell-val { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--text-1); line-height: 1.1; margin: 0.35rem 0 0.2rem; font-variant-numeric: tabular-nums; }
.calc-cell.accent .calc-cell-val { color: var(--amber); }
.calc-cell-val.good { color: var(--green); }
.calc-cell-sub { font-size: 0.78rem; color: var(--text-3); }
.calc-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--text-3); line-height: 1.6; }
.calc-note strong { color: var(--text-2); }
@media (max-width: 720px) {
  .calc { padding: 1.5rem; }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-cap { font-size: 2.1rem; }
}
