/* ============================================================
   AL ALTERNATIVE INVESTMENTS — styles.css
   Dark theme · Blutrot · Serif-Titel (Spectral) + Sans-Text (Hanken Grotesk)
   ------------------------------------------------------------
   FONTS (DSGVO): Für die exakten Schriften die .woff2-Dateien lokal
   unter  fonts/  ablegen (siehe @font-face unten). Ohne diese Dateien
   greifen automatisch saubere System-Fallbacks (Georgia / system-ui).
   ============================================================ */

/* ---- Optional: lokale Schriften (für DSGVO selbst hosten) ----
   Lege die Dateien unter fonts/ ab, dann werden sie genutzt.
   Fehlen sie, fallen die Fallbacks aus den Variablen unten ein. */
@font-face { font-family: 'Spectral'; src: url('fonts/spectral-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/spectral-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hankengrotesk-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hankengrotesk-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibmplexmono-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --bg:        #0E0E12;
  --bg-2:      #131318;
  --bg-3:      #18181F;
  --line:      #25252E;
  --line-soft: #1E1E26;
  --text:      #F2EFE8;
  --muted:     #C7C3B9;
  --muted-2:   #97938B;
  --red:       #B5161A;
  --red-bright:#E8554F;
  --red-deep:  #5A0707;
  --red-dark:  #7E0A0A;

  /* type */
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans:  'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* spacing rhythm */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 9rem);
}

/* ---- reset / base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;            /* großzügiger Zeilenabstand */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

p { max-width: 64ch; }            /* lesbare Zeilenlänge */

a { color: inherit; text-decoration: none; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 2px; }

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

/* shared eyebrow / label (mono, gespreizt) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-block;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.5rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand .mark { height: 30px; width: auto; flex: none; display: block; }
.brand .name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand .name span { color: var(--muted-2); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.92rem; color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--line);
  padding: 0.5rem 1.1rem; border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-orb, .hero-particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
/* roter Flüssigkeits-/Metaball-Orb aus radialen Verläufen */
.hero-orb {
  background:
    radial-gradient(42% 38% at 50% 44%,
      var(--red-bright) 0%,
      var(--red) 30%,
      var(--red-deep) 62%,
      transparent 78%);
  filter: blur(8px) saturate(115%);
  opacity: 0.92;
  animation: orbFloat 14s ease-in-out infinite;
  will-change: transform;
}
.hero-orb::after {        /* innerer Kern */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(20% 18% at 50% 42%, #ff8d7a 0%, transparent 60%);
  mix-blend-mode: screen; opacity: 0.5;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2.5%) scale(1.04); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.7; }
}
/* sanfte Vignette, damit Text lesbar bleibt */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 35%, transparent 40%, var(--bg) 92%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 780px; margin-inline: auto; text-align: center; }
.hero-logo {
  display: block; width: clamp(92px, 13vw, 132px); height: auto;
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 0 34px rgba(181, 22, 26, 0.5));
  animation: logoRise 1s cubic-bezier(.22,1,.36,1) both;
}
@keyframes logoRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin: 1.6rem 0 1.8rem;
}
.hero h1 em { color: var(--red-bright); font-style: normal; }
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 52ch;
  margin-inline: auto;
}
.scroll-cue {
  margin-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.scroll-cue::before { content: ""; width: 38px; height: 1px; background: var(--muted-2); }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line-soft); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60ch; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.section-head p { color: var(--muted); }

