@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Runprey-Farben aus src/theme (dunkle Palette, wie Onboarding und Login) */
:root {
  --bg: #0B0D0F;
  --surface: #14171A;
  --border: #252A2F;
  --street: #20252A;
  --text: #ECEEF0;
  --muted: #8B949C;
  --faint: #5A6269;
  --accent: #D3A464;
  --accent-muted: rgba(211, 164, 100, 0.14);
  --on-accent: #14110C;
  --success: #7FB38A;
  --danger: #D07A6E;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

h1, h2, h3 { margin: 0; font-stretch: 125%; line-height: 1; }

/* Kopfzeile */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 18px; letter-spacing: 0.02em;
}
.wordmark svg { width: 30px; height: 30px; }

/* Tier-Marken: Kontur + Höhenlinien zum Auge */
.mark path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.mark-outline { stroke: var(--text); stroke-width: 2.6; }
.mark-contour { stroke: var(--accent); stroke-width: 1.2; opacity: 0.75; }
.mark-eye { fill: var(--accent); }
.mark-small .mark-contour { opacity: 0.9; }
.mark-map .mark-outline { stroke: var(--accent); stroke-width: 3.4; }
.mark-map .mark-contour { stroke: var(--accent); opacity: 0.45; }

/* Hero: Karte mit Route, Tier vorn, Läufer dahinter */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(40px, 8vh, 88px);
}
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo path { fill: none; stroke: var(--border); stroke-width: 1; }
.streets path { fill: none; stroke: var(--street); stroke-width: 9; stroke-linecap: round; }
.route { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linecap: round; }
.route-done {
  fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0.48;
  animation: chase-route 5.5s cubic-bezier(0.3, 0, 0.2, 1) both;
}
@keyframes chase-route { from { stroke-dashoffset: 1; } }
.runner-dot { fill: var(--text); stroke: var(--bg); stroke-width: 3; }
.runner-halo { fill: rgba(236, 238, 240, 0.12); }
.prey-radius { fill: var(--accent-muted); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 5; }

.hero-copy { position: relative; max-width: 640px; }
.hero-copy::before {
  /* Lesbarkeit über der Karte */
  content: ''; position: absolute; z-index: -1; inset: -40% -30% -20% -60%;
  background: radial-gradient(closest-side, var(--bg) 55%, transparent);
}
h1 {
  font-size: clamp(44px, 8.5vw, 104px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.lede { margin: 28px 0 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }

.field button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s;
}
.field button:hover { background: #E0B577; }
/* Warteliste */
form { margin-top: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field {
  display: flex; gap: 6px; padding: 6px; max-width: 560px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.field:focus-within { border-color: var(--accent); }
.field input {
  flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 17px; outline: none;
}
.field input::placeholder { color: var(--faint); }
.field button { min-height: 48px; }
.field button[disabled] { opacity: 0.6; cursor: progress; }
.status { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.status.ok { color: var(--success); }
.status.error { color: var(--danger); }

.foot {
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  padding: 32px var(--gutter) 40px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Rechtstexte */
h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; max-width: 16em; }
.legal { max-width: 720px; padding: 120px var(--gutter) 80px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 12px 0 0; }

@media (min-width: 901px) {
  .map { left: 44%; width: 56%; }
  .hero-copy::before { inset: -30% -10% -20% -60%; }
}
@media (max-width: 640px) {
  .hero { align-items: flex-end; padding-top: 96px; }
  .map { height: 62%; }
  .hero-copy::before { inset: -30% -20% -10% -20%; }
  .field { flex-direction: column; border-radius: 20px; }
  .field input { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-done { animation: none; }
}
