/* ============================================================
   AIKIDO TSV – DAN-SEITEN (1dan.php – 5dan.php)
   Lädt zusammen mit core.css
   ============================================================ */

/* ─── SECTION TITLES ─── */
.section-title {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white);
  padding: .7rem 1.2rem;
  border-radius: 8px;
  border-left: 5px solid var(--gold);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.section-title small {
  font-weight: 400;
  opacity: .75;
  font-size: .82em;
}

/* ─── PDF-LINK IM SECTION TITLE ─── */
.section-pdf-link {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .15);
  color: var(--white) !important;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-pdf-link:hover {
  background: rgba(241, 183, 0, .25);
  border-color: var(--gold);
  color: var(--gold) !important;
  transform: translateY(-1px);
}

.section-pdf-link .fa-file-pdf {
  color: #ff6b6b;
}

.section-pdf-link:hover .fa-file-pdf {
  color: var(--gold);
}

/* ─── TECHNIQUE TABLES ─── */
.tech-table-wrap {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.table {
  margin: 0;
  font-size: .875rem;
}

.table thead th {
  background: #2c3e50;
  color: var(--white);
  vertical-align: middle;
  font-size: .8rem;
  white-space: nowrap;
  position: relative;
  height: 130px;
  min-width: 44px;
  padding: 6px 4px;
  border: none;
}

.table thead th>div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  width: 120px;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.table thead th:first-child {
  height: auto;
  min-width: 190px;
  padding: 10px 12px;
  background: #1a252f;
  text-align: left;
  white-space: normal;
}

.table thead th:first-child>div {
  position: static;
  transform: none;
  width: auto;
  font-weight: 600;
}

.table tbody td {
  vertical-align: middle;
  padding: .6rem .8rem;
  border-color: var(--gray-200);
}

.table tbody tr:hover td {
  background: #fffde7;
}

.table tbody td:first-child {
  font-weight: 500;
  min-width: 190px;
}

/* Dan-Badge in Tabellen */
.dan-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--green);
  color: var(--white);
  padding: .2rem .7rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: .75rem;
  white-space: nowrap;
}

.dan-badge::before {
  content: '✓';
  color: var(--gold);
}

.technique-detail {
  font-size: .72em;
  color: #888;
  display: block;
  margin-top: .1rem;
}

/* PDF-Link über Techniktabellen */
.table-pdf-link {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  color: #c0392b !important;
  text-decoration: none;
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  padding: .2rem .7rem;
  border-radius: 20px;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .15s;
}

.table-pdf-link:hover {
  background: #c0392b;
  color: var(--white) !important;
  border-color: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(192, 57, 43, .25);
}

/* ─── REQUIREMENTS SUMMARY ─── */
.req-summary {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.req-summary h5 {
  color: #1b5e20;
  font-weight: 700;
  margin-bottom: .8rem;
}

.req-summary ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: .875rem;
  color: #2e7d32;
}

.req-summary li {
  margin-bottom: .3rem;
}

/* ─── INFO CARDS ─── */
.info-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--gold);
}

.info-card h5 {
  color: var(--green);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.info-card p {
  font-size: .875rem;
  margin: 0;
  color: #555;
}

/* Info-Card Farbvarianten */
.info-card--success {
  border-left-color: #28a745 !important;
}

.info-card--warning {
  border-left-color: #ffc107 !important;
}

.info-card--danger {
  border-left-color: #dc3545 !important;
}

/* ─── CORRECTION BOX ─── */
.correction-box {
  background: #fff8e1;
  border: 1px solid #ffcc02;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}

.correction-box strong {
  color: #b8860b;
}

.correction-box--danger {
  background: #fff0f0 !important;
  border-color: #dc3545 !important;
}

.correction-box--danger strong {
  color: #c0392b !important;
}

/* ─── UTILITY OVERRIDES ─── */
.th-narrow {
  min-width: 40px !important;
  width: 50px !important;
}

.badge-sm {
  font-size: .85rem !important;
}

.table-row-summary {
  background: #f8f9fa;
  font-weight: 600;
}

/* ─── HIGHLIGHT BOX (5. Dan · Graduierung) ─── */
.highlight-box {
  background: linear-gradient(135deg, #1a2a1a, #004235);
  color: var(--white);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}

.highlight-box h5 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  margin-bottom: .6rem;
}

.highlight-box p {
  opacity: .85;
  font-size: .9rem;
  margin: 0;
}

/* ─── VARIANT BADGES (4. Dan · Renzoku/Kaeshi-waza) ─── */
.variant-badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
}

.vgRgT {
  background: #d4edda;
  color: #155724;
}

.vwRgT {
  background: #cce5ff;
  color: #004085;
}

.vgRwT {
  background: #fff3cd;
  color: #856404;
}

.vwRwT {
  background: #f8d7da;
  color: #721c24;
}

.variant-legend {
  background: var(--white);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  font-size: .82rem;
}

.variant-legend span {
  margin-right: 1.2rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .table thead th {
    height: 110px;
    min-width: 36px;
  }

  .table thead th>div {
    width: 100px;
    font-size: .75rem;
  }

  .table thead th:first-child {
    min-width: 150px;
  }
}