/* ============================================
   QRENA Live Control - Command Center Theme
   Based on teacher-layout-3-command-center.html
============================================ */

:root {
  /* Colors */
  --bg: #0b0c10;
  --panel: #111827;
  --panel-2: #1f2937;
  /* FIX: fehlte hier — im Standalone-Modus (ohne style.css) waren Rank-Badges ab Platz 4 unstyled */
  --panel-3: #374151;
  --brand: #3b82f6;
  --brand-light: #60a5fa;
  --success: #22c55e;
  --success-light: #4ade80;
  --error: #ef4444;
  --warning: #f59e0b;
  --purple: #8b5cf6;
  --muted: #94a3b8;

  /* Glass Effects */
  --glass-bg: rgba(31, 41, 55, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Globale Font/Color-Overrides nur für Inter-Font (harmlos) */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* overflow:hidden + height nur wenn LC Room aktiv – verhindert Login-Scroll-Block */
body.lcr-active {
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
}

.skip-to-content:focus {
  top: 0;
}

/* ============================================
   COMMAND CENTER LAYOUT
============================================ */

.command-center {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ============================================
   HEADER BAR
============================================ */

.header-bar {
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.session-title {
  display: flex;
  flex-direction: column;
}

.session-title h1 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.session-title p {
  font-size: 0.75rem;
  color: var(--muted);
}

.status-indicators {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

.status-dot::before {
  content: "●";
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.timer-display {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-icon {
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.25rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
}

.btn-icon-sm:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border-hover);
}

.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* ============================================
   TAB NAVIGATION
============================================ */

.tab-nav {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

/* Tab Nav Visibility Logic */
body[data-current-view="dashboard"] .tab-nav {
  display: none;
}

body:not([data-current-view="dashboard"]) .tab-nav {
  display: flex;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tab-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.tab-item.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-icon {
  font-size: 1.125rem;
}

.tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--badge-color);
  color: white;
  font-weight: 900;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tab-badge-breathe 2.5s ease-in-out infinite;
}

@keyframes tab-badge-breathe {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* Hide tab badges when value is 0 */
.tab-badge:empty,
.tab-badge[data-count="0"] {
  display: none;
}

/* ============================================
   CONTENT AREA
============================================ */

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ============================================
   VIEW MANAGEMENT
============================================ */

.control-view {
  display: none;
}

.control-view.active {
  display: block;
}

.view-header {
  margin-bottom: 24px;
}

.view-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.view-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

.view-header.urgent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-title-group {
  flex: 1;
}

/* ============================================
   MISSION GRID (Dashboard)
============================================ */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1800px;
  margin: 0 auto;
}

/* ============================================
   MISSION CARDS
============================================ */

.mission-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mission-card:hover {
  border-color: color-mix(in srgb, var(--mission-color) 30%, var(--glass-border-hover));
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), inset 3px 0 0 color-mix(in srgb, var(--mission-color) 50%, transparent);
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--mission-color) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

/* Alert State – Professional: left accent breathes, subtle background tint */
.mission-card.alert {
  background: color-mix(in srgb, var(--mission-color) 5%, var(--glass-bg));
  animation: alert-breathe 2.5s ease-in-out infinite;
}

.mission-card.alert::after {
  display: none;
}

@keyframes alert-breathe {
  0%, 100% { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--mission-color) 35%, transparent); }
  50%       { box-shadow: inset 3px 0 0 var(--mission-color); }
}

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

.card-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--mission-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--mission-color) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.card-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.card-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--mission-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--mission-color) 40%, transparent);
  color: var(--mission-color);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badge-breathe 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-breathe {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1; }
}

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

.card-metric {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--mission-color);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.card-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.card-details {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Grid Positions */
.teams-mission {
  grid-column: span 3;
  --mission-color: var(--brand);
}

.sos-mission {
  grid-column: span 3;
  --mission-color: var(--error);
}

.review-mission {
  grid-column: span 3;
  --mission-color: var(--warning);
}

.settings-mission {
  grid-column: span 3;
  --mission-color: var(--success);
}

.scoreboard-mission {
  grid-column: span 8;
  --mission-color: var(--purple);
}

.stats-mission {
  grid-column: span 4;
  --mission-color: var(--brand-light);
}

/* ============================================
   SCOREBOARD LIST (Compact in Dashboard)
============================================ */

.scoreboard-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.scoreboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.scoreboard-item:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.rank-badge.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
}

