
  /* Allgemeine Stile für den Container */
  div {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
  }

  h1, h2, h3 {
    color: #2c3e50;
  }

  /* Modernisierung der Tabellen */
  table.statistik-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    background-color: #ffffff;
  }

  table.statistik-table th, table.statistik-table td {
    padding: 15px 18px;
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    text-align: left;
  }

  table.statistik-table thead {
    background-color: #f8f9fa;
    color: #495057;
  }

  table.statistik-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  table.statistik-table tbody tr:nth-child(even) {
    background-color: #fefefe;
  }

  table.statistik-table tbody tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
  }

  table.statistik-table tbody tr:last-child td {
    border-bottom: none;
  }

  table.statistik-table thead tr:first-child th:first-child { border-top-left-radius: 12px; }
  table.statistik-table thead tr:first-child th:last-child { border-top-right-radius: 12px; }
  table.statistik-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
  table.statistik-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }
  
  /* *** NEU: Hover-Effekt für Übersichtskacheln *** */
  .uebersichts-kachel {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  .uebersichts-kachel:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    cursor: pointer;
  }


  /* Responsive Design für Mobilgeräte */
  @media screen and (max-width: 768px) {
    table.statistik-table {
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    table.statistik-table thead {
      display: none;
    }
    table.statistik-table tbody,
    table.statistik-table tr,
    table.statistik-table td {
      display: block;
      width: 100%;
    }
    table.statistik-table tr {
      margin-bottom: 15px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }
    table.statistik-table td {
      padding-left: 45%;
      text-align: right;
      border-bottom: 1px solid #f0f0f0;
      white-space: normal;
      position: relative;
    }
    table.statistik-table td:last-child {
      border-bottom: none;
    }
    table.statistik-table td::before {
      position: absolute;
      top: 15px;
      left: 18px;
      width: 40%;
      text-align: left;
      font-weight: 700;
      color: #555;
      content: attr(data-label);
    }

    /* Data-Labels für "Alle Spiele" Tabelle */
    .spiele-letzte-12 td:nth-of-type(1)::before { content: "Datum"; }
    .spiele-letzte-12 td:nth-of-type(2)::before { content: "Spielart"; }
    .spiele-letzte-12 td:nth-of-type(3)::before { content: "Spielort"; }
    .spiele-letzte-12 td:nth-of-type(4)::before { content: "Mein TTR"; }
    .spiele-letzte-12 td:nth-of-type(5)::before { content: "Gegner"; }
    .spiele-letzte-12 td:nth-of-type(6)::before { content: "Gegner TTR"; }
    .spiele-letzte-12 td:nth-of-type(7)::before { content: "Ergebnis"; }
    .spiele-letzte-12 td:nth-of-type(8)::before { content: "Satzergebnis"; }

    .erfolgsquote-eigener-belag td:nth-of-type(1)::before { content: "Mein Belag"; }
    .erfolgsquote-eigener-belag td:nth-of-type(2)::before { content: "Spiele"; }
    .erfolgsquote-eigener-belag td:nth-of-type(3)::before { content: "Gewonnen"; }
    .erfolgsquote-eigener-belag td:nth-of-type(4)::before { content: "Verloren"; }
    .erfolgsquote-eigener-belag td:nth-of-type(5)::before { content: "Quote (%)"; }
    
    .erfolgsquote-belag td:nth-of-type(1)::before { content: "Gegner-Belag"; }
    .erfolgsquote-belag td:nth-of-type(2)::before { content: "Spiele"; }
    .erfolgsquote-belag td:nth-of-type(3)::before { content: "Gewonnen"; }
    .erfolgsquote-belag td:nth-of-type(4)::before { content: "Verloren"; }
    .erfolgsquote-belag td:nth-of-type(5)::before { content: "Quote (%)"; }

    .spiele-nach-ort td:nth-of-type(1)::before { content: "Ort"; }
    .spiele-nach-ort td:nth-of-type(2)::before { content: "Anzahl"; }

    .spiele-nach-art td:nth-of-type(1)::before { content: "Spielart"; }
    .spiele-nach-art td:nth-of-type(2)::before { content: "Anzahl"; }

    .spiele-wochentag td:nth-of-type(1)::before { content: "Wochentag"; }
    .spiele-wochentag td:nth-of-type(2)::before { content: "Anzahl"; }

    .spiele-monat td:nth-of-type(1)::before { content: "Monat"; }
    .spiele-monat td:nth-of-type(2)::before { content: "Anzahl"; }

    .spiele-top-gegner td:nth-of-type(1)::before { content: "Gegner"; }
    .spiele-top-gegner td:nth-of-type(2)::before { content: "Anzahl Spiele"; }

    .spiele-satzbilanz td:nth-of-type(1)::before { content: "Gew. Sätze"; }
    .spiele-satzbilanz td:nth-of-type(2)::before { content: "Verl. Sätze"; }
    .spiele-satzbilanz td:nth-of-type(3)::before { content: "Gesamt"; }

    .spiele-erfolgsquote td:nth-of-type(1)::before { content: "Spielart"; }
    .spiele-erfolgsquote td:nth-of-type(2)::before { content: "Gewonnen"; }
    .spiele-erfolgsquote td:nth-of-type(3)::before { content: "Verloren"; }
    .spiele-erfolgsquote td:nth-of-type(4)::before { content: "Quote (%)"; }

    .erfolgsquote-wochentag td:nth-of-type(1)::before { content: "Wochentag"; }
    .erfolgsquote-wochentag td:nth-of-type(2)::before { content: "Gewonnen"; }
    .erfolgsquote-wochentag td:nth-of-type(3)::before { content: "Verloren"; }
    .erfolgsquote-wochentag td:nth-of-type(4)::before { content: "Quote (%)"; }

    .erfolgsquote-spielort td:nth-of-type(1)::before { content: "Spielort"; }
    .erfolgsquote-spielort td:nth-of-type(2)::before { content: "Gewonnen"; }
    .erfolgsquote-spielort td:nth-of-type(3)::before { content: "Verloren"; }
    .erfolgsquote-spielort td:nth-of-type(4)::before { content: "Quote (%)"; }

    .gewinnquote-monatlich td:nth-of-type(1)::before { content: "Monat"; }
    .gewinnquote-monatlich td:nth-of-type(2)::before { content: "Spiele"; }
    .gewinnquote-monatlich td:nth-of-type(3)::before { content: "Gewonnen"; }
    .gewinnquote-monatlich td:nth-of-type(4)::before { content: "Verloren"; }
    .gewinnquote-monatlich td:nth-of-type(5)::before { content: "Quote (%)"; }

    .haeufigste-satzergebnisse td:nth-of-type(1)::before { content: "Satzergebnis"; }
    .haeufigste-satzergebnisse td:nth-of-type(2)::before { content: "Häufigkeit"; }
    
    .satz-details td:nth-of-type(1)::before { content: "Statistik"; }
    .satz-details td:nth-of-type(2)::before { content: "Wert"; }
  }

  /* Meilenstein-Prognose Grid responsive */
  @media (max-width: 640px) {
      .meilenstein-prognose-grid {
          grid-template-columns: 1fr !important;
      }
  }

  /* Fortschritts-Kennzahlen responsive */
  @media (max-width: 768px) {
      .fortschritt-kennzahlen {
          grid-template-columns: repeat(2, 1fr) !important;
      }
  }
  @media (max-width: 480px) {
      .fortschritt-kennzahlen {
          grid-template-columns: 1fr !important;
      }
  }

  /* Basis-Statistiken responsive */
  @media (max-width: 768px) {
      .basis-statistiken {
          grid-template-columns: repeat(2, 1fr) !important;
      }
  }
  @media (max-width: 480px) {
      .basis-statistiken {
          grid-template-columns: 1fr !important;
      }
  }

  /* Kennzahlen-Karten Styling */
  .fortschritt-kennzahlen > div,
  .basis-statistiken > div {
      background: white !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
      border: 1px solid #e0e0e0 !important;
  }

  /* Letzte Spiele responsive */
  @media (max-width: 768px) {
      .letzte-spiele-desktop {
          display: none !important;
      }
      .letzte-spiele-mobile {
          display: block !important;
      }
  }
  @media (max-width: 480px) {
      #gegner-filter {
          min-width: 100% !important;
      }
      #clear-filter {
          width: 100%;
      }
      #filter-counter {
          width: 100%;
          text-align: center;
      }
  }

  /* Top Stats Grid responsive */
  @media (max-width: 768px) {
      .top-stats-grid {
          grid-template-columns: 1fr !important;
      }
      .spielorte-desktop, .spielarten-desktop {
          display: none !important;
      }
      .spielorte-mobile, .spielarten-mobile {
          display: block !important;
      }
  }

  /* Upsets & Dashboard responsive */
  @media (max-width: 768px) {
      .upsets-desktop {
          display: none !important;
      }
      .upsets-mobile {
          display: block !important;
      }
      .dashboard-container {
          margin: 10px !important;
          padding: 15px !important;
      }
      .dashboard-container > div {
          padding: 20px !important;
      }
      .dashboard-container h1 {
          font-size: 24px !important;
      }
      .dashboard-container h3 {
          font-size: 18px !important;
      }
  }
  @media (max-width: 480px) {
      .dashboard-container {
          margin: 5px !important;
          padding: 10px !important;
      }
      .dashboard-container > div {
          padding: 15px !important;
      }
      .dashboard-container h1 {
          font-size: 20px !important;
      }
      .dashboard-container h3 {
          font-size: 16px !important;
      }
      .fortschritt-kennzahlen div, .basis-statistiken div {
          padding: 15px !important;
      }
      .fortschritt-kennzahlen div div:first-child, .basis-statistiken div div:first-child {
          font-size: 28px !important;
      }
  }

  /* Historische Übersicht - Karten-Umrandungen */
  .historische-uebersicht-card {
      border: 1px solid rgba(255,255,255,0.4) !important;
  }
  .historische-uebersicht-section {
      border: 1px solid rgba(255,255,255,0.3) !important;
  }

  /* Häufige Gegner Tabelle */
  .haeufige-gegner-desktop thead tr {
      background: #00510A !important;
      background-color: #00510A !important;
  }
  .haeufige-gegner-desktop thead th {
      background: #00510A !important;
      background-color: #00510A !important;
      color: white !important;
  }
  .haeufige-gegner-desktop tbody tr {
      transition: background-color 0.2s ease;
  }
  .haeufige-gegner-desktop tbody tr:hover {
      background: rgba(255,255,255,0.1) !important;
  }
  .haeufige-gegner-desktop tbody tr:hover td {
      color: white !important;
  }
  .haeufige-gegner-desktop tbody tr:hover td span {
      color: inherit !important;
  }
  @media (max-width: 768px) {
      .gegner-desktop, .haeufige-gegner-desktop {
          display: none !important;
      }
      .gegner-mobile, .haeufige-gegner-mobile {
          display: block !important;
      }
  }

  /* Monatsauswertung Styling */
  .monatsauswertung-container {
      max-width: 1400px;
      margin: 20px auto;
      padding: 20px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  .monat-header {
      background: linear-gradient(135deg, #C62828, #00510A);
      color: white;
      text-align: center;
      padding: 30px;
      border-radius: 12px;
      margin-bottom: 30px;
  }
  .chart-container {
      background: white;
      padding: 25px;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      margin-bottom: 30px;
  }
  .chart-wrapper {
      position: relative;
      height: 300px;
      margin-top: 20px;
  }
  .monats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 20px;
      margin-top: 30px;
  }
  .monat-card {
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      border-left: 4px solid #00510A;
      transition: transform 0.2s, box-shadow 0.2s;
  }
  .monat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  }
  .monat-titel {
      font-size: 18px;
      font-weight: bold;
      color: #00510A;
      margin-bottom: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  .gewinnquote-badge {
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: bold;
      color: white;
  }
  .gewinnquote-hoch { background: #4CAF50; }
  .gewinnquote-mittel { background: #FF9800; }
  .gewinnquote-niedrig { background: #C62828; }
  .stat-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid #f0f0f0;
  }
  .monatsauswertung-container .stat-label {
      color: #666;
      font-size: 14px;
  }
  .monatsauswertung-container .stat-value {
      font-weight: bold;
      color: #333;
      font-size: 14px;
  }
  .detail-section {
      margin-top: 15px;
      padding-top: 15px;
      border-top: 2px solid #f0f0f0;
  }
  .detail-title {
      font-size: 13px;
      font-weight: bold;
      color: #00510A;
      margin-bottom: 8px;
  }
  .detail-item {
      font-size: 12px;
      color: #666;
      padding: 4px 0;
      display: flex;
      justify-content: space-between;
  }
  .top-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
  }
  .top-stat-card {
      background: white;
      padding: 20px;
      border-radius: 12px;
      text-align: center;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .top-stat-value {
      font-size: 36px;
      font-weight: bold;
      margin-bottom: 5px;
  }
  .top-stat-label {
      color: #666;
      font-size: 14px;
  }
  @media screen and (max-width: 768px) {
      .monatsauswertung-container {
          padding: 10px;
      }
      .monats-grid {
          grid-template-columns: 1fr;
      }
      .chart-wrapper {
          height: 250px;
      }
      .top-stats {
          grid-template-columns: 1fr;
      }
  }

  /* Anreise-Analyse Styling */
  .tt-anreise-analyse {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
  }
  .anreise-header {
      background: linear-gradient(135deg, #1976D2 0%, #00510A 100%);
      color: white;
      text-align: center;
      padding: 30px 20px;
      border-radius: 12px;
      margin-bottom: 25px;
  }
  .anreise-header h2 {
      margin: 0 0 15px 0;
      font-size: 28px;
  }
  .anreise-header .stats-row {
      display: flex;
      justify-content: center;
      gap: 40px;
      flex-wrap: wrap;
      margin-top: 20px;
  }
  .anreise-header .stat-item {
      text-align: center;
  }
  .anreise-header .stat-value {
      font-size: 36px;
      font-weight: bold;
      color: white;
  }
  .anreise-header .stat-label {
      font-size: 14px;
      opacity: 0.9;
      color: white;
  }
  .anreise-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
  }
  .anreise-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      border: 1px solid #e1e5e9;
  }
  .anreise-card h3 {
      margin: 0 0 15px 0;
      color: #1976D2;
      font-size: 18px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
  }
  .stats-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
  }
  .stats-table th,
  .stats-table td {
      padding: 8px 12px;
      text-align: left;
      border-bottom: 1px solid #f0f0f0;
  }
  .stats-table th {
      background: #f8f9fa;
      font-weight: 600;
      color: #495057;
  }
  .erfolgsrate {
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 4px;
      color: white;
  }
  .erfolgsrate.hoch { background: #00510A; }
  .erfolgsrate.mittel { background: #ffc107; color: #212529; }
  .erfolgsrate.niedrig { background: #C62828; }
  .insight-box {
      margin-top: 15px;
      padding: 10px;
      background: #f9f9f9;
      border-radius: 5px;
      font-size: 13px;
  }
  .no-data-hint {
      padding: 20px;
      text-align: center;
      color: #666;
      background: #f8f9fa;
      border-radius: 8px;
  }
  @media screen and (max-width: 768px) {
      .anreise-grid {
          grid-template-columns: 1fr;
      }
      .anreise-header .stats-row {
          gap: 20px;
      }
      .anreise-header .stat-value {
          font-size: 28px;
      }
      .stats-table {
          font-size: 12px;
      }
      .stats-table th,
      .stats-table td {
          padding: 6px 8px;
      }
  }

  /* Fun Facts Karten-Styling */
  .fun-facts-container > div:nth-of-type(2) > div {
      background: white !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
      border: 1px solid #e0e0e0 !important;
  }

  /* Fun Facts responsive */
  @media (max-width: 768px) {
      .fun-facts-container > div:nth-of-type(2) {
          grid-template-columns: 1fr !important;
      }
  }
