/* Scoped UI */
#cdv-root.cdv { font-family: 'Segoe UI', sans-serif; margin: 0; color: #f1f5f9; border-radius: 16px; overflow: hidden; }
#cdv-root .cdv-header { background: linear-gradient(90deg, #1e293b, #0f172a); padding: 25px; text-align: center; border-bottom: 1px solid #334155;}
#cdv-root .cdv-header h1 { margin: 0; font-size: 32px; color: #c6283f; letter-spacing: 2px; text-transform: uppercase;}
#cdv-root .cdv-filters { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin: 30px 0; }
#cdv-root select { padding: 10px 14px; border-radius: 25px; border: 1px solid #fff; background: #0F0F0F; color: #f1f5f9; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(6px); }
#cdv-root select:hover { border-color: #c6283f; box-shadow: 0 0 10px rgba(247, 57, 57, 0.502); }
#cdv-root .cdv-card { background: #0F0F0F; border-radius: 20px; padding: 25px; margin: 20px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s ease; }
#cdv-root .cdv-card:hover { transform: translateY(-3px); }
#cdv-root .cdv-car-header h2 { margin: 0 0 15px 0; font-size: 20px; color: #f8fafc; }
#cdv-root .cdv-tabs { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
#cdv-root .cdv-tab { padding: 10px 25px; border-radius: 12px; border: 1px solid #475569; background: rgba(51,65,85,0.7); color: #e2e8f0; cursor: pointer; font-weight: 600; transition: all 0.3s ease; user-select: none; }
#cdv-root .cdv-tab:hover { background: #c6283f; color: #0f172a; box-shadow: 0 0 20px rgba(198,40,63,1); }
#cdv-root .cdv-tab.active { background: linear-gradient(135deg, #c6283f, #742732); color: #fff; border-color: #c6283f; box-shadow: 0 0 25px rgba(198,40,63,1); }
#cdv-root .cdv-perf-boxes { display: flex; justify-content: center; gap: 25px; margin-bottom: 25px; flex-wrap: wrap; }
#cdv-root .cdv-perf-box { flex: 1 1 220px; font-size:30px; background: #0F0F0F; border-radius: 14px; padding: 20px; text-align: center; border: 1px solid rgba(148,163,184,0.2); box-shadow: inset 0 0 15px rgba(56,189,248,0.1), 0 0 25px rgba(0,0,0,0.5); transition: all 0.3s ease; }
#cdv-root .cdv-perf-box strong { display: block; font-size: 28px; color: #22c55e; text-shadow: 0 0 10px rgba(34,197,94,0.6); }
#cdv-root .cdv-perf-box small { display: block; color: #FFFFFF; margin-bottom: 5px; font-size: 35px }
#cdv-root .cdv-charts { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
#cdv-root .cdv-chart-container { flex: 1 1 400px; height: 350px; background: #0F0F0F; border-radius: 16px; padding: 15px; border: 1px solid rgba(148,163,184,0.2); box-shadow: 0 0 25px rgba(56,189,248,0.15); }
#cdv-root .cdv-engine-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; margin: 30px 20px 10px; }
#cdv-root .cdv-engine-box { background: #0F0F0F; padding: 15px; border-radius: 12px; text-align: center; border: 1px solid rgba(148,163,184,0.2); color: #f8fafc; box-shadow: 0 0 10px rgba(56,189,248,0.2); transition: all 0.3s ease; }

/* Leistungsanzeige */
#cdv-root .cdv-perf-box .perf-old {
  display: block;
  font-size: 48px;
  font-weight: 400;
  color: #f1f5f9;
}
#cdv-root .cdv-perf-box .perf-old span {
  font-size: 18px;
  color: #9ca3af;
  margin-left: 4px;
}
#cdv-root .cdv-perf-box .perf-new {
  display: block;
  font-size: 70px;
  font-weight: 600;
  color: #c6283f;
  margin-top: 5px;
}
#cdv-root .cdv-perf-box .perf-new span {
  font-size: 20px;
  color: #c6283f;
  margin-left: 4px;
}

/* Mehrleistung Styling */
#cdv-root .cdv-perf-box .perf-diff {
  display: inline-block;
  margin-top: 8px;
  background: black;
  border: 0px solid;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 15px;
}
#cdv-root .cdv-perf-box .perf-diff .diff-value {
  color: #c6283f;
  font-weight: 900;
}

#cdv-root canvas { width: 100% !important; height: 100% !important; }
