/* R.S. Athletics Zürich. Leitmotiv: Startnummer, Bahn, Rangliste. Mobile zuerst. */

:root {
  --ink: #15130f;
  --ink-2: #211e19;
  --paper: #f4f1ea;
  --sand: #e9e3d7;
  --line: #d3cbbd;
  --text: #15130f;
  --muted: #5f584e;
  --red: #c63d23;
  --red-dark: #a8321c;
  --white: #ffffff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 16px; white-space: nowrap; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { margin-right: auto; }
.brand img { width: 118px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 11px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { height: 2px; background: #fff; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.12);
  padding: 8px var(--gutter) 20px; flex-direction: column;
}
.nav.open { display: flex; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav a:hover { color: #ff8a6f; }

/* ---------- Typo ---------- */
.overline, .kicker {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: .14em; text-transform: uppercase;
}
.kicker { color: var(--red); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 4px; background: currentColor; }
.kicker-light { color: #fff; }
h1, h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: .92; letter-spacing: -.005em;
}
h2 { font-size: clamp(44px, 11vw, 84px); }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.sec-lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 640px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding-top: 40px; overflow: hidden; }
.overline { color: #b8b0a3; font-size: 14px; }
.overline span { color: var(--red); margin: 0 6px; }
.hero h1 { font-size: clamp(54px, 15vw, 132px); margin-top: 18px; }
.hero-lead { margin-top: 24px; font-size: 18px; color: #d9d3c8; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-bib-wrap { position: relative; z-index: 2; margin: 44px 0 -90px; display: flex; justify-content: center; }
.hero-track {
  height: 230px;
  background: url("../assets/images/track-red.jpg") center 70% / cover no-repeat;
}
.hero-facts {
  display: grid; gap: 0; padding: 12px 0 8px;
}
.hero-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero-facts li:last-child { border-bottom: 0; }
.hero-facts strong { font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.hero-facts span { color: #b8b0a3; font-size: 16px; text-align: right; }

/* ---------- Startnummer (Bib) ---------- */
.bib {
  position: relative; background: var(--white); color: var(--ink);
  border-radius: 10px; padding: 0 0 22px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.pin { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); opacity: .85; z-index: 2; }
.p1 { top: 12px; left: 12px; } .p2 { top: 12px; right: 12px; }
.p3 { bottom: 12px; left: 12px; } .p4 { bottom: 12px; right: 12px; }
.bib-top {
  background: var(--red); color: #fff; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 36px;
}
.bib-number {
  font-family: var(--display); font-weight: 800; line-height: .85;
  font-size: 150px; text-align: center; letter-spacing: -.02em; padding-top: 16px;
  font-variant-numeric: tabular-nums;
}
.bib-number small { font-size: 30px; font-weight: 700; vertical-align: top; margin-right: 6px; letter-spacing: .04em; position: relative; top: 14px; }
.bib-caption { text-align: center; font-size: 15px; color: var(--muted); padding: 8px 28px 0; }
.bib-hero { width: min(330px, 100%); transform: rotate(-3deg); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.hero + .section { padding-top: 76px; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .sec-lead { color: #cfc8bc; }
.section-ink .kicker { color: #ff8a6f; }
.section-red { background: var(--red); color: #fff; }
.section-red .sec-lead { color: #fff; }
.sec-head { margin-bottom: 40px; }
.split > .sec-head { margin-bottom: 36px; }

/* So geht es: Bahnen */
.lanes { border-top: 3px solid var(--ink); }
.lanes li {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; align-content: start;
  padding: 22px 0 24px; border-bottom: 1px solid var(--line);
}
.lane-no {
  font-family: var(--display); font-weight: 800; font-size: 104px; line-height: .8;
  color: var(--red); display: block; height: .8em;
}
.lanes h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.lanes p { color: var(--muted); }

/* Was du bekommst */
.checks { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.checks li { position: relative; padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 23px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 18px no-repeat;
}
.checks p { color: var(--muted); margin-top: 4px; font-size: 17px; }

/* Disziplinen */
.disciplines { margin-top: 36px; }
.disciplines h3 { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.disciplines ul { display: flex; flex-wrap: wrap; gap: 8px; }
.disciplines li {
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em;
  background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 3px; white-space: nowrap;
}

/* Membervorteile: Rangliste */
.results { border-top: 3px solid var(--ink); counter-reset: r; }
.results li {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.r-val {
  font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--red);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.r-txt { font-size: 16px; color: var(--muted); }
.r-txt strong { display: block; color: var(--text); font-size: 18px; }
.callout {
  margin-top: 28px; padding: 18px 20px; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; text-transform: uppercase;
}
.fineprint { margin-top: 18px; font-size: 14px; color: var(--muted); }
.fineprint a { color: inherit; }
.fineprint-light { color: #a9a196; margin-top: 28px; }

/* Kosten: zwei Startnummern */
.price-bibs { display: grid; gap: 28px; }
.bib-price { padding-bottom: 30px; }
.bib-price .bib-number { font-size: 132px; }
.bib-plain .bib-top { background: var(--ink); }
.bill { margin: 22px 28px 0; border-top: 2px solid var(--ink); }
.bill div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.bill dd { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bill small { display: block; color: var(--muted); font-size: 13px; }
.bill-u18 { color: var(--muted); }
.bill div.bill-u18 { border-bottom: 0; }

/* Kosten: Aufteilung */
.split-cost { margin-top: 36px; max-width: 900px; border-top: 3px solid #fff; padding-top: 20px; }
.split-cost h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1; }
.cost-bar { display: flex; margin: 18px 0 16px; height: 52px; border-radius: 4px; overflow: hidden; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.cost-bar span { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; }
.cost-sa { flex: 4; background: #fff; color: var(--ink); }
.cost-rs { flex: 1; background: var(--red); color: #fff; justify-content: center; padding: 0 6px; }
.split-cost p { color: #cfc8bc; font-size: 17px; max-width: 680px; }

/* Laufgruppen */
.partner-points { margin: 28px 0 32px; border-top: 2px solid rgba(255,255,255,.5); }
.partner-points li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px; }
.partner-points strong { font-family: var(--display); font-size: 24px; text-transform: uppercase; display: block; line-height: 1.1; }

/* Verein */
.list-title { font-family: var(--display); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.board { border-top: 3px solid var(--ink); }
.board li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.board strong { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.board span { color: var(--muted); font-size: 16px; }

/* Kontakt */
.contact-list { margin-top: 28px; border-top: 3px solid var(--ink); }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; }
.contact-list span { font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list a { text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--red); }

.form { background: #fff; padding: 24px 20px; border-radius: 10px; box-shadow: 0 1px 0 var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; gap: 0 14px; }
.field label { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.optional { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  background: var(--paper); border: 2px solid transparent; border-bottom-color: var(--ink);
  border-radius: 4px 4px 0 0; padding: 12px 14px; outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' stroke='%2315130f' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") right 12px center / 18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.form-hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.form-error { margin-top: 10px; font-size: 15px; color: var(--red-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc8bc; padding: 56px 0 28px; font-size: 16px; }
.footer-grid { display: grid; gap: 32px; }
.footer-logo { width: 190px; margin-bottom: 14px; }
.footer-title { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .14em; color: #fff; margin-bottom: 10px; }
.site-footer p { line-height: 1.75; }
.site-footer p + p { margin-top: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #ff8a6f; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #a9a196; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* ---------- ab Tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .brand img { width: 150px; }
  .hero { padding-top: 64px; }
  .hero-track { height: 320px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 26px 0 30px; }
  .hero-facts li { flex-direction: column; justify-content: flex-start; border-bottom: 0; border-top: 3px solid var(--red); padding: 14px 0 0; }
  .hero-facts span { text-align: left; }
  .section { padding: 110px 0; }
  .price-bibs { grid-template-columns: 1fr 1fr; gap: 36px; max-width: 900px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form { padding: 36px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .results { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; gap: 26px;
    background: none; border: 0; padding: 0; margin-right: 20px;
  }
  .nav a { font-size: 18px; letter-spacing: .06em; padding: 0; border: 0; }
  .header-inner { min-height: 72px; }
  .brand img { width: 164px; }

  .hero { padding-top: 80px; }
  .hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: end; }
  .hero-bib-wrap { margin: 0 0 -150px; justify-content: flex-end; }
  .bib-hero { width: 360px; }
  .hero-track { height: 380px; margin-top: 64px; }

  .split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .split > .sec-head { margin-bottom: 0; position: sticky; top: 110px; }
  #laufgruppen .split > .sec-head, #kontakt .split > .sec-head { position: static; }

  .lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 0; }
  .lanes li { grid-template-columns: 1fr; border-top: 3px solid var(--ink); border-bottom: 0; padding-top: 24px; gap: 18px; }
  .lane-no { font-size: 150px; }

  .results li { grid-template-columns: 120px 1fr; }
  .r-val { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
