:root {
  --jr-line: #e5e7eb;
  --jr-text: #1f2937;
  --jr-muted: #6b7280;
  --jr-primary: #cb9e63;
  --jr-primary-dark: #333;
  --jr-card: #ffffff;
  --jr-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --jr-radius: 18px;
  --jr-warn-bg: #fff7ed;
  --jr-warn-text: #c2410c;
}

.jr-card,
.jr-card * {
  box-sizing: border-box;
}

.jr-card,
.jr-results-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 24px;
  color: var(--jr-text);
}

.jr-results-wrap {
  margin-bottom: 70px;
}

.jr-card {
  background: var(--jr-card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--jr-radius);
  box-shadow: var(--jr-shadow);
  overflow: hidden;
}

.jr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--jr-line);
  flex-wrap: wrap;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.jr-card-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--jr-text);
}

.jr-card-subtitle {
  margin: 6px 0 0;
  color: var(--jr-muted);
  font-size: 0.95rem;
}

.jr-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--jr-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.jr-filter-header {
  align-items: flex-start;
}

.jr-filter-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.jr-filter-form {
  padding: 28px;
}

.jr-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.jr-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jr-form-field-full {
  grid-column: 1 / -1;
}

.jr-form-field label {
  font-weight: 600;
  color: var(--jr-text);
}

.jr-form-field select,
.jr-form-field input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--jr-line);
  border-radius: 12px;
  background: #fff;
  color: var(--jr-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jr-form-field select:focus,
.jr-form-field input[type="text"]:focus {
  border-color: var(--jr-primary);
  box-shadow: 0 0 0 4px rgba(247, 199, 70, 0.12);
}

.jr-disziplin-select {
  min-height: 250px !important;
  padding: 10px !important;
}

.jr-form-field small {
  color: var(--jr-muted);
}

.jr-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.jr-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.jr-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.jr-btn:hover {
  transform: translateY(-1px);
}

.jr-btn-primary {
  background: var(--jr-primary);
  color: #fff;
}

.jr-btn-primary:hover {
  background: var(--jr-primary-dark);
  color: #fff;
}

.jr-filter-details {
  border-top: 1px solid var(--jr-line);
}

.jr-filter-toggle {
  display: block;
  padding: 16px 28px;
  cursor: pointer;
  font-weight: 700;
  color: var(--jr-primary);
  background: #f8fafc;
  user-select: none;
}

.jr-filter-toggle::-webkit-details-marker {
  display: none;
}

.jr-filter-toggle::after {
  content: "▾";
  float: right;
}

.jr-filter-details[open] .jr-filter-toggle::after {
  content: "▴";
}

.jr-filter-details-content {
  background: #fff;
}

.jr-results-card .jr-results-content {
  padding: 28px;
}

.jr-result-block {
  border: 1px solid var(--jr-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.jr-result-block-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--jr-line);
  background: #f8fafc;
}

.jr-result-block-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--jr-text);
}

.jr-result-html table {
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  margin: 0 !important;
  background: #fff;
}

.jr-result-html table,
.jr-result-html tbody,
.jr-result-html thead,
.jr-result-html tr,
.jr-result-html th,
.jr-result-html td {
  max-width: none !important;
}

.jr-result-html th,
.jr-result-html td {
  border: none;
  width: auto !important;
  min-width: 0 !important;
  padding: 2px 12px !important;
  border: 1px solid var(--jr-line) !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: break-word;
}

div.jr-results-wrap div.jr-card.jr-results-card div.jr-results-content section.jr-result-block div.jr-result-html div.mannschaften div.list-m table tbody tr td table tbody tr td,
div.jr-results-wrap div.jr-card.jr-results-card div.jr-results-content section.jr-result-block div.jr-result-html div.einzel div.list-e table tbody tr td table tbody tr td
{
  border:none!important;
}
.jr-result-html th {
  background: #f8fafc !important;
  color: var(--jr-text) !important;
  font-weight: 700 !important;
}

.jr-result-html tr:nth-child(even) td {
  background: #fdfaf3;
}

