/* ============================================================
   Trading-Valentin — Design System
   Ink & Brass: gedämpftes Tinten-Schwarzgrün, warmes Papier-Weiß,
   Messing-Akzent statt Neon-Fintech-Klischee.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --ink: #0e1210;
  --ink-panel: #161c19;
  --ink-panel-2: #1c2320;
  --paper: #edeae2;
  --paper-dim: #a9a69c;
  --brass: #c99a4b;
  --brass-dim: #8f7038;
  --slate: #3e5c54;
  --rust: #8c4a3d;

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Source Sans 3', system-ui, sans-serif;

  --max-w: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em; }

p { color: var(--paper); }
.dim { color: var(--paper-dim); }

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 18, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(237, 234, 226, 0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  font-weight: 500;
}
.brand:hover { text-decoration: none; color: var(--brass); }
.brand span { color: var(--brass); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.86rem;
}

.nav-links a { color: var(--paper-dim); }
.nav-links a:hover { color: var(--brass); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(237, 234, 226, 0.25);
  color: var(--paper);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--mono);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-panel);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(237, 234, 226, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid rgba(237, 234, 226, 0.06); }
  .nav-links a { display: block; padding: 16px var(--pad); }
  .nav-toggle { display: inline-block; }
}

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(60px, 12vw, 130px) 0 clamp(40px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-signal {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0 8px;
}

.hero-signal path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero-lede {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--paper-dim);
}

/* ---------------- Divider (Signatur-Motiv wiederholt) ---------------- */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 var(--pad);
}

.divider svg { flex-shrink: 0; opacity: 0.7; }
.divider .line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(201,154,75,0.35), rgba(237,234,226,0.05));
}

/* ---------------- Sections ---------------- */

.section { padding: clamp(56px, 10vw, 96px) 0; }
.section-alt { background: var(--ink-panel); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Strategy cards ---------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

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

.card {
  background: var(--ink-panel-2);
  border: 1px solid rgba(237, 234, 226, 0.08);
  border-radius: 10px;
  padding: 30px 26px;
}

.card .code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--brass);
  border: 1px solid rgba(201, 154, 75, 0.35);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.card h3 { color: var(--paper); margin-bottom: 10px; }
.card p { color: var(--paper-dim); font-size: 0.98rem; margin: 0; }

/* ---------------- Über mich ---------------- */

.about {
  max-width: 720px;
}
.about p { font-size: 1.08rem; }

/* ---------------- Ansatz features ---------------- */

.grid-3-plain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .grid-3-plain { grid-template-columns: 1fr; gap: 32px; }
}
.feature h3 { color: var(--brass); margin-bottom: 10px; }
.feature p { color: var(--paper-dim); margin: 0; }

/* ---------------- Hinweis / Disclaimer ---------------- */

.notice {
  border-left: 3px solid var(--rust);
  background: rgba(140, 74, 61, 0.08);
  padding: 22px 26px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--paper-dim);
}
.notice strong { color: var(--paper); }

/* ---------------- Kontakt ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

.contact-info dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; color: var(--paper); }

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--paper-dim);
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  background: var(--ink-panel-2);
  border: 1px solid rgba(237, 234, 226, 0.14);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brass);
}

.field textarea { min-height: 130px; }

/* honeypot — visuell versteckt, für Screenreader ausgeblendet */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  background: var(--brass);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 14px 22px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--brass-dim); }

.form-status {
  font-family: var(--mono);
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status[data-state="ok"] { color: var(--slate); }
.form-status[data-state="error"] { color: var(--rust); }

/* ---------------- Footer ---------------- */

footer {
  border-top: 1px solid rgba(237, 234, 226, 0.08);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--paper-dim);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--paper-dim); }
.footer-links a:hover { color: var(--brass); }

/* ---------------- Legal pages ---------------- */

.legal {
  max-width: 760px;
  padding-top: 60px;
  padding-bottom: 80px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.6em; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--paper-dim); }
.legal a { word-break: break-word; }
