/* Statische VPX-Vorschau: an die eigene Dashboard-Oberfläche angelehnt, ohne Eingabefelder oder Live-Aktionen. */
.landing .demo-section .demo-heading { margin-bottom: 22px; }
.landing .demo-section .demo-heading h2 {
  margin: 0;
  color: #173b2e;
  font-size: clamp(29px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.04em;
}
.landing .demo-section .demo-overline {
  margin: 8px 0 0;
  color: #647168;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.landing[data-theme="dark"] .demo-section .demo-heading h2 { color: #e6f0e8; }
.landing[data-theme="dark"] .demo-section .demo-overline { color: #adbbb2; }

.vp-live-preview,
.vp-live-preview * { box-sizing: border-box; }
.vp-live-preview {
  --vp-bg: #f4f5f6;
  --vp-surface: #fff;
  --vp-raised: #f8f9fa;
  --vp-sidebar: #f7f8f9;
  --vp-border: #e2e5e8;
  --vp-grid: #e9ecef;
  --vp-text: #25282c;
  --vp-muted: #747a80;
  --vp-accent: #1883d7;
  --vp-accent-strong: #116db4;
  --vp-accent-soft: #e7f2fb;
  --vp-positive: #13966a;
  --vp-positive-soft: #e8f5ef;
  --vp-negative: #be4c4d;
  --vp-negative-soft: #f9eded;
  --vp-warn: #a77417;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vp-border);
  border-radius: 8px;
  color: var(--vp-text);
  background: var(--vp-bg);
  box-shadow: 0 18px 48px rgba(28, 39, 48, .10);
  font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.landing[data-theme="dark"] .vp-live-preview {
  --vp-bg: #111;
  --vp-surface: #171717;
  --vp-raised: #1d1d1d;
  --vp-sidebar: #0f0f0f;
  --vp-border: #292929;
  --vp-grid: #292929;
  --vp-text: #f0f0f0;
  --vp-muted: #a0a0a0;
  --vp-accent: #1885e5;
  --vp-accent-strong: #5bca9d;
  --vp-accent-soft: rgba(24, 133, 229, .16);
  --vp-positive: #51c99a;
  --vp-positive-soft: rgba(51, 174, 126, .16);
  --vp-negative: #df7778;
  --vp-negative-soft: rgba(190, 76, 77, .16);
  --vp-warn: #dfb663;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .25);
}
.vp-live-preview button { color: inherit; font: inherit; }
.vp-live-preview button:focus-visible { outline: 2px solid var(--vp-accent); outline-offset: 3px; }
.vp-live-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px 10px 13px;
  border-right: 1px solid var(--vp-border);
  background: var(--vp-sidebar);
}
.vp-live-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 8px 16px;
  color: var(--vp-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.055em;
}
.vp-live-brand svg { width: 22px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--vp-accent); stroke-width: 7; stroke-linecap: round; }
.vp-live-brand-dot { color: var(--vp-accent); }
.vp-live-project {
  display: grid;
  gap: 3px;
  margin: 0 1px 15px;
  padding: 9px 10px 8px;
  border: 1px solid var(--vp-border);
  border-left: 3px solid var(--vp-accent);
  border-radius: 5px;
  background: var(--vp-surface);
}
.vp-live-project > span { color: var(--vp-muted); font-size: 9px; }
.vp-live-project strong { overflow-wrap: anywhere; color: var(--vp-text); font-size: 11px; font-weight: 600; }
.vp-live-project small { display: flex; align-items: center; gap: 5px; color: var(--vp-muted); font-size: 9px; }
.vp-live-nav { display: grid; gap: 9px; }
.vp-live-nav-group { display: grid; gap: 1px; }
.vp-live-nav-label { padding: 0 8px 3px; color: var(--vp-muted); font-size: 9px; font-weight: 500; }
.vp-live-tab {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  color: var(--vp-muted) !important;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.vp-live-tab svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vp-live-tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-live-tab:hover { color: var(--vp-text) !important; background: var(--vp-raised); }
.vp-live-tab.is-current { border-left-color: var(--vp-accent); color: var(--vp-accent-strong) !important; background: var(--vp-accent-soft); font-weight: 600; }
.landing[data-theme="dark"] .vp-live-tab.is-current { color: #78bdf1 !important; }
.vp-live-sidebar-foot { display: flex; align-items: center; gap: 7px; margin: auto 7px 0; padding-top: 15px; color: var(--vp-muted); font-size: 9px; }
.vp-live-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--vp-positive); }
.vp-live-main { display: grid; min-width: 0; grid-template-rows: auto minmax(0, 1fr); background: var(--vp-bg); }
.vp-live-topbar {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--vp-border);
  background: var(--vp-surface);
}
.vp-live-project-context { display: flex; min-width: 0; align-items: center; gap: 9px; color: var(--vp-muted); font-size: 10px; }
.vp-live-country { display: inline-flex; min-width: 27px; height: 21px; align-items: center; justify-content: center; border: 1px solid var(--vp-border); border-radius: 4px; color: var(--vp-text); background: var(--vp-raised); font-size: 9px; font-weight: 600; }
.vp-live-search-icon { display: inline-flex; flex: 0 0 auto; color: var(--vp-muted); }
.vp-live-search-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.vp-live-top-domain { overflow: hidden; color: var(--vp-text); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.vp-live-context-divider { width: 1px; height: 14px; flex: 0 0 auto; background: var(--vp-border); }
.vp-live-market { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-live-data-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid var(--vp-border); border-radius: 4px; color: var(--vp-muted); background: var(--vp-raised); font-size: 9px; white-space: nowrap; }
.vp-live-data-badge .vp-live-dot { width: 6px; height: 6px; flex-basis: 6px; background: var(--vp-accent); }
.vp-live-content { min-width: 0; padding: 19px clamp(15px, 2vw, 24px) 22px; }
.vp-live-pane[hidden] { display: none !important; }
.vp-live-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.vp-live-eyebrow { margin: 0 0 2px; color: var(--vp-muted); font-size: 9px; font-weight: 500; }
.vp-live-title-row h3 { margin: 0; color: var(--vp-text); font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.vp-live-subtitle { margin: 4px 0 0; color: var(--vp-muted); font-size: 10px; }
.vp-live-view-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--vp-muted); font-size: 9px; }
.vp-live-mode-selector, .vp-live-periods { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--vp-border); border-radius: 4px; background: var(--vp-surface); }
.vp-live-view-controls span { display: inline-flex; min-height: 20px; align-items: center; justify-content: center; padding: 2px 5px; border-radius: 3px; white-space: nowrap; }
.vp-live-view-controls span.is-selected { color: var(--vp-text); background: var(--vp-raised); box-shadow: inset 0 0 0 1px var(--vp-border); }
.vp-live-index-card { min-width: 0; margin-bottom: 9px; padding: 12px 14px 10px; border: 1px solid var(--vp-border); border-radius: 6px; background: var(--vp-surface); }
.vp-live-index-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.vp-live-index-label { display: block; margin-bottom: 2px; color: var(--vp-muted); font-size: 9px; font-weight: 500; }
.vp-live-index-value { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vp-live-index-value strong { color: var(--vp-text); font-size: clamp(28px, 3.1vw, 38px); font-weight: 600; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.vp-live-change { display: inline-flex; align-items: center; padding: 3px 5px; border-radius: 4px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.vp-live-change.is-up { color: var(--vp-positive); background: var(--vp-positive-soft); }
.vp-live-change.is-down { color: var(--vp-negative); background: var(--vp-negative-soft); }
.vp-live-index-note { color: var(--vp-muted); font-size: 9px; }
.vp-live-index-legend { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--vp-muted); font-size: 9px; }
.vp-live-index-legend .vp-live-dot { width: 6px; height: 6px; flex-basis: 6px; background: var(--vp-accent); }
.vp-live-chart-wrap { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 5px; width: 100%; overflow: hidden; margin-top: 3px; }
.vp-live-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0 4px; color: var(--vp-muted); font-size: 8px; text-align: right; }
.vp-live-chart { display: block; width: 100%; height: auto; min-height: 150px; color: var(--vp-accent); }
.vp-live-chart .vp-grid { stroke: var(--vp-grid); stroke-width: 1; }
.vp-live-chart .vp-area { fill: rgba(24, 131, 215, .12); stroke: none; }
.landing[data-theme="dark"] .vp-live-chart .vp-area { fill: rgba(24, 133, 229, .20); }
.vp-live-chart .vp-line { fill: none; stroke: var(--vp-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vp-live-chart .vp-point { fill: var(--vp-surface); stroke: var(--vp-accent); stroke-width: 3; }
.vp-live-chart-axis { display: flex; justify-content: space-between; gap: 6px; margin-left: 29px; color: var(--vp-muted); font-size: 8px; }
.vp-live-chart-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 5px 0 0; color: var(--vp-muted); font-size: 8px; }
.vp-live-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 9px; }
.vp-live-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 8px; min-width: 0; padding: 10px 11px 8px; border: 1px solid var(--vp-border); border-radius: 6px; background: var(--vp-surface); }
.vp-live-kpi-label { min-width: 0; color: var(--vp-muted); font-size: 9px; }
.vp-live-kpi-value { grid-column: 1; color: var(--vp-text); font-size: 17px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.vp-live-kpi-note { grid-column: 1; color: var(--vp-muted); font-size: 8px; }
.vp-live-kpi .vp-live-change { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.vp-live-sparkline { grid-column: 1 / -1; display: block; width: 100%; height: 22px; margin-top: 2px; }
.vp-live-sparkline path { fill: none; stroke: var(--vp-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vp-live-sparkline .vp-spark-fill { fill: rgba(24, 131, 215, .08); stroke: none; }
.landing[data-theme="dark"] .vp-live-sparkline .vp-spark-fill { fill: rgba(24, 133, 229, .12); }
.vp-live-surface { min-width: 0; padding: 11px 12px 8px; border: 1px solid var(--vp-border); border-radius: 6px; background: var(--vp-surface); }
.vp-live-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.vp-live-card-head h4, .vp-live-surface h4 { margin: 0; color: var(--vp-text); font-size: 11px; font-weight: 600; }
.vp-live-card-head p { margin: 2px 0 0; color: var(--vp-muted); font-size: 9px; }
.vp-live-badge { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--vp-border); border-radius: 4px; color: var(--vp-muted); background: var(--vp-raised); font-size: 8px; }
.vp-live-table-wrap { width: 100%; overflow-x: auto; }
.vp-live-table { width: 100%; min-width: 520px; border-collapse: collapse; color: var(--vp-text); font-size: 9px; text-align: left; }
.vp-live-table th { padding: 6px 7px; color: var(--vp-muted); font-size: 8px; font-weight: 500; white-space: nowrap; }
.vp-live-table td { padding: 7px; border-top: 1px solid var(--vp-border); white-space: nowrap; }
.vp-live-table td:first-child { color: var(--vp-text); font-weight: 500; }
.vp-live-table td strong { font-weight: 600; }
.vp-live-positive { color: var(--vp-positive) !important; }
.vp-live-negative { color: var(--vp-negative) !important; }
.vp-live-status { display: inline-flex; align-items: center; gap: 6px; color: var(--vp-positive); font-size: 9px; white-space: nowrap; }
.vp-live-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.vp-live-status.is-watch { color: var(--vp-warn); }
.vp-live-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.vp-live-summary { min-width: 0; padding: 10px 11px; border: 1px solid var(--vp-border); border-radius: 6px; background: var(--vp-surface); }
.vp-live-summary span { display: block; color: var(--vp-muted); font-size: 9px; }
.vp-live-summary strong { display: block; margin-top: 4px; color: var(--vp-text); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vp-live-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.vp-live-surface h4 { margin-bottom: 7px; }
.vp-live-list { display: grid; gap: 0; }
.vp-live-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--vp-border); }
.vp-live-list-item:first-child { border-top: 0; }
.vp-live-list-item strong { display: block; color: var(--vp-text); font-size: 10px; font-weight: 500; }
.vp-live-list-item small { display: block; margin-top: 2px; color: var(--vp-muted); font-size: 8px; }
.vp-live-list-item .vp-live-status { flex: 0 0 auto; }
.vp-live-content-card { margin-bottom: 9px; }
.vp-live-content-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 11px; padding: 9px 10px; border: 1px solid var(--vp-border); border-radius: 5px; background: var(--vp-raised); }
.vp-live-content-intro span { color: var(--vp-muted); font-size: 9px; }
.vp-live-content-intro strong { color: var(--vp-text); font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.vp-live-score { display: inline-flex; align-items: center; gap: 6px; color: var(--vp-accent-strong); font-size: 11px; font-weight: 600; }
.vp-live-static-note { margin: 10px 0 0; color: var(--vp-muted); font-size: 9px; line-height: 1.55; }
.vp-live-project-list .vp-live-list-item strong { font-size: 10px; }
@media (max-width: 1020px) {
  .vp-live-preview { grid-template-columns: 174px minmax(0, 1fr); }
  .vp-live-sidebar { padding-inline: 8px; }
  .vp-live-content { padding-inline: 14px; }
  .vp-live-title-row { align-items: flex-start; }
  .vp-live-view-controls { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .vp-live-preview { grid-template-columns: minmax(0, 1fr); }
  .vp-live-sidebar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 11px; padding: 11px 12px 8px; border-right: 0; border-bottom: 1px solid var(--vp-border); }
  .vp-live-brand { padding: 0; font-size: 15px; }
  .vp-live-project { display: flex; align-items: center; gap: 7px; margin: 0; padding: 5px 8px; }
  .vp-live-project > span, .vp-live-project small { display: none; }
  .vp-live-project strong { font-size: 9px; }
  .vp-live-nav { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: thin; }
  .vp-live-nav-group { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
  .vp-live-nav-label { display: none; }
  .vp-live-tab { width: auto; padding: 6px 7px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0; font-size: 9px; white-space: nowrap; }
  .vp-live-tab.is-current { border-left: 0; border-bottom-color: var(--vp-accent); }
  .vp-live-sidebar-foot { display: none; }
  .vp-live-topbar { min-height: 43px; padding: 6px 11px; }
  .vp-live-content { padding: 14px 11px 16px; }
  .vp-live-title-row { flex-wrap: wrap; }
  .vp-live-view-controls { justify-content: flex-start; }
  .vp-live-index-card { padding: 10px 11px 8px; }
  .vp-live-chart { min-height: 132px; }
}
@media (max-width: 540px) {
  .landing .demo-section .demo-heading { margin-bottom: 17px; }
  .landing .demo-section .demo-heading h2 { font-size: 29px; }
  .landing .demo-section .demo-overline { margin-top: 7px; font-size: 13px; }
  .vp-live-preview { border-radius: 7px; }
  .vp-live-sidebar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .vp-live-project { justify-self: end; }
  .vp-live-project strong { max-width: 36vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vp-live-nav { gap: 6px; }
  .vp-live-tab { padding: 6px; }
  .vp-live-tab svg { display: none; }
  .vp-live-data-badge { padding: 4px 6px; font-size: 8px; }
  .vp-live-content { padding: 13px 9px 13px; }
  .vp-live-title-row { gap: 8px; }
  .vp-live-view-controls { gap: 5px; font-size: 8px; }
  .vp-live-view-controls span { min-height: 18px; padding-inline: 4px; }
  .vp-live-kpi-grid, .vp-live-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-live-kpi:last-child { grid-column: 1 / -1; }
  .vp-live-card-grid { grid-template-columns: minmax(0, 1fr); }
  .vp-live-chart { min-height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-live-preview, .vp-live-tab { transition: none; }
}
