/* Insights page styles (visual-first, dashboard-aligned) */

.hero{
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 16px 16px;
}

.heroTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.heroTitle{
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.2px;
}

.heroSub{
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 680px;
}

.heroPills{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.heroMini{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.miniStat{
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

.miniStat .k{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.miniStat .v{
  margin-top: 6px;
  font-weight: 950;
  display:flex;
  align-items:center;
  gap: 8px;
}

.dotLive{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(25,195,125,.9);
  box-shadow: 0 0 0 3px rgba(25,195,125,.12);
  display:inline-block;
}

/* Section head */
.sectionHead{
  margin: 18px 0 10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}

.sectionHead h2{
  margin:0;
  font-size: 14px;
  letter-spacing:.08em;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.sectionHead p{
  margin:0;
  font-size: 12px;
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Card */
.insightCard{
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.insightTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.insightTitle{
  margin: 0;
  font-weight: 950;
  letter-spacing: .2px;
}

.tagLive{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25,195,125,.35);
  background: rgba(25,195,125,.08);
  color: var(--text);
  font-weight: 900;
  white-space:nowrap;
}

.insightMetric{
  font-size: 28px;
  font-weight: 950;
  margin: 6px 0 2px;
}

.insightSub{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.miniViz{
  width:100%;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  display:block;
  margin: 6px 0 12px;
}

.insightRows{
  display:grid;
  gap: 8px;
  margin-bottom: 12px;
}

.row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  font-size: 13px;
}
.row .k{ color: var(--muted); }
.row .v{ font-weight: 900; font-variant-numeric: tabular-nums; }

/* Progress bar */
.bar{
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  overflow:hidden;
  margin-top: 10px;
}
.barFill{
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(122,170,255,.9), rgba(25,195,125,.35));
}

/* Actions */
.insightActions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btnTiny{
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

/* Hover polish */
.insightCard:hover{
  border-color: var(--stroke2);
}
.insightCard::before{
  content:"";
  position:absolute;
  inset:-40% -20% auto -20%;
  height: 120px;
  background: radial-gradient(60% 120% at 20% 40%, rgba(122,170,255,.18), rgba(0,0,0,0));
  pointer-events:none;
}

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .topbar{ margin-top: 14px; }
  .logo{ height: 46px; }
  .heroTop{ flex-direction: column; }
  .heroPills{ justify-content:flex-start; }
  .heroMini{ grid-template-columns: 1fr; }
}
/* ================================
   Insights Premium Upgrade (v1)
   Append at END of insights.css
   ================================ */

/* 1) Grid: mehr Luft + besseres Breakpoint-Verhalten */
.grid{
  gap: 24px;              /* vorher 12px */
  margin-bottom: 10px;
}

@media (max-width: 1100px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
}

/* 2) Card: Premium glass look + depth */
.insightCard{
  padding: 22px;          /* vorher 14px */
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );

  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition: transform .25s ease, border-color .25s ease;
}

.insightCard:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
}

/* 3) Header: ruhigere Hierarchie */
.insightTop{
  margin-bottom: 14px;    /* mehr Abstand */
}

.insightTitle{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}

/* Live pill: dezenter, mehr “Terminal” */
.tagLive{
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25,195,125,.30);
  background: rgba(25,195,125,.12);
  color: rgba(235,240,248,.92);
  font-weight: 900;
}

/* 4) Main metric: klarer “Hero value” */
.insightMetric{
  font-size: 34px;        /* vorher 28px */
  line-height: 1.05;
  margin: 4px 0 8px;
  font-variant-numeric: tabular-nums;
}

.insightSub{
  font-size: 13px;
  margin: 0 0 14px;
}

/* 5) Mini chart: gleiches Glas-Panel */
.miniViz{
  height: 84px;           /* vorher 64px */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,.10);
}

/* 6) Rows: Chips/rows ruhiger + konsistent */
.row{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,.02);
}

/* 7) Progressbar: etwas klarer */
.bar{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,.04);
}

/* 8) Der vorhandene “glow” wird subtiler */
.insightCard::before{
  inset:-45% -25% auto -25%;
  height: 140px;
  background: radial-gradient(
    60% 120% at 20% 40%,
    rgba(122,170,255,.14),
    rgba(0,0,0,0)
  );
  opacity: .9;
}

/* 9) Hero card soll weiterhin “Card” bleiben, aber mit mehr Luft */
.hero{
  padding: 18px 18px;
}

/* 10) Responsive: dein bestehender 980px Block bleibt,
      aber wir verhindern, dass es schon zu früh 1-spaltig wird */
@media (max-width: 980px){
  /* NICHT mehr direkt 1 Spalte bei 980px erzwingen, das übernehmen wir oben sauber */
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
}
.insightFoot{
  display:flex;
  justify-content:flex-end;
}
