/* RCC Grafenwörth – Stylesheet */
:root {
  --ink: #16181B;
  --ink-2: #2A2D32;
  --ground: #F5F4F0;
  --card: #FFFFFF;
  --muted: #5B5F66;
  --text-2: #3F434A;
  --line: #DCDAD3;
  --on-dark: #D4D7DC;
  --on-dark-2: #B9BDC4;
  --accent: #F26B1D;
  --ok: #4ADE80;
  --warn: #FACC15;
  --stop: #F87171;
  --radius: 12px;
  --display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; line-height: 1; }
h1, h2, h3 { margin: 0; }
h2.display { font-size: clamp(34px, 5vw, 48px); }
.eyebrow { font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 680px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--ink-2); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { color: var(--ink); background: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; padding: 10px 0; display: inline-block; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand span { font-size: 24px; }
.main-nav { display: flex; align-items: center; gap: 4px 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 10px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; border-bottom-color: var(--on-dark-2); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.main-nav a.btn { padding: 10px 16px; border: 0; color: var(--ink); }
@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav { width: 100%; flex-wrap: wrap; overflow: visible; gap: 2px 18px; }
}

/* Hero */
.hero { background: var(--ink); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(38px, 7vw, 88px); line-height: .95; overflow-wrap: anywhere; }
.hero p { margin: 0; font-size: 20px; color: var(--on-dark); max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; background: #23272C; border: 1px solid #444A52; flex-wrap: wrap; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.status.offen { background: #1F2E27; border-color: #3E7A5C; }
.status.gesperrt .dot { background: var(--stop); }
.status.gesperrt { background: #33221F; border-color: #8A4A42; }
.status.rennbetrieb .dot { background: var(--warn); }
.status.rennbetrieb { background: #312C1C; border-color: #7D6A2C; }
.status .when { color: var(--on-dark-2); font-weight: 400; }

.next-card { flex: 1 1 340px; min-width: 0; background: var(--card); color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.next-card .head { background: var(--accent); padding: 12px 24px; font-size: 19px; letter-spacing: 1px; }
.next-card .body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.next-card .name { font-size: 34px; }
.next-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.next-card dt { font-weight: 600; }
.next-card dd { margin: 0; }
.next-card p { color: var(--text-2); font-size: 17px; }
.next-card .btn { text-align: center; }

/* Sections */
.section { padding: 64px 0 24px; }
.section:last-of-type { padding-bottom: 64px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.page-head { background: var(--ink); color: #fff; }
.page-head .wrap { padding-top: 48px; padding-bottom: 48px; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.page-head p { margin: 12px 0 0; color: var(--on-dark); font-size: 19px; max-width: 680px; }

/* Termine */
.termine { display: flex; flex-direction: column; gap: 12px; }
.termin { background: var(--card); border-radius: 10px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.termin .date { width: 76px; text-align: center; border-right: 3px solid var(--line); padding-right: 16px; flex: none; }
.termin.is-next .date { border-right-color: var(--accent); }
.termin .day { font-size: 38px; }
.termin .mon { font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 14px; }
.termin .info { flex: 1 1 240px; min-width: 0; }
.termin .title { font-weight: 600; font-size: 20px; }
.notice { background: var(--card); border-radius: 10px; padding: 20px 24px; border-left: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.card .media { aspect-ratio: 16 / 9; background: var(--line); object-fit: cover; width: 100%; }
.card .media.ph { display: flex; align-items: center; justify-content: center; background-color: var(--ink); color: var(--accent); }
.card .content { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.card .meta { font-weight: 600; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.card .title { font-size: 26px; line-height: 1.1; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }

.album { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); display: block; text-decoration: none; }
.album img { width: 100%; height: 100%; object-fit: cover; }
.album span { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Verein */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > .text { flex: 999 1 460px; min-width: 0; }
.split > .side { flex: 1 1 360px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--card); border-radius: 10px; padding: 18px 16px; }
.tile .big { font-size: 24px; hyphens: auto; }
.tile .small { color: var(--muted); font-size: 15px; }
.prose { max-width: 720px; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 28px; margin: 1.4em 0 .4em; }
.prose h3 { font-size: 22px; margin: 1.2em 0 .4em; }
.prose img { border-radius: 10px; margin: 1em 0; }
.facts { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--ground); vertical-align: top; }
.facts th { width: 38%; font-weight: 600; }

/* CTA */
.cta { background: var(--accent); color: var(--ink); margin-top: 64px; }
.cta .wrap { padding-top: 52px; padding-bottom: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(34px, 5vw, 44px); }
.cta p { margin: 8px 0 0; font-size: 18px; }

/* Partner */
.partner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; padding-top: 40px; padding-bottom: 40px; }
.partner a { font-size: 22px; text-decoration: none; }

/* News list */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-row { background: var(--card); border-radius: 10px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; text-decoration: none; color: var(--ink); }
.news-row:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.news-row .d { color: var(--muted); font-weight: 600; font-size: 15px; width: 120px; flex: none; }
.news-row .t { font-weight: 600; font-size: 19px; flex: 1 1 300px; }
.year { font-size: 32px; margin: 36px 0 14px; }
.article { padding: 48px 0 64px; }
.article .back { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 52px; padding-bottom: 28px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .h { font-weight: 600; color: #fff; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid #2E3238; padding-top: 16px; padding-bottom: 28px; font-size: 14px; color: var(--on-dark-2); }
