@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/BarlowCondensed-700.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/IBMPlexMono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/IBMPlexMono-700.woff2) format('woff2'); }

:root {
  --bg: #0B0B0C; --panel: #141517; --tile: #1C1D20; --line: #2a2b2e; --line2: #3a3b3f;
  --text: #EDE6D6; --sub: #b7b1a3; --muted: #8A8577; --amber: #FFB020; --red: #E5484D;
  --pad: 64px; --gap: 24px; --radius: 6px;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--amber); }
a:hover { color: #ffc75a; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
ol { list-style: none; margin: 0; padding: 0; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--amber); }
.muted { color: var(--muted); }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.label { font-size: 12px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }

/* Kopf */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; min-width: 0; }
.logo { width: 48px; height: 48px; flex-shrink: 0; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: 30px; border-radius: 4px; }
.brand-text { font-family: var(--cond); font-weight: 700; font-size: 28px; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text); text-decoration: none; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 4px; color: var(--text); }
.clock { font-size: 20px; color: var(--amber); letter-spacing: 2px; white-space: nowrap; }

/* Aufmacher */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 44px; padding-bottom: 28px; }
.hero h1 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 76px; line-height: 0.95; letter-spacing: 1px; text-transform: uppercase; max-width: 900px; }
.lead { margin: 0; max-width: 360px; color: var(--sub); line-height: 1.6; }

