.inherit-color {
    color: inherit;
}

.ul-scroll {
    height: 55vh;
    overflow: hidden;
    overflow-y: scroll;
}

/* Navigation Bar Styling */
.navbar-dropdown .navbar-item {
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    min-height: 3rem !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
}

.navbar-dropdown {
    min-width: 200px !important;
    font-size: 1rem !important;
}

/* Korrekte Farben für Navigation - dunkelblaue Schrift auf blauem Hintergrund */
.navbar-item.has-dropdown > .navbar-link {
    color: #003366 !important; /* Dunkelblau für besseren Kontrast */
    background-color: transparent !important;
}

.navbar-item.has-dropdown:hover > .navbar-link,
.navbar-item.has-dropdown.is-active > .navbar-link,
.navbar-item.has-dropdown > .navbar-link:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #003366 !important; /* Dunkelblau bleibt beim Hover */
}

/* Normale Navbar-Items (wie Brettspiele) - auch dunkelblaue Schrift */
.navbar-start > .navbar-item:not(.has-dropdown) {
    color: #003366 !important; /* Dunkelblau statt weiß */
}

.navbar-start > .navbar-item:not(.has-dropdown):hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #003366 !important; /* Dunkelblau bleibt beim Hover */
}

/* Homepage Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-with-bg {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/Logo_Gamechanger.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-with-bg .title,
.hero-with-bg .subtitle {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* CSS Logo für Bogan */
.bogan-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.bogan-logo .dice-icon {
    font-size: 2.5rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    transform: rotate(-15deg);
    animation: dice-bounce 2s infinite;
}

.bogan-logo .logo-text {
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

@keyframes dice-bounce {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-5px); }
}

