.performance-hero {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 0;
  border-right: 0;
  background:
    radial-gradient(circle at 87% 14%, rgba(139, 92, 246, 0.18), transparent 42%),
    radial-gradient(circle at 12% 82%, rgba(37, 208, 208, 0.16), transparent 35%),
    linear-gradient(162deg, rgba(18, 24, 43, 0.68), rgba(24, 31, 56, 0.26));
  padding: 2.2rem 1.65rem 2.05rem;
  border-radius: var(--radius-section);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 20px 38px rgba(5, 7, 15, 0.22);
}

.performance-hero h1 {
  font-size: clamp(2.02rem, 4.42vw, 3.72rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 0.82rem;
  max-width: 18ch;
}

.performance-hero .hero-lead {
  max-width: 66ch;
  font-size: 1.06rem;
  line-height: 1.72;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-warn {
  color: #f2c26f;
}

.text-emphasis {
  color: var(--text);
  font-weight: 600;
}

.performance-analysis-visual {
  margin-top: 2rem;
  padding: 0.2rem 0 0;
  position: relative;
  overflow: visible;
}

.dashboard-head,
.dashboard-grid {
  position: relative;
  z-index: 1;
}

.dashboard-head {
  margin-bottom: 1.15rem;
}

.dashboard-head p {
  max-width: 77ch;
  font-size: 1rem;
}

/* Ziel:
   Linke Seite im Analysebereich wieder freier wirken lassen,
   rechte Seite als klare Card beibehalten.
   performance-analysis-visual darf keine volle Box mehr sein.
   analysis-layout soll wieder die saubere Zweiteilung herstellen.
*/
.analysis-layout,
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 1.1rem;
  align-items: start;
}

.performance-analysis-visual {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0.2rem 0 0;
}

.graph-panel {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.risk-panel,
.analysis-panel {
  border: 1px solid var(--line);
  background: linear-gradient(162deg, rgba(18, 24, 43, 0.82), rgba(24, 31, 56, 0.46));
  padding: 0.9rem;
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 18px 34px rgba(3, 5, 11, 0.24);
}

.panel-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.perf-chart {
  display: grid;
  gap: 0.65rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.chart-row span {
  font-size: 0.95rem;
  color: var(--text);
}

.chart-track {
  position: relative;
  height: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(160, 171, 193, 0.1);
  overflow: hidden;
}

.chart-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cyan), #8b5cf6);
  box-shadow: 0 0 12px rgba(37, 208, 208, 0.22);
  transition: width 920ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chart-row.warn .chart-fill {
  background: linear-gradient(90deg, #f2c26f, #ff7b7b);
  box-shadow: 0 0 12px rgba(242, 194, 111, 0.22);
}

.chart-row strong {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.risk-panel {
  display: grid;
  gap: 0.72rem;
}

.risk-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.95rem;
  padding: 0.72rem;
  background: rgba(11, 16, 32, 0.42);
}

.risk-card strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.risk-card p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.6;
}

.risk-bar {
  margin-top: 0.42rem;
  position: relative;
  height: 0.54rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(160, 171, 193, 0.09);
  overflow: hidden;
}

.risk-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  background: linear-gradient(90deg, var(--accent-cyan), #f2c26f);
  box-shadow: 0 0 12px rgba(37, 208, 208, 0.24);
  transition: width 920ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.risk-warn .risk-bar-fill {
  background: linear-gradient(90deg, #f2c26f, #ff7b7b);
  box-shadow: 0 0 12px rgba(242, 194, 111, 0.24);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.62rem;
}

.status-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1px solid rgba(170, 179, 197, 0.8);
  background: rgba(170, 179, 197, 0.5);
  transition: background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.status-dot.is-critical {
  background: #ff6d6d;
  border-color: #ff6d6d;
  box-shadow: 0 0 12px rgba(255, 109, 109, 0.45);
}

.status-text {
  font-size: 0.92rem;
  color: var(--text);
}

.performance-content {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  grid-template-areas:
    "main causes"
    "free free"
    "impact impact";
  gap: 1.08rem;
  align-items: start;
}

.content-main,
.content-main-panel {
  grid-area: main;
  border: 1px solid var(--line);
  background: linear-gradient(162deg, rgba(18, 24, 43, 0.78), rgba(24, 31, 56, 0.42));
  padding: 1.12rem;
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.content-main p,
.content-main-panel p {
  margin-bottom: 0.64rem;
}

.content-cause-panel,
.content-side-panel {
  grid-area: causes;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, rgba(242, 194, 111, 0.1), rgba(255, 123, 123, 0.07));
  padding: 0.95rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
}

.content-free,
.content-free-block {
  grid-area: free;
  padding: 0.35rem 0 0.15rem;
  width: min(100%, 49rem);
  justify-self: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-free p,
.content-free-block p {
  margin-bottom: 0.65rem;
}

.content-free p:last-child,
.content-free-block p:last-child {
  margin-bottom: 0;
}

.content-impact,
.content-free-block.accent {
  grid-area: impact;
  width: min(100%, 49rem);
  justify-self: start;
  padding: 0.9rem 1rem 0.95rem;
  border-left: 3px solid rgba(37, 208, 208, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 0;
  border-bottom: 0;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(37, 208, 208, 0.08), rgba(24, 31, 56, 0.14));
  box-shadow: none;
}

.performance-content ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.performance-content li + li {
  margin-top: 0.34rem;
}

.performance-highlight {
  margin-top: 1.7rem;
  max-width: 52rem;
  border: 1px solid rgba(37, 208, 208, 0.26);
  background: linear-gradient(160deg, rgba(18, 24, 43, 0.74), rgba(24, 31, 56, 0.46));
  position: relative;
  padding: 1.08rem 1.06rem;
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.performance-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-violet));
  border-radius: 999px;
}

.performance-highlight p {
  font-size: 1.01rem;
  max-width: 70ch;
}

.performance-actions {
  margin-top: 1.5rem;
  gap: 0.74rem;
}

@media (max-width: 980px) {
  .analysis-layout,
  .dashboard-grid,
  .performance-content {
    grid-template-columns: 1fr;
  }

  .performance-analysis-visual { padding-top: 0; }

  .performance-content {
    grid-template-areas:
      "main"
      "causes"
      "free"
      "impact";
  }

  .content-free,
  .content-impact,
  .content-free-block,
  .content-free-block.accent {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .performance-hero {
    padding: 1.72rem 1.1rem 1.58rem;
  }

  .performance-hero h1 {
    max-width: 100%;
  }

  .performance-analysis-visual { padding-top: 0; }

  .dashboard-grid {
    gap: 0.95rem;
  }

  .graph-panel,
  .risk-panel {
    padding: 0.72rem;
  }

  .content-main,
  .content-main-panel,
  .content-cause-panel,
  .content-side-panel {
    padding: 0.9rem;
  }

  .content-impact,
  .content-free-block.accent {
    padding: 0.85rem 0.9rem 0.9rem;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .performance-analysis-visual,
  .performance-content,
  .performance-highlight {
    margin-top: 1.55rem;
  }

  .risk-card {
    padding: 0.68rem;
  }
}
