/* Archiv Alte Herren — archiv-alte-herren.php */

.ah-archiv { padding: clamp(28px, 4vw, 44px) 0 clamp(50px, 6vw, 80px); }
.ah-archiv .zurueck { margin: 0 0 10px; }
.ah-archiv .zurueck a { font-weight: 700; text-decoration: none; }

.saison-sprung { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.saison-sprung a {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff;
  font-weight: 700; font-size: .85rem; text-decoration: none;
}
.saison-sprung a:hover { background: rgba(255, 255, 255, .24); }

.ah-saison { padding-top: clamp(28px, 4vw, 40px); scroll-margin-top: 90px; }
.ah-kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px;
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 2px solid var(--gruen);
}
.ah-kopf h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.ah-bilanz { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--grau); }
.ah-bilanz li { padding: 4px 10px; border-radius: 999px; background: var(--sand); }
.ah-bilanz b { color: var(--text); font-variant-numeric: tabular-nums; }
.ah-bilanz .s b { color: var(--gruen-hell); }
.ah-bilanz .n b { color: var(--signal); }

.ah-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ah-inhalt.ohne-tore { grid-template-columns: minmax(0, 1fr); }

.ah-spiele {
  background: #fff; border-radius: var(--radius); box-shadow: var(--heben), var(--ring);
  overflow: hidden;
}
.ah-spiele table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ah-spiele th {
  text-align: left; padding: 10px 14px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grau);
  background: var(--sand);
}
.ah-spiele td { padding: 9px 14px; border-top: 1px solid var(--rahmen); vertical-align: top; }
.ah-spiele .datum { white-space: nowrap; color: var(--grau); width: 1%; font-variant-numeric: tabular-nums; }
.ah-spiele .gegen { color: var(--grau); margin: 0 4px; }
.ah-spiele .wir { font-weight: 800; color: var(--gruen); }
.ah-spiele .erg { text-align: right; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; width: 1%; }
.ah-spiele tr.info td { color: var(--grau); }
.ah-spiele tr.info .notiz { font-style: italic; }
.ah-spiele tr.info .erg { font-weight: 600; }
.ah-spiele tr.a-s .erg { color: var(--gruen-hell); }
.ah-spiele tr.a-n .erg { color: var(--signal); }
.ah-spiele tr.a-s td:first-child { box-shadow: inset 3px 0 0 var(--gruen-hell); }
.ah-spiele tr.a-n td:first-child { box-shadow: inset 3px 0 0 var(--signal); }
.ah-spiele tr.a-u td:first-child { box-shadow: inset 3px 0 0 var(--rahmen); }

.ah-tore {
  background: #fff; border-radius: var(--radius); box-shadow: var(--heben), var(--ring);
  padding: 16px 18px; position: sticky; top: 90px;
}
.ah-tore h3 { margin: 0 0 10px; font-size: 1rem; }
.ah-tore ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ah-tore li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 26px; align-items: center; gap: 8px; font-size: .86rem; }
.ah-tore .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-tore .balken { height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.ah-tore .balken i { display: block; height: 100%; background: var(--gruen-hell); border-radius: 3px; }
.ah-tore b { text-align: right; font-variant-numeric: tabular-nums; }
.ah-tore li.koenig .name { font-weight: 800; }
.ah-tore li.koenig .name::after { content: " 👑"; }
.ah-tore li.koenig .balken i { background: #C9A227; }

.ah-archiv .quelle { margin-top: 34px; color: var(--grau); font-size: .88rem; }

@media (max-width: 860px) {
  .ah-inhalt { grid-template-columns: minmax(0, 1fr); }
  .ah-tore { position: static; }
}
@media (max-width: 520px) {
  .ah-spiele td, .ah-spiele th { padding: 8px 10px; }
  .ah-spiele table { font-size: .84rem; }
  .ah-spiele td:nth-child(2) span { display: block; }
  .ah-spiele td:nth-child(2) span.gegen { display: none; }
  .ah-spiele .datum { font-size: .76rem; white-space: normal; width: 64px; }
  .ah-spiele th:first-child { width: 64px; }
  .ah-spiele th.erg { font-size: 0; }
  .ah-spiele th.erg::after { content: "Erg."; font-size: .72rem; }
  .ah-kopf { flex-direction: column; align-items: flex-start; }
}

/* Spielplan der kommenden Saison: Uhrzeit unter dem Datum */
.ah-saison .datum .uhr { display: block; font-size: .8em; font-weight: 500; opacity: .7; }
