/* Theme System */
:root {
  --bg: #0d0f12;
  --panel: #131720;
  --muted: #9aa4b2;
  --text: #e6edf3;
  --accent: #2ea043;
  --accent2: #58a6ff;
  --warn: #f0883e;
  --danger: #ff6b6b;
  --border: #1d2742;
  --hover: #1f2a45;
}

/* Light Theme */
body.light-theme {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --muted: #495057;
  --text: #212529;
  --accent: #28a745;
  --accent2: #0056b3;
  --warn: #e67e22;
  --danger: #c82333;
  --border: #ced4da;
  --hover: #f8f9fa;
}

/* Smooth transitions for theme changes */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.app-header, .card, .panel, .league-table, .stat-card, .attribute-card, .training-card, .todo-item, .league-item, .fixture, .matchday {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Light Theme Overrides */
body.light-theme .league-table th { background: #e9ecef; color: var(--text); border-bottom: 2px solid var(--border); }
body.light-theme .league-table td { border-bottom: 1px solid var(--border); }
body.light-theme .league-table tr:hover td { background: #f8f9fa; }
body.light-theme .league-table tr.player-row td { background: #e3f2fd; font-weight: 600; }

body.light-theme .league-item { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
body.light-theme .league-item:hover { 
  background: var(--hover); 
  border-color: var(--accent2); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
body.light-theme .league-item.current { 
  background: #e8f5e9; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 1px var(--accent);
}
body.light-theme .league-item.viewing { 
  border-color: var(--accent2); 
  background: #e3f2fd; 
  box-shadow: 0 0 0 1px var(--accent2);
}
body.light-theme .league-item.current.level-1, 
body.light-theme .league-item.current.level-2, 
body.light-theme .league-item.current.level-3, 
body.light-theme .league-item.current.level-4 { 
  background: #e8f5e9; 
}

body.light-theme .stat-card, body.light-theme .attribute-card, body.light-theme .player-info, 
body.light-theme .venue-card, body.light-theme .upgrade-item { 
  background: var(--panel); 
  border: 1px solid var(--border); 
}
body.light-theme .stat-card:hover, body.light-theme .attribute-card:hover { 
  background: var(--hover); 
  border-color: var(--accent2); 
}

body.light-theme .fixture, body.light-theme .upcoming-fixture, 
body.light-theme .matchday, body.light-theme .league-status { 
  background: var(--panel); 
  border: 1px solid var(--border); 
}
body.light-theme .fixture.player-match { background: #e3f2fd; border-color: var(--accent2); }
body.light-theme .upcoming-fixture.home-game { background: #e8f5e9; border-color: var(--accent); }
body.light-theme .upcoming-fixture.away-game { background: #fff3e0; border-color: var(--warn); }

body.light-theme .progress-bar { background: #e9ecef; }
body.light-theme .attribute-bar { background: #e9ecef; }
body.light-theme .fixture .score { background: #e9ecef; }

body.light-theme .nav-arrow, body.light-theme .matchday-selector select { 
  background: var(--panel); 
  border: 1px solid var(--border); 
}
body.light-theme .nav-arrow:hover { background: var(--hover); }

body.light-theme .info-row { border-bottom: 1px solid var(--border); }
body.light-theme .stat-row { border-bottom: 1px solid var(--border); }

body.light-theme .position-1 { background: #ffc107; color: #000; }
body.light-theme .position-2 { background: #9e9e9e; color: #fff; }
body.light-theme .position-3 { background: #795548; color: #fff; }
body.light-theme .position-promotion { background: var(--accent); color: #fff; }
body.light-theme .position-relegation { background: var(--danger); color: #fff; }

body.light-theme .match-win { background: var(--accent); color: #fff; }
body.light-theme .match-loss { background: var(--danger); color: #fff; }
body.light-theme .fixture .score.home-win { background: var(--accent); color: #fff; }
body.light-theme .fixture .score.away-win { background: var(--danger); color: #fff; }

body.light-theme .current-indicator { background: var(--accent); color: #fff; }
body.light-theme .home-bonus { background: #c8e6c9; color: #1b5e20; }

body.light-theme input, body.light-theme select, body.light-theme textarea { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  color: var(--text); 
}

body.light-theme .card, body.light-theme .panel { 
  background: var(--panel); 
  border: 1px solid var(--border); 
}

body.light-theme .app-header { border-bottom: 1px solid var(--border); }
body.light-theme .app-footer { border-top: 1px solid var(--border); }

body.light-theme .match-log { background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .table tr:hover { background: #f8f9fa; }
body.light-theme .table th, body.light-theme .table td { border-bottom: 1px solid var(--border); }

/* ToDo System Light Theme */
body.light-theme .todo-header { background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%); border: 1px solid var(--border); }
body.light-theme .todo-add-section { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .todo-item { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .todo-item:hover { border-color: var(--accent2); }
body.light-theme .form-group input, 
body.light-theme .form-group textarea, 
body.light-theme .form-group select { background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .action-btn { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .action-btn:hover { border-color: var(--accent2); background: var(--hover); }
body.light-theme .todo-priority { background: #e3f2fd; border-left: 4px solid var(--warn); }

/* Career & Player Profile Light Theme */
body.light-theme .career-hero { background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 50%, #e3f2fd 100%); border: 1px solid var(--border); }
body.light-theme .career-hero::before { 
  background: radial-gradient(circle at 30% 20%, rgba(0, 86, 179, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(232, 126, 34, 0.08) 0%, transparent 50%);
}
body.light-theme .welcome-section { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .feature-item { background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .feature-item:hover { background: var(--panel); border-color: var(--accent2); }
body.light-theme .player-dashboard { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .dashboard-stats .stat-card { background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .dashboard-stats .stat-card:hover { background: var(--panel); border-color: var(--accent2); }
body.light-theme .dashboard-stats .stat-icon { background: #e9ecef; border: 1px solid var(--border); }
body.light-theme .quick-actions { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .tip-card { background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .tip-card:hover { background: var(--panel); border-color: var(--accent2); }
body.light-theme .tip-icon { background: #e9ecef; border: 1px solid var(--border); }
body.light-theme .player-profile { background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%); border: 1px solid var(--border); }
body.light-theme .avatar-circle { border: 4px solid rgba(0, 0, 0, 0.1); }
body.light-theme .stat-item { background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .stat-item:hover { background: var(--panel); border-color: var(--accent2); }
body.light-theme .stat-icon { background: #e9ecef; border: 1px solid var(--border); }
body.light-theme .attribute-icon { background: #e9ecef; border: 1px solid var(--border); }
body.light-theme .performance-icon { background: #e9ecef; border: 1px solid var(--border); }
body.light-theme .performance-card { background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .performance-card:hover { background: var(--panel); border-color: var(--accent2); }

/* Training Cards Light Theme */
body.light-theme .training-card { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .training-card:hover { background: var(--hover); border-color: var(--accent2); }

/* Additional Light Theme Fixes für bessere Kontraste */
body.light-theme .btn { background: var(--accent); color: #fff; }
body.light-theme .btn.secondary { background: #6c757d; color: #fff; }
body.light-theme .btn.warning { background: var(--warn); color: #fff; }
body.light-theme .btn.danger { background: var(--danger); color: #fff; }
body.light-theme .upgrade-btn { background: var(--accent); color: #fff; }
body.light-theme .upgrade-btn:hover { background: #218838; color: #fff; }
body.light-theme .upgrade-btn:disabled { background: #adb5bd; color: #6c757d; }

body.light-theme .kpi .pill { background: #e9ecef; border: 1px solid var(--border); color: var(--text); }

/* Player Profile & Career mit besseren Kontrasten */
body.light-theme .player-name { 
  background: linear-gradient(45deg, #0056b3, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-theme .hero-title { 
  background: linear-gradient(45deg, #0056b3, #e67e22, #28a745);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-theme .level-badge { background: var(--accent2); color: #fff; border: 2px solid #fff; }
body.light-theme .skill-bar { background: #e9ecef; border: 1px solid var(--border); }
body.light-theme .skill-fill { background: var(--accent2); }
body.light-theme .skill-value { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
body.light-theme .attribute-value { color: var(--accent2); }
body.light-theme .performance-value { color: var(--accent2); }

/* ToDo Text-Kontraste */
body.light-theme .todo-header h2 {
  background: linear-gradient(135deg, #0056b3 0%, #28a745 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-theme .todo-header p { color: var(--muted); }
body.light-theme .todo-title { color: var(--text); }
body.light-theme .todo-description { color: var(--muted); }
body.light-theme .priority-text { color: var(--text); }
body.light-theme .todo-date { color: var(--muted); }
body.light-theme .todo-completed { color: var(--accent); }
body.light-theme .empty-state { color: var(--muted); }
body.light-theme .empty-state p { color: var(--muted); }

/* Buttons & Actions mit besseren Kontrasten */
body.light-theme .start-career-btn { background: linear-gradient(135deg, #007bff 0%, #28a745 100%); color: #fff; border: 2px solid transparent; }
body.light-theme .start-career-btn:hover { background: linear-gradient(135deg, #0056b3 0%, #218838 100%); }
body.light-theme .add-todo-btn { background: linear-gradient(135deg, #007bff 0%, #28a745 100%); color: #fff; }
body.light-theme .add-todo-btn:hover { background: linear-gradient(135deg, #0056b3 0%, #218838 100%); }

/* Text-Farben für alle Überschriften */
body.light-theme h1, body.light-theme h2, body.light-theme h3, 
body.light-theme h4, body.light-theme h5, body.light-theme h6 { color: var(--text); }
body.light-theme .league-title { color: var(--text); }
body.light-theme .league-subtitle { color: var(--muted); }
body.light-theme .stat-title { color: var(--muted); }
body.light-theme .stat-value { color: var(--text); }
body.light-theme .stat-label { color: var(--muted); }
body.light-theme .info-label { color: var(--muted); }
body.light-theme .info-value { color: var(--text); }
body.light-theme .attribute-title { color: var(--text); }
body.light-theme .attribute-description { color: var(--muted); }
body.light-theme .performance-title { color: var(--text); }
body.light-theme .performance-description { color: var(--muted); }
body.light-theme .training-attribute { color: var(--accent); }
body.light-theme .training-description { color: var(--muted); }
body.light-theme .training-cost { color: var(--warn); }

/* Muted Text überall sichtbar machen */
body.light-theme .muted, body.light-theme .team-avg, 
body.light-theme .fixture-matchday, body.light-theme .home-away-text { color: var(--muted); }

/* Section Titles */
body.light-theme .section-title { color: var(--muted); }
body.light-theme .stats-subtitle { color: var(--muted); }
body.light-theme .hero-subtitle { color: var(--muted); }
body.light-theme .player-title { color: var(--muted); }
body.light-theme .btn-subtitle { color: rgba(255, 255, 255, 0.9); }

/* Feature & Welcome Text */
body.light-theme .feature-content h3 { color: var(--text); }
body.light-theme .feature-content p { color: var(--muted); }
body.light-theme .welcome-section h2 { color: var(--text); }
body.light-theme .welcome-section p { color: var(--muted); }
body.light-theme .tip-content h4 { color: var(--text); }
body.light-theme .tip-content p { color: var(--muted); }

/* Dashboard */
body.light-theme .dashboard-header .player-name { 
  background: linear-gradient(45deg, #0056b3, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-theme .dashboard-header .player-title { color: var(--muted); }
body.light-theme .dashboard-header .player-league { color: var(--accent2); }

/* Quick Actions */
body.light-theme .quick-actions .action-btn { color: var(--text); background: #f8f9fa; border: 1px solid var(--border); }
body.light-theme .quick-actions .action-btn:hover { background: var(--panel); border-color: var(--accent2); }
body.light-theme .action-icon { background: #e9ecef; border: 1px solid var(--border); }
body.light-theme .action-title { color: var(--text); }
body.light-theme .action-desc { color: var(--muted); }

/* Tips Section */
body.light-theme .tips-section { background: var(--panel); border: 1px solid var(--border); }
body.light-theme .tips-section h3 { color: var(--text); }

/* League Overview */
body.light-theme .league-overview { background: transparent; }
body.light-theme .league-overview h3 { color: var(--text); }
body.light-theme .league-name { color: var(--text); }
body.light-theme .league-teams { color: var(--muted); }
body.light-theme .view-indicator { color: var(--muted); }
body.light-theme .viewing-indicator { color: var(--accent2); }

/* Next Matchday & Finish Season Buttons */
.btn-next-matchday,
.btn-finish-season {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #4a9eff 0%, #29b35b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-next-matchday::before,
.btn-finish-season::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-next-matchday:hover::before,
.btn-finish-season:hover::before {
  left: 100%;
}

.btn-next-matchday:hover,
.btn-finish-season:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.btn-next-matchday:active,
.btn-finish-season:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.btn-next-matchday:disabled {
  background: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.btn-next-matchday:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-finish-season {
  background: linear-gradient(135deg, #f0c24b 0%, #ff6b35 100%);
  box-shadow: 0 4px 12px rgba(240, 194, 75, 0.3);
}

.btn-finish-season:hover {
  box-shadow: 0 6px 20px rgba(240, 194, 75, 0.4);
}

.btn-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Light Theme Button Overrides */
body.light-theme .btn-next-matchday,
body.light-theme .btn-finish-season {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.light-theme .btn-next-matchday:hover,
body.light-theme .btn-finish-season:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

body.light-theme .btn-next-matchday:disabled {
  background: #adb5bd;
  color: #6c757d;
}

/* Form Labels */
body.light-theme .form-group label { color: var(--text); }
body.light-theme .training-info { color: var(--muted); }

/* FAQ System Styles */
.faq-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border-radius: 12px;
  border: 1px solid #4a5568;
}

.faq-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: var(--text);
}

.faq-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.faq-sections {
  display: grid;
  gap: 24px;
}

.faq-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.faq-section:hover {
  border-color: var(--accent2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: -24px -24px 0 -24px;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.faq-question:hover {
  background: rgba(74, 158, 255, 0.1);
}

.faq-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.faq-question h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  flex: 1;
}

.faq-toggle {
  font-size: 20px;
  color: var(--accent2);
  font-weight: bold;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-section.faq-active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  color: var(--text);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-section.faq-active .faq-answer {
  max-height: 3000px;
  opacity: 1;
  padding: 24px;
  margin-top: 16px;
}

.faq-answer p {
  margin: 12px 0;
  color: var(--text);
}

.faq-formula,
.faq-example,
.faq-tip,
.faq-note,
.faq-attributes {
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--accent2);
}

.faq-formula {
  background: rgba(74, 158, 255, 0.1);
  border-left-color: var(--accent2);
}

.faq-example {
  background: rgba(41, 179, 91, 0.1);
  border-left-color: var(--accent);
}

.faq-tip {
  background: rgba(240, 194, 75, 0.1);
  border-left-color: #f0c24b;
}

.faq-note {
  background: rgba(240, 136, 62, 0.1);
  border-left-color: var(--warn);
}

.faq-attributes {
  background: rgba(138, 43, 226, 0.1);
  border-left-color: #8a2be2;
}

.formula-title,
.example-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-answer code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, Consolas, Monaco, monospace;
  font-size: 14px;
  color: var(--accent2);
  display: inline-block;
  margin: 4px 0;
}

.attribute-explanation {
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: var(--text);
}

/* Light Theme FAQ */
body.light-theme .faq-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
  border: 1px solid var(--border);
}

body.light-theme .faq-section {
  background: var(--panel);
  border: 1px solid var(--border);
}

body.light-theme .faq-section:hover {
  border-color: var(--accent2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .faq-question {
  border-bottom: 2px solid var(--border);
}

body.light-theme .faq-question:hover {
  background: rgba(0, 123, 255, 0.08);
}

body.light-theme .faq-toggle {
  color: var(--accent2);
}

body.light-theme .faq-formula {
  background: rgba(0, 123, 255, 0.08);
}

body.light-theme .faq-example {
  background: rgba(40, 167, 69, 0.08);
}

body.light-theme .faq-tip {
  background: rgba(255, 193, 7, 0.1);
}

body.light-theme .faq-note {
  background: rgba(253, 126, 20, 0.1);
}

body.light-theme .faq-attributes {
  background: rgba(138, 43, 226, 0.08);
}

body.light-theme .faq-answer code {
  background: rgba(0, 0, 0, 0.08);
  color: var(--accent2);
}

body.light-theme .attribute-explanation {
  background: rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.modal-box {
  background: #131a2a;
  border: 1px solid #1f2a45;
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  color: var(--text);
  flex: 1;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.modal-close-btn:hover {
  background: var(--hover);
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-content {
  max-height: calc(90vh - 150px);
  overflow-y: auto;
}

.modal-box p {
  color: var(--text);
  margin: 8px 0;
}

.modal-box strong {
  color: var(--accent);
}

/* Player Average Färbung im Modal */
.modal-box .player-avg-won {
  color: white;
  font-weight: 700;
  background: rgba(46, 160, 67, 0.8);
  padding: 3px 10px;
  border-radius: 4px;
}

.modal-box .player-avg-lost {
  color: white;
  font-weight: 700;
  background: rgba(255, 107, 107, 0.8);
  padding: 3px 10px;
  border-radius: 4px;
}

/* Light Theme Modal */
body.light-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

body.light-theme .modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.light-theme .modal-header {
  border-bottom-color: var(--border);
}

body.light-theme .modal-box h3 {
  color: var(--text);
}

body.light-theme .modal-close-btn {
  color: var(--text);
}

body.light-theme .modal-close-btn:hover {
  background: var(--hover);
  color: var(--accent2);
}

body.light-theme .modal-box p {
  color: var(--text);
}

body.light-theme .modal-box strong {
  color: var(--accent2);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; background: var(--bg); color: var(--text); }
.app-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 12px 16px; 
  border-bottom: 1px solid var(--border); 
  background: var(--panel);
  position: relative;
  flex-wrap: wrap;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header h1 { 
  font-size: 18px; 
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Desktop: Navigation bleibt horizontal */
@media (min-width: 769px) {
  .app-header {
    flex-wrap: nowrap;
  }
  
  .app-header .header-left {
    flex: 0 1 auto;
    min-width: auto;
  }
  
  .app-header .header-right {
    flex: 0 0 auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    order: 3;
  }
  
  .nav {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;
    border: none;
    box-shadow: none;
    padding: 0;
    order: 2;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Theme-Button und Account-Menü auf Desktop sichtbar */
  .app-header .header-right .theme-toggle-btn {
    display: flex;
  }
  
  .app-header .header-right .account-menu {
    display: flex;
  }
}

.nav-btn { 
  background: var(--panel); 
  color: var(--text); 
  border: 1px solid var(--border); 
  padding: 6px 10px; 
  border-radius: 8px; 
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-btn:hover { 
  border-color: var(--accent); 
  background: var(--hover); 
}

.nav-btn:active {
  transform: scale(0.98);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  font-size: 18px;
  padding: 8px 10px;
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  transition: all 0.3s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}

.theme-toggle-btn:hover {
  background: var(--hover) !important;
  border-color: var(--accent2) !important;
  transform: scale(1.1);
}

/* New Career Button */
.new-career-btn {
  background: linear-gradient(135deg, #4a9eff 0%, #29b35b 100%) !important;
  color: white !important;
  border: 1px solid #4a9eff !important;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
  transition: all 0.3s ease;
}

.new-career-btn:hover {
  background: linear-gradient(135deg, #5aa8ff 0%, #3ac36b 100%) !important;
  border-color: #5aa8ff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}
.app { padding: 16px; }

/* Liga-spezifische Styles */
.league-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.league-title { font-size: 20px; font-weight: 700; margin: 0; }
.league-subtitle { color: var(--muted); font-size: 14px; margin: 4px 0 0 0; }
.league-actions { display: flex; gap: 8px; align-items: center; }

/* Liga-Übersicht Styles */
.league-overview { margin-bottom: 20px; }
.league-overview h3 { margin-bottom: 12px; color: var(--text); }
.league-list { display: flex !important; flex-direction: row !important; gap: 12px; flex-wrap: wrap; }
.league-item { flex: 1; min-width: 200px; background: var(--panel); border: 1px solid #1f2a45; border-radius: 8px; padding: 12px; cursor: pointer; transition: all 0.3s ease; }
.league-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.league-item.current { border-color: var(--accent); background: linear-gradient(135deg, var(--panel) 0%, rgba(41, 179, 91, 0.1) 100%); }
.league-item.viewing { border-color: #4a9eff; background: linear-gradient(135deg, var(--panel) 0%, rgba(74, 158, 255, 0.1) 100%); }
.league-info { display: flex; flex-direction: column; gap: 4px; }
.league-name { font-weight: 600; color: var(--text); }
.league-teams { font-size: 12px; color: var(--muted); }
.current-indicator { font-size: 11px; color: var(--accent); font-weight: 600; }
.viewing-indicator { font-size: 11px; color: #4a9eff; font-weight: 600; }
.view-indicator { font-size: 11px; color: var(--muted); }
.status-viewing { background: #4a9eff !important; }

.table-container { overflow-x: auto; margin: 16px 0; }
.league-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 8px; overflow: hidden; }
.league-table th { background: #1a2332; color: var(--text); font-weight: 600; padding: 12px 8px; text-align: left; border-bottom: 2px solid #243559; }
.league-table td { padding: 10px 8px; border-bottom: 1px solid #1f2a45; }
.league-table tr:hover td { background: #0f1729; }
.league-table tr.player-row td { background: #0e1b2f; font-weight: 600; }

/* Team cell with emblem */
.team-cell { display: inline-flex; align-items: center; gap: 8px; }
.team-emblem { flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); border-radius: 50%; }
.team-name { font-weight: 600; }
.team-skill { margin-left: 6px; color: var(--muted); font-size: 12px; }

.position-badge { display: inline-block; width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px; font-size: 12px; font-weight: 700; }
.position-1 { background: #f0c24b; color: #2d0505; }
.position-2 { background: #7a8aa0; color: var(--text); }
.position-3 { background: #8b4513; color: var(--text); }
.position-promotion { background: var(--accent); color: #05210f; }
.position-relegation { background: var(--danger); color: #2d0505; }

.match-result { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.match-win { background: var(--accent); color: #05210f; }
.match-loss { background: var(--danger); color: #2d0505; }

.season-progress { margin: 16px 0; }
.progress-bar { width: 100%; height: 8px; background: #1f2a45; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #29b35b); transition: width 0.3s ease; }

.league-status { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 8px 12px; background: #0e1530; border-radius: 8px; border: 1px solid #1f2a45; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; }
.status-active { background: var(--accent); }
.status-finished { background: var(--muted); }

.home-bonus { display: inline-block; padding: 2px 6px; background: #2d4a3e; color: #29b35b; border-radius: 4px; font-size: 11px; font-weight: 600; margin-left: 4px; }

/* Fixtures & Matchday Styles */
.fixtures-section { margin-top: 24px; }
.fixtures-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fixtures-section h3 { margin: 0; font-size: 18px; color: var(--text); }
.matchday-selector { display: flex; align-items: center; gap: 8px; }
.nav-arrow { background: #131a2a; color: var(--text); border: 1px solid #1f2a45; border-radius: 6px; padding: 6px 10px; font-size: 16px; font-weight: bold; cursor: pointer; min-width: 32px; }
.nav-arrow:hover { background: #1f2a45; border-color: var(--accent); }
.nav-arrow:disabled { opacity: 0.5; cursor: not-allowed; }
.matchday-selector select { background: #131a2a; color: var(--text); border: 1px solid #1f2a45; border-radius: 6px; padding: 6px 12px; font-size: 14px; }
.matchday-selector select:focus { outline: none; border-color: var(--accent); }
.fixtures-section h4 { margin: 0 0 8px 0; font-size: 14px; color: var(--muted); }
.matchday { margin-bottom: 16px; padding: 12px; background: #0e1530; border-radius: 8px; border: 1px solid #1f2a45; }
.fixtures-list { display: flex; flex-direction: column; gap: 6px; }
.fixture { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #131a2a; border-radius: 6px; border: 1px solid #1f2a45; }
.fixture.player-match { border-color: var(--accent); background: #0e1b2f; }
.fixture-team { display: flex; flex-direction: column; align-items: center; flex: 1; }
.fixture .team-name { font-weight: 500; margin-bottom: 2px; }
.fixture .team-avg { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Spieler-Average Färbung */
.fixture .team-avg.player-avg-won {
  color: var(--accent);
  font-weight: 700;
  background: rgba(46, 160, 67, 0.2);
  padding: 3px 10px;
  border-radius: 4px;
}

.fixture .team-avg.player-avg-lost {
  color: var(--danger);
  font-weight: 700;
  background: rgba(255, 107, 107, 0.2);
  padding: 3px 10px;
  border-radius: 4px;
}

.fixture .score { flex: 0 0 auto; margin: 0 12px; padding: 4px 8px; background: #1f2a45; border-radius: 4px; font-weight: 600; min-width: 50px; text-align: center; }
.fixture .winner { color: var(--accent); }
.fixture .score.home-win { background: var(--accent); color: #05210f; }
.fixture .score.away-win { background: var(--danger); color: #2d0505; }

/* Upcoming Fixtures Styles */
.upcoming-fixtures-section { margin-top: 24px; }
.upcoming-fixtures-section h3 { margin: 0 0 16px 0; font-size: 18px; color: var(--text); }
.upcoming-fixtures-list { display: flex; flex-direction: column; gap: 8px; }
.upcoming-fixture { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #131a2a; border-radius: 8px; border: 1px solid #1f2a45; }
.upcoming-fixture.home-game { border-color: var(--accent); background: #0e1b2f; }
.upcoming-fixture.away-game { border-color: var(--warn); background: #1f1a0e; }
.fixture-info { display: flex; flex-direction: column; flex: 1; }
.fixture-matchday { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.fixture-opponent { font-size: 16px; font-weight: 600; color: var(--text); }
.fixture-details { display: flex; align-items: center; gap: 8px; }
.home-away-icon { font-size: 18px; }
.home-away-text { font-size: 14px; font-weight: 500; color: var(--muted); }

:root{--bg:#0d0f12;--panel:#131720;--muted:#9aa4b2;--text:#e6edf3;--accent:#2ea043;--accent2:#58a6ff;--warn:#f0883e;--danger:#ff6b6b}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}
.app-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--panel);border-bottom:1px solid #222}
.app-header h1{margin:0;font-size:20px;letter-spacing:.5px}
.top-nav{display:flex;gap:8px;flex-wrap:wrap}
.top-nav button{background:#1b2230;color:var(--text);border:1px solid #2a3445;border-radius:8px;padding:8px 10px;cursor:pointer}
.top-nav button:hover{border-color:var(--accent2)}
.top-nav button.active{background:linear-gradient(180deg,#1c2838,#162131);border-color:var(--accent2)}
#view{padding:16px;max-width:1100px;margin:0 auto}
.grid{display:grid;gap:12px}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:var(--panel);border:1px solid #222;border-radius:12px;padding:14px}
.card h3{margin:0 0 8px 0}
.stat{display:flex;justify-content:space-between;margin:6px 0}
.kpi{display:flex;gap:12px;flex-wrap:wrap}
.kpi .pill{background:#1a2130;border:1px solid #2c3445;border-radius:999px;padding:6px 10px;font-size:12px}
.btn{background:var(--accent);color:#08110a;border:none;border-radius:8px;padding:8px 12px;cursor:pointer}
.btn.secondary{background:#1b2230;color:var(--text);border:1px solid #2a3445}
.btn.warning{background:var(--warn);color:#1a1108}
.btn.danger{background:var(--danger);color:#160606}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #222;padding:8px;text-align:left;font-size:14px}
.table tr:hover{background:#141926}
.flex{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.grow{flex:1}
input,select{background:#0e141d;border:1px solid #2a3445;border-radius:8px;color:var(--text);padding:8px}
.app-footer{padding:10px 16px;border-top:1px solid #222;background:var(--panel)}
#statusBar{font-size:12px;color:var(--muted)}
.section-title{margin:8px 0 12px 0;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.1em}
.list{display:flex;flex-direction:column;gap:8px}
.match-log{max-height:280px;overflow:auto;background:#0f1520;border:1px solid #2a3445;border-radius:8px;padding:8px;font-family:ui-monospace,Consolas,Monaco,monospace;font-size:12px}

/* Spielstätte Styles */
.venue-info { margin-bottom: 24px; }
.venue-card { background: #131a2a; border: 1px solid #1f2a45; border-radius: 12px; padding: 20px; }
.venue-card h3 { margin: 0 0 16px 0; color: var(--accent); font-size: 20px; }
.venue-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1f2a45; }
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--muted); font-size: 14px; }
.stat-value { color: var(--text); font-weight: 600; font-size: 16px; }
.venue-actions { margin-top: 24px; }
.venue-actions h3 { margin: 0 0 16px 0; color: var(--text); font-size: 18px; }
.upgrade-list { display: flex; flex-direction: column; gap: 16px; }
.upgrade-item { display: flex; align-items: center; justify-content: space-between; background: #131a2a; border: 1px solid #1f2a45; border-radius: 8px; padding: 16px; }
.upgrade-info { flex: 1; }
.upgrade-info h4 { margin: 0 0 4px 0; color: var(--text); font-size: 16px; }
.upgrade-info p { margin: 0 0 8px 0; color: var(--muted); font-size: 14px; }
.upgrade-cost { color: var(--accent); font-weight: 600; font-size: 14px; }
.upgrade-btn { background: var(--accent); color: #08110a; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 600; cursor: pointer; min-width: 80px; }
.upgrade-btn:hover { background: #4ade80; }
.upgrade-btn:disabled { background: #2a3445; color: var(--muted); cursor: not-allowed; }

/* Liga-Übersicht Styles */
.league-overview { 
  margin: 20px 0; 
  display: block !important; 
  width: 100% !important;
}
.league-overview h3 { 
  margin: 0 0 12px 0; 
  font-size: 16px; 
  color: var(--text); 
}
.league-list { 
  display: flex !important; 
  flex-direction: row !important; 
  gap: 12px; 
  width: 100% !important;
  flex-wrap: wrap;
}
.league-item { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  padding: 12px 16px; 
  background: #131a2a; 
  border: 1px solid #1f2a45; 
  border-radius: 8px; 
  transition: all 0.2s ease; 
  flex: 1; 
  min-width: 200px;
  box-sizing: border-box;
}
.league-item:hover { background: #1a2332; border-color: #243559; }
.league-item.current { background: #0e1b2f; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.league-info { display: flex; flex-direction: column; align-items: center; text-align: center; }
.league-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.league-teams { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.current-indicator { background: var(--accent); color: #05210f; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Liga-Level spezifische Farben */
.league-item.level-1 { border-left: 4px solid #f0c24b; } /* 1. Bundesliga - Gold */
.league-item.level-2 { border-left: 4px solid #7a8aa0; } /* 2. Bundesliga - Silber */
.league-item.level-3 { border-left: 4px solid #8b4513; } /* Verbandsliga - Bronze */
.league-item.level-4 { border-left: 4px solid var(--accent); } /* Bezirksklasse - Grün */

.league-item.current.level-1 { background: linear-gradient(135deg, #0e1b2f 0%, #1a2332 100%); border-color: #f0c24b; }
.league-item.current.level-2 { background: linear-gradient(135deg, #0e1b2f 0%, #1a2332 100%); border-color: #7a8aa0; }
.league-item.current.level-3 { background: linear-gradient(135deg, #0e1b2f 0%, #1a2332 100%); border-color: #8b4513; }
.league-item.current.level-4 { background: linear-gradient(135deg, #0e1b2f 0%, #1a2332 100%); border-color: var(--accent); }

/* Erweiterte Stats-Seite Styles */
.stats-header { margin-bottom: 24px; text-align: center; }
.stats-header h2 { margin: 0 0 8px 0; font-size: 24px; color: var(--text); }
.stats-subtitle { margin: 0; color: var(--muted); font-size: 14px; }
.stats-section { margin-bottom: 32px; }
.stats-section h3 { margin: 0 0 16px 0; font-size: 18px; color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card { background: #131a2a; border: 1px solid #1f2a45; border-radius: 12px; padding: 16px; text-align: center; transition: all 0.2s ease; }
.stat-card:hover { background: #1a2332; border-color: #243559; transform: translateY(-2px); }
.stat-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; font-weight: 600; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text); }

/* Stat-Card spezifische Farben */
.stat-card.record { border-left: 4px solid var(--accent); }
.stat-card.winrate { border-left: 4px solid #29b35b; }
.stat-card.average { border-left: 4px solid #58a6ff; }
.stat-card.checkout { border-left: 4px solid #f0883e; }
.stat-card.checkout-detail { border-left: 4px solid #f0883e; }
.stat-card.debug { border-left: 4px solid #ff6b6b; background: #1a0e0e; }
.stat-card.darts { border-left: 4px solid #7a8aa0; }
.stat-card.points { border-left: 4px solid #f0c24b; }
.stat-card.money { border-left: 4px solid #8b4513; }
.stat-card.skill { border-left: 4px solid #ff6b6b; }
.stat-card.position { border-left: 4px solid #f0c24b; }
.stat-card.matches { border-left: 4px solid #58a6ff; }
.stat-card.wins { border-left: 4px solid #29b35b; }
.stat-card.legs { border-left: 4px solid #7a8aa0; }
.stat-card.positive { border-left: 4px solid #29b35b; }
.stat-card.negative { border-left: 4px solid #ff6b6b; }
.stat-card.points { border-left: 4px solid #f0c24b; }
.stat-card.total-matches { border-left: 4px solid #58a6ff; }
.stat-card.total-wins { border-left: 4px solid #29b35b; }
.stat-card.total-losses { border-left: 4px solid #ff6b6b; }
.stat-card.career-winrate { border-left: 4px solid #f0883e; }
.stat-card.current-league { border-left: 4px solid var(--accent); }
.stat-card.title { border-left: 4px solid #f0c24b; }

/* Spieler-Informationen */
.player-info { background: #131a2a; border: 1px solid #1f2a45; border-radius: 12px; padding: 20px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #1f2a45; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.info-value { color: var(--text); font-size: 16px; font-weight: 600; }

/* Attribute-System Styles */
.attributes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 16px; }
.attribute-card { background: #131a2a; border: 1px solid #1f2a45; border-radius: 12px; padding: 16px; transition: all 0.2s ease; }
.attribute-card:hover { background: #1a2332; border-color: #243559; transform: translateY(-2px); }
.attribute-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.attribute-title { font-size: 16px; font-weight: 600; color: var(--text); }
.attribute-value { font-size: 20px; font-weight: 700; color: var(--accent); }
.attribute-bar { width: 100%; height: 8px; background: #1f2a45; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.attribute-bar-fill { height: 100%; transition: width 0.3s ease; border-radius: 4px; }
.attribute-description { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* Attribute-spezifische Farben */
.attribute-card.scoring { border-left: 4px solid #58a6ff; }
.attribute-card.checkout { border-left: 4px solid #f0883e; }
.attribute-card.mental { border-left: 4px solid #ff6b6b; }
.attribute-card.experience { border-left: 4px solid #f0c24b; }

/* Mein Spieler Seite Styles */
.player-header { margin-bottom: 24px; text-align: center; }
.player-header h2 { margin: 0 0 16px 0; font-size: 24px; color: var(--text); }
.player-basic-info { background: #131a2a; border: 1px solid #1f2a45; border-radius: 12px; padding: 20px; }
.player-name { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.player-title { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.player-skill { font-size: 18px; font-weight: 600; color: var(--text); }

/* Abgeleitete Werte Stat-Cards */
.stat-card.scoring-avg { border-left: 4px solid #58a6ff; }
.stat-card.checkout-rate { border-left: 4px solid #f0883e; }
.stat-card.mental-stability { border-left: 4px solid #ff6b6b; }
.stat-card.experience-bonus { border-left: 4px solid #f0c24b; }

/* Training-System Styles */
.training-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.training-card { background: #131a2a; border: 1px solid #1f2a45; border-radius: 12px; padding: 16px; cursor: pointer; transition: all 0.2s ease; }
.training-card:hover { background: #1a2332; border-color: #243559; transform: translateY(-2px); }
.training-card-money { border-left: 3px solid #f0c24b; background: linear-gradient(135deg, #131a2a 0%, #1a1f2e 100%); }
.training-card-money:hover { border-color: #f0c24b; box-shadow: 0 4px 12px rgba(240, 194, 75, 0.2); }
.training-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.training-header h3 { margin: 0; font-size: 16px; color: var(--text); }
.training-attribute { font-size: 14px; color: var(--accent); font-weight: 600; }
.training-description { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 12px; }
.training-cost { font-size: 12px; color: var(--warn); font-weight: 600; }
.training-cost-money { color: #f0c24b; font-size: 13px; }
.training-info { text-align: center; padding-top: 16px; border-top: 1px solid #1f2a45; }

/* Energie-Regenerations-Leiste */
.energy-regen-container {
  margin: 20px auto 16px;
  max-width: 600px;
  background: rgba(19, 26, 42, 0.8);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #1f2a45;
}

.energy-regen-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.energy-regen-time {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

.energy-regen-bar-container {
  width: 100%;
  height: 20px;
  background: rgba(13, 15, 18, 0.6);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #243559;
  position: relative;
}

.energy-regen-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #3cb371 100%);
  border-radius: 10px;
  transition: width 1s linear;
  box-shadow: 0 0 10px rgba(46, 160, 67, 0.5);
  position: relative;
  overflow: hidden;
}

.energy-regen-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0) 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.energy-regen-bar-full {
  background: linear-gradient(90deg, #f0883e 0%, #ff6b6b 100%) !important;
  box-shadow: 0 0 10px rgba(240, 136, 62, 0.5) !important;
}

/* Light Theme */
body.light-theme .energy-regen-container {
  background: #f8f9fa;
  border: 1px solid var(--border);
}

body.light-theme .energy-regen-bar-container {
  background: #e9ecef;
  border: 1px solid var(--border);
}

/* Responsive Design für Stats */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 18px; }
  .info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .attributes-grid { grid-template-columns: 1fr; gap: 12px; }
  .attribute-card { padding: 12px; }
}

/* Player Profile Styles */
.player-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 16px;
  border: 1px solid #333;
}

.player-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.avatar-icon {
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.level-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: #ff6b35;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid #1a1a1a;
}

.player-details {
  flex: 1;
}

.player-name {
  font-size: 2.5em;
  font-weight: bold;
  margin: 0 0 8px 0;
  background: linear-gradient(45deg, #4a9eff, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.player-title {
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 20px;
  font-style: italic;
}

.skill-display {
  width: 100%;
}

.skill-label {
  color: #ccc;
  font-size: 0.9em;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-bar {
  position: relative;
  background: #333;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #444;
}

.skill-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.3s ease;
  position: relative;
}

.skill-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 0.9em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Player Stats Overview */
.player-stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: #222;
  border-color: #4a9eff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.1);
}

.stat-icon {
  font-size: 2em;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid #444;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  color: #ccc;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Attributes Section */
.attributes-section {
  margin-bottom: 32px;
}

.attributes-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5em;
  text-align: center;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.attribute-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.attribute-card:hover {
  background: #222;
  border-color: #4a9eff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.15);
}

.attribute-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.attribute-icon {
  font-size: 2em;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid #444;
}

.attribute-info {
  flex: 1;
}

.attribute-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.attribute-value {
  font-size: 1.8em;
  font-weight: bold;
  color: #4a9eff;
}

.attribute-bar {
  background: #333;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #444;
}

.attribute-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.attribute-description {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Performance Section */
.performance-section {
  margin-bottom: 32px;
}

.performance-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5em;
  text-align: center;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.performance-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  text-align: center;
}

.performance-card:hover {
  background: #222;
  border-color: #4a9eff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.15);
}

.performance-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.performance-icon {
  font-size: 2em;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid #444;
}

.performance-info {
  flex: 1;
  text-align: left;
}

.performance-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.performance-value {
  font-size: 1.6em;
  font-weight: bold;
  color: #4a9eff;
}

.performance-description {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Responsive Design für Training Page */
@media (max-width: 768px) {
  .training-resources {
    gap: 12px;
  }
  
  .resource-display {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .training-header-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  
  .training-header-section h2 {
    font-size: 22px;
  }
}

/* Responsive Design für Player Profile */
@media (max-width: 768px) {
  .player-profile {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .player-name {
    font-size: 2em;
  }
  
  .player-stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .attributes-grid,
  .performance-grid {
    grid-template-columns: 1fr;
  }
}

/* Career Page Styles */
.career-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.career-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: 20px;
  margin-bottom: 40px;
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
}
.hero-logo { margin-bottom: 16px; filter: drop-shadow(0 6px 18px rgba(74, 158, 255, 0.25)); }

.career-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4em;
  font-weight: bold;
  margin: 0 0 16px 0;
  background: linear-gradient(45deg, #4a9eff, #ff6b35, #29b35b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5em;
  color: #ccc;
  margin: 0 0 24px 0;
  font-weight: 300;
}

.hero-description {
  max-width: 600px;
  margin: 0 auto;
}

.hero-description p {
  font-size: 1.1em;
  color: #bbb;
  line-height: 1.6;
  margin: 0;
}

/* Welcome Section */
.welcome-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.welcome-section h2 {
  font-size: 2.5em;
  margin: 0 0 20px 0;
  color: #fff;
}

.welcome-section p {
  font-size: 1.2em;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 40px;
}

.game-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  background: #222;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #444;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #2a2a2a;
  border-color: #4a9eff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.15);
}

.feature-icon {
  font-size: 2.5em;
  flex-shrink: 0;
}

.feature-content h3 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 1.3em;
}

.feature-content p {
  margin: 0;
  color: #bbb;
  line-height: 1.5;
  font-size: 0.95em;
}

/* Start Section */
.start-section {
  text-align: center;
  margin-bottom: 40px;
}

.start-career-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #4a9eff 0%, #29b35b 100%);
  border: none;
  border-radius: 16px;
  padding: 24px 40px;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.3);
  border: 2px solid transparent;
}

.start-career-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 158, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  font-size: 2em;
}

.btn-content {
  text-align: left;
}

.btn-title {
  font-size: 1.3em;
  margin-bottom: 4px;
}

.btn-subtitle {
  font-size: 0.9em;
  opacity: 0.9;
  font-weight: normal;
}

/* Player Dashboard */
.player-dashboard {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-header .player-avatar {
  position: relative;
  flex-shrink: 0;
}

.dashboard-header .avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header .avatar-icon {
  font-size: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dashboard-header .level-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #ff6b35;
  color: white;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.7em;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid #1a1a1a;
}

.dashboard-header .player-info {
  flex: 1;
}

.dashboard-header .player-name {
  font-size: 2.2em;
  font-weight: bold;
  margin: 0 0 8px 0;
  background: linear-gradient(45deg, #4a9eff, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header .player-title {
  font-size: 1.1em;
  color: #ccc;
  margin-bottom: 8px;
  font-style: italic;
}

.dashboard-header .player-league {
  font-size: 1.1em;
  color: #4a9eff;
  font-weight: 600;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-stats .stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #222;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-stats .stat-card:hover {
  background: #2a2a2a;
  border-color: #4a9eff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.1);
}

.dashboard-stats .stat-icon {
  font-size: 2em;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 12px;
  border: 1px solid #555;
}

.dashboard-stats .stat-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dashboard-stats .stat-value {
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.dashboard-stats .stat-label {
  color: #ccc;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Quick Actions */
.quick-actions {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
}

.quick-actions h3 {
  color: #fff;
  margin: 0 0 24px 0;
  font-size: 1.8em;
  text-align: center;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #222;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.action-btn:hover {
  background: #2a2a2a;
  border-color: #4a9eff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.15);
}

.action-icon {
  font-size: 2.5em;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 12px;
  border: 1px solid #555;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
}

.action-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 4px;
  color: #fff;
}

.action-desc {
  font-size: 0.9em;
  color: #bbb;
  line-height: 1.4;
}

/* Tips Section */
.tips-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
}

.tips-section h3 {
  color: #fff;
  margin: 0 0 24px 0;
  font-size: 1.8em;
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #222;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.tip-card:hover {
  background: #2a2a2a;
  border-color: #4a9eff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.1);
}

.tip-icon {
  font-size: 2em;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 12px;
  border: 1px solid #555;
}

.tip-content h4 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 1.1em;
}

.tip-content p {
  margin: 0;
  color: #bbb;
  line-height: 1.5;
  font-size: 0.95em;
}

/* Responsive Design für Career Page */
@media (max-width: 768px) {
  .career-container {
    padding: 16px;
  }
  
  .hero-title {
    font-size: 2.5em;
  }
  
  .hero-subtitle {
    font-size: 1.2em;
  }
  
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .dashboard-stats .stat-card {
    padding: 16px;
    gap: 12px;
    min-width: 0;
  }
  
  .dashboard-stats .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    flex-shrink: 0;
  }
  
  .dashboard-stats .stat-value {
    font-size: 1.2em;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .dashboard-stats .stat-label {
    font-size: 0.8em;
  }
  
  .dashboard-stats .stat-content {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .game-features,
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .start-career-btn {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .btn-content {
    text-align: center;
  }
}

/* ToDo System Styles */
.todo-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border-radius: 12px;
  border: 1px solid #4a5568;
}

.todo-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  background: linear-gradient(135deg, #4a9eff 0%, #29b35b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.todo-header p {
  margin: 0;
  color: #a0aec0;
  font-size: 16px;
}

.todo-add-section {
  background: #1a2332;
  border: 1px solid #4a5568;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.todo-add-section h3 {
  margin: 0 0 20px 0;
  color: #e2e8f0;
  font-size: 20px;
}

.todo-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 8px;
  padding: 12px;
  color: #e2e8f0;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.add-todo-btn {
  background: linear-gradient(135deg, #4a9eff 0%, #29b35b 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.add-todo-btn:hover {
  background: linear-gradient(135deg, #5aa8ff 0%, #3ac36b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.btn-icon {
  font-size: 18px;
}

.todo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.todo-sections {
  display: grid;
  gap: 32px;
}

.todo-section h3 {
  margin: 0 0 16px 0;
  color: #e2e8f0;
  font-size: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4a5568;
}

.todo-list {
  display: grid;
  gap: 16px;
}

.todo-list.completed .todo-item {
  opacity: 0.7;
  background: #1a2332;
}

.todo-item {
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.todo-item:hover {
  border-color: #4a9eff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.todo-item.completed {
  border-left: 4px solid #29b35b;
}

.todo-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.todo-priority {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(74, 158, 255, 0.1);
  border-radius: 20px;
  border-left: 4px solid #ff9800;
  font-size: 12px;
  font-weight: 600;
}

.priority-icon {
  font-size: 14px;
}

.priority-text {
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.todo-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: transparent;
  border: 1px solid #4a5568;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  border-color: #4a9eff;
  background: rgba(74, 158, 255, 0.1);
}

.complete-btn:hover {
  border-color: #29b35b;
  background: rgba(41, 179, 91, 0.1);
}

.delete-btn:hover {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.todo-content {
  margin-bottom: 12px;
}

.todo-title {
  margin: 0 0 8px 0;
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 600;
}

.todo-description {
  margin: 0;
  color: #a0aec0;
  font-size: 14px;
  line-height: 1.5;
}

.todo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #718096;
  border-top: 1px solid #4a5568;
  padding-top: 12px;
}

.todo-date {
  color: #a0aec0;
}

.todo-completed {
  color: #29b35b;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #a0aec0;
}

.empty-state small {
  font-size: 14px;
  color: #718096;
}

/* ToDo Responsive */
@media (max-width: 768px) {
  .todo-stats { grid-template-columns: 1fr; }
  .todo-item-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .todo-actions { align-self: flex-end; }
  .todo-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .todo-form { gap: 12px; }
  .add-todo-btn { padding: 16px 24px; }
}

/* ===========================
   MATCH VIEWER STYLES
   =========================== */

.match-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.match-viewer-container {
  width: 95%;
  max-width: 1400px;
  height: 95vh;
  background: linear-gradient(135deg, #0d0f12 0%, #1a1f2e 100%);
  border-radius: 20px;
  border: 2px solid #2d3748;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.match-viewer-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border-bottom: 2px solid #4a5568;
}

.header-left,
.header-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-left {
  align-items: flex-start;
}

.header-right {
  align-items: flex-end;
}

.header-left h2,
.header-right h2 {
  margin: 0;
  font-size: 28px;
  color: #e2e8f0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-value {
  font-size: 20px;
  color: #4a9eff;
  font-weight: 700;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.legs-display {
  text-align: center;
}

.legs-score {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 48px;
  font-weight: 900;
  color: #e2e8f0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.legs-separator {
  color: #4a5568;
  font-weight: 400;
}

.legs-label {
  font-size: 14px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.match-mode {
  font-size: 12px;
  color: #4a9eff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 12px;
  display: inline-block;
}

/* Board */
.match-viewer-board {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, #131720 0%, #1a2332 100%);
  min-height: 0;
  align-items: stretch;
}

.board-left,
.board-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.remaining-display {
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border: 2px solid #4a5568;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.remaining-player-name {
  display: none;
}

.remaining-label {
  font-size: 12px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.remaining-value {
  font-size: 48px;
  font-weight: 900;
  color: #4a9eff;
  text-shadow: 0 2px 8px rgba(74, 158, 255, 0.4);
  transition: all 0.3s ease;
}

.remaining-value.checkout-range {
  color: #f0883e;
  text-shadow: 0 2px 8px rgba(240, 136, 62, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.player-indicator {
  background: rgba(74, 158, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  width: 100%;
  max-width: 200px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.player-indicator.active {
  opacity: 1;
  border-color: #4a9eff;
  background: rgba(74, 158, 255, 0.2);
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.indicator-arrow {
  font-size: 32px;
  color: #4a9eff;
  margin-bottom: 8px;
}

.indicator-text {
  font-size: 14px;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.board-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 0;
  flex: 1;
}

.dartboard-visual {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #1a1f2e 0%, #0d0f12 100%);
  border-radius: 50%;
  border: 8px solid #2d3748;
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dartboard-visual::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 9deg,
      rgba(74, 158, 255, 0.05) 9deg 18deg
    );
}

.dartboard-inner {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #2d3748 0%, #1a2332 100%);
  border-radius: 50%;
  border: 4px solid #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.bullseye {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #f0883e 0%, #d97706 100%);
  border-radius: 50%;
  border: 3px solid #4a9eff;
  box-shadow: 0 0 20px rgba(240, 136, 62, 0.6);
}

.last-throw {
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border: 2px solid #4a5568;
  border-radius: 16px;
  padding: 20px 32px;
  text-align: center;
  min-width: 200px;
  max-width: 280px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.throw-label {
  font-size: 12px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.throw-value {
  font-size: 42px;
  font-weight: 900;
  color: #e2e8f0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.throw-value.score-animation {
  animation: scorePopIn 0.5s ease;
}

@keyframes scorePopIn {
  0% { 
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% { 
    transform: scale(1);
    opacity: 1;
  }
}

.throw-value.high-score {
  color: #f0883e;
  text-shadow: 0 2px 8px rgba(240, 136, 62, 0.6);
}

.throw-value.bust-text {
  color: #ff6b6b;
  text-shadow: 0 2px 8px rgba(255, 107, 107, 0.6);
  font-weight: 900;
}

/* Ticker */
.match-viewer-ticker {
  background: linear-gradient(135deg, #0d0f12 0%, #1a2332 100%);
  border-top: 2px solid #4a5568;
  padding: 20px 32px;
  max-height: 250px;
  display: flex;
  flex-direction: column;
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ticker-header h3 {
  margin: 0;
  font-size: 18px;
  color: #e2e8f0;
  font-weight: 700;
}

.ticker-controls {
  display: flex;
  gap: 8px;
}

.speed-btn {
  background: rgba(74, 158, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.speed-btn:hover {
  border-color: #4a9eff;
  background: rgba(74, 158, 255, 0.2);
}

.speed-btn.active {
  border-color: #4a9eff;
  background: rgba(74, 158, 255, 0.3);
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
}

.ticker-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticker-content::-webkit-scrollbar {
  width: 6px;
}

.ticker-content::-webkit-scrollbar-track {
  background: #1a2332;
  border-radius: 3px;
}

.ticker-content::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 3px;
}

.ticker-content::-webkit-scrollbar-thumb:hover {
  background: #4a9eff;
}

.ticker-message {
  background: rgba(45, 55, 72, 0.5);
  border-left: 3px solid #4a5568;
  border-radius: 6px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.ticker-message.show {
  opacity: 1;
  transform: translateX(0);
}

.ticker-message.welcome {
  background: rgba(74, 158, 255, 0.15);
  border-left-color: #4a9eff;
  font-weight: 600;
  text-align: center;
}

.ticker-message.leg-start {
  background: rgba(74, 158, 255, 0.15);
  border-left-color: #4a9eff;
  font-weight: 600;
}

.ticker-message.visit {
  background: rgba(45, 55, 72, 0.5);
  border-left-color: #4a5568;
}

.ticker-message.checkout {
  background: rgba(240, 136, 62, 0.15);
  border-left-color: #f0883e;
  font-weight: 600;
}

.ticker-message.bust {
  background: rgba(255, 107, 107, 0.15);
  border-left-color: #ff6b6b;
}

.ticker-message.leg-win {
  background: rgba(41, 179, 91, 0.15);
  border-left-color: #29b35b;
  font-weight: 600;
}

.ticker-message.match-end {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(41, 179, 91, 0.2) 100%);
  border-left-color: #29b35b;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 16px;
}

/* Controls */
.match-viewer-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 32px;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border-top: 2px solid #4a5568;
}

.mv-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mv-btn-skip {
  background: linear-gradient(135deg, #4a9eff 0%, #7b68ee 100%);
  color: white;
}

.mv-btn-skip:hover {
  background: linear-gradient(135deg, #5aa8ff 0%, #8b78fe 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.mv-btn-close {
  background: linear-gradient(135deg, #29b35b 0%, #2ea043 100%);
  color: white;
}

.mv-btn-close:hover {
  background: linear-gradient(135deg, #3ac36b 0%, #3eb053 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 179, 91, 0.4);
}

.btn-icon {
  font-size: 20px;
}

/* Responsive - Tablet Landscape */
@media (max-width: 1200px) and (orientation: landscape) {
  .match-viewer-container {
    height: 100vh;
  }
  
  .match-viewer-header {
    padding: 16px 20px;
  }
  
  .match-viewer-board {
    padding: 20px;
  }
  
  .match-viewer-ticker {
    max-height: 150px;
  }
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
  .match-viewer-container {
    width: 98%;
    height: 98vh;
  }

  .match-viewer-header {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    padding: 20px 24px;
  }

  .header-left h2,
  .header-right h2 {
    font-size: 24px;
  }

  .stat-value {
    font-size: 18px;
  }

  .legs-score {
    font-size: 42px;
  }

  .match-viewer-board {
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    padding: 24px;
  }

  .dartboard-visual {
    width: 240px;
    height: 240px;
  }

  .dartboard-inner {
    width: 170px;
    height: 170px;
  }

  .bullseye {
    width: 50px;
    height: 50px;
  }

  .remaining-display {
    max-width: 180px;
    padding: 20px;
  }

  .remaining-value {
    font-size: 42px;
  }

  .throw-value {
    font-size: 36px;
  }

  .match-viewer-ticker {
    max-height: 200px;
    padding: 18px 24px;
  }
}

/* Mobile Optimierungen für Match Viewer */
@media (max-width: 768px) {
  .match-viewer-overlay {
    padding: 0;
    align-items: flex-start;
  }
  
  .match-viewer-container {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
  }
  
  .match-viewer-header {
    padding: 12px 16px;
    gap: 12px;
    flex-shrink: 0;
    grid-template-columns: 1fr;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .header-left,
  .header-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 10px;
  }
  
  .header-left h2,
  .header-right h2 {
    font-size: 18px;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .player-stats {
    gap: 12px;
    flex-shrink: 0;
  }
  
  .stat-item {
    gap: 3px;
    min-width: 50px;
  }
  
  .stat-label {
    font-size: 9px;
  }
  
  .stat-value {
    font-size: 16px;
  }
  
  .header-center {
    order: -1;
    width: 100%;
    margin-bottom: 8px;
    padding: 12px;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 10px;
  }
  
  .legs-display {
    width: 100%;
  }
  
  .legs-score {
    font-size: 36px;
    gap: 16px;
    justify-content: center;
    width: 100%;
  }
  
  .legs-label {
    font-size: 12px;
    margin-top: 4px;
  }
  
  .match-mode {
    font-size: 11px;
    margin-top: 6px;
    padding: 4px 10px;
  }
  
  .match-viewer-board {
    padding: 12px 16px;
    gap: 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }
  
  .board-left,
  .board-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(26, 35, 50, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(74, 85, 104, 0.3);
  }
  
  .remaining-display {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
  }
  
  .remaining-player-name {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #4a9eff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .remaining-label {
    font-size: 9px;
    margin-bottom: 4px;
  }
  
  .remaining-value {
    font-size: 28px;
    font-weight: 900;
  }
  
  .player-indicator {
    flex-shrink: 0;
    padding: 0;
    background: rgba(74, 158, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 4px;
    min-width: 0;
    width: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .player-indicator.active {
    background: rgba(74, 158, 255, 0.4);
    border-color: #4a9eff;
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.5);
  }
  
  .indicator-text {
    display: none;
  }
  
  .indicator-arrow {
    display: none;
  }
  
  .dartboard-visual {
    display: none;
  }
  
  .board-center {
    gap: 8px;
    order: -1;
    width: 100%;
    padding: 10px;
    background: rgba(26, 35, 50, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(74, 85, 104, 0.3);
  }
  
  .last-throw {
    padding: 12px 16px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  
  .throw-label {
    font-size: 9px;
    margin-bottom: 6px;
  }
  
  .throw-value {
    font-size: 32px;
    line-height: 1.1;
  }
  
  .match-viewer-ticker {
    max-height: 160px;
    padding: 12px 16px;
    flex-shrink: 0;
  }
  
  .ticker-header {
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .ticker-header h3 {
    font-size: 15px;
  }
  
  .speed-btn {
    padding: 6px 10px;
    font-size: 16px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .ticker-message {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
  }
  
  .match-viewer-controls {
    padding: 12px 16px;
    gap: 12px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .mv-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    justify-content: center;
    min-height: 48px;
  }
  
  .btn-icon {
    font-size: 18px;
  }
  
  .btn-text {
    font-size: 15px;
  }
}

/* Sehr kleine Handys */
@media (max-width: 480px) {
  .match-viewer-header {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .header-left,
  .header-right {
    padding: 6px 10px;
    gap: 12px;
  }
  
  .header-left h2,
  .header-right h2 {
    font-size: 16px;
  }
  
  .player-stats {
    gap: 10px;
  }
  
  .stat-item {
    gap: 2px;
    min-width: 45px;
  }
  
  .stat-label {
    font-size: 8px;
  }
  
  .stat-value {
    font-size: 14px;
  }
  
  .header-center {
    padding: 10px;
  }
  
  .legs-score {
    font-size: 32px;
    gap: 14px;
  }
  
  .legs-label {
    font-size: 11px;
  }
  
  .match-mode {
    font-size: 10px;
    margin-top: 4px;
    padding: 3px 8px;
  }
  
  .match-viewer-board {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .board-left,
  .board-right {
    gap: 10px;
    padding: 8px 10px;
  }
  
  .remaining-display {
    padding: 10px 6px;
  }
  
  .remaining-player-name {
    font-size: 10px;
    margin-bottom: 3px;
  }
  
  .remaining-label {
    font-size: 8px;
    margin-bottom: 3px;
  }
  
  .remaining-value {
    font-size: 24px;
  }
  
  .player-indicator {
    width: 6px;
    height: 38px;
  }
  
  .board-center {
    padding: 8px;
  }
  
  .last-throw {
    padding: 10px 14px;
  }
  
  .throw-label {
    font-size: 8px;
    margin-bottom: 5px;
  }
  
  .throw-value {
    font-size: 28px;
  }
  
  .match-viewer-ticker {
    max-height: 140px;
    padding: 10px 12px;
  }
  
  .ticker-header h3 {
    font-size: 13px;
  }
  
  .speed-btn {
    padding: 5px 8px;
    font-size: 14px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .ticker-message {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.3;
  }
  
  .match-viewer-controls {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .mv-btn {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .btn-icon {
    font-size: 16px;
  }
  
  .btn-text {
    font-size: 14px;
  }
}

/* Light Theme Overrides for Match Viewer */
body.light-theme .match-viewer-overlay {
  background: rgba(255, 255, 255, 0.95);
}

body.light-theme .match-viewer-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  border-color: #ced4da;
}

body.light-theme .match-viewer-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom-color: #ced4da;
}

body.light-theme .header-left h2,
body.light-theme .header-right h2 {
  color: #212529;
}

body.light-theme .stat-label,
body.light-theme .remaining-label,
body.light-theme .throw-label,
body.light-theme .legs-label {
  color: #6c757d;
}

body.light-theme .stat-value,
body.light-theme .remaining-value {
  color: #0056b3;
}

body.light-theme .legs-score {
  color: #212529;
}

body.light-theme .match-mode {
  color: #0056b3;
  background: rgba(0, 86, 179, 0.1);
  border-color: rgba(0, 86, 179, 0.3);
}

body.light-theme .match-viewer-board {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

body.light-theme .remaining-display {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-color: #ced4da;
}

body.light-theme .remaining-player-name {
  color: #0056b3;
}

body.light-theme .player-indicator {
  background: rgba(0, 86, 179, 0.1);
}

body.light-theme .player-indicator.active {
  border-color: #0056b3;
  background: rgba(0, 86, 179, 0.2);
  box-shadow: 0 0 20px rgba(0, 86, 179, 0.3);
}

/* Mobile: Nur farbliche Hervorhebung für Am Wurf Indikator */
@media (max-width: 768px) {
  body.light-theme .player-indicator {
    background: rgba(0, 86, 179, 0.1);
  }
  
  body.light-theme .player-indicator.active {
    background: rgba(0, 86, 179, 0.4);
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.5);
  }
}

body.light-theme .indicator-arrow {
  color: #0056b3;
}

body.light-theme .indicator-text {
  color: #212529;
}

body.light-theme .dartboard-visual {
  background: radial-gradient(circle, #dee2e6 0%, #adb5bd 100%);
  border-color: #6c757d;
}

body.light-theme .dartboard-inner {
  background: radial-gradient(circle, #f8f9fa 0%, #e9ecef 100%);
  border-color: #ced4da;
}

body.light-theme .last-throw {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-color: #ced4da;
}

body.light-theme .throw-value {
  color: #212529;
}

body.light-theme .throw-value.bust-text {
  color: #c82333;
  text-shadow: 0 2px 8px rgba(200, 35, 51, 0.4);
}

body.light-theme .match-viewer-ticker {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top-color: #ced4da;
}

body.light-theme .ticker-header h3 {
  color: #212529;
}

body.light-theme .speed-btn {
  background: rgba(0, 86, 179, 0.1);
}

body.light-theme .speed-btn:hover,
body.light-theme .speed-btn.active {
  border-color: #0056b3;
  background: rgba(0, 86, 179, 0.2);
}

body.light-theme .ticker-content::-webkit-scrollbar-track {
  background: #e9ecef;
}

body.light-theme .ticker-content::-webkit-scrollbar-thumb {
  background: #adb5bd;
}

body.light-theme .ticker-content::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

body.light-theme .ticker-message {
  background: rgba(233, 236, 239, 0.5);
  border-left-color: #ced4da;
  color: #212529;
}

body.light-theme .ticker-message.welcome,
body.light-theme .ticker-message.leg-start {
  background: rgba(0, 86, 179, 0.1);
  border-left-color: #0056b3;
}

body.light-theme .ticker-message.checkout {
  background: rgba(230, 126, 34, 0.1);
  border-left-color: #e67e22;
}

body.light-theme .ticker-message.bust {
  background: rgba(200, 35, 51, 0.1);
  border-left-color: #c82333;
}

body.light-theme .ticker-message.leg-win {
  background: rgba(40, 167, 69, 0.1);
  border-left-color: #28a745;
}

body.light-theme .ticker-message.match-end {
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.15) 0%, rgba(40, 167, 69, 0.15) 100%);
  border-left-color: #28a745;
}

body.light-theme .match-viewer-controls {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top-color: #ced4da;
}

/* ===========================
   MATCHDAY CHOICE DIALOG
   =========================== */

.matchday-choice-modal {
  text-align: center;
}

.matchday-choice-content {
  padding: 8px;
}

.matchday-choice-buttons {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.matchday-choice-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border: 2px solid #4a5568;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.matchday-choice-btn:hover {
  border-color: #4a9eff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3);
}

.matchday-choice-btn.live-btn:hover {
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border-color: #f0883e;
  box-shadow: 0 8px 24px rgba(240, 136, 62, 0.3);
}

.matchday-choice-btn.simulate-btn:hover {
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  border-color: #29b35b;
  box-shadow: 0 8px 24px rgba(41, 179, 91, 0.3);
}

.choice-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.choice-content {
  flex: 1;
}

.choice-title {
  font-size: 22px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.choice-desc {
  font-size: 14px;
  color: #a0aec0;
  line-height: 1.4;
}

.matchday-choice-cancel {
  background: transparent;
  border: 1px solid #4a5568;
  color: #a0aec0;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.matchday-choice-cancel:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* Light Theme */
body.light-theme .matchday-choice-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-color: #ced4da;
}

body.light-theme .matchday-choice-btn:hover {
  border-color: #0056b3;
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.2);
}

body.light-theme .matchday-choice-btn.live-btn:hover {
  border-color: #e67e22;
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.2);
}

body.light-theme .matchday-choice-btn.simulate-btn:hover {
  border-color: #28a745;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}

body.light-theme .choice-title {
  color: #212529;
}

body.light-theme .choice-desc {
  color: #6c757d;
}

body.light-theme .matchday-choice-cancel {
  border-color: #ced4da;
  color: #6c757d;
}

body.light-theme .matchday-choice-cancel:hover {
  border-color: #c82333;
  color: #c82333;
  background: rgba(200, 35, 51, 0.1);
}

/* Team Details Styles */
.team-row-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.team-row-clickable:hover td {
  background: var(--hover) !important;
}

.team-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, var(--hover) 0%, var(--panel) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.team-detail-emblem {
  flex-shrink: 0;
}

.team-detail-info {
  flex: 1;
}

.team-detail-name {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.team-detail-league {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--muted);
}

.team-detail-skill {
  margin: 0;
  font-size: 16px;
  color: var(--accent2);
  font-weight: 600;
}

.team-detail-section {
  margin-bottom: 25px;
}

.team-detail-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.team-stat-card {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.form-container {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.form-indicator {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.form-win {
  background: #29b35b;
}

.form-draw {
  background: #f0ad4e;
}

.form-loss {
  background: #ff6b6b;
}

.form-none {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.team-attributes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.attribute-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.attribute-label {
  min-width: 100px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.attribute-bar-container {
  flex: 1;
  height: 24px;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.attribute-bar-fill {
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent2) 0%, var(--accent) 100%);
}

.attribute-value {
  min-width: 40px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* Light Theme Overrides for Team Details */
body.light-theme .team-detail-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

body.light-theme .team-stat-card {
  background: #f8f9fa;
}

body.light-theme .attribute-bar-container {
  background: #e9ecef;
}

/* ===== SHOP SYSTEM ===== */
.shop-panel {
  max-width: 1200px;
  margin: 0 auto;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.shop-info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.player-money {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  padding: 8px 16px;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.shop-refresh-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.btn-shop-refresh {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-shop-refresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.shop-refresh-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text);
}

.refresh-icon {
  font-size: 20px;
}

.refresh-time {
  font-weight: 700;
  color: var(--accent2);
  min-width: 50px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.shop-item {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.shop-item-empty {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--muted);
  background: var(--hover);
}

.shop-item-empty:hover {
  transform: none;
  box-shadow: none;
}

.shop-empty-text {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
}

/* Rarity Colors */
.shop-item.rarity-common {
  border-color: #9aa4b2;
}

.shop-item.rarity-uncommon {
  border-color: #58a6ff;
}

.shop-item.rarity-rare {
  border-color: #a371f7;
}

.shop-item.rarity-epic {
  border-color: #f0883e;
}

.shop-item.rarity-legendary {
  border-color: #ffd700;
}

.shop-item.rarity-uncommon:hover {
  box-shadow: 0 8px 24px rgba(88, 166, 255, 0.3);
}

.shop-item.rarity-rare:hover {
  box-shadow: 0 8px 24px rgba(163, 113, 247, 0.3);
}

.shop-item.rarity-epic:hover {
  box-shadow: 0 8px 24px rgba(240, 136, 62, 0.3);
}

.shop-item.rarity-legendary:hover {
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.shop-item-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.shop-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shop-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.shop-item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.shop-item-rarity {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--hover);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-item.rarity-uncommon .shop-item-rarity {
  background: rgba(88, 166, 255, 0.2);
  color: #58a6ff;
}

.shop-item.rarity-rare .shop-item-rarity {
  background: rgba(163, 113, 247, 0.2);
  color: #a371f7;
}

.shop-item.rarity-epic .shop-item-rarity {
  background: rgba(240, 136, 62, 0.2);
  color: #f0883e;
}

.shop-item.rarity-legendary .shop-item-rarity {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.shop-item-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.shop-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.shop-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.btn-shop-buy {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-shop-buy:hover {
  background: var(--accent2);
  transform: scale(1.05);
}

.btn-shop-buy.disabled {
  background: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-shop-buy.disabled:hover {
  background: var(--muted);
  transform: none;
}

/* Inventar */
.shop-inventory-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}

.shop-inventory-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.inventory-item {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.inventory-item:hover {
  background: var(--panel);
  transform: translateX(4px);
}

.inventory-item-icon {
  font-size: 36px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
}

.inventory-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.inventory-item-info {
  flex: 1;
}

.inventory-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.inventory-item-desc {
  font-size: 13px;
  color: var(--muted);
}

.inventory-item-warning {
  font-size: 12px;
  color: var(--warn);
  margin-top: 4px;
  font-weight: 600;
}

.btn-inventory-use {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent2);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.btn-inventory-use:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.btn-inventory-use.disabled {
  background: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-inventory-use.disabled:hover {
  background: var(--muted);
  transform: none;
}

/* Notifications */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.notification {
  pointer-events: auto;
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 280px;
  max-width: 400px;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.hide {
  opacity: 0;
  transform: translateX(400px);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Notification Types */
.notification-success {
  border-left: 4px solid var(--accent);
  background: rgba(46, 160, 67, 0.1);
}

.notification-error {
  border-left: 4px solid var(--danger);
  background: rgba(255, 107, 107, 0.1);
}

.notification-warning {
  border-left: 4px solid var(--warn);
  background: rgba(240, 136, 62, 0.1);
}

.notification-info {
  border-left: 4px solid var(--accent2);
  background: rgba(88, 166, 255, 0.1);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  #notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification {
    min-width: auto;
    max-width: none;
    padding: 14px 16px;
  }
  
  .notification-message {
    font-size: 13px;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Training Header */
.training-panel {
  max-width: 1200px;
  margin: 0 auto;
}

.training-header-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.training-header-section h2 {
  margin: 0;
  font-size: 24px;
}

.training-resources {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.resource-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 16px;
}

.energy-display {
  background: var(--hover);
  color: var(--accent2);
}

.money-display {
  background: var(--hover);
  color: var(--accent);
}

.skill-display {
  background: var(--hover);
  color: var(--warn);
}

.resource-icon {
  font-size: 20px;
}

.money-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('img/money.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  border-radius: 2px;
}

/* Verschiedene Größen für verschiedene Verwendungen */
.stat-icon.money-icon {
  width: 48px;
  height: 48px;
  background-size: cover;
  border-radius: 4px;
}

.resource-icon.money-icon {
  width: 20px;
  height: 20px;
  background-size: cover;
  border-radius: 2px;
}

.player-money .money-icon {
  width: 16px;
  height: 16px;
  background-size: cover;
  margin-right: 4px;
  border-radius: 2px;
}

.shop-item-price .money-icon {
  width: 14px;
  height: 14px;
  background-size: cover;
  margin-right: 2px;
  border-radius: 1px;
}

/* Fallback für fehlende Bilder - zeige € Symbol */
.money-icon {
  position: relative;
}

.money-icon::after {
  content: "€";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  pointer-events: none;
  opacity: 0.9;
}

/* Wenn Bild geladen ist, verstecke das € Symbol */
.money-icon[style*="background-image"]::after {
  display: none;
}

/* CSS für img-Tags als Alternative */
.money-icon-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

/* Verschiedene Größen für img-Tags */
.stat-icon .money-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.resource-icon .money-icon-img {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.player-money .money-icon-img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

.shop-item-price .money-icon-img {
  width: 16px;
  height: 16px;
  border-radius: 1px;
}

.resource-value {
  min-width: 60px;
  text-align: right;
}

/* Light Theme Overrides for Training */
body.light-theme .energy-display,
body.light-theme .money-display {
  background: #e9ecef;
}

/* Light Theme Overrides for Shop */
body.light-theme .shop-item {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .shop-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.light-theme .inventory-item {
  background: #f8f9fa;
}

body.light-theme .inventory-item:hover {
  background: white;
}

body.light-theme .player-money {
  background: #e9ecef;
}

body.light-theme .shop-refresh-timer {
  background: #f8f9fa;
}

/* Klickbare Tabellen-Header */
.league-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s, color 0.2s;
}

.league-table th.sortable:hover {
  background-color: var(--hover);
  color: var(--accent2);
}

.league-table th.sortable:active {
  background-color: var(--accent2);
  color: white;
}

/* Sortier-Indikator (optional) */
.league-table th.sortable::after {
  content: ' ↕';
  opacity: 0.5;
  font-size: 12px;
  margin-left: 4px;
}

.league-table th.sortable:hover::after {
  opacity: 1;
  color: var(--accent2);
}

/* Light Theme für klickbare Header */
body.light-theme .league-table th.sortable:hover {
  background-color: #f8f9fa;
  color: #0056b3;
}

body.light-theme .league-table th.sortable:active {
  background-color: #0056b3;
  color: white;
}

body.light-theme .league-table th.sortable:hover::after {
  color: #0056b3;
}

/* Pokal-Modus Styles */
.pokal-panel {
  padding: 20px;
}

.pokal-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.pokal-info {
  margin-bottom: 20px;
  padding: 12px;
  background: var(--hover);
  border-radius: 8px;
}

.pokal-controls {
  margin-top: 16px;
}

.btn-pokal-init {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-pokal-init:hover {
  background: #239033;
}

.btn-pokal-init:active {
  background: #1e7a2a;
}

.pokal-section {
  margin-bottom: 32px;
}

.pokal-section h3 {
  margin-bottom: 16px;
  color: var(--accent2);
}

.pokal-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pokal-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background-color 0.2s;
}

.pokal-match:hover {
  background: var(--hover);
}

.pokal-match.player-match {
  background: rgba(46, 160, 67, 0.15);
  border-color: var(--accent);
}

.pokal-match .match-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.pokal-match .team {
  font-weight: 500;
}

.pokal-match .team.winner {
  color: var(--accent);
  font-weight: 700;
}

.pokal-match .team-with-avg {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.pokal-match .team-avg {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.pokal-match .score {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  min-width: 60px;
  text-align: center;
}

.pokal-freilose {
  margin-top: 16px;
  padding: 12px;
  background: var(--hover);
  border-radius: 6px;
  color: var(--muted);
}

.pokal-tree {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pokal-round {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pokal-round h4 {
  margin-bottom: 12px;
  color: var(--accent2);
  font-size: 18px;
}

.pokal-round .pokal-match {
  margin-bottom: 8px;
}

.pokal-finale {
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.1) 0%, rgba(88, 166, 255, 0.1) 100%);
  border-color: var(--accent);
}

.pokal-final-match {
  background: rgba(46, 160, 67, 0.2) !important;
  border: 2px solid var(--accent);
  padding: 16px;
  font-size: 18px;
}

.pokal-final-match .team {
  font-size: 20px;
}

.pokal-final-match .score {
  font-size: 24px;
}

/* Light Theme für Pokal */
body.light-theme .pokal-info {
  background: #f8f9fa;
}

body.light-theme .pokal-match {
  background: white;
  border-color: #dee2e6;
}

body.light-theme .pokal-match:hover {
  background: #f8f9fa;
}

body.light-theme .pokal-match.player-match {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
}

body.light-theme .pokal-freilose {
  background: #f8f9fa;
}

body.light-theme .pokal-round {
  background: white;
  border-color: #dee2e6;
}

body.light-theme .pokal-finale {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
  border-color: #28a745;
}

/* Noch nicht gespielte Pokalrunden */
.pokal-round.pokal-pending {
  opacity: 0.7;
  border-style: dashed;
  background: var(--panel);
}

.pokal-round.pokal-pending h4 {
  color: var(--muted);
}

.pokal-round.pokal-pending p {
  font-style: italic;
  margin-top: 8px;
}

body.light-theme .pokal-round.pokal-pending {
  background: #f8f9fa;
  border-color: #ced4da;
}

/* Aufklappbare Pokal-Runden */
.pokal-round-collapsible {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.pokal-round-header {
  width: 100%;
  padding: 12px 16px;
  background: var(--panel);
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.pokal-round-header:hover {
  background: var(--hover);
}

.pokal-round-chevron {
  font-size: 14px;
  color: var(--accent2);
  min-width: 20px;
  transition: transform 0.2s ease;
}

.pokal-round-title {
  flex: 1;
}

.pokal-round-content {
  padding: 16px;
  background: var(--panel);
}

.pokal-round-collapsible.expanded .pokal-round-header {
  border-bottom-color: var(--accent);
}

.pokal-round-collapsible[data-round-index="5"] {
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.1) 0%, rgba(88, 166, 255, 0.1) 100%);
  border-color: var(--accent);
}

body.light-theme .pokal-round-collapsible[data-round-index="5"] {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
  border-color: #28a745;
}

body.light-theme .pokal-round-collapsible {
  background: white;
  border-color: #dee2e6;
}

body.light-theme .pokal-round-header {
  background: white;
}

body.light-theme .pokal-round-header:hover {
  background: #f8f9fa;
}

body.light-theme .pokal-round-content {
  background: white;
}

/* Mobile Navigation - Responsive Design */
@media (max-width: 768px) {
  .app-header {
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .header-left {
    flex: 1;
    min-width: 0;
  }
  
  .app-header h1 {
    font-size: 16px;
    flex: 1;
    min-width: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }
  
  .nav.active {
    max-height: 600px;
    opacity: 1;
    overflow-y: auto;
  }
  
  .nav-btn {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    border-radius: 6px;
    margin-bottom: 4px;
  }
  
  .nav-btn:last-child {
    margin-bottom: 0;
  }
  
  .header-right {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .theme-toggle-btn {
    padding: 8px 10px;
    font-size: 20px;
    min-height: 40px;
  }
  
  /* Account Menu auf Mobile immer sichtbar */
  .account-menu {
    display: flex;
    align-items: center;
  }
  
  .account-btn {
    min-height: 40px;
  }
  
  /* Kompaktere Buttons auf Mobile */
  .nav-btn.new-career-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: white;
    font-weight: 600;
    border: none;
  }
  
  .nav-btn.new-career-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 8px 10px;
  }
  
  .app-header h1 {
    font-size: 14px;
  }
  
  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
    margin-left: 4px;
  }
  
  .mobile-menu-toggle span {
    height: 3px;
  }
  
  .nav-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .theme-toggle-btn {
    padding: 6px 10px;
    font-size: 18px;
  }
  
  /* Career Page - Very Small Screens */
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .dashboard-stats .stat-card {
    padding: 12px;
  }
  
  .dashboard-stats .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1.3em;
  }
  
  .dashboard-stats .stat-value {
    font-size: 1.1em;
  }
  
  /* Training Page - Very Small Screens */
  .training-resources {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .resource-display {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .training-header-section h2 {
    font-size: 20px;
  }
  
  /* Modal auf sehr kleinen Bildschirmen */
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-box {
    max-height: 95vh;
    margin: 0;
    border-radius: 8px;
    padding: 12px;
  }
  
  .modal-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
  
  .modal-close-btn {
    width: 32px;
    height: 32px;
    font-size: 28px;
  }
  
  .modal-content {
    max-height: calc(95vh - 120px);
  }
}

/* Mobile Modal Optimierungen */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 15px;
    align-items: flex-start;
    padding-top: 5vh;
  }
  
  .modal-box {
    max-width: 100%;
    max-height: 90vh;
    margin: 0;
    border-radius: 12px;
    padding: 16px;
  }
  
  .modal-header {
    margin-bottom: 14px;
  }
  
  .modal-header h3 {
    font-size: 20px;
  }
  
  .modal-close-btn {
    width: 36px;
    height: 36px;
    font-size: 30px;
    margin-left: 10px;
  }
  
  .modal-content {
    max-height: calc(90vh - 140px);
  }
}

/* Light Theme für Mobile Navigation */
body.light-theme .nav {
  background: white;
  border-color: var(--border);
}

body.light-theme .mobile-menu-toggle span {
  background: var(--text);
}

/* Klickbare Teamnamen */
.clickable-team {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable-team:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* Light Theme Anpassungen */
body.light-theme .clickable-team:hover {
  color: var(--accent);
}

/* ============================================
   Chat Styles
   ============================================ */

.chat-panel {
  max-width: 900px;
  margin: 0 auto;
}

.chat-header {
  text-align: center;
  margin-bottom: 24px;
}

.chat-subtitle {
  color: var(--muted);
  margin-top: 8px;
}

.chat-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-loading,
.chat-error,
.chat-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

.chat-error {
  color: #ff6b6b;
}

.chat-message {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  max-width: 80%;
  position: relative;
  animation: messageSlideIn 0.2s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message-own {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: var(--accent);
}

.chat-message-own .chat-message-user,
.chat-message-own .chat-message-time,
.chat-message-own .chat-message-content {
  color: white;
}

.chat-message-admin {
  border-left: 4px solid #f0ad4e;
}

.chat-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 12px;
}

.chat-message-user {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.chat-message-time {
  font-size: 11px;
  color: var(--muted);
}

.chat-message-content {
  font-size: 14px;
  color: var(--text);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.chat-message:hover .chat-delete-btn {
  opacity: 1;
}

.chat-delete-btn:hover {
  background: #ff6b6b;
  color: white;
}

.chat-input-container {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

#chatForm {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.chat-send-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.chat-info {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

/* Responsive Chat */
@media (max-width: 768px) {
  .chat-container {
    height: 400px;
  }
  
  .chat-message {
    max-width: 85%;
  }
  
  .chat-input {
    font-size: 16px; /* Verhindert Zoom auf Mobile */
  }
  
  #chatForm {
    gap: 8px;
  }
  
  .chat-send-btn {
    padding: 12px 16px;
  }
}

/* Light Theme */
body.light-theme .chat-message-own {
  background: linear-gradient(135deg, #58a6ff, #1f6feb);
}

/* Pokal-Fixtures in kommenden Spielen */
.upcoming-fixture.pokal-fixture {
  border-left: 4px solid var(--accent);
}

/* Kommende Pokal-Spiele (noch nicht gespielt) */
.pokal-match.pokal-upcoming {
  opacity: 0.85;
  border-style: dashed;
}

.pokal-match.pokal-upcoming .score {
  font-style: italic;
  color: var(--muted);
}

body.light-theme .pokal-match.pokal-upcoming {
  border-color: #ced4da;
}

.upcoming-fixture.pokal-fixture.free-day {
  opacity: 0.6;
  background: var(--panel);
  border-left-color: var(--muted);
}

.upcoming-fixture.pokal-fixture.future-round {
  border-left-color: var(--warn);
  background: rgba(240, 136, 62, 0.1);
}

.upcoming-fixture.pokal-fixture .fixture-matchday {
  font-weight: 700;
  color: var(--accent);
}

.upcoming-fixture.pokal-fixture.free-day .fixture-matchday {
  color: var(--muted);
}

.upcoming-fixture.pokal-fixture.future-round .fixture-matchday {
  color: var(--warn);
}

body.light-theme .upcoming-fixture.pokal-fixture {
  border-left-color: #28a745;
}

body.light-theme .upcoming-fixture.pokal-fixture.free-day {
  background: #f8f9fa;
  border-left-color: #ced4da;
}

body.light-theme .upcoming-fixture.pokal-fixture.future-round {
  background: rgba(230, 126, 34, 0.1);
  border-left-color: #e67e22;
}

/* ============================================
   MODERN LANDING PAGE (Conversion-Optimized)
   ============================================ */

.landing-section {
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

/* Hero Section */
.landing-hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 5%;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #667eea 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f0883e 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: 7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #2ea043 0%, transparent 70%);
  top: 50%;
  left: 50%;
  animation-delay: 14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  animation: fade-in-up 0.8s ease-out;
  border: none;
  outline: none;
  background: transparent;
}

.hero-logo img {
  max-width: 280px;
  width: 100%;
  height: auto;
  min-height: 80px;
  object-fit: contain;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  padding: 0;
  margin: 0;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.hero-logo img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .landing-hero-modern {
    padding: 0.5rem 5%;
  }
  
  .hero-logo {
    margin-bottom: 0.75rem;
  }
  
  .hero-logo img {
    max-width: 200px;
  }
  
  .hero-title-modern {
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle-modern {
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .landing-hero-modern {
    padding: 0.5rem 3%;
  }
  
  .hero-logo {
    margin-bottom: 0.5rem;
  }
  
  .hero-logo img {
    max-width: 160px;
  }
  
  .hero-title-modern {
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle-modern {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }
  
  .hero-cta {
    margin-bottom: 0.75rem;
  }
}

.hero-title-modern {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f0883e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle-modern {
  font-size: 1.35rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease-out 0.6s both;
}

.cta-primary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
  width: 300px;
  height: 300px;
}

.cta-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.cta-primary:active {
  transform: translateY(-2px) scale(1.02);
}

.cta-icon {
  font-size: 1.5rem;
  z-index: 1;
}

/* Auf Desktop: Rakete anzeigen, auf Mobile: Dartscheibe */
@media (min-width: 769px) {
  .cta-primary .cta-icon {
    font-size: 0;
  }
  
  .cta-primary .cta-icon::before {
    content: '🚀';
    font-size: 1.5rem;
  }
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 1;
}

.cta-text strong {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cta-text small {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
}

.cta-secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-2px);
}

.hero-social-proof {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fade-in-up 0.8s ease-out 0.8s both;
}

.proof-item {
  text-align: center;
}

.proof-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.proof-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Features Section */
.features-section {
  padding: 6rem 5%;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.features-grid-modern {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

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

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works-section {
  padding: 6rem 5%;
  background: var(--bg);
}

.steps-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.step-card {
  flex: 1;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(46, 160, 67, 0.2);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step-content p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--accent2);
  flex-shrink: 0;
}

/* Trust Section */
.trust-section {
  padding: 6rem 5%;
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.trust-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.trust-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 3rem;
  color: var(--text);
}

.trust-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: left;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  font-size: 1.05rem;
}

.trust-item:hover {
  transform: translateX(10px);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(46, 160, 67, 0.2);
}

.trust-check {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

/* Final CTA Section */
.final-cta-section {
  padding: 8rem 5%;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text);
}

.final-cta-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.cta-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, #2ea043 0%, #27ae60 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 40px rgba(46, 160, 67, 0.4);
  margin-bottom: 1.5rem;
}

.cta-primary-large:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(46, 160, 67, 0.5);
}

.cta-primary-large .cta-icon {
  font-size: 2rem;
}

.final-cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Light Theme Overrides */
body.light-theme .features-section,
body.light-theme .trust-section {
  background: #f8f9fa;
}

body.light-theme .feature-card,
body.light-theme .step-card,
body.light-theme .trust-item {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .feature-card:hover,
body.light-theme .step-card:hover,
body.light-theme .trust-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Landing */
@media (max-width: 1024px) {
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title-modern {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle-modern {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .cta-primary {
    padding: 1rem 1.75rem;
    font-size: 0.95rem;
  }
  
  .cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cta-text strong {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
  
  .cta-text small {
    display: none;
  }
  
  .cta-icon {
    display: block;
    font-size: 1.5rem;
  }
  
  .hero-social-proof {
    gap: 1.5rem;
    margin-top: 0.5rem;
  }
  
  .proof-number {
    font-size: 1.75rem;
  }
  
  .proof-label {
    font-size: 0.8rem;
  }
  
  .features-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    flex-direction: column;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .final-cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .landing-hero-modern {
    padding: 2rem 1rem;
  }
  
  .hero-title-modern {
    font-size: 2.2rem;
  }
  
  .cta-primary-large {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
  }
}

/* Landing Footer */
.landing-footer {
  padding: 3rem 5%;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}

.footer-link:hover {
  color: var(--accent2);
  text-decoration: underline;
}

.footer-separator {
  color: var(--border);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Legal Modals */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.legal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.legal-modal-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.legal-modal-close:hover {
  background: var(--hover);
  color: var(--text);
  transform: scale(1.1);
}

.legal-modal-content h2 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 2rem 0;
  color: var(--text);
}

.legal-text {
  color: var(--text);
  line-height: 1.8;
}

.legal-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: var(--text);
}

.legal-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text);
}

.legal-text p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.legal-text ul {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--muted);
}

.legal-text li {
  margin-bottom: 0.5rem;
}

body.light-theme .legal-modal-overlay {
  background: rgba(255, 255, 255, 0.95);
}

body.light-theme .legal-modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .legal-modal {
    padding: 0;
  }
  
  .legal-modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 2rem 1.5rem;
  }
  
  .legal-text h2 {
    font-size: 1.6rem;
  }
  
  .legal-text h3 {
    font-size: 1.2rem;
  }
  
  .legal-text h4 {
    font-size: 1rem;
  }
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.admin-panel {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.admin-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.admin-header p {
  color: var(--muted);
  margin: 0;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
}

.admin-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: var(--text);
  background: var(--hover);
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Admin Content */
.admin-content {
  min-height: 400px;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

/* Error Message */
.error-message {
  padding: 1rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  text-align: center;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.admin-stat-card.warning {
  border-color: var(--warn);
  background: rgba(240, 136, 62, 0.05);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.stat-meta {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

/* Admin Sections */
.admin-section {
  margin-bottom: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.admin-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-section-header h3 {
  margin: 0;
}

/* Admin Filters */
.admin-filters {
  display: flex;
  gap: 0.5rem;
}

.admin-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-select:hover {
  border-color: var(--accent);
}

/* Admin Tables */
.admin-table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: var(--bg);
}

.admin-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.admin-table tr:hover {
  background: var(--hover);
}

.admin-table code {
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-admin {
  background: rgba(240, 136, 62, 0.2);
  color: var(--warn);
}

.badge-user {
  background: rgba(46, 160, 67, 0.2);
  color: var(--accent);
}

/* Stats Badges (Small) */
.admin-stats-small {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.stat-badge-icon {
  font-size: 1.2rem;
}

.stat-badge-value {
  font-weight: 700;
  color: var(--accent);
}

.stat-badge-label {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Admin Logs */
.admin-logs-container {
  max-height: 600px;
  overflow-y: auto;
}

.admin-log-entry {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.admin-log-entry:hover {
  background: var(--hover);
}

.admin-log-entry.log-warning {
  border-color: var(--warn);
  background: rgba(240, 136, 62, 0.05);
}

.log-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.log-content {
  flex: 1;
}

.log-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.log-type {
  font-weight: 600;
  color: var(--text);
}

.log-user {
  color: var(--accent);
  font-weight: 500;
}

.log-time {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: auto;
}

.log-warnings {
  color: var(--warn);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.log-ip {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  margin-top: 0.25rem;
}

/* Admin Pagination */
.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.admin-pagination p {
  color: var(--muted);
  margin: 0;
}

/* Coming Soon */
.admin-coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.5rem;
  color: var(--muted);
}

.admin-coming-soon small {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-tab {
    white-space: nowrap;
  }
  
  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .log-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .log-time {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

