:root{
  --pitch:#0e3b2e;
  --pitch-soft:#b9d4c8;
  --bg:#f3f6f4;
  --panel:#fff;
  --panel-soft:#f7f9f8;
  --ink:#14201b;
  --muted:#56655e;
  --line:#dde4e0;
  --exact:#0f7a4f;
  --tendency-bg:#fdeec7;
  --tendency-ink:#654600;
  --miss:#7a8681;
  --live:#c02b2b;
  --openai:#0d9488;
  --google:#2563eb;
  --anthropic:#d9622b;
  --radius:12px;
  --header-height:60px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.55 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
h1,h2,h3,p{margin:0}
.wrap{width:min(1080px,calc(100% - 32px));margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid var(--google);outline-offset:2px}
[id]{scroll-margin-top:calc(var(--header-height) + 16px)}

/* Kopf- und Fußzeile */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background:var(--panel);
  border-bottom:1px solid var(--line);
}
.site-header-inner{
  min-height:var(--header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;text-decoration:none}
.brand img{display:block}
.site-header nav{display:flex;gap:22px;overflow-x:auto;font-size:14px;font-weight:600}
.site-header nav a{padding:6px 0;color:var(--muted);text-decoration:none;white-space:nowrap}
.site-header nav a:hover,.site-header nav a[aria-current]{color:var(--ink)}

.site-footer{margin-top:64px;border-top:1px solid var(--line);background:var(--panel)}
.site-footer-inner{padding:24px 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 32px;color:var(--muted);font-size:13px}
.site-footer nav{display:flex;flex-wrap:wrap;gap:6px 18px;font-weight:600}
.site-footer nav a{text-decoration:none}
.site-footer nav a:hover{color:var(--ink)}

/* Einstieg und Ranking */
.hero{padding:32px 0 36px;background:var(--pitch);color:#fff}
.eyebrow{color:var(--pitch-soft);font-size:13px;font-weight:700}
.hero h1{margin-top:2px;font-size:clamp(28px,4.4vw,40px);line-height:1.15;letter-spacing:-.02em}
.hero-lead{margin-top:6px;color:var(--pitch-soft)}

.ranking{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.rank-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:2px 12px;
  padding:16px;
  border-radius:var(--radius);
  border-top:4px solid var(--model);
  background:var(--panel);
  color:var(--ink);
}
.rank-position{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--bg);
  font-size:14px;
  font-weight:800;
}
.rank-card:first-child .rank-position{background:var(--pitch);color:#fff}
.rank-name h2{font-size:18px;line-height:1.2}
.rank-name p{color:var(--muted);font-size:12px}
.rank-points{color:var(--muted);font-size:12px;text-align:right}
.rank-points strong{display:block;color:var(--ink);font-size:32px;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rank-gap{grid-column:1/-1;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:13px;font-weight:700}
.rank-detail{grid-column:1/-1;color:var(--muted);font-size:12px}

.openai{--model:var(--openai)}
.google{--model:var(--google)}
.anthropic{--model:var(--anthropic)}

/* Abschnitte */
.section{padding-top:44px}
.section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:14px}
.section-head h2{font-size:26px;line-height:1.2;letter-spacing:-.015em}
.section-note{color:var(--muted);font-size:13px}
.section-note.is-live{display:flex;align-items:center;gap:7px;color:var(--live);font-weight:700}
.panel{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}

.matchday-switcher{display:flex;align-items:center;gap:6px}
.matchday-arrow{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--ink);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.matchday-arrow:hover{border-color:var(--muted)}
.matchday-arrow.disabled{opacity:.35;cursor:default}
.matchday-select-form{display:flex;gap:6px;margin:0}
.matchday-select-form select,.matchday-select-form button{
  height:40px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--ink);
  font:600 14px/1 inherit;
  font-family:inherit;
}
.js .matchday-select-form button{display:none}
.matchday-loading .panel{opacity:.5;transition:opacity .15s}

/* Tabellen */
table{width:100%;border-collapse:collapse}
thead th{
  padding:10px 12px;
  background:var(--panel-soft);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-align:left;
  white-space:nowrap;
}
.model-dot{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:50%;background:var(--model)}

.tips-table thead th:nth-child(n+3){text-align:center}
.date-row th{
  padding:8px 12px;
  background:var(--panel-soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-align:left;
}
tbody:first-of-type .date-row th{border-top:0}
.match-row td{padding:9px 12px;border-bottom:1px solid var(--line)}
tbody:last-of-type .match-row:last-child td{border-bottom:0}
.match-time{width:64px;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.match-teams{font-size:15px;font-weight:600}
.match-sep{color:var(--miss)}
.match-tip,.match-result{width:96px;text-align:center}
.match-result{font-weight:800;font-variant-numeric:tabular-nums}

.tip{
  display:inline-block;
  min-width:44px;
  padding:2px 8px;
  border-radius:6px;
  font-size:15px;
  font-weight:700;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.tip-exact{background:var(--exact);color:#fff}
.tip-tendency{background:var(--tendency-bg);color:var(--tendency-ink)}
.tip-miss{color:var(--miss);font-weight:500}

.legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin:12px 0 0;padding:0;list-style:none;color:var(--muted);font-size:13px}
.legend li{display:flex;align-items:center;gap:6px}
.legend .tip{min-width:0;font-size:12px}

.live-result{display:inline-flex;align-items:center;gap:6px;color:var(--live);white-space:nowrap}
.live-label{font-size:11px;font-weight:800;letter-spacing:.04em}
.live-dot{
  display:inline-block;
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--live);
  animation:live-pulse 1.5s infinite;
}
@keyframes live-pulse{
  0%{box-shadow:0 0 0 0 rgba(192,43,43,.4)}
  70%{box-shadow:0 0 0 6px rgba(192,43,43,0)}
  100%{box-shadow:0 0 0 0 rgba(192,43,43,0)}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .live-dot{animation:none}
}

.bonus-table{table-layout:fixed}
.bonus-table thead th:first-child{width:31%}
.bonus-table tbody th{font-size:14px;font-weight:600;text-align:left}
.bonus-table tbody th,.bonus-table td{padding:11px 12px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:top}
.bonus-table tbody tr:last-child th,.bonus-table tbody tr:last-child td{border-bottom:0}
.bonus-table td{font-weight:600}
.bonus-same-label{
  display:inline-block;
  margin-right:6px;
  padding:0 7px;
  border-radius:999px;
  background:var(--bg);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

/* Experiment und Prompts */
.about{max-width:760px;font-size:15px}
.about strong{font-weight:700}
.rules{margin:12px 0 16px;padding-left:20px}
.rules li{margin-top:6px}
.button{
  display:inline-block;
  margin:0 6px 6px 0;
  padding:9px 14px;
  border:1px solid var(--pitch);
  border-radius:8px;
  background:var(--pitch);
  color:#fff;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}
.button:hover{background:#14503e}
.button-quiet{background:transparent;color:var(--pitch)}
.button-quiet:hover{background:var(--panel)}

.prompts{margin-top:26px}
.prompts h3{margin-bottom:10px;font-size:17px}
.prompt{margin-top:8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.prompt summary{display:flex;align-items:center;gap:10px;padding:12px 14px;font-weight:700;cursor:pointer}
.prompt summary span{color:var(--muted);font-size:13px;font-weight:500}
.prompt-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 14px;border-top:1px solid var(--line);background:var(--panel-soft);font-size:13px}
.prompt-toolbar input{width:68px;height:36px;padding:0 8px;border:1px solid var(--line);border-radius:8px;font:inherit}
.copy-prompt{height:36px;margin-left:auto;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.copy-prompt:hover{border-color:var(--muted)}
.prompt-text{
  display:block;
  width:100%;
  height:420px;
  padding:14px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0 0 var(--radius) var(--radius);
  background:var(--panel);
  color:var(--ink);
  font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  resize:vertical;
}

/* Spieltage-Übersicht */
.page-head{padding:32px 0 8px}
.page-head h1{font-size:clamp(28px,4.4vw,38px);line-height:1.15;letter-spacing:-.02em}
.page-head p{max-width:680px;margin-top:6px;color:var(--muted)}
.day-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
.day-link{
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  font-size:14px;
  font-weight:600;
  text-align:center;
  text-decoration:none;
}
.day-link:hover{border-color:var(--pitch)}
.day-link[aria-current]{background:var(--pitch);border-color:var(--pitch);color:#fff}

/* Rechtliche Seiten */
.legal{max-width:760px;margin-top:16px;padding:clamp(20px,4vw,32px);border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.legal h2{margin:26px 0 6px;font-size:18px;line-height:1.3}
.legal h2:first-child{margin-top:0}
.legal p{margin:6px 0;font-size:15px}
.legal a{color:var(--pitch)}
.legal-note{margin:14px 0;padding:12px 14px;border-radius:8px;background:var(--bg);font-size:14px}
.legal-meta{margin-top:26px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}

/* Mittlere Breiten: Ranking untereinander, Tabellen als Karten */
@media (max-width:820px){
  .hero{padding:20px 0 22px}
  .hero-lead,.rank-detail{display:none}
  .ranking{grid-template-columns:1fr;gap:8px;margin-top:14px}
  .rank-card{padding:9px 12px;border-top:0;border-left:4px solid var(--model)}
  .rank-name h2{font-size:16px}
  .rank-points strong{font-size:24px}
  .rank-gap{grid-column:2/-1;margin-top:-1px;padding-top:0;border-top:0;font-size:12px;font-weight:600}
  .rank-name p{display:none}

  .tips-table thead,.bonus-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .tips-table,.tips-table tbody,.bonus-table,.bonus-table tbody{display:block}
  .date-row,.date-row th{display:block}
  tbody:first-of-type .date-row th{border-top:0}

  .match-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px 6px;
    padding:12px;
    border-bottom:1px solid var(--line);
  }
  tbody:last-of-type .match-row:last-child{border-bottom:0}
  .match-row td{padding:0;border:0}
  .match-time{display:none}
  .match-teams{grid-column:1/3;grid-row:1;align-self:center;font-size:14px}
  .match-teams span{display:block}
  .match-teams .match-sep{display:none}
  .match-result{grid-column:3;grid-row:1;width:auto;align-self:center;font-size:18px;text-align:right}
  .match-tip{width:auto}
  .match-tip::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;font-weight:600}

  .bonus-table tr{display:block;padding:12px;border-bottom:1px solid var(--line)}
  .bonus-table tbody tr:last-child{border-bottom:0}
  .bonus-table tbody th,.bonus-table td{display:block;width:auto;padding:0;border:0}
  .bonus-table tbody th{margin-bottom:4px;color:var(--muted);font-size:13px}
  .bonus-table td[data-label]{display:flex;justify-content:space-between;gap:16px;padding:2px 0;text-align:right}
  .bonus-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-weight:500;text-align:left}
}

@media (max-width:480px){
  .site-header nav{gap:14px;font-size:13px}
  .brand span{display:none}
  .section-head{align-items:stretch;flex-direction:column}
  .matchday-switcher{width:100%}
  .matchday-select-form,.matchday-select-form select{flex:1;min-width:0;width:100%}
  .site-footer-inner{flex-direction:column;align-items:flex-start}
}