.jr-result-html td:empty,
.jr-result-html th:empty {
  padding: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.jr-result-html td table,
.jr-result-html th table {
  margin: 0 !important;
  width: 100% !important;
  border: none;
}

.jr-result-html [width] {
  width: auto !important;
}

.jr-result-html [align="center"] {
  text-align: center !important;
}

.jr-result-html [align="right"] {
  text-align: right !important;
}

.jr-result-html .disziplin {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 25px;
  display:none;
}

.jr-notice {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.jr-notice-warning {
  background: var(--jr-warn-bg);
  color: var(--jr-warn-text);
  border: 1px solid #b9e63;
}

@media (max-width: 768px) {
  .jr-card-header,
  .jr-filter-form,
  .jr-results-card .jr-results-content {
    padding: 20px;
  }

  .jr-filter-toggle {
    padding: 14px 20px;
  }

  .jr-card-title {
    font-size: 1.25rem;
  }

  .jr-filter-summary {
    justify-content: flex-start;
  }
}


.jr-result-html {
  padding: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.jr-results-wrap {
  margin-bottom: 70px;
}

.jr-result-html table {
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  margin: 0 !important;
  background: #fff;
}

.jr-result-html table,
.jr-result-html tbody,
.jr-result-html thead,
.jr-result-html tr,
.jr-result-html th,
.jr-result-html td {
  max-width: none !important;
}

.jr-result-html th,
.jr-result-html td {
  width: auto !important;
  min-width: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid var(--jr-line) !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: break-word;
}

.jr-result-html th {
  background: #f8fafc !important;
  color: var(--jr-text) !important;
  font-weight: 700 !important;
}

.jr-result-html tr:nth-child(even) td {
  background: #fdfaf3;
}

.jr-result-html td:empty,
.jr-result-html th:empty {
  padding: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.jr-result-html td table,
.jr-result-html th table {
  margin: 0 !important;
  width: 100% !important;
  border: none;
}

.jr-result-html [width] {
  width: auto !important;
}

.jr-result-html [align="center"] {
  text-align: center !important;
}

.jr-result-html [align="right"] {
  text-align: right !important;
}

.jr-result-html .disziplin {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 25px;
}

/* Zahlen und Disziplinnummern nicht umbrechen */
.jr-result-html td:first-child,
.jr-result-html th:first-child,
.jr-result-html .disziplin {
  white-space: nowrap !important;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  .jr-result-block {
    overflow: hidden;
  }

  .jr-result-html {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
  }

  .jr-result-html table {
    width: max-content !important;
    min-width: 720px !important;
  }

  .jr-result-html th,
  .jr-result-html td {
    font-size: 14px !important;
    line-height: 1.35 !important;
    padding: 6px 8px !important;
    white-space: nowrap !important;
    word-break: normal !important;
  }

  .jr-result-html .disziplin {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 10px;
    padding: 0 8px;
  }
}

.jr-results-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.jr-btn-secondary {
  background: #f3f4f6;
  color: var(--jr-text);
}

.jr-btn-secondary:hover {
  background: #e5e7eb;
  color: var(--jr-text);
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .jr-print-wrapper,
  .jr-print-wrapper * {
    visibility: visible !important;
  }

  .jr-print-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
  }

  .jr-results-toolbar,
  .jr-print-btn,
  .jr-filter-card,
  .site-header,
  .site-footer,
  header,
  footer,
  nav,
  aside {
    display: none !important;
  }

  .jr-card,
  .jr-result-block {
    box-shadow: none !important;
    border: none; 
  }

  .jr-results-wrap,
  .jr-card {
    max-width: 100% !important;
    margin: 0 !important;
  }

  .jr-result-html {
    overflow: visible !important;
  }

  .jr-result-html table {
    width: 100% !important;
    min-width: 0 !important;
  }

  .jr-result-html th,
  .jr-result-html td {
    font-size: 12px !important;
    padding: 4px 6px !important;
    white-space: normal !important;
  }

  .jr-card-header {
    padding: 12px 0 !important;
    background: #fff !important;
  }

  .jr-result-block-header {
    background: #fff !important;
  }
  .printImg{
    visibility:visible;
  }
}