/*--------------------------------------------------------------
# Disziplin-Seiten (Sportprogramm) — Erweiterung zum Haupttheme
# Re-verwendet Marken-Akzentfarbe #FF7F50 (Koralle) und #1ee57a (Grün)
# aus assets/css/style.css, ergaenzt nur neue Komponenten.
--------------------------------------------------------------*/

/* Hero-Bereich oben auf jeder Disziplin-Seite */
.disziplin-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.disziplin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.05) 0%, rgba(15, 15, 15, 0.78) 100%);
}

.disziplin-hero .disziplin-hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 40px;
  color: #fff;
  width: 100%;
}

.disziplin-hero .disziplin-kicker {
  display: inline-block;
  background: #FF7F50;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.disziplin-hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.disziplin-hero p.kurzbeschreibung {
  font-size: 16px;
  max-width: 720px;
  margin: 0;
  color: #f1f1f1;
}

/* Meta-Chip-Leiste: Verband / Bereich / Waffenart / Entfernung / Charakter / Zielmedium */
.disziplin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 35px;
}

.disziplin-meta .meta-chip {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0px 0 20px rgba(51, 51, 51, 0.06);
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 140px;
}

.disziplin-meta .meta-chip .meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  font-weight: 600;
  margin-bottom: 2px;
}

.disziplin-meta .meta-chip .meta-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.disziplin-meta .meta-chip .meta-value i {
  color: #FF7F50;
  margin-right: 4px;
}

/* Section-Karten fuer die einzelnen Tabellenbloecke */
.disziplin-section {
  background: #fff;
  box-shadow: 0px 0 30px rgba(51, 51, 51, 0.08);
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 30px;
}

.disziplin-section h2 {
  font-size: 21px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.disziplin-section h2 i {
  color: #FF7F50;
  font-size: 22px;
}

.disziplin-section .section-sub {
  color: #888;
  font-size: 14px;
  margin-bottom: 18px;
}

.disziplin-section table {
  width: 100%;
  font-size: 14.5px;
  border-collapse: collapse;
}

.disziplin-section table th {
  background: #fbf4f1;
  color: #333;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #FF7F50;
  white-space: nowrap;
}

.disziplin-section table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.disziplin-section table tr:hover td {
  background: #fffaf8;
}

.disziplin-section table.table-kompakt td,
.disziplin-section table.table-kompakt th {
  padding: 8px 12px;
  font-size: 13.5px;
}

/* Ablauf-Tabelle: erste Spalte als Label-Badge */
.ablauf-table td:first-child {
  font-weight: 700;
  color: #FF7F50;
  width: 170px;
  white-space: nowrap;
}

/* Kommando-Kette als Pfeil-Badges */
.kommando-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.kommando-chain .kommando-badge {
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.kommando-chain .kommando-arrow {
  color: #FF7F50;
  font-weight: 700;
}

/* SVG-Diagramm-Container */
.disziplin-diagram {
  background: #fbfbfb;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.disziplin-diagram svg {
  max-width: 100%;
  height: auto;
}

.disziplin-diagram .diagram-caption {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

/* Wertungs-Hinweis-Badges (Strafwerte, Gleichstand) */
.wertung-badge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wertung-badge-list .wertung-item {
  background: #f7f7f7;
  border-left: 3px solid #FF7F50;
  padding: 8px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
}

.wertung-badge-list .wertung-item strong {
  color: #222;
}

/* Links-Tabelle mit Icon */
.links-table a {
  font-weight: 600;
  color: #FF7F50;
}

.links-table a:hover {
  color: #e8693a;
  text-decoration: underline;
}

.links-table i {
  margin-right: 6px;
  color: #bbb;
}

/* Disziplin-Quicknav (zwischen den 9 Seiten) */
.disziplin-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 35px;
}

.disziplin-quicknav a {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #555;
  transition: 0.3s;
}

.disziplin-quicknav a:hover,
.disziplin-quicknav a.active {
  background: #FF7F50;
  border-color: #FF7F50;
  color: #fff;
}

@media (max-width: 768px) {
  .disziplin-hero { height: 280px; }
  .disziplin-hero h1 { font-size: 24px; }
  .disziplin-meta .meta-chip { min-width: 120px; }
}
