/* ============================================================
   Market Mavericks — Gemeinsames Stylesheet
   Designsystem, Layout, Animationen für alle Seiten
   ============================================================ */

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

:root {
  --paper: #F8F8F6;
  --paper-2: #EFEFEC;
  --mint-bg: #E3EDE7;
  --card: #FFFFFF;
  --ink: #161614;
  --muted: #5B5B56;
  --faint: #9A9A93;
  --quote: #34342F;
  --green: #1D4B38;
  --green-h: #163C2D;
  --green-dark: #14352A;
  --loss: #8A3033;
  --mint: #A8C3B5;
  --mint-2: #4C8467;
  --mint-3: #7FB59A;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--green); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Scroll-Fortschrittsbalken ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--green); z-index: 9995; transition: width .1s linear;
}

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9994;
  background: rgba(248,248,246,0); border-bottom: 1px solid rgba(22,22,20,0);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
.nav.scrolled { background: rgba(248,248,246,.88); border-bottom: 1px solid rgba(22,22,20,.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 18px;
  letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.nav-links { display: flex; align-items: center; gap: clamp(18px,2.6vw,34px); }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--muted); position: relative; transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: var(--green); transition: right .3s var(--ease); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { right: 0; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--green);
  color: var(--paper); font-weight: 600; font-size: 13.5px; padding: 10px 20px; border-radius: 100px;
  white-space: nowrap; transition: transform .3s var(--ease), background .3s ease; box-shadow: 0 10px 24px -12px rgba(29,75,56,.6); }
.nav-cta:hover { transform: translateY(-2px); background: var(--green-h); }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- Sektions-Grundlagen ---------- */
.sec { position: relative; padding: clamp(84px,10vw,136px) 24px; scroll-margin-top: 80px; }
.sec.alt { background: var(--paper-2); }
.container { max-width: 1100px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(34px,4.8vw,58px);
  letter-spacing: -.015em; line-height: 1.03; margin: 0 0 20px; }
.h2 em, .it { font-style: italic; color: var(--green); }
.lead { font-size: clamp(16px,1.5vw,19px); line-height: 1.7; color: var(--muted); margin: 0; }
.head { max-width: 720px; margin: 0 0 clamp(42px,5vw,64px); }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }

/* ---------- Buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--green);
  color: var(--paper); font-weight: 600; font-size: 15px; padding: 15px 30px; border-radius: 100px;
  transition: transform .3s var(--ease), background .3s ease; box-shadow: 0 14px 32px -14px rgba(29,75,56,.6); }
.btn-primary:hover { transform: translateY(-3px); background: var(--green-h); }

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: var(--paper); padding: clamp(56px,7vw,88px) 24px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid rgba(248,248,246,.14); }
.footer-logo { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px;
  display: inline-flex; align-items: center; gap: 10px; }
.footer-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.footer-tag { font-size: 14px; color: rgba(248,248,246,.6); margin-top: 12px; max-width: 320px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(248,248,246,.5); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: rgba(248,248,246,.85); margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; font-size: 12.5px; color: rgba(248,248,246,.45); }
.footer-bottom .risk { max-width: 620px; line-height: 1.6; }

/* ---------- Hilfsklassen ---------- */
.center { text-align: center; }