.board-elements {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.board-elements span {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: float 3s ease-in-out infinite;
}

.board-elements span:nth-child(2) { animation-delay: 0.5s; }
.board-elements span:nth-child(3) { animation-delay: 1s; }
.board-elements span:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.hero-body {
    position: relative;
}

/* Game Cards */
.game-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.game-card .card-image img {
    transition: transform 0.3s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

.game-card .card-image {
    overflow: hidden;
}

/* Tools Section */
.tool-box {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border 0.2s ease-in-out;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tool-box:hover {
    transform: translateY(-4px);
    border-color: #3273dc;
    box-shadow: 0 8px 25px rgba(50, 115, 220, 0.15);
}

.bounce-on-hover {
    transition: transform 0.3s ease;
}

.bounce-on-hover:hover {
    transform: scale(1.1);
}

/* Events Section */
.event-box {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border 0.2s ease-in-out;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}

/* Sehr spezifische Regel für Event-Boxen */
.box.event-box.event-box-blue {
    background-color: #9ac9eb !important;
    border: 2px solid #326a99 !important;
}

/* Bessere Lesbarkeit der Event-Titel auf blauem Hintergrund */
.event-box .title.has-text-primary {
    color: #1565c0 !important; /* Dunkleres Blau für besseren Kontrast */
}

/* Player Ranking Boxes */
.player-rank-box {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid transparent;
    height: 100%;
}

.player-rank-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3273dc;
}

/* Bessere Formatierung für Statistik-Werte */
.player-rank-box .heading {
    margin-bottom: 0.2rem !important;
}

.player-rank-box .title.is-6 {
    margin-bottom: 0.75rem !important;
}

.player-rank-box .level .level-item {
    margin-bottom: 0.5rem;
}

.rank-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.rank-1 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.rank-2 {
    background: linear-gradient(45deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 4px 8px rgba(192, 192, 192, 0.3);
}

.rank-3 {
    background: linear-gradient(45deg, #CD7F32, #B8860B);
    box-shadow: 0 4px 8px rgba(205, 127, 50, 0.3);
}

.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
    background: linear-gradient(45deg, #3273dc, #1976d2);
    box-shadow: 0 4px 8px rgba(50, 115, 220, 0.3);
}

/* Game Statistics Box */
.game-stats-box {
    background: linear-gradient(135deg, #3273dc, #1976d2) !important;
    border: 2px solid #1565c0 !important;
    box-shadow: 0 4px 15px rgba(50, 115, 220, 0.2);
}

.game-stats-box .heading {
    color: #e3f2fd !important;
    font-weight: 600;
}

.game-stats-box .title.has-text-white {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Player Statistics Overview */
.player-stats-overview {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: 2px solid #5a67d8 !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.player-stats-overview .heading {
    color: #e3f2fd !important;
    font-weight: 600;
}

.player-stats-overview .title.has-text-white {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Best Game Boxes */
.best-game-box {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid transparent;
    height: 100%;
}

.best-game-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3273dc;
}

.best-game-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3273dc, #1976d2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Game History Boxes */
.game-history-box {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid #000000;
    height: 100%;
    background-color: #000000 !important;
    color: #ffffff !important;
}

.game-history-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border-color: #000000;
}

.game-history-box.game-won {
    border: 2px solid #000000;
    border-left: 4px solid #48c774;
    background-color: #000000 !important;
}

.game-history-box .title,
.game-history-box .subtitle,
.game-history-box .heading {
    color: #ffffff !important;
}

.game-history-box .level {
    margin-bottom: 0.75rem;
}

/* Players Overview */
.player-overview-box {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid transparent;
    height: 100%;
}

.player-overview-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 115, 220, 0.15);
    border-color: #3273dc;
}

.player-avatar {
    margin-bottom: 1rem;
}

.event-box:hover {
    transform: translateY(-2px);
    border-color: #3273dc;
    box-shadow: 0 6px 20px rgba(50, 115, 220, 0.12);
}

.event-box .level {
    margin-bottom: 1rem;
}

.event-box .content {
    padding-bottom: 0;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Winner Badge */
.winner-tag {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #2c3e50 !important;
    font-weight: bold;
}

/* Animation für Icons */
.bounce-on-hover {
    transition: transform 0.3s ease;
}

.bounce-on-hover:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .hero.is-medium .hero-body {
        padding: 3rem 1.5rem;
    }
    
    .title.is-1 {
        font-size: 2.5rem !important;
    }
    
    .subtitle.is-3 {
        font-size: 1.5rem !important;
    }
    
    .column.is-one-fifth-desktop {
        flex-basis: 50% !important;
    }
}

@media (max-width: 480px) {
    .column.is-one-fifth-desktop {
        flex-basis: 100% !important;
    }
}

/* Allgemeine Container-Styles */
.search-control {
    display: inline-block;
    margin: 0.2rem auto;
  }
  
  .responsive-box {
    display: inline-block;
    margin: 0.2rem auto;
  }
  
  .list-item {
    padding: 1rem;
  }
  
  /* Desktop-Ansicht */
  .boardgame-figure {
    width: 10vw;
    margin-top: 0.2rem;
  }
  
  .game-title {
    display: block;
    max-width: 250px;
    white-space: normal;
    overflow-wrap: break-word;
    margin-bottom: 0.2rem;
  }
  
  /* Mobile Ansicht */
  @media (max-width: 768px) {
    .boardgame-figure {
      width: 50vw !important;
      margin-top: 0.2rem;
    }
    .responsive-box {
      display: block !important;
      width: 100% !important;
      margin: 0.2rem auto;
    }
  }
  
  /* Player ranking game boxes */
  .player-ranking-box {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    box-shadow: 0 4px 15px rgba(72, 95, 199, 0.08) !important;
  }
  
  .player-ranking-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(72, 95, 199, 0.15) !important;
    border-color: var(--primary-color);
  }
  
  /* Collapsible sections styling */
  .collapsible-header {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem !important;
  }
  
  .collapsible-header:hover {
    background-color: rgba(72, 95, 199, 0.1) !important;
    transform: translateY(-1px);
  }
  
  .collapsible-content {
    transition: all 0.3s ease;
  }
  
  .collapse-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
  }
  
  /* Position color coding for game history */
  .position-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.875rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }
  
  /* Platz 1: Gelb */
  .position-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border-color: #f1c40f;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  }
  
  /* Platz 2: Grau */
  .position-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e6e6e6 100%);
    color: #2a2a2a;
    border-color: #a0a0a0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  }
  
  /* Platz 3: Braun */
  .position-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #d4941e 100%);
    color: #ffffff;
    border-color: #b8691e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  /* Platz 4 und schlechter: Weiß */
  .position-tag:not(.position-1):not(.position-2):not(.position-3) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border-color: #dee2e6;
    text-shadow: none;
  }
  
  /* Hover effects for position tags */
  .position-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .position-1:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  }
  
  .position-2:hover {
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
  }
  
  .position-3:hover {
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
  }
  
  /* Month section styling */
  .month-section {
    border-bottom: 2px solid #e8ecff;
    padding-bottom: 2rem;
  }
  
  .month-section:last-child {
    border-bottom: none;
  }
  
  .month-section h3 {
    position: relative;
    margin-bottom: 1.5rem !important;
  }
  
  .month-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  }
  
  /* Game Detail Styling */
  .game-info-overview {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(72, 95, 199, 0.2);
  }
  
  .player-result-box {
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
  
  .player-result-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .winner-box {
    border-left: 4px solid #48c774;
    border-top: 2px solid #48c774;
  }
  
  .position-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .position-badge.position-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  }
  
  .position-badge.position-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e6e6e6 100%);
    color: #2a2a2a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  }
  
  .position-badge.position-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #d4941e 100%);
  }
  
  .position-badge:not(.position-1):not(.position-2):not(.position-3) {
    background: linear-gradient(135deg, #666666 0%, #888888 100%);
  }
  
  .player-link {
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .player-link:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
  }
  
  /* Game Link Styling */
  .game-link {
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  .game-link:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
  }
  
  /* Boardgame Cards Styling */
  .boardgame-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .boardgame-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .boardgame-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .boardgame-link:hover {
    text-decoration: none;
    color: inherit;
  }
  
  .boardgame-image {
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .boardgame-card:hover .boardgame-image {
    transform: scale(1.05);
  }
  
  .boardgame-card .content {
    margin-top: auto;
  }

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Basis Mobile Styles für alle Geräte unter 768px */
@media screen and (max-width: 768px) {
    
    /* Allgemeine Mobile-Verbesserungen */
    .container {
        padding: 0 0.5rem !important;
    }
    
    .section {
        padding: 1rem 0.5rem !important;
    }
    
    /* Titel und Überschriften */
    .title.is-1, .title.is-2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-break: break-word;
        hyphens: auto;
    }
    
    .title.is-3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }
    
    .subtitle {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        word-break: break-word;
    }
    
    /* Box-Verbesserungen für Mobile */
    .box {
        padding: 1rem 0.75rem !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Tabellen-Verbesserungen */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.8rem !important;
        white-space: nowrap;
    }
    
    .table td, .table th {
        padding: 0.5rem 0.25rem !important;
        vertical-align: top !important;
    }
    
    /* Tag-Verbesserungen für Spielerlisten */
    .players-list {
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .players-list .tag {
        font-size: 0.7rem !important;
        margin: 0.1rem 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }
    
    /* Button-Verbesserungen */
    .button {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .button.is-small {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Columns-System Verbesserungen */
    .columns {
        margin: 0 !important;
    }
    
    .column {
        padding: 0.5rem !important;
    }
    
    /* Level-System für Mobile */
    .level {
        display: block !important;
    }
    
    .level-item {
        justify-content: flex-start !important;
        margin-bottom: 0.5rem !important;
    }
    
    .level-left, .level-right {
        margin-bottom: 0.75rem !important;
    }
    
    /* Spieler-Statistiken */
    .player-stats-overview .columns {
        flex-direction: column !important;
    }
    
    .player-stats-overview .column {
        padding: 0.75rem 0.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .player-stats-overview .column:last-child {
        border-bottom: none;
    }
    
    /* Beste Spiele Boxen */
    .best-game-box {
        margin-bottom: 1rem !important;
    }
    
    .best-game-box .columns.is-gapless {
        margin: 0 !important;
    }
    
    .best-game-box .column.is-half {
        width: 50% !important;
        padding: 0.25rem !important;
    }
    
    /* Spielhistorie */
    .game-history-box {
        margin-bottom: 1rem !important;
    }
    
    .game-history-box .level {
        display: block !important;
    }
    
    .game-history-box .level-left,
    .game-history-box .level-right {
        margin-bottom: 0.5rem !important;
    }
    
    /* Navigation Dropdown */
    .navbar-dropdown {
        position: static !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .navbar-dropdown .navbar-item {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    /* Formular-Verbesserungen */
    .field .help {
        font-size: 0.8rem !important;
    }
    
    .input, .textarea {
        font-size: 0.9rem !important;
    }
    
    /* Icon-Text Verbesserungen */
    .icon-text {
        flex-wrap: wrap !important;
        align-items: center !important;
    }
    
    .icon-text .icon {
        flex-shrink: 0 !important;
    }
    
    /* Notification Verbesserungen */
    .notification {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Monatssektionen in Spielhistorie */
    .month-section h3 {
        font-size: 1.1rem !important;
        text-align: left !important;
        margin-bottom: 0.75rem !important;
    }
}

/* Extra kleine Geräte (unter 480px) */
@media screen and (max-width: 480px) {
    
    .container {
        padding: 0 0.25rem !important;
    }
    
    .section {
        padding: 0.75rem 0.25rem !important;
    }
    
    .title.is-1, .title.is-2 {
        font-size: 1.25rem !important;
    }
    
    .box {
        padding: 0.75rem 0.5rem !important;
    }
    
    .table {
        font-size: 0.7rem !important;
    }
    
    .table td, .table th {
        padding: 0.25rem 0.1rem !important;
    }
    
    .players-list .tag {
        font-size: 0.65rem !important;
    }
    
    .button {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .navbar-dropdown .navbar-item {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* ========================================
   DARK/LIGHT MODE CONTRAST FIXES
   ======================================== */

/* Dark Mode Support (wenn das System Dark Mode verwendet) */
@media (prefers-color-scheme: dark) {
    
    /* Event-Boxen im Dark Mode */
    .event-box .title.has-text-primary {
        color: #64b5f6 !important; /* Helles Blau für Dark Mode */
    }
    
    .event-box .subtitle {
        color: #e3f2fd !important; /* Helles Grau-Blau */
    }
    
    .box.event-box.event-box-blue {
        background-color: #1e3a5f !important; /* Dunklerer Blau-Hintergrund */
        border: 2px solid #64b5f6 !important;
    }
    
    /* Allgemeine Titel-Verbesserungen für Dark Mode */
    .title.has-text-primary {
        color: #64b5f6 !important;
    }
    
    .subtitle.has-text-secondary {
        color: #90caf9 !important;
    }
    
    /* Haupt-Section Anpassungen */
    .section.has-background-info-30 {
        background-color: #0d1b2a !important; /* Dunklerer Hintergrund */
    }
    
    .has-text-info-30-invert {
        color: #e3f2fd !important; /* Heller Text */
    }
}

/* Light Mode (Standard und explizit) */
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
    
    /* Event-Boxen im Light Mode */
    .event-box .title.has-text-primary {
        color: #0d47a1 !important; /* Sehr dunkles Blau für Light Mode */
        font-weight: 600 !important;
    }
    
    .event-box .subtitle {
        color: #424242 !important; /* Dunkles Grau */
    }
    
    .box.event-box.event-box-blue {
        background-color: #e3f2fd !important; /* Sehr helles Blau */
        border: 2px solid #1976d2 !important;
    }
    
    /* Allgemeine Titel-Verbesserungen für Light Mode */
    .title.has-text-primary {
        color: #0d47a1 !important; /* Sehr dunkles Blau */
        font-weight: 600 !important;
    }
    
    .subtitle.has-text-secondary {
        color: #424242 !important; /* Dunkles Grau */
    }
    
    /* Sicherstellen dass Texte auf hellem Hintergrund dunkel sind */
    .section.has-background-info-30 {
        background-color: #e8f4f8 !important; /* Sehr helles Blau */
    }
    
    .has-text-info-30-invert {
        color: #1a1a1a !important; /* Sehr dunkler Text */
    }
    
    /* Bessere Kontraste für verschiedene Text-Klassen */
    .has-text-grey-dark {
        color: #212121 !important;
    }
    
    .has-text-grey {
        color: #424242 !important;
    }
}

/* Fallback für Browser ohne prefers-color-scheme Support */
.title.has-text-primary {
    color: #0d47a1 !important; /* Standardmäßig dunkles Blau */
    font-weight: 600 !important;
}

.subtitle.has-text-secondary {
    color: #424242 !important; /* Standardmäßig dunkles Grau */
}

/* Event-Box Hover-Effekte für beide Modi */
.event-box:hover .title.has-text-primary {
    text-decoration: underline;
}

/* Zusätzliche Kontrast-Verbesserungen */
.box {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .box {
        border: 1px solid rgba(255, 255, 255, 0.2);
        background-color: #263238;
    }
}

/* ========================================
   TABLE HEADER CONTRAST FIXES
   ======================================== */

/* Tabellen-Header für beide Modi sicherstellen */
.table thead.has-background-primary-dark {
    background-color: #1565c0 !important; /* Immer dunkles Blau */
}

.table thead.has-background-primary-dark.has-text-white th,
.table thead.has-background-primary-dark.has-text-white td {
    color: #ffffff !important; /* Immer weiße Schrift */
    background-color: #1565c0 !important; /* Immer dunkles Blau */
    font-weight: 600 !important;
}

/* Dark Mode spezifische Tabellen-Verbesserungen */
@media (prefers-color-scheme: dark) {
    .table thead.has-background-primary-dark {
        background-color: #0d47a1 !important; /* Noch dunkleres Blau für Dark Mode */
        border-bottom: 2px solid #64b5f6;
    }
    
    .table thead.has-background-primary-dark.has-text-white th,
    .table thead.has-background-primary-dark.has-text-white td {
        background-color: #0d47a1 !important;
        color: #ffffff !important;
        border-color: #64b5f6 !important;
    }
    
    /* Tabellen-Body für Dark Mode */
    .table tbody tr {
        background-color: #1a1a1a !important;
        color: #e3f2fd !important;
    }
    
    .table tbody tr:hover {
        background-color: #2d2d2d !important;
    }
    
    .table td, .table th {
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
}

/* Light Mode spezifische Tabellen-Verbesserungen */
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
    .table thead.has-background-primary-dark {
        background-color: #0d47a1 !important; /* Sehr dunkles Blau */
        border-bottom: 2px solid #1976d2;
    }
    
    .table thead.has-background-primary-dark.has-text-white th,
    .table thead.has-background-primary-dark.has-text-white td {
        background-color: #0d47a1 !important;
        color: #ffffff !important;
        border-color: #1976d2 !important;
    }
    
    /* Tabellen-Body für Light Mode */
    .table tbody tr {
        background-color: #ffffff !important;
        color: #1a1a1a !important;
    }
    
    .table tbody tr:hover {
        background-color: #f5f5f5 !important;
    }
    
    .table td, .table th {
        border-color: rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Links in Tabellen für Light Mode */
    .table .has-text-link {
        color: #1976d2 !important;
    }
    
    .table .has-text-primary {
        color: #0d47a1 !important;
    }
}

/* Fallback für alle Browser - Tabellen-Header */
.table thead.has-background-primary-dark {
    background-color: #0d47a1 !important;
}

.table thead.has-background-primary-dark.has-text-white th,
.table thead.has-background-primary-dark.has-text-white td {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Zusätzliche Tabellen-Verbesserungen */
.table.is-hoverable tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

@media (prefers-color-scheme: dark) {
    .table.is-hoverable tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* ========================================
   EVENT PAGE SPECIFIC FIXES
   ======================================== */

/* Event-Seiten Titel und Überschriften */
.title.has-text-primary {
    color: #0d47a1 !important;
    font-weight: 600 !important;
}

@media (prefers-color-scheme: dark) {
    .title.has-text-primary {
        color: #64b5f6 !important;
    }
}

/* Player-Links in Tabellen */
.player-link.has-text-primary {
    color: #1976d2 !important;
    font-weight: 500 !important;
    text-decoration: none;
}

.player-link.has-text-primary:hover {
    color: #0d47a1 !important;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .player-link.has-text-primary {
        color: #64b5f6 !important;
    }
    
    .player-link.has-text-primary:hover {
        color: #90caf9 !important;
    }
}

/* Collapsible Header Verbesserungen */
.collapsible-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    opacity: 0.8;
}

.collapsible-header .icon.has-text-primary {
    color: #0d47a1 !important;
}

@media (prefers-color-scheme: dark) {
    .collapsible-header .icon.has-text-primary {
        color: #64b5f6 !important;
    }
}

/* Box-Container für Tabellen */
.table-container.box {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .table-container.box {
        background-color: #1a1a1a !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Button-Verbesserungen in Event-Seiten */
.button.is-primary {
    background-color: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #ffffff !important;
}

.button.is-primary:hover {
    background-color: #0d47a1 !important;
    border-color: #0d47a1 !important;
}

@media (prefers-color-scheme: dark) {
    .button.is-primary {
        background-color: #64b5f6 !important;
        border-color: #64b5f6 !important;
        color: #000000 !important;
    }
    
    .button.is-primary:hover {
        background-color: #42a5f5 !important;
        border-color: #42a5f5 !important;
    }
}

/* Info-Notifications */
.notification.is-info {
    background-color: #e3f2fd !important;
    color: #0d47a1 !important;
    border: 1px solid #1976d2;
}

@media (prefers-color-scheme: dark) {
    .notification.is-info {
        background-color: #1565c0 !important;
        color: #e3f2fd !important;
        border: 1px solid #64b5f6;
    }
}

/* Details-Content Verbesserungen */
.details-content {
    background-color: #f8f9fa !important;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .details-content {
        background-color: #2d2d2d !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #e3f2fd !important;
    }
}

/* has-text-weight-bold Klasse */
.has-text-weight-bold {
    color: inherit !important;
    font-weight: 700 !important;
}

/* ========================================
   PLAYER STATISTICS STYLES
   ======================================== */

/* Durchschnittliche Spieleranzahl - kleine Anzeige */
.title small {
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.7;
}

/* Dark mode support für kleine Zahlen */
@media (prefers-color-scheme: dark) {
    .title small.has-text-grey-light {
        color: #b0b0b0 !important;
    }
}

/* Mobile responsive für kleine Zahlen */
@media screen and (max-width: 768px) {
    .title small {
        font-size: 0.55em;
    }
}

/* ========================================
   GAMES OVERVIEW SPECIFIC STYLES
   ======================================== */

/* Players-list Styles für Games Overview */
.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.players-list .tag {
    white-space: nowrap;
}

.players-list .tag a {
    text-decoration: none;
}

.players-list .tag a:hover {
    text-decoration: underline;
}

/* Games Overview Mobile Styles */
@media screen and (max-width: 768px) {
    /* Games Overview Tabelle */
    .games-overview .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .games-overview .table {
        min-width: 800px;
    }
    
    .games-overview .players-list {
        max-width: 150px !important;
        flex-direction: column !important;
    }
    
    .games-overview .players-list .tag {
        font-size: 0.65rem !important;
        margin: 0.05rem 0 !important;
        padding: 0.2rem 0.4rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.1 !important;
        max-width: 100% !important;
    }
    
    /* Games Overview Tabellen-Zellen */
    .games-overview .table td:nth-child(1) { /* Datum */
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    .games-overview .table td:nth-child(2) { /* Brettspiel */
        min-width: 120px;
        font-size: 0.75rem;
    }
    
    .games-overview .table td:nth-child(3) { /* Spieler */
        min-width: 150px;
    }
    
    .games-overview .table td:nth-child(4) { /* Spieldauer */
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    .games-overview .table td:nth-child(5) { /* Ort */
        min-width: 80px;
    }
    
    .games-overview .table td:nth-child(6) { /* Details */
        min-width: 70px;
    }
    
    .games-overview .tag.is-primary.is-light {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.3rem !important;
    }
    
    .games-overview .button.is-small {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

@media screen and (max-width: 480px) {
    .games-overview .table {
        min-width: 900px;
        font-size: 0.65rem !important;
    }
    
    .games-overview .players-list .tag {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.3rem !important;
    }
}

/* ========================================
   PLAYER DETAIL SPECIFIC STYLES
   ======================================== */

/* Player Detail Spacing Verbesserungen */
.player-stats-overview .column {
    padding: 1rem;
}

.player-stats-overview .heading {
    margin-bottom: 0.25rem !important;
}

.player-stats-overview .title {
    margin-bottom: 1rem !important;
}

/* Beste Spiele Boxen */
.best-game-box .columns.is-gapless .column {
    padding: 0.5rem 0.25rem;
}

.best-game-box .heading {
    margin-bottom: 0.25rem !important;
    font-size: 0.7rem;
}

.best-game-box .title.is-6 {
    margin-bottom: 0.75rem !important;
}

/* Spielhistorie Boxen */
.game-history-box .level .level-item {
    margin-bottom: 0.5rem;
}

.game-history-box .heading {
    margin-bottom: 0.25rem !important;
    font-size: 0.7rem;
}

.game-history-box .title.is-6, 
.game-history-box .title.is-7 {
    margin-bottom: 0.75rem !important;
}

/* Statistik-Bereiche Gruppierung */
.has-text-centered > div {
    margin-bottom: 0.75rem;
}

.has-text-centered:last-child > div {
    margin-bottom: 0;
}

/* Player Detail Mobile Styles */
@media screen and (max-width: 768px) {
    /* Player Statistiken für Mobile */
    .player-stats-overview .columns.is-mobile {
        display: block !important;
    }
    
    .player-stats-overview .column {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-align: left !important;
    }
    
    .player-stats-overview .column:last-child {
        border-bottom: none !important;
    }
    
    .player-stats-overview .heading {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
        font-weight: 600 !important;
    }
    
    .player-stats-overview .title.is-3 {
        font-size: 1.25rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Beste Spiele für Mobile */
    .best-game-box {
        padding: 0.75rem !important;
    }
    
    .best-game-box .media-content .title.is-5 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }
    
    .best-game-box .columns.is-gapless.is-multiline {
        margin: 0 !important;
    }
    
    .best-game-box .columns.is-gapless .column.is-half {
        width: 50% !important;
        padding: 0.25rem !important;
        text-align: center !important;
    }
    
    .best-game-box .heading {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .best-game-box .title.is-6 {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    /* Spielhistorie für Mobile */
    .game-history-box {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .game-history-box .level.is-mobile {
        display: block !important;
        margin-bottom: 0.5rem !important;
    }
    
    .game-history-box .level-left .level-item {
        margin-bottom: 0.25rem !important;
    }
    
    .game-history-box .level-right .level-item {
        margin-bottom: 0.5rem !important;
    }
    
    .game-history-box .title.is-6 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
        margin-bottom: 0.1rem !important;
    }
    
    .game-history-box .subtitle.is-7 {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .game-history-box .content .level.is-mobile {
        display: flex !important;
        justify-content: space-around !important;
        text-align: center !important;
    }
    
    .game-history-box .content .level-item {
        flex: 1 !important;
        margin-bottom: 0 !important;
    }
    
    .game-history-box .content .heading {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .game-history-box .content .title.is-6,
    .game-history-box .content .title.is-7 {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        word-break: break-word !important;
    }
    
    /* Monatssektionen */
    .month-section h3.title.is-4 {
        font-size: 1rem !important;
        text-align: left !important;
        margin-bottom: 1rem !important;
    }
    
    /* Position Tags */
    .position-tag {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        border-radius: 0.25rem !important;
        white-space: nowrap !important;
    }
    
    /* Tag Verbesserungen */
    .tag.is-success, .tag.is-warning, .tag.is-info, .tag.is-light {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        margin: 0.1rem !important;
    }
}

@media screen and (max-width: 480px) {
    .player-stats-overview .column {
        padding: 0.5rem 0.75rem !important;
    }
    
    .player-stats-overview .heading {
        font-size: 0.8rem !important;
    }
    
    .player-stats-overview .title.is-3 {
        font-size: 1.1rem !important;
    }
    
    .best-game-box {
        padding: 0.5rem !important;
    }
    
    .game-history-box {
        padding: 0.5rem !important;
    }
    
    .game-history-box .title.is-6 {
        font-size: 0.8rem !important;
    }
    
    .month-section h3.title.is-4 {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   INDEX PAGE STYLES
   ======================================== */

.index-subtitle {
    margin-top: 1.5rem;
}

.index-empty-state {
    padding: 3rem;
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.profile-unlink-form {
    display: inline;
}

/* ========================================
   EVENT PAGE STYLES
   ======================================== */

.event-table-container {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.event-table th {
    min-width: 80px;
}

.event-table th.player-name {
    min-width: 150px;
}

.event-table th.points {
    min-width: 120px;
}

.event-table th.details {
    min-width: 200px;
}

.event-details {
    display: none;
    margin-top: 10px;
}

.event-details-list {
    list-style-type: none;
    padding-left: 1.5rem;
    text-align: left;
}

.event-game-image {
    width: 75px;
    height: auto;
    border-radius: 8px;
}

.markdown-content {
    display: none;
}

/* Tab-Pane Styles */
.tab-pane {
    display: none;
}

.tab-pane.is-active {
    display: block;
}

/* Tab Cursor */
.tabs li a {
    cursor: pointer;
}

/* Tab-Farben für bessere Lesbarkeit - Verstärkte Regeln */
.tabs.is-boxed li a,
.tabs.is-boxed li a:link,
.tabs.is-boxed li a:visited {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 2px solid #3273dc !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.tabs.is-boxed li.is-active a,
.tabs.is-boxed li.is-active a:link,
.tabs.is-boxed li.is-active a:visited {
    color: #ffffff !important;
    background-color: #3273dc !important;
    border: 2px solid #3273dc !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.tabs.is-boxed li:hover:not(.is-active) a,
.tabs.is-boxed li:hover:not(.is-active) a:link,
.tabs.is-boxed li:hover:not(.is-active) a:visited {
    color: #3273dc !important;
    background-color: #f0f8ff !important;
    border: 2px solid #3273dc !important;
    text-decoration: none !important;
}

/* Mobile-spezifische Tab-Verbesserungen mit höchster Priorität */
@media screen and (max-width: 768px) {
    .container .tabs.is-boxed.is-large li a,
    .container .tabs.is-boxed li a,
    .tabs.is-boxed.is-large li a,
    .tabs.is-boxed li a {
        color: #000000 !important;
        background-color: #ffffff !important;
        border: 3px solid #3273dc !important;
        font-weight: 800 !important;
        text-shadow: none !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1rem !important;
        padding: 0.75rem 0.5rem !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .container .tabs.is-boxed.is-large li.is-active a,
    .container .tabs.is-boxed li.is-active a,
    .tabs.is-boxed.is-large li.is-active a,
    .tabs.is-boxed li.is-active a {
        color: #ffffff !important;
        background-color: #3273dc !important;
        border: 3px solid #3273dc !important;
        font-weight: 800 !important;
        box-shadow: 0 4px 8px rgba(50, 115, 220, 0.3) !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    }
    
    .container .tabs.is-boxed.is-large li:hover:not(.is-active) a,
    .container .tabs.is-boxed li:hover:not(.is-active) a,
    .tabs.is-boxed.is-large li:hover:not(.is-active) a,
    .tabs.is-boxed li:hover:not(.is-active) a {
        color: #3273dc !important;
        background-color: #f0f8ff !important;
        border: 3px solid #3273dc !important;
        font-weight: 800 !important;
    }
}

/* Event-spezifische Responsive Styles */
@media screen and (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.5rem;
    }

    .button {
        font-size: 0.8rem;
    }
    
    /* Mobile Tab-Navigation */
    .tabs.is-large {
        font-size: 1rem;
    }
    
    .tabs ul {
        flex-wrap: wrap;
        gap: 4px; /* Abstand zwischen Tabs */
    }
    
    .tabs li {
        flex: 1;
        min-width: 33%;
    }
    
    .tabs li a {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        margin: 2px !important;
    }
    
    .tabs li a .icon {
        margin-right: 0.25rem;
    }
    
    /* Zusätzliche Touch-Verbesserungen */
    .tabs li a:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media screen and (max-width: 480px) {
    /* Nur Icons anzeigen auf sehr kleinen Bildschirmen */
    .tabs li a span:not(.icon) {
        display: none;
    }
    
    .tabs li a .icon {
        margin-right: 0;
        font-size: 1.25rem !important; /* Größere Icons für bessere Sichtbarkeit */
    }
    
    .tabs li a {
        min-height: 50px !important; /* Größere Touch-Targets */
        padding: 1rem 0.5rem !important;
        justify-content: center !important;
    }
    
    /* Stärkere Kontraste für sehr kleine Bildschirme */
    .tabs.is-boxed li a {
        border-width: 3px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    }
    
    .tabs.is-boxed li.is-active a {
        box-shadow: 0 4px 8px rgba(50, 115, 220, 0.3) !important;
    }
}

/* ========================================
   PLAYERS OVERVIEW STYLES
   ======================================== */

.players-no-results {
    display: none;
}

.player-overview-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e1e8ed;
}

.player-overview-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.player-avatar {
    margin-bottom: 1rem;
}

.player-stats {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

.player-stats .column {
    padding: 0.25rem;
}

.player-stats .heading {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.player-stats .title.is-6 {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 700;
}

/* Dark mode support for player stats */
@media (prefers-color-scheme: dark) {
    .player-overview-box {
        border: 1px solid #4a5568;
    }
    
    .player-stats {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Mobile responsive for player stats */
@media screen and (max-width: 768px) {
    .player-stats {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .player-stats .column {
        padding: 0.15rem;
    }
    
    .player-stats .heading {
        font-size: 0.65rem;
    }
    
    .player-stats .title.is-6 {
        font-size: 0.8rem;
    }
    
    .player-overview-box {
        padding: 1rem;
    }
}

/* ========================================
   KRITISCHE MOBILE TAB-FIXES - HÖCHSTE PRIORITÄT
   Diese Regeln MÜSSEN alle anderen überschreiben
   ======================================== */

/* Ultimative mobile Tab-Fixes mit maximaler Spezifität */
@media screen and (max-width: 768px) {
    body .section .container .tabs.is-boxed.is-large li a,
    body .section .container .tabs.is-boxed li a,
    body .tabs.is-boxed.is-large li a,
    body .tabs.is-boxed li a,
    html .tabs.is-boxed li a {
        color: #000000 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        border: 3px solid #3273dc !important;
        border-color: #3273dc !important;
        font-weight: 900 !important;
        font-size: 1.1rem !important;
        text-shadow: none !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem 0.75rem !important;
        margin: 4px !important;
        border-radius: 8px !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
        transition: all 0.2s ease !important;
    }

    body .section .container .tabs.is-boxed.is-large li.is-active a,
    body .section .container .tabs.is-boxed li.is-active a,
    body .tabs.is-boxed.is-large li.is-active a,
    body .tabs.is-boxed li.is-active a,
    html .tabs.is-boxed li.is-active a {
        color: #ffffff !important;
        background: #3273dc !important;
        background-color: #3273dc !important;
        border: 3px solid #3273dc !important;
        border-color: #3273dc !important;
        font-weight: 900 !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
        box-shadow: 0 6px 12px rgba(50, 115, 220, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    /* Icons auf mobilen Geräten vergrößern */
    body .tabs.is-boxed li a .icon,
    html .tabs.is-boxed li a .icon {
        font-size: 1.4rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Für sehr kleine Bildschirme - nur Icons */
@media screen and (max-width: 480px) {
    body .tabs.is-boxed li a span:not(.icon),
    html .tabs.is-boxed li a span:not(.icon) {
        display: none !important;
    }

    body .tabs.is-boxed li a .icon,
    html .tabs.is-boxed li a .icon {
        margin-right: 0 !important;
        font-size: 1.6rem !important;
    }

    body .tabs.is-boxed li a,
    html .tabs.is-boxed li a {
        min-height: 55px !important;
        padding: 1.25rem 1rem !important;
    }
}

/* ========================================
   CUSTOM MOBILE TAB SYSTEM - COMPLETE REPLACEMENT
   Völlig neues System das Bulma komplett ersetzt
   ======================================== */

/* Custom Mobile Tab System - Complete Override */
.mobile-tab-system {
  display: none;
}

@media screen and (max-width: 768px) {
  /* Hide original Bulma tabs completely */
  .tabs.is-boxed.is-large,
  .tabs.is-boxed {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Show custom mobile tab system */
  .mobile-tab-system {
    display: block !important;
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .mobile-tab-button {
    display: block !important;
    width: 100% !important;
    padding: 1.2rem 1rem !important;
    margin-bottom: 0.75rem !important;
    background-color: #ffffff !important;
    border: 3px solid #3273dc !important;
    color: #333333 !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  
  .mobile-tab-button.active {
    background-color: #3273dc !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(50, 115, 220, 0.3) !important;
    transform: translateY(-1px) !important;
  }
  
  .mobile-tab-button:hover {
    background-color: #f5f5f5 !important;
    transform: translateY(-1px) !important;
  }
  
  .mobile-tab-button.active:hover {
    background-color: #2366d1 !important;
  }
  
  .mobile-tab-button .icon {
    font-size: 1.3rem !important;
  }
}

/* ========================================
   MOBILE DROPDOWN NAVIGATION FIXES
   Nur Mobile: Ein-/Ausklapp-Funktionalität
   Desktop: Normale Hover-Funktionalität bleibt unverändert
   ======================================== */

@media screen and (max-width: 768px) {
  /* Nur auf Mobile: Dropdowns sind standardmäßig eingeklappt */
  .navbar-item.has-dropdown .navbar-dropdown {
    display: none !important;
  }
  
  /* Nur auf Mobile: Dropdown ist ausgeklappt wenn aktiv */
  .navbar-item.has-dropdown.is-active .navbar-dropdown {
    display: block !important;
  }
  
  /* Nur auf Mobile: Visueller Pfeil */
  .navbar-item.has-dropdown .navbar-link::after {
    content: ' ▼';
    font-size: 0.8rem;
    color: #ffffff;
    transition: transform 0.2s ease;
  }
  
  .navbar-item.has-dropdown.is-active .navbar-link::after {
    transform: rotate(180deg);
  }
}

/* Desktop bleibt komplett unverändert - normale Bulma Hover-Funktionalität */

/* ===== ANIMIERTE PUNKTE-LEISTE ===== */

.points-visualization-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.points-track-container {
    margin: 2rem 0;
}

.points-track {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(90deg, 
        #e74c3c 0%, 
        #f39c12 25%, 
        #f1c40f 50%, 
        #2ecc71 75%, 
        #27ae60 100%);
    border-radius: 60px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3), 
                0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 2rem 0;
    border: 3px solid #34495e;
}

/* Brettspiel-ähnliche Skala */
.points-scale {
    position: absolute;
    top: -40px;
    width: 100%;
    height: 30px;
}

.scale-tick {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.tick-mark {
    width: 2px;
    background: #34495e;
    margin-bottom: 2px;
}

.tick-mark.major {
    height: 20px;
    width: 3px;
    background: #2c3e50;
}

.tick-mark.minor {
    height: 12px;
    width: 2px;
    background: #7f8c8d;
}

.tick-label {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #bdc3c7;
}

.player-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.player-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 1.5s ease-out;
    z-index: 10;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.player-marker.position-1 {
    background: radial-gradient(circle, #ffd700 0%, #f39c12 100%);
    border-color: #e67e22;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.player-marker.position-2 {
    background: radial-gradient(circle, #ecf0f1 0%, #95a5a6 100%);
    border-color: #7f8c8d;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.6);
}

.player-marker.position-3 {
    background: radial-gradient(circle, #deb887 0%, #d68910 100%);
    border-color: #b7950b;
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.6);
}

.player-marker:not(.position-1):not(.position-2):not(.position-3) {
    background: radial-gradient(circle, #74b9ff 0%, #0984e3 100%);
    border-color: #2980b9;
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.6);
}

.marker-content {
    text-align: center;
    color: #2c3e50;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2px;
}

.marker-rank {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.marker-name {
    font-size: 0.65rem;
    line-height: 1;
    margin-bottom: 1px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marker-points {
    font-size: 0.7rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.player-marker:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 20;
}

.marker-tooltip {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(44, 62, 80, 0.95);
}

.player-marker:hover .marker-tooltip {
    opacity: 1;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        left: 0% !important;
        transform: translate(-50%, -50%) scale(0.3);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive Design für Punkte-Leiste */
@media (max-width: 768px) {
    .points-track {
        height: 60px;
        border-radius: 40px;
    }
    
    .player-marker {
        width: 60px;
        height: 60px;
    }
    
    .marker-rank {
        font-size: 0.9rem;
    }
    
    .marker-name {
        font-size: 0.5rem;
        max-width: 50px;
    }
    
    .marker-points {
        font-size: 0.6rem;
    }
    
    .tick-label {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .marker-tooltip {
        font-size: 0.7rem;
        bottom: 80px;
    }
    
    .points-scale {
        top: -35px;
    }
}

/* ===== DETAILLIERTE SPIELER-STATISTIKEN ===== */

.player-stat-box {
    background: var(--bulma-scheme-main, #ffffff);
    border: 2px solid var(--bulma-border, #dbdbdb);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    color: var(--bulma-text, #363636);
}

.player-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(50, 115, 220, 0.15);
    border-color: #3273dc;
}

.player-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bulma-border-weak, #ededed);
}

.player-stat-header .title {
    margin-bottom: 0;
    color: var(--bulma-text-strong, #363636) !important;
}

.player-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bulma-scheme-main-bis, #fafafa);
    border: 1px solid var(--bulma-border-weak, #ededed);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: var(--bulma-scheme-main-ter, #f5f5f5);
    border-color: #3273dc;
    transform: translateY(-2px);
}

.stat-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bulma-text-weak, #7a7a7a);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bulma-text-strong, #363636);
    margin-bottom: 0.1rem;
}

.stat-detail {
    font-size: 0.7rem;
    color: var(--bulma-text-weak, #7a7a7a);
    margin-bottom: 0;
}

.performance-indicator {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bulma-border-weak, #ededed);
}

.performance-bar-container {
    background: var(--bulma-scheme-main-bis, #fafafa);
    border: 1px solid var(--bulma-border-weak, #ededed);
    border-radius: 20px;
    height: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode spezifische Anpassungen */
@media (prefers-color-scheme: dark) {
    .player-stat-box {
        background: #000000;
        border-color: #363636;
        color: #ffffff;
    }
    
    .player-stat-header {
        border-bottom-color: #363636;
    }
    
    .player-stat-header .title {
        color: #ffffff !important;
    }
    
    .stat-item {
        background: #1a1a1a;
        border-color: #363636;
    }
    
    .stat-item:hover {
        background: #2a2a2a;
    }
    
    .stat-label {
        color: #b5b5b5;
    }
    
    .stat-value {
        color: #ffffff;
    }
    
    .stat-detail {
        color: #8a8a8a;
    }
    
    .performance-indicator {
        border-top-color: #363636;
    }
    
    .performance-bar-container {
        background: #1a1a1a;
        border-color: #363636;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.performance-bar {
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 25%, #f1c40f 50%, #2ecc71 75%, #27ae60 100%);
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s ease-out;
    animation: performanceSlide 1.5s ease-out;
    position: relative;
    min-width: 60px;
}

.performance-text {
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.performance-text-overlay {
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Dark Mode für overlay text */
@media (prefers-color-scheme: dark) {
    .performance-text-overlay {
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
}

@keyframes performanceSlide {
    0% {
        width: 0% !important;
    }
    100% {
        /* Width wird durch Inline-Style gesetzt */
    }
}

/* Mobile Anpassungen für Spieler-Statistiken */
@media (max-width: 768px) {
    .player-stat-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .performance-bar-container {
        height: 25px;
    }
    
    .performance-text {
        font-size: 0.6rem;
    }
}

/* ===== SIEGE-STATISTIKEN BALKENDIAGRAMM ===== */

.win-stats-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.win-chart-container {
    margin: 2rem 0;
}

.win-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.win-bar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.win-player-info {
    min-width: 200px;
    margin-right: 1rem;
}

.win-player-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.3rem;
}

.win-player-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.win-count {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
}

.win-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.win-rate {
    color: #f1c40f;
    font-weight: bold;
    font-size: 0.8rem;
}

.win-bar-container {
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.win-bar {
    height: 100%;
    border-radius: 20px;
    position: relative;
    transition: width 1.5s ease-out;
    animation: growBar 2s ease-out;
}

.win-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        #ffd700 0%, 
        #f39c12 50%, 
        #e67e22 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.win-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shine 2s ease-in-out infinite;
}

@keyframes growBar {
    0% {
        width: 0%;
    }
    100% {
        width: var(--target-width, 100%);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Verschiedene Farben für verschiedene Plätze */
.win-bar-item:nth-child(1) .win-bar-fill {
    background: linear-gradient(90deg, #ffd700 0%, #f39c12 100%);
}

.win-bar-item:nth-child(2) .win-bar-fill {
    background: linear-gradient(90deg, #c0c0c0 0%, #95a5a6 100%);
}

.win-bar-item:nth-child(3) .win-bar-fill {
    background: linear-gradient(90deg, #cd7f32 0%, #d68910 100%);
}

.win-bar-item:nth-child(n+4) .win-bar-fill {
    background: linear-gradient(90deg, #74b9ff 0%, #0984e3 100%);
}

/* Mobile Responsiveness für Siege-Statistiken */
@media (max-width: 768px) {
    .win-bar-item {
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
    }
    
    .win-player-info {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .win-player-name {
        font-size: 1rem;
    }
    
    .win-player-stats {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .win-bar-container {
        height: 30px;
    }
}

/* ===== KOMPAKTE SIEGE-STATISTIKEN (Sidebar) ===== */

.win-bar-compact {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.win-bar-compact:hover {
    background: rgba(255, 255, 255, 0.15);
}

.win-player-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 120px;
    margin-right: 0.75rem;
}

.win-player-name-compact {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}

.win-player-name-compact:hover {
    color: #ffd700 !important;
    text-decoration: underline;
}

.win-count-compact {
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: #2c3e50;
}

/* Verschiedene Badge-Farben je nach Platzierung */
.win-bar-compact:nth-child(1) .win-count-compact {
    background: rgba(255, 215, 0, 0.9); /* Gold für 1. Platz */
}

.win-bar-compact:nth-child(2) .win-count-compact {
    background: rgba(192, 192, 192, 0.9); /* Silber für 2. Platz */
}

.win-bar-compact:nth-child(3) .win-count-compact {
    background: rgba(205, 127, 50, 0.9); /* Bronze für 3. Platz */
}

.win-bar-compact:nth-child(n+4) .win-count-compact {
    background: rgba(46, 204, 113, 0.9); /* Grün für weitere Plätze */
}

.win-games-info {
    margin-left: 0.5rem;
    font-size: 0.6rem;
    min-width: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.win-bar-container-compact {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.win-bar-compact-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
    animation: compactBarSlide 1.2s ease-out;
}

/* Verschiedene Farben je nach Platzierung */
.win-bar-compact:nth-child(1) .win-bar-compact-fill {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%); /* Gold für 1. Platz */
}

.win-bar-compact:nth-child(2) .win-bar-compact-fill {
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 100%); /* Silber für 2. Platz */
}

.win-bar-compact:nth-child(3) .win-bar-compact-fill {
    background: linear-gradient(90deg, #cd7f32 0%, #deb887 100%); /* Bronze für 3. Platz */
}

.win-bar-compact:nth-child(n+4) .win-bar-compact-fill {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%); /* Grün für weitere Plätze */
}

@keyframes compactBarSlide {
    0% {
        width: 0% !important;
    }
    100% {
        /* Width wird durch Inline-Style gesetzt */
    }
}

/* Mobile Anpassungen für kompakte Siege-Statistiken */
@media (max-width: 768px) {
    .win-player-compact {
        min-width: 100px;
        margin-right: 0.5rem;
    }
    
    .win-player-name-compact {
        font-size: 0.7rem;
    }
    
    .win-count-compact {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .win-bar-container-compact {
        height: 10px;
    }
}