/* assets/css/index.css */

/* --- BESTEHENDE STYLES (HOME & WIDGETS) --- */

/* Home Grid */
.home-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 20px; width: 100%; }
.stats-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }

/* Hero */
.hero-small { padding: 40px 0; text-align: center; background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08), transparent 70%); margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.hero-small h1 { font-size: 36px; margin-bottom: 8px; font-weight: 700; color: #fff; letter-spacing: -0.5px; } /* Kanit Anpassung */
.hero-small p { font-size: 15px; color: var(--text-muted); margin: 0; font-weight: 300; } /* Light font für Untertitel */

/* Match Row */
.match-modern-row { display: grid; grid-template-columns: 80px 1fr 100px 1fr; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border); color: #fff; text-decoration: none; transition: background 0.2s; background: var(--bg-card); gap: 10px; }
.match-modern-row:hover { background: rgba(255,255,255,0.05); }
.mm-date { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.mm-team { display: flex; align-items: center; font-weight: 600; } /* Fetter für Teamnamen */
.mm-team.home { justify-content: flex-end; }
.mm-team.away { justify-content: flex-start; }
/* Score behält monospace Optik, aber wir nutzen Kanit Zahlen (die sind monospaced-ähnlich genug oder wir lassen es so) */
.mm-score { font-weight: 700; font-size: 18px; text-align: center; background: rgba(0,0,0,0.3); padding: 5px 0; border-radius: 6px; width: 100%; letter-spacing: 1px; } 
.mm-vs { font-size: 11px; color: var(--text-muted); text-align: center; font-weight: bold; }

/* Widgets */
.stat-widget { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.stat-header { background: rgba(0,0,0,0.2); padding: 15px 20px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; align-items: center; font-size: 13px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; }
.player-stat-row { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.ps-rank { width: 30px; font-size: 16px; font-weight: 700; color: var(--text-muted); opacity: 0.5; }
.ps-info { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.ps-name { font-weight: 600; font-size: 14px; color: #fff; }
.ps-val { font-size: 20px; font-weight: 700; color: #fff; text-align: right; min-width: 40px; }

/* Badges */
.team-badge { width: 120px; display: inline-flex; justify-content: center; align-items: center; padding: 4px 6px; border-radius: 4px; font-weight: 600; font-size: 10px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.3px; }


/* --- NEUE TABELLEN STYLES --- */

/* Card Wrapper */
.card, .standings-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Tabellen Basis */
.standings-table, .standings-full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Header Zeile */
.standings-table th, .standings-full-table th {
    background: rgba(0,0,0,0.2);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    padding: 15px 10px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.8px; /* Mehr spacing für Kanit Caps */
    text-align: inherit;
}

/* Zellen Styles */
.standings-table td, .standings-full-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    vertical-align: middle;
    font-weight: 400;
}

.standings-table tr:last-child td, .standings-full-table tr:last-child td {
    border-bottom: none;
}

/* Zeilen-Hervorhebung */
.row-champ { background: rgba(16, 185, 129, 0.15); } 
.row-top { background: rgba(16, 185, 129, 0.05); }    
.row-barrage { background: rgba(220, 38, 38, 0.12) !important; } 
.row-rel { background: rgba(220, 38, 38, 0.25) !important; }     
.row-champ td:first-child { border-left: 3px solid var(--primary); }
.row-rel td:first-child { border-left: 3px solid var(--danger); }


/* Spalten-Spezifisches Design */

/* Rang (#) */
.rank-col, .rank-cell { 
    font-weight: 600; 
    color: var(--text-muted); 
    width: 40px; 
    text-align: center; 
}
.rank-1 { color: var(--primary); font-weight: 800; }
.rank-11 { color: #f87171; }
.rank-12 { color: var(--danger); }

/* Team Name & Link */
.team-col, .team-cell { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 500; 
    font-size: 14px; 
    text-decoration: none;
    color: #fff;
}
.team-col:hover, .team-cell:hover { color: var(--primary); opacity: 0.9; }
.team-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Punkte (PKT) */
.points-col, .points-cell { 
    font-weight: 700; 
    color: #fff; 
    font-size: 14px; 
    text-align: center; 
    background: rgba(255,255,255,0.05); 
    border-radius: 6px; 
    padding: 4px 8px;
    display: inline-block;
    min-width: 30px;
}

/* Team Farben Quadrat */
.team-square, .legend-box { 
    width: 14px; height: 14px; 
    display: inline-block; 
    margin-right: 10px; 
    border-radius: 3px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.5); 
}

/* Form Beads */
.form-beads { display: flex; gap: 3px; justify-content: flex-end; }
.bead { width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,0.6); }
.bead.win { background: var(--primary); }
.bead.draw { background: #64748b; color: #fff; }
.bead.lose { background: var(--danger); color: #fff; opacity: 0.9; }


/* Responsive Utilities */
@media (max-width: 900px) {
    .match-modern-row { grid-template-columns: 50px 1fr 60px 1fr; padding: 12px 5px; gap: 5px; }
    .team-badge { width: 100%; max-width: 90px; font-size: 9px; }
    .stats-grid-2col { grid-template-columns: 1fr; }
    
    .standings-table th, .standings-table td { padding: 10px 5px; }
    .hide-mobile { display: none; }
    .team-name-text { max-width: 120px; font-size: 13px; }
}