.team-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.875rem;
}

.team-score {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 900;
  color: var(--purple);
  font-size: 1rem;
}

/* ============================================
   COMPACT SCOREBOARD (Live Rankings Card)
   🔧 NEU: Elegante Tabelle mit Medaillen
============================================ */

.scoreboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.scoreboard-item-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.scoreboard-item-compact:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Top 3 special styling */
.scoreboard-item-compact:nth-child(1) {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-color: rgba(251, 191, 36, 0.3);
}

.scoreboard-item-compact:nth-child(2) {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.12) 0%, rgba(107, 114, 128, 0.06) 100%);
  border-color: rgba(156, 163, 175, 0.2);
}

.scoreboard-item-compact:nth-child(3) {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(146, 64, 14, 0.06) 100%);
  border-color: rgba(217, 119, 6, 0.2);
}

.team-name-compact {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-score-compact {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--purple);
  min-width: 50px;
  text-align: right;
}

/* Rank badges with medals */
.scoreboard-item-compact .rank-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  background: var(--panel-3);
}

.scoreboard-item-compact .rank-badge.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.scoreboard-item-compact .rank-badge.gold::after {
  content: '🥇';
  position: absolute;
  font-size: 0.7rem;
  top: -8px;
  right: -8px;
}

.scoreboard-item-compact .rank-badge.silver {
  background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
  color: #374151;
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.4);
}

.scoreboard-item-compact .rank-badge.bronze {
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
  color: #fff;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
}

/* Scrollbar styling for scoreboard */
.scoreboard-list::-webkit-scrollbar {
  width: 4px;
}

.scoreboard-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.scoreboard-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.scoreboard-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   QUICK STATS (Dashboard Stats Card)
============================================ */

.quick-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.stat-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-value {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--brand-light);
}

/* FIX: updateQuickStats() generiert diese -mini-Varianten, es gab dafür keine CSS-Regeln */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-item-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm, 6px);
  gap: 8px;
}

.stat-label-mini {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stat-value-mini {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-light);
}

/* ============================================
   TEAMS GRID - 🆕 BUG-6 FIX: Kompakterer Kachel-Look
============================================ */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.team-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.team-card .team-name {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.team-card .team-score {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--brand);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-md);
}

.team-card .team-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.team-card .team-stat {
  flex: 1;
  text-align: center;
}

.team-card .team-stat-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.team-card .team-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card .team-members {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 0.75rem;
}

.team-card .members-label {
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.team-card .members-list {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card .team-sos-stats {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.team-card .team-sos-stats span {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px 8px;
  color: var(--muted);
  white-space: nowrap;
}

/* ============================================
   SOS VIEW
============================================ */

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

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

.sos-stat .stat-value {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--error);
}

.sos-stat .stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.sos-queue {
  margin-bottom: 24px;
}

.sos-settings-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.sos-settings-card .card-title {
  margin-bottom: 20px;
}

.setting-row {
  margin-bottom: 20px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}

.setting-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.setting-description {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
  margin-left: 32px;
}

/* ============================================
   PENDING VIEW
============================================ */

.pending-filter {
  display: flex;
  gap: 12px;
}

.filter-select {
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-select:hover {
  border-color: var(--glass-border-hover);
}

.pending-queue {
  margin-bottom: 24px;
}

.pending-quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ============================================
   STATS CARD
============================================ */

.stats-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-top: 24px;
}

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

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

.stats-grid .stat-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
}

.stats-grid .stat-value {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 4px;
}

.stats-grid .stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.team-stats-list {
  margin-top: 16px;
}

.stats-loading {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

/* ============================================
   SCOREBOARD VIEW (Full)
============================================ */

.scoreboard-full {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   ACTIVITY TIMELINE
============================================ */

.activity-timeline {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   LOADING & EMPTY STATES
============================================ */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

/* FIX: .empty-state-mini (kompaktes Scoreboard bei 0 Teams) hatte keine eigene Regel */
.empty-state-mini {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}
.empty-icon svg {
  width: 48px;
  height: 48px;
}

.empty-text {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-subtext {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================
   LOADING OVERLAY
============================================ */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 12, 16, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.hidden {
  display: none;
}

.loading-text {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ============================================
   TOAST NOTIFICATIONS
============================================ */

.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease-out;
}

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

/* ============================================
   MODAL
============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

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

.modal-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body .text-muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--glass-border);
}

/* ============================================
   DETAIL VIEW COMPONENTS
============================================ */

/* Detail View Header */
.detail-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Set mission colors for detail views */
.control-view[data-view="sos"] {
  --mission-color: var(--error);
}

.control-view[data-view="pending"] {
  --mission-color: var(--warning);
}

.control-view[data-view="teams"] {
  --mission-color: var(--brand);
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 600;
  font-size: 0.875rem;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-4px);
}

.view-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.view-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--mission-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--mission-color) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.view-title-area .view-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}

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

.btn-refresh {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.25rem;
}

.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(180deg);
}

/* Stats Cards Grid – kompakte Info-Chips */
.stats-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px 4px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 5px 14px 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.stat-card .stat-content {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.stat-card .stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
}

/* Detail Content */
.detail-content {
  padding: 0 24px 24px 24px;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 24px;
}

.content-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.content-badge {
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: white;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SOS / Pending Queue Mini-Grid */
.sos-queue-grid,
.pending-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* ── Mini-Cards ───────────────────────────────── */
.queue-mini-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.queue-mini-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--mini-accent);
  opacity: 0.7;
}

.queue-mini-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.queue-mini-card.is-open {
  border-color: var(--mini-accent);
  background: color-mix(in srgb, var(--mini-accent) 8%, transparent);
}

.sos-mini-card     { --mini-accent: var(--error); }
.pending-mini-card { --mini-accent: var(--warning); }

.mini-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.mini-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mini-accent);
  flex-shrink: 0;
}