/* ---- About: stat strip ---- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
  margin-top: 3rem;
}
.stat {
  background: var(--bg-2);
  padding: 2.2rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.stat .v { font-family: var(--font-mono); font-size: 1.7rem; color: var(--text); letter-spacing: -0.01em; }
.stat .v .accent { color: var(--red-bright); }
.stat .k { font-size: 0.86rem; color: var(--muted-2); line-height: 1.5; }

/* ============================================================
   PERFORMANCE
   ============================================================ */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.metric {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.metric:hover { border-color: var(--red-dark); transform: translateY(-2px); }
.metric .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.metric .value { font-family: var(--font-mono); font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.metric .value.pos { color: var(--red-bright); }
.metric .note { font-size: 0.82rem; color: var(--muted-2); }
.metric .value.todo { color: var(--muted-2); }

/* ---- Equity curve panel ---- */
.equity {
  margin-top: 1.1rem;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.equity-head { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.8rem; }
.equity-head .title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); }
.equity-head .figures { font-family: var(--font-mono); font-size: 1.05rem; color: var(--text); }
.equity-head .figures .pos { color: var(--red-bright); }
.equity-chart { width: 100%; height: auto; display: block; }
.equity-chart .line { fill: none; stroke: var(--red-bright); stroke-width: 2.5; }
.equity-chart .area { fill: url(#eqFill); opacity: 0.5; }
.equity-foot { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

/* ---- Annual returns ---- */
.years { margin-top: 3rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.year { background: var(--bg-2); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; }
.year .tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.year .yr { font-family: var(--font-mono); font-size: 0.95rem; color: var(--muted); }
.year .ret { font-family: var(--font-serif); font-size: 1.55rem; color: var(--red-bright); }
.year .n { font-size: 0.78rem; color: var(--muted-2); }

/* ---- Trade sequence block ---- */
.sequence { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.seq { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 1.6rem 1.5rem; }
.seq .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.7rem; }
.seq .v { font-family: var(--font-mono); font-size: 1.5rem; }

.disclaimer {
  margin-top: 2.8rem;
  font-size: 0.85rem; line-height: 1.7; color: var(--muted-2);
  max-width: 80ch;
  border-left: 2px solid var(--red-dark);
  padding-left: 1.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { width: 34px; height: auto; display: block; margin-bottom: 0.9rem; }
.footer-brand .name { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.04em; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--muted-2); font-size: 0.9rem; max-width: 36ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; font-weight: 400; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.7rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--red-bright); }
.footer-disclaimer { max-width: 90ch; margin-bottom: 1.1rem; color: var(--muted-2); font-size: 0.78rem; line-height: 1.65; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--muted-2); }

/* ============================================================
   EMPTY STATE (Blog)
   ============================================================ */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--muted-2);
}
.empty-state p { max-width: none; margin: 0; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; }

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.page-hero { padding-block: clamp(4rem, 9vw, 7rem) clamp(1.8rem, 4vw, 3rem); border-bottom: 1px solid var(--line-soft); }
.page-hero .eyebrow { margin-bottom: 1.1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal-body { max-width: 760px; }
.legal-note { color: var(--muted-2); font-size: 0.86rem; border-left: 2px solid var(--red-dark); padding-left: 1rem; margin-bottom: 2.4rem; }
.legal-intro { color: var(--muted); margin-bottom: 1.4rem; }
.legal-body h2 { font-size: 1.4rem; margin: 2.8rem 0 1rem; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { color: var(--muted); margin-bottom: 1.1rem; }
.legal-body ul { color: var(--muted); margin: 0 0 1.3rem 1.3rem; }
.legal-body li { margin-bottom: 0.45rem; }
.legal-body a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--muted-2); font-size: 0.85rem; margin-top: 2.6rem; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 2rem; margin: 1.6rem 0 2.2rem; }
.dl dt { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.15rem; }
.dl dd { color: var(--text); }
@media (max-width: 560px) {
  .dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .dl dd { margin-bottom: 0.9rem; }
}

/* ============================================================
   LANGUAGE SWITCH (nur index.html)
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; }
.lang-switch button { background: none; border: none; color: var(--muted-2); cursor: pointer; font: inherit; letter-spacing: inherit; padding: 0.2rem 0.15rem; transition: color 0.2s ease; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: var(--red-bright); }
.lang-switch span { color: var(--muted-2); opacity: 0.45; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .years { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { gap: 1.1rem; }
  .nav-links a:not(.nav-cta) { display: none; }   /* schlanke Mobile-Nav */
  .metrics { grid-template-columns: 1fr 1fr; }
  .sequence { grid-template-columns: 1fr; }
  .years { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb, .hero-orb::after { animation: none; }
  .hero-logo { animation: none; }
  .equity-chart .line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  * { transition: none !important; }
}
