/* ============================================================
   MotionGuide Landing — Editorial Sportswear
   Design-System-Tokens (Cream / Ink / Orange).
   ============================================================ */

/* Self-hosted Fonts (latin, woff2) — kein externer CDN-Call. Alle drei
   Familien stehen unter der SIL Open Font License. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-tight-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-tight-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-tight-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-tight-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); }

:root {
  /* Farben */
  --ink:        #14130f;
  --ink-soft:   #3a3833;
  --muted:      #767168;
  --bg:         #f5f1ea;
  --bg-2:       #ede8de;
  --paper:      #fbf8f2;
  --orange:     #e85a2c;
  --orange-soft:#f3d4c5;
  --moss:       #6c7d4a;
  --line:       rgba(20, 19, 15, 0.10);
  --line-strong:rgba(20, 19, 15, 0.18);
  --line-invert:rgba(245, 241, 234, 0.16);

  /* Schrift */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Schatten */
  --shadow-card:  0 2px 14px rgba(20, 19, 15, 0.08);
  --shadow-hover: 0 6px 22px rgba(20, 19, 15, 0.14);
  --shadow-cta:   0 4px 12px rgba(20, 19, 15, 0.18);

  /* Maße */
  --maxw: 1120px;
  --radius-card: 20px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

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

::selection { background: var(--orange-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Skip-Link ── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ── Layout-Helfer ── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(64px, 10vw, 120px); }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.kicker--invert { color: var(--orange-soft); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 18ch;
}
.section__title em { font-style: italic; color: var(--orange); }
.section__title--invert { color: var(--bg); }
.section__title--invert em { color: var(--orange); }

.section__lead {
  margin-top: 20px;
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  min-height: 48px;
}
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-cta); }
.btn--ink:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn--block { width: 100%; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(20, 19, 15, 0.05); }
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__word { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.01em; }
.logo__word-italic { font-style: italic; color: var(--orange); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.18s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--orange); }
.nav__cta { padding: 10px 18px; min-height: 0; font-size: 0.85rem; }
.nav__cta:hover { color: #fff; }

/* ── Hero ── */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.hero__title em { font-style: italic; color: var(--orange); }
.hero__sub { margin-top: 22px; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-card);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}

/* ── Problem-Cards ── */
.cards { list-style: none; display: grid; gap: 16px; margin-top: 44px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card__num {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--orange); letter-spacing: 0.08em;
}
.card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin: 12px 0 8px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ── So funktioniert's ── */
.funktion { background: var(--bg-2); }
.funktion__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.steps { list-style: none; margin-top: 36px; display: grid; gap: 26px; counter-reset: step; }
.step { position: relative; padding-left: 56px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
}
.step__title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* Phone-Mockup */
.funktion__media { display: grid; place-items: center; }
.phone {
  width: min(300px, 78vw);
  background: var(--ink);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-hover);
}
.phone__screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 3 / 4;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__pose { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone__cue {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(20, 19, 15, 0.86); color: var(--bg);
  font-size: 0.92rem; font-weight: 600;
  padding: 10px 14px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
}
.phone__cue-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ── Rollen ── */
.rollen__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.rolle {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 16px; box-shadow: var(--shadow-card);
}
.rolle img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; }
.rolle__title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 8px; padding-inline: 8px; }
.rolle p { color: var(--ink-soft); padding: 0 8px 10px; }

/* ── Datenschutz (inverse) ── */
.datenschutz { background: var(--ink); border-radius: 0; }
.datenschutz__inner { max-width: 760px; }
.datenschutz__lead { margin-top: 20px; color: rgba(245, 241, 234, 0.82); font-size: 1.08rem; max-width: 58ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bg); border: 1px solid var(--line-invert);
  padding: 10px 16px; border-radius: 999px;
}

/* ── Pilot / Form ── */
.pilot__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.pilot__aside { margin-top: 20px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--ink-soft); }
.form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color 0.16s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--orange);
}
.form__foot { margin-top: 4px; }
.form__hint { margin-top: 12px; font-size: 0.88rem; color: var(--ink-soft); min-height: 1.2em; }
.form__hint.is-error { color: var(--orange); }

/* Honeypot — visuell entfernt, aber für Bots im DOM */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  background: var(--paper); border: 1px solid var(--moss);
  border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow-card); grid-column: 2 / 3;
}
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); }

/* ── Footer ── */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 48px 28px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: start; }
.footer__brand { display: flex; gap: 14px; align-items: center; max-width: 38ch; }
.footer__brand p { color: var(--ink-soft); font-size: 0.95rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color 0.18s var(--ease); }
.footer__nav a:hover { color: var(--orange); }
.footer__base {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.footer__base p { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--muted); }

/* ── Legal-Seiten (Datenschutz / Impressum) ── */
.legal { padding-block: clamp(56px, 8vw, 104px); }
.legal__inner { max-width: 740px; }
.legal h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.015em;
}
.legal h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.55rem; line-height: 1.15; margin-top: 2.2em;
}
.legal h3 { font-size: 1.02rem; font-weight: 600; margin-top: 1.5em; }
.legal p, .legal li { color: var(--ink-soft); margin-top: 0.85em; }
.legal .legal__lead { font-size: 1.12rem; margin-top: 1.2em; }
.legal ul { margin-top: 0.6em; padding-left: 1.25em; }
.legal li { margin-top: 0.4em; }
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal address { font-style: normal; }
.legal .updated { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--muted); margin-top: 1.4em; }
.legal__back { display: inline-flex; margin-top: 2.6em; }
.placeholder {
  background: var(--orange-soft); color: var(--ink);
  padding: 1px 7px; border-radius: 5px; font-weight: 600; white-space: nowrap;
}

/* ── Reveal-on-Scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .funktion__grid, .pilot__grid { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
  .rollen__grid { grid-template-columns: 1fr; }
  .form-success { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