.mini-status-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mini-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-team-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.mini-time {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Detail-Panel ─────────────────────────────── */
.queue-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.queue-detail-back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Transitions ──────────────────────────────── */
@keyframes queue-grid-exit {
  to { opacity: 0; transform: translateX(-12px); }
}
@keyframes queue-grid-enter {
  from { opacity: 0; transform: translateX(-12px); }
}
@keyframes queue-detail-enter {
  from { opacity: 0; transform: translateX(16px); }
}
@keyframes queue-detail-exit {
  to { opacity: 0; transform: translateX(16px); }
}

.queue-grid--exit    { animation: queue-grid-exit    200ms cubic-bezier(0.4, 0, 1, 1) forwards; }
.queue-grid--enter   { animation: queue-grid-enter   250ms cubic-bezier(0, 0, 0.2, 1) forwards; }
.queue-detail--enter { animation: queue-detail-enter 250ms cubic-bezier(0, 0, 0.2, 1) forwards; }
.queue-detail--exit  { animation: queue-detail-exit  200ms cubic-bezier(0.4, 0, 1, 1) forwards; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .sos-queue-grid,
  .pending-queue-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .sos-queue-grid,
  .pending-queue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cooler SOS Card */
.sos-card-detail {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--error);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
}

.sos-card-detail:hover {
  border-color: var(--error);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  transform: translateX(4px);
}

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

.sos-card-detail .sos-team {
  font-size: 1.125rem;
}

.sos-card-detail .sos-team strong {
  color: var(--text);
}

.sos-card-detail .sos-helper {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-left: 8px;
}

.sos-card-detail .sos-status {
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--error);
}

.sos-card-detail .sos-task-info {
  margin-bottom: 16px;
}

.sos-card-detail .sos-task-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.sos-card-detail .sos-task-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.sos-card-detail .sos-actions {
  display: flex;
  gap: 12px;
}

/* Pending Card Detail */
.pending-card-detail {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
}

.pending-card-detail:hover {
  border-color: var(--warning);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  transform: translateX(4px);
}

.pending-card-detail .pending-question {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--text);
}

.pending-card-detail .pending-answer {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;   /* Q-296: lange Wörter und Riesentexte sprengen die Karte nicht */
  white-space: pre-wrap;
  max-height: 40vh;
  overflow-y: auto;
}

.pending-card-detail .pending-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pending-card-detail .pending-actions {
  display: flex;
  gap: 12px;
}

.pending-card-detail .btn-success {
  border-color: var(--success);
  color: var(--success);
}

.pending-card-detail .btn-success:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--success-light);
}

.pending-card-detail .btn-reject {
  border-color: var(--error);
  color: var(--error);
}

