@import url('/fonts/fonts.css');

:root {
  --red: #e70000;
  --red-dark: #b80000;
  --ink: #222;
  --muted: #6a6a6a;
  --line: #e6e6e6;
  --bg-soft: #f7f7f7;
  --dark: #111;
  --container: 1140px;
  --header-h: 76px;
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--red); padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.brand {
  margin-right: auto;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.site-header.is-stuck .brand { opacity: 1; pointer-events: auto; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0; padding: 0;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: #fff; content: ''; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav a {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); }
/* The red underline marks the current page; the label stays white so it keeps
   enough contrast against the photo behind the transparent header. */
.nav a[aria-current='page'] { color: #fff; font-weight: 700; }

/* Sticky state: solid bar once scrolled past the hero */
.site-header.is-stuck {
  position: fixed;
  background: rgba(17, 17, 17, .95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .22);
  animation: dropdown .3s ease;
}
@keyframes dropdown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .brand { opacity: 1; pointer-events: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(17, 17, 17, .98);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav li { border-top: 1px solid rgba(255, 255, 255, .08); }
  .nav li:first-child { border-top: 0; }
  .nav a { display: block; padding: 15px 26px; }
  .nav a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header.is-stuck { animation: none; }
  * { transition-duration: .01ms !important; }
}

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

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: #000;
  overflow: hidden;
}
.hero--page { min-height: 460px; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.hero__media iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .45);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 40px) 22px 60px;
  width: 100%;
  max-width: var(--container);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(.9rem, 1.6vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: 0;
}
.rule {
  width: 68px;
  height: 3px;
  background: #fff;
  border: 0;
  margin: 26px auto;
}
.rule--red { background: var(--red); }
.rule--left { margin-inline: 0; }

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

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-top: 0; }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  margin: 0;
}
.section-head { text-align: center; margin-bottom: clamp(34px, 5vw, 56px); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--red);
  margin: 0 0 18px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.lead { font-size: 1.05rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 40px);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .12); transform: translateY(-4px); }
.card__media { aspect-ratio: 3 / 2; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 28px 26px 30px; text-align: center; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}
.card__body p { color: var(--muted); margin: 0; }
.card__body .btn { margin: 8px auto 0; }

/* ---------- CTA band ---------- */

.band {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: clamp(70px, 9vw, 120px) 0;
}
.band::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.band .container { position: relative; }
.band__inner { max-width: 520px; margin-left: auto; }
.band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.band p { margin: 0 0 26px; }
@media (max-width: 860px) { .band__inner { margin: 0 auto; text-align: center; } .rule--left { margin-inline: auto; } }

/* ---------- Social strip ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
@media (max-width: 860px) { .social-grid { grid-template-columns: 1fr; } }
.social-photos { display: grid; gap: clamp(18px, 3vw, 32px); }
.social-photos img { border-radius: 6px; width: 100%; }
.social-links { display: flex; gap: 14px; margin-top: 22px; }
.social-links a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  transition: background .2s ease, color .2s ease;
}
.social-links a:hover { background: var(--red); color: #fff; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Video ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(24px, 4vw, 40px); }

/* Click-to-load YouTube facade — keeps the page fast and drops third-party
   cookies until the visitor actually asks for the video. */
.yt-facade { cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-facade__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 50px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .72);
  display: grid; place-items: center;
  transition: background .2s ease;
}
.yt-facade:hover .yt-facade__play { background: var(--red); }
.yt-facade__play svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- Palmares ---------- */

.medals { display: grid; gap: 14px; }
.medal {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rank-color, var(--line));
  border-radius: 6px;
  padding: 18px 24px;
}
.medal--1 { --rank-color: #d4af37; }
.medal--2 { --rank-color: #a8a9ad; }
.medal--3 { --rank-color: #b06a3b; }
.medal__rank {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rank-color);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
}
.medal__event { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.medal__result { color: var(--muted); font-size: .95rem; text-align: right; }
@media (max-width: 700px) {
  .medal { grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 18px; }
  .medal__result { grid-column: 2; text-align: left; }
}
.group + .group { margin-top: clamp(46px, 6vw, 72px); }
.group__title {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 24px;
}

/* ---------- Biografie ---------- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin: 0 0 40px; padding: 0; }
.facts > div { border-top: 3px solid var(--red); padding-top: 14px; }
.facts dt { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 1.05rem; }

.pullquote {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 26px;
  margin: 0 0 clamp(34px, 5vw, 52px);
}

.prose { max-width: 760px; margin-inline: auto; }
.prose p { margin-bottom: 1.4em; }
.goals { list-style: none; padding: 0; margin: 0 0 1.4em; }
.goals li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.goals li::before { content: ''; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--red); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.results {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .98rem;
}
table.results thead th {
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  padding: 15px 20px;
}
table.results td,
table.results tbody th {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
table.results tbody th { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
table.results tbody tr:nth-child(odd) { background: var(--bg-soft); }
table.results td:last-child { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.gallery button {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.gallery button:hover img { transform: scale(1.06); filter: brightness(1.06); }

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 60px 16px; }
.lightbox__stage img { max-width: min(1400px, 94vw); max-height: 84vh; width: auto; object-fit: contain; border-radius: 4px; }
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; color: rgba(255, 255, 255, .8); font-size: .85rem; padding-inline: 60px;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.lightbox button:hover { background: var(--red); }
.lightbox svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Media page ---------- */

.media-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 36px); }
.media-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.media-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.4; }
.media-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.media-card__meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; margin-top: auto; padding-top: 12px; }
.media-card .btn { align-self: flex-start; }

.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: clamp(34px, 5vw, 52px); flex-wrap: wrap; }
.tabs button {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}
.tabs button[aria-selected='true'] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Sponsors ---------- */

.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
}
.sponsors img {
  max-height: 76px;
  width: auto;
  margin-inline: auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .25s ease, opacity .25s ease;
}
.sponsors img:hover { filter: none; opacity: 1; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(34px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 20px; }
.field span { display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.field span i { color: var(--red); font-style: normal; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(231, 0, 0, .12);
  outline: 0;
}
.field textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 6px; font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #e8f6ec; color: #17632f; border: 1px solid #b9e2c6; }
.form-status.is-error { background: #fdeaea; color: #93191b; border: 1px solid #f3c2c2; }

.info-card { background: var(--bg-soft); border-radius: 8px; padding: 32px 30px; }
.info-card h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1em; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-item svg { width: 22px; height: 22px; fill: var(--red); flex: none; margin-top: 4px; }
.info-item strong { display: block; font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

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

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .72);
  padding: 46px 0;
  text-align: center;
  font-size: .95rem;
}
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.site-footer .social-links { justify-content: center; margin: 0 0 24px; }
.site-footer .social-links a { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.site-footer .social-links a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .9rem; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: '/'; margin-right: 10px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current='page'] { color: var(--ink); font-weight: 700; }

/* Headings that structure the page for crawlers and screen readers but are
   already conveyed visually by the tab controls above them. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