/* Board */
.board { padding: 24px 28px; }
.board-head, .row { display: grid; grid-template-columns: 110px minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 2fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
.board-head { font-size: 13px; letter-spacing: 2px; color: var(--amber); text-transform: uppercase; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.board-head span:first-child { padding-left: 4px; }
.board-rows { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.cell { background: var(--tile); border-radius: 2px; padding: 0 8px; min-height: 48px; display: flex; align-items: center; gap: 12px; font-size: 20px; letter-spacing: 1px; min-width: 0; overflow: hidden; white-space: nowrap; }
.cell .k { display: none; }
.cell.coin a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.cell.coin a:hover { color: var(--amber); }
.cell img { width: 34px; height: 34px; border-radius: 3px; flex-shrink: 0; }
.amber { color: var(--amber); }
.red { color: var(--red); }
.board-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }

/* Gate */
.gate-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); margin-top: 28px; align-items: stretch; }
.gate { padding: 26px 28px; display: flex; flex-direction: column; }
.h2 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; }
.hint { margin: 6px 0 18px; font-size: 13px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.cands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.cand { background: var(--tile); border-radius: 4px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cand .cover { aspect-ratio: 1; border: 1px dashed #4a4b50; border-radius: 3px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3; font-size: 12px; color: var(--muted); overflow: hidden; }
.cand .cover img { width: 100%; height: 100%; object-fit: cover; }
.cand .sym { font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand .nm { font-size: 13px; line-height: 1.4; min-height: 2.8em; color: var(--sub); }
.vote { margin-top: auto; min-height: 44px; width: 100%; background: var(--amber); color: var(--bg); border: 0; border-radius: 3px; font: 700 15px var(--mono); letter-spacing: 2px; cursor: pointer; }
.vote:hover { background: #ffc75a; }
.vote:disabled { cursor: default; background: #3a3526; color: var(--muted); }
.vote.mine:disabled { background: var(--text); color: var(--bg); }
.vote-msg { margin: 14px 0 0; min-height: 1.5em; font-size: 13px; color: var(--sub); }

.boarding { background: var(--amber); color: var(--bg); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.countdown { font-size: 52px; font-weight: 700; letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.small { font-size: 14px; line-height: 1.5; }
.standings { border-top: 2px solid var(--bg); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.standings ol { display: flex; flex-direction: column; gap: 10px; }
.st-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.bar { height: 6px; background: rgba(11, 11, 12, 0.18); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--bg); border-radius: 3px; }
.btn-dark, .btn-line { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: 1px; border-radius: 3px; text-transform: uppercase; }
.btn-dark { background: var(--bg); color: var(--amber); margin-top: auto; }
.btn-dark:hover { color: #ffc75a; }
.btn-line { border: 2px solid var(--bg); color: var(--bg); }
.btn-line:hover { color: var(--bg); background: rgba(11, 11, 12, 0.08); }

/* Vergangene Fluege */
#past { margin-top: 28px; }
.h-muted { margin: 0 0 14px; font-family: var(--cond); font-weight: 700; font-size: 24px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.past { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.past li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 16px; min-width: 0; }
.past img { width: 72px; height: 72px; border-radius: 4px; flex-shrink: 0; }
.past .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: var(--muted); }
.past .txt a { font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past .txt a:hover { color: var(--amber); }

.notice { margin-top: 36px; font-size: 13px; color: var(--sub); }
.notice p { margin: 0 0 10px; max-width: 980px; }
.notice strong { color: var(--text); }

.foot { margin-top: 36px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--amber); }

/* Mittlere Breite */
@media (max-width: 1180px) {
  :root { --pad: 32px; }
  .nav-link { display: none; }
  .hero h1 { font-size: 60px; }
  .cands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .past { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Handy */
@media (max-width: 760px) {
  :root { --pad: 18px; --gap: 12px; }
  body { font-size: 14px; }
  .top-in { padding-top: 14px; padding-bottom: 14px; }
  .logo { width: 40px; height: 40px; font-size: 24px; }
  .brand-text { font-size: 22px; letter-spacing: 2px; }
  .brand-text .accent { display: none; }
  .nav { gap: 10px; }
  .clock { display: none; }
  .hero { display: block; padding-top: 26px; padding-bottom: 18px; }
  .hero h1 { font-size: 44px; }
  .lead { margin-top: 10px; font-size: 13px; }

  .board { padding: 12px; background: none; border: 0; padding: 0; }
  .board-head { display: none; }
  .board-rows { padding: 0; }
  .row { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .row .coin { grid-column: 1 / 4; grid-row: 1; background: none; padding: 0; font-size: 17px; font-weight: 700; }
  .row .filed { grid-column: 4; grid-row: 1; background: none; padding: 0; justify-content: flex-end; color: var(--amber); font-size: 13px; }
  .row .cell:not(.coin):not(.filed) { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 44px; padding: 6px; font-size: 12px; }
  .cell .k { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0; }
  .board-foot { flex-direction: column; gap: 2px; font-size: 11px; }

  .gate-wrap { grid-template-columns: 1fr; margin-top: 22px; }
  .boarding { order: -1; padding: 20px 18px; gap: 10px; }
  .countdown { font-size: 42px; }
  .gate { padding: 0; background: none; border: 0; }
  .h2 { font-size: 26px; }
  .hint { margin: 4px 0 10px; font-size: 11px; }
  .cands { grid-template-columns: 1fr; gap: 10px; }
  .cand { flex-direction: row; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); background: var(--panel); }
  .cand .cover { width: 54px; height: 54px; flex-shrink: 0; font-size: 9px; }
  .cand .txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
  .cand .sym { font-size: 15px; }
  .cand .nm { min-height: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vote { margin-top: 0; width: 84px; flex-shrink: 0; font-size: 13px; letter-spacing: 1px; }

  #past { margin-top: 24px; }
  .h-muted { font-size: 22px; letter-spacing: 2px; margin-bottom: 10px; }
  .past { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .past li { padding: 10px; gap: 10px; }
  .past img { width: 52px; height: 52px; }
  .past .txt a { font-size: 14px; }
  .past .txt { font-size: 11px; }

  .notice { font-size: 12px; margin-top: 28px; }
  .foot-in { flex-direction: column; gap: 6px; font-size: 11px; }
}

/* Rechtstexte */
.legal { padding-top: 40px; padding-bottom: 60px; max-width: 820px; margin-left: 0; }
.legal p { color: var(--sub); line-height: 1.7; }