.pending-card-detail .btn-reject:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
}

/* ======================== INLINE HINT FORM ======================== */

.hint-textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  margin-top: 8px;
}
.hint-textarea:focus {
  outline: none;
  border-color: var(--warning);
}
.hint-small {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
}
.hint-inline {
  display: none;
}
.hint-inline--open {
  display: block;
  animation: hintFadeIn 0.18s ease;
}
@keyframes hintFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hint-inline-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 14px 0 12px;
}
.hint-inline-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 6px;
  line-height: 1.4;
}
.hint-inline-question {
  color: var(--text-muted, rgba(255,255,255,0.4));
  font-style: italic;
  font-weight: 400;
}
.hint-inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* Team Card Enhanced for Teams View */
.team-card-detail {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all var(--transition-base);
}

.team-card-detail:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card-detail .team-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.team-card-detail .team-name-large {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.team-card-detail .team-members-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.team-member-pill {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.team-card-detail .team-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.team-stat-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 1400px) {
  .scoreboard-mission {
    grid-column: span 12;
  }

  .stats-mission {
    grid-column: span 12;
  }

  .scoreboard-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .teams-mission,
  .sos-mission,
  .review-mission,
  .settings-mission {
    grid-column: span 6;
  }

  .scoreboard-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .view-title {
    font-size: 1.5rem;
  }

  .card-metric {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .teams-mission,
  .sos-mission,
  .review-mission,
  .settings-mission,
  .scoreboard-mission,
  .stats-mission {
    grid-column: span 1;
  }

  .header-top {
    flex-wrap: wrap;
    gap: 12px;
  }

  .status-indicators {
    display: none;
  }

  .scoreboard-list {
    grid-template-columns: 1fr;
  }

  .content-area {
    padding: 16px;
  }

  .mission-card {
    padding: 16px;
  }

  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .card-metric {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .tab-nav {
    padding: 0 16px;
  }

  .tab-item {
    padding: 12px 16px;
  }

  .toast-container {
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 12px 16px;
  }

  .session-title h1 {
    font-size: 0.875rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .timer-display {
    font-size: 1.25rem;
  }

  .view-title {
    font-size: 1.25rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .scoreboard-item {
    padding: 8px;
    gap: 8px;
  }

  .rank-badge {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .team-name {
    font-size: 0.8rem;
  }

  .team-score {
    font-size: 0.875rem;
  }
}

/* ── LCR Tab-Nav: Portrait → Icons only, kein Label-Text ── */
@media (orientation: portrait) and (max-width: 1024px) {
  .tab-nav {
    padding: 0 4px;
    gap: 0;
  }

  .tab-item {
    padding: 10px 8px;
    gap: 0;
    justify-content: center;
    flex: 1;
  }

  /* Label-Text ausblenden, Icon + Badge bleiben */
  .tab-item > span:not(.tab-icon):not(.tab-badge) {
    display: none;
  }

  .tab-icon {
    font-size: 1.3rem;
  }
}

/* ============================================
   Activity Log Timeline
============================================ */
.activity-log-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 8px;
  margin-bottom: 4px;
  position: relative;
  transition: background 150ms ease;
  border-radius: 0 8px 8px 0;
}

.activity-log-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.activity-log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  margin-left: -17px;
  box-shadow: 0 0 0 2px #0f172a;
}

.activity-log-content {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.activity-log-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.activity-log-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

.activity-log-time {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding-top: 2px;
}

/* ── Accessibility: Reduzierte Bewegung ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Alle Puls- und Atem-Animationen deaktivieren */
  .live-indicator,
  .tab-badge,
  .card-badge,
  .sos-alert-active,
  .hint-form-container {
    animation: none !important;
    transition: none !important;
  }

  /* Master-Detail Übergänge: kein Slide, nur opacity */
  .queue-grid--exit,
  .queue-grid--enter,
  .queue-detail--enter,
  .queue-detail--exit {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Spinner stoppen */
  .loading-spinner {
    animation: none !important;
  }

  /* Hover-Transforms entfernen */
  .mission-card:hover,
  .mini-card:hover,
  .team-card:hover {
    transform: none !important;
  }

  /* slideIn für Control Room Header */
  .control-room-header,
  [style*="slideIn"] {
    animation: none !important;
  }

  /* hintFadeIn */
  .hint-form-container {
    animation: none !important;
  }
}
