@font-face {
  font-family: 'Fira Sans';
  src: url('/bundesliga/fonts/FiraSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('/bundesliga/fonts/FiraSans-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans Condensed';
  src: url('/bundesliga/fonts/FiraSansCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  background: #064628;
  color: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: repeating-linear-gradient(90deg, transparent 0 90px, #ffffff09 90px 180px), linear-gradient(135deg, #16834b, #0b6339 58%, #064628);
}
main { max-width: 1080px; margin: auto; padding: 32px 52px; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid #e8ba59; outline-offset: 4px; }
.brand { font-size: 16px; letter-spacing: 2px; }
.intro { padding: 42px 0 48px; }
.eyebrow { margin: 0 0 16px; font-size: 15px; letter-spacing: 2px; color: #cbd2dc; }
h1 { max-width: 900px; margin: 0 0 20px; font-size: clamp(30px, 4.8vw, 52px); line-height: 1.12; font-weight: 900; }
.channel-description { max-width: 760px; margin: 0 0 24px; color: #e8edf3; font-family: 'Fira Sans Condensed', sans-serif; font-size: 22px; font-weight: 400; line-height: 1.5; }
.telegram { display: inline-block; padding: 18px 24px; background: #f8fafc; color: #0a3b2b; text-decoration: none; font-size: 18px; line-height: 1.4; }
.archive-intro { padding: 28px 0; border-top: 1px solid #ffffff40; }
.archive-intro h2 { margin: 0 0 12px; font-size: 24px; }
.archive-intro p { color: #cbd2dc; font-family: 'Fira Sans Condensed', sans-serif; font-size: 18px; font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.history { margin-bottom: 40px; }
.league-header {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 190px;
  padding: 24px 26px;
  background: repeating-linear-gradient(90deg, transparent 0 90px, #ffffff09 90px 180px), #0a3b2b;
}
.league-logo { width: 140px; height: 140px; flex: none; overflow: hidden; }
.league-header div { flex: 1; text-align: center; }
.league-header h3 { margin: 0; font-size: clamp(24px, 4.8vw, 52px); font-weight: 900; letter-spacing: 1px; scroll-margin-top: 20px; }
.league-header p { margin: 20px 0 0; color: #aab8b4; font-weight: 900; font-size: clamp(17px, 2.8vw, 30px); letter-spacing: 2px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 976px; table-layout: fixed; color: #171c25; font-size: 20px; font-variant-numeric: tabular-nums; }
thead { background: repeating-linear-gradient(90deg, transparent 0 90px, #ffffff09 90px 180px), #092f22; color: #cbd2dc; }
thead th { height: 78px; font-size: 17px; letter-spacing: 1px; }
thead th:first-child { width: 308px; text-align: left; padding-left: 76px; }
thead th:nth-child(n+4) { letter-spacing: 0; }
abbr { text-decoration: none; }
tbody tr:nth-child(odd) { background: #f8fafc; }
tbody tr:nth-child(even) { background: #e8edf3; }
tbody th { height: 68px; min-width: 308px; padding: 0 16px; text-align: left; font-family: 'Fira Sans Condensed', sans-serif; font-size: 23px; font-weight: 400; white-space: nowrap; }
tbody th img { vertical-align: middle; object-fit: contain; margin-right: 14px; }
td { position: relative; min-width: 86px; height: 68px; text-align: center; padding: 0 8px; }
.finish { display: inline-block; min-width: 25px; margin-right: 20px; }
.division { position: absolute; top: 50%; left: calc(50% + 9px); transform: translateY(-50%); font-size: 17px; line-height: 1.05; letter-spacing: .5px; }
.l1 { color: #16834b; }
.l2 { color: #1d5fae; }
.l3 { color: #b47400; }
.lower { color: #737e8d; font-size: 14px; letter-spacing: .25px; }
.promoted::before, .relegated::after { content: ''; position: absolute; left: 50%; width: 8px; height: 8px; border: solid; border-width: 2.5px 0 0 2.5px; }
.promoted::before { top: -10px; color: #16834b; transform: translateX(-50%) rotate(45deg); }
.relegated::after { bottom: -10px; color: #d51a30; transform: translateX(-50%) rotate(225deg); }
.titles { color: #737e8d; }
.champion { color: #9a6900; }
.logo-credits { max-width: 1080px; margin: auto; padding: 0 52px 28px; color: #cbd2dc; font-family: 'Fira Sans Condensed', sans-serif; font-size: 14px; font-weight: 400; line-height: 1.5; }
.logo-credits summary { cursor: pointer; }
.logo-credits ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 24px; padding-left: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  main { padding: 20px 16px; }
  .logo-credits { padding: 0 16px 20px; }
  .history { margin-bottom: 24px; }
  .league-header { min-height: 96px; padding: 14px 10px; gap: 12px; }
  .league-logo { width: 52px; height: 64px; }
  .league-header h3 { font-size: clamp(20px, 4.8vw, 28px); }
  .league-header p { margin-top: 8px; font-size: 12px; letter-spacing: 1px; }
  table { width: 100%; min-width: 584px; font-size: 14px; }
  thead th { height: 40px; font-size: 11px; letter-spacing: .25px; }
  thead th:first-child { width: 164px; padding-left: 40px; position: sticky; left: 0; z-index: 2; background: #092f22; }
  tbody th { position: sticky; left: 0; z-index: 1; background: inherit; min-width: 164px; height: 44px; padding: 0 8px; font-size: 14px; }
  thead th:first-child, tbody th { box-shadow: 1px 0 0 #737e8d40; }
  tbody tr:nth-child(odd) th { background: #f8fafc; }
  tbody tr:nth-child(even) th { background: #e8edf3; }
  tbody th img { width: 24px; height: 24px; margin-right: 8px; }
  td { min-width: 60px; height: 44px; padding: 0 4px; }
  .finish { min-width: 18px; margin-right: 16px; }
  .division { left: calc(50% + 6px); font-size: 11px; letter-spacing: 0; }
  .lower { font-size: 9px; }
  .promoted::before, .relegated::after { width: 6px; height: 6px; border-width: 2px 0 0 2px; }
  .promoted::before { top: -7px; }
  .relegated::after { bottom: -7px; }
}
