/* ÖGNC – Träger der Herbert Kraus-Medaille  (v2)
   Contao-Element "Tabelle", CSS-Klasse: medal-list
   Spalte 1 = Jahr, Spalte 2 = Name (Zusatz in Klammern, z. B. "Koos (posthum)")
   Optional Spalte 3 = Zusatz – wird dann als kleine graue Zeile darunter gezeigt.
   Neueste Verleihung immer in die ERSTE Zeile. */

.medal-list { max-width: 720px; margin: 0 auto 40px; }
.medal-list table { width: 100% !important; border: 0 !important; border-collapse: collapse; margin: 0; background: none; }
.medal-list thead, .medal-list caption { display: none; }

/* Theme-Tabellenstile neutralisieren */
.medal-list table tr,
.medal-list table td,
.medal-list table th {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  box-shadow: none !important;
  text-align: left;
  vertical-align: baseline;
}
.medal-list table td::before,
.medal-list table td::after { content: none !important; border: 0 !important; }

/* Zeile */
.medal-list table tbody tr {
  display: grid !important;
  grid-template-columns: 110px 1fr;
  column-gap: 24px;
  align-items: baseline;
  padding: 18px 0 !important;
  border-bottom: 1px solid #e5e5e5 !important;
}
.medal-list table tbody tr:nth-child(2) { border-top: 1px solid #e5e5e5 !important; }
.medal-list table td { display: block !important; }

/* Jahr */
.medal-list table td:nth-child(1) {
  font-size: 26px; line-height: 1.2; font-weight: 300; color: #b5121b;
}
/* Name */
.medal-list table td:nth-child(2) {
  font-size: 18px; line-height: 1.4; color: #222;
}
/* optionaler Zusatz */
.medal-list table td:nth-child(3) {
  grid-column: 2;
  font-size: 13px; line-height: 1.3; font-style: italic; color: #6b6b6b;
}
.medal-list table td:nth-child(3):empty { display: none !important; }

/* Erste Zeile = aktuelle Verleihung */
.medal-list table tbody tr:first-child {
  grid-template-columns: 1fr;
  row-gap: 6px;
  background: #f5f5f5 !important;
  padding: 30px 36px !important;
  margin-bottom: 48px;
  border-bottom: 0 !important;
}
.medal-list table tbody tr:first-child td:nth-child(1) {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
}
.medal-list table tbody tr:first-child td:nth-child(1)::before {
  content: "Aktuelle Verleihung " !important;
}
.medal-list table tbody tr:first-child td:nth-child(2) { font-size: 28px; line-height: 1.25; }
.medal-list table tbody tr:first-child td:nth-child(3) { grid-column: 1; }

/* Mobil */
@media (max-width: 600px) {
  .medal-list { margin-left: 0; margin-right: 0; }
  .medal-list table tbody tr { grid-template-columns: 64px 1fr; column-gap: 14px; padding: 14px 0 !important; }
  .medal-list table td:nth-child(1) { font-size: 20px; }
  .medal-list table td:nth-child(2) { font-size: 16px; }
  .medal-list table tbody tr:first-child { padding: 22px 20px !important; margin-bottom: 32px; }
  .medal-list table tbody tr:first-child td:nth-child(2) { font-size: 24px; }
}
