:root {
  --bg: #26262b;
  --bg-raised: #313136;
  --bg-card: #313136;
  --red: #e10600;
  --white: #ffffff;
  --grey-text: #b8b8bd;
  --border: rgba(255,255,255,0.08);
  --radius: 10px;
  --font: "Titillium Web", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); }

/* Utility bar */
.utility-bar {
  background: #1c1c20;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.utility-links { display: flex; gap: 20px; }
.utility-links a { color: var(--grey-text); }
.utility-links a:hover { color: var(--white); }
.utility-actions { display: flex; gap: 10px; }
.utility-actions .btn { padding: 5px 16px; font-size: 12px; }

/* Header */
.main-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.logo span { color: var(--red); }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--red);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* Race status bar */
.race-status-bar {
  background: #000000;
}
.race-status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  font-size: 13px;
}
.race-status-left { display: flex; align-items: center; gap: 12px; }
.race-status-left .flag { font-size: 15px; }
.race-status-left .race-name { color: var(--grey-text); }
.race-status-left .session-name { font-weight: 700; color: var(--white); }
.race-status-right { display: flex; align-items: center; gap: 16px; }
.race-status-right .countdown {
  font-weight: 900;
  color: var(--red);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.race-status-right .local-time { color: var(--grey-text); }

/* Tab bar */
.tab-bar {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.tab-inner {
  display: flex;
  gap: 8px;
  height: 48px;
  align-items: center;
  overflow-x: auto;
}
.tab {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-text);
  white-space: nowrap;
}
.tab:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.tab.active { background: var(--white); color: var(--bg); }

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 0.9fr;
  gap: 16px;
  padding: 24px 0;
}
.card-link { display: block; }

.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-image {
  height: 480px;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
.hero-overlay h1 {
  font-size: 26px;
  line-height: 1.3;
  margin-top: 10px;
}
.tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
}

.hero-side-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-image {
  height: 110px;
  background-size: cover;
  background-position: center;
}
.card h3 {
  font-size: 14px;
  line-height: 1.35;
  padding: 12px;
  font-weight: 600;
}

.hero-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
}
.hero-list h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  margin-bottom: 14px;
}
.hero-list ol { padding-left: 18px; }
.hero-list li {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--grey-text);
}
.hero-list li a:hover { color: var(--white); }
.hero-list li::marker { color: var(--red); font-weight: 700; }

/* Section headings */
.section-picks, .section-latest { padding: 20px 0 36px; }
.section-picks h2, .section-latest h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.accent-bar {
  width: 6px;
  height: 22px;
  background: var(--red);
  border-radius: 3px;
}

/* Picks grid */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pick-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.pick-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.pick-text { padding: 16px; }
.pick-text h3 {
  font-size: 16px;
  line-height: 1.35;
  margin-top: 8px;
}

/* Latest grid */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.latest-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.latest-image {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.latest-text { padding: 14px; }
.latest-text h3 {
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0;
}
.meta {
  font-size: 12px;
  color: var(--grey-text);
}

/* Footer */
.main-footer {
  background: #1c1c20;
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-brand p {
  color: var(--grey-text);
  font-size: 13px;
  margin-top: 10px;
  max-width: 260px;
}
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-links h5 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 12px;
}
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  font-size: 12px;
  color: var(--grey-text);
}

/* Article page */
.article-page { padding: 24px 0 48px; }

.breadcrumb {
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .current { color: var(--white); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.article-main .tag { margin-bottom: 14px; }
.article-main h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 20px;
}
.article-meta .dot { opacity: 0.5; }

.article-hero-image {
  height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
}
.image-caption {
  display: block;
  font-size: 12px;
  color: var(--grey-text);
  margin-bottom: 24px;
}

.article-body p, .article-body blockquote {
  font-size: 16px;
  line-height: 1.7;
  color: #e4e4e8;
  margin-bottom: 18px;
}
.article-body .lede {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.article-body h2 {
  font-size: 20px;
  margin: 28px 0 12px;
}
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding-left: 18px;
  font-style: italic;
  color: var(--grey-text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.tag-pill:hover { border-color: var(--red); color: var(--red); }

.article-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 20px;
}
.article-sidebar h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  margin-bottom: 14px;
}
.sidebar-list li { margin-bottom: 14px; }
.sidebar-list a {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar-list a:hover span { color: var(--red); }
.sidebar-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.sidebar-list span {
  font-size: 13px;
  line-height: 1.35;
}

/* Category hero */
.category-hero {
  padding: 32px 0 8px;
}
.category-hero h1 {
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 6px solid var(--red);
  padding-left: 16px;
}
.category-hero p {
  color: var(--grey-text);
  margin-top: 12px;
  padding-left: 22px;
}
.category-grid { margin-top: 4px; }

/* Tables (Ergebnisse, Rennkalender, Fahrerwertung) */
.table-section { padding: 24px 0 48px; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.results-table th, .results-table td {
  text-align: left;
  padding: 12px 18px;
  font-size: 14px;
}
.results-table th {
  background: rgba(255,255,255,0.05);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--grey-text);
}
.results-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-done { background: rgba(255,255,255,0.1); color: var(--grey-text); }
.status-live { background: var(--red); color: var(--white); }
.status-upcoming { background: rgba(225,6,0,0.15); color: var(--red); }

/* Info / legal pages */
.info-page { padding: 32px 0 48px; max-width: 760px; }
.info-page h1 {
  font-size: 28px;
  margin-bottom: 16px;
}
.info-page h2 {
  font-size: 18px;
  margin: 28px 0 10px;
}
.info-page p {
  font-size: 15px;
  line-height: 1.7;
  color: #e4e4e8;
  margin-bottom: 14px;
}
.info-page .lede { font-size: 17px; font-weight: 600; color: var(--white); }
.info-page a { color: var(--red); }
.info-page a:hover { text-decoration: underline; }

.newsletter-form {
  display: flex;
  gap: 10px;
  margin: 20px 0 12px;
  max-width: 420px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
}
.newsletter-form input::placeholder { color: var(--grey-text); }
.newsletter-form input:focus { outline: 2px solid var(--red); }

/* Coming soon */
.coming-soon {
  padding: 80px 0;
  text-align: center;
}
.coming-soon h1 { font-size: 32px; margin-bottom: 12px; }
.coming-soon p { color: var(--grey-text); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-list { grid-column: span 2; }
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .utility-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side-cards { grid-template-columns: 1fr 1fr; }
  .hero-list { grid-column: span 1; }
  .picks-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .hero-overlay h1 { font-size: 20px; }
  .article-main h1 { font-size: 24px; }
  .article-hero-image { height: 220px; }
}
