/* self-hosted, variable — one file per subset covers all weights */
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/fonts/syne-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/fonts/syne-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink-dark: #070908;   /* engineer surface */
  --ink-light: #efe6d6;  /* athlete surface  */
  --green: #30ff7a;      /* 14.94:1 on dark  */
  --rust: #913716;       /* 6.14:1 on cream — AA with headroom at 11px */
  --track-dark: #556e62; /* 3.61:1 on dark   */
  --track-light: #7d7260;/* 3.81:1 on cream  */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Syne, sans-serif; overflow-x: hidden; background: var(--ink-dark); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── split ─── */
.split { display: grid; grid-template-columns: var(--split, 1fr 1fr); position: relative; align-items: stretch; }
.eng { background: var(--ink-dark); color: #d7ffe6; min-width: 0; }
.ath { background: var(--ink-light); color: #1c140e; min-width: 0; }
.col { padding: 28px 32px 64px; min-width: 0; display: flex; flex-direction: column; }

.k { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em;
     text-transform: uppercase; margin-bottom: 1rem; }
.eng .k { color: var(--green); }
.ath .k { color: var(--rust); }

.display { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.05em;
           line-height: .9; overflow-wrap: break-word; }
.eng .display span { color: var(--green); }
.ath .display span { color: var(--rust); }

.lede { margin: 1.4rem 0 2rem; max-width: 36ch; line-height: 1.6; opacity: .85; }
.facts { display: grid; gap: 14px; margin-bottom: 2.4rem; }
.facts div { border-top: 1px solid currentColor; padding-top: 10px; opacity: .9; }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em;
              text-transform: uppercase; opacity: .75; }

h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em;
     margin: 2.2rem 0 1rem; }
p { line-height: 1.7; margin-bottom: 1rem; max-width: 52ch; opacity: .9; }

.stat { font-size: 3rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 8px 0; }
.stat small { font-size: .4em; }
.eng .stat { color: var(--green); }
.ath .stat { color: var(--rust); }

.card { border: 1px solid currentColor; padding: 16px; margin-bottom: 10px; opacity: .95; }
.card h4 { font-size: 1rem; margin-bottom: 6px; font-weight: 700; }
.card p { font-size: .9rem; margin: 0; }

.tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 10px;
       letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor;
       padding: 4px 8px; margin: 4px 4px 0 0; text-decoration: none; color: inherit; }

.bar-wrap { margin: 12px 0; }
.bar-label { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace;
             font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.bar { height: 6px; }
.eng .bar { background: var(--track-dark); }
.ath .bar { background: var(--track-light); }
.bar i { display: block; height: 100%; width: 0; }
.eng .bar i { background: var(--green); }
.ath .bar i { background: var(--rust); }

footer { margin-top: auto; padding-top: 2.4rem; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
footer a { color: inherit; margin-right: 12px; }

/* ─── draggable / keyboard-operable separator ─── */
.handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 18px; margin-left: -9px;
  cursor: ew-resize; z-index: 5; display: grid; place-items: center;
  background: none; border: 0; padding: 0; touch-action: none;
}
.handle b { width: 2px; height: 100%; background: var(--rust); box-shadow: 0 0 0 6px var(--ink-light); }
.handle:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.hint {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  z-index: 6; background: #1c140e; color: var(--ink-light);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; padding: 8px 10px; pointer-events: none;
  animation: fadehint 5s ease forwards;
}
@keyframes fadehint { 0%, 60% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr !important; overflow-x: hidden; width: 100%; }
  .handle, .hint { display: none; }
  .display { font-size: 9vw; }
  h3 { font-size: 1.35rem; overflow-wrap: break-word; }
  .col { padding: 20px 18px 40px; width: 100%; }
  p, .lede, .facts, h3 { max-width: 100%; overflow-wrap: break-word; }
  .lede { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint { animation: none; display: none; }
}

/* ─── language switch + legal links ─── */
.lang { position: absolute; top: 22px; right: 32px; z-index: 6;
        font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em;
        text-transform: uppercase; color: var(--rust); padding: 4px 0; }
@media (max-width: 860px) { .lang { right: 18px; top: 16px; color: var(--green); } }

/* ─── legal pages (impressum, datenschutz) ─── */
body.legal { background: var(--ink-light); color: #1c140e; }
.legal main { max-width: 60ch; margin: 0 auto; padding: 48px 32px 64px; }
.legal h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: .95;
            margin-bottom: 2.4rem; overflow-wrap: break-word; hyphens: auto; }
.legal h2 { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 400; letter-spacing: .2em;
            text-transform: uppercase; color: var(--rust); margin: 2rem 0 .6rem; }
.legal .k { color: var(--rust); }
.legal address { font-style: normal; line-height: 1.7; }
.legal ul { margin: 0 0 1rem 1.2rem; line-height: 1.7; max-width: 52ch; }
.legal a { color: inherit; }
.legal footer a { margin-right: 12px; }
@media (max-width: 860px) { .legal main { padding: 32px 18px 40px; } }
