/* PipView Terminal-Dashboard (Oktober 2026)
   Gemeinsames Design fuer Demo (index.html) und Premium (templates/dashboard.html). */

@font-face { font-family: 'Sora'; font-weight: 500; font-display: swap; src: url(/static/fonts/sora-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url(/static/fonts/sora-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #05090F;
  --s3: #14212F;
  --line: rgba(255, 255, 255, .07);
  --ink: #E8EDF2;
  --ink2: #A3B1BF;
  --ink3: #7C8DA0;
  --ink4: #5B6C80;
  --acc: #2CD3C9;
  --acc-hi: #7BE7E0;
  --over: #F2994A;
  --under: #5AA9FF;
  --ok: #3DDC97;
  --danger: #F06A6A;
  --radius: 14px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --display: 'Sora', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative; margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(160, 200, 235, .13), rgba(160, 200, 235, 0) 70%),
    linear-gradient(180deg, #0A1420 0%, #070D15 520px, #05090F 1400px);
  background-color: var(--bg);
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }

/* Licht und Koernung im Hintergrund */
.pv-amb { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.pv-amb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pv-amb i { position: absolute; border-radius: 50%; }
.pv-page { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 0 36px 40px; }

.lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); font-weight: 500; }
.sub { font-size: 12px; color: var(--ink3); }

/* ---------- Kopfzeile ---------- */
.pv-top {
  position: sticky; top: 14px; z-index: 30; margin-top: 14px; min-height: 64px; padding: 0 12px 0 20px;
  display: flex; align-items: center; gap: 30px; border-radius: 16px;
  background: rgba(10, 18, 28, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.pv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.pv-tier { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 3px 7px; border-radius: 6px; color: var(--acc); background: rgba(44, 211, 201, .1); box-shadow: inset 0 0 0 1px rgba(44, 211, 201, .25); }
.pv-tabs { display: flex; gap: 24px; align-self: stretch; }
.pv-tabs button { all: unset; cursor: pointer; position: relative; display: flex; align-items: center; gap: 7px; color: var(--ink3); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pv-tabs button b { font-weight: 400; color: var(--ink4); font-family: var(--mono); font-size: 12px; }
.pv-tabs button:hover { color: var(--ink2); }
.pv-tabs button[aria-selected="true"] { color: var(--ink); }
.pv-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); border-radius: 2px; }
.pv-tabs button:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.pv-top-r { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.pv-sess { display: flex; flex-direction: column; gap: 6px; width: 240px; }
.pv-sessbar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.pv-sessbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.pv-sessbar i.on { background: rgba(61, 220, 151, .75); }
.pv-sessbar em { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink); border-radius: 1px; box-shadow: 0 0 0 3px #0C1520; }
.pv-sesslab { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink3); white-space: nowrap; gap: 8px; }
.pv-sesslab .on { color: var(--ok); }
.pv-status { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); white-space: nowrap; cursor: help; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; flex: none; }
.pv-dot.live { background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 151, .7); animation: pvblink 2s ease-in-out infinite; }
.pv-dot.loading { background: #f2c94c; animation: pvblink 1.2s ease-in-out infinite; }
.pv-dot.closed { background: var(--under); }
.pv-dot.offline { background: var(--danger); }
.pv-dot.connecting { animation: pvblink 1.2s ease-in-out infinite; }
@keyframes pvblink { 50% { opacity: .35; } }
.pv-status .pv-tip { display: none; position: absolute; top: calc(100% + 12px); right: -10px; width: 250px; padding: 12px 14px; border-radius: 12px; font-size: 12px; line-height: 1.8; color: var(--ink2); white-space: pre-line;
  background: rgba(14, 24, 36, .97); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -10px rgba(0, 0, 0, .8); }
.pv-status:hover .pv-tip, .pv-status:focus .pv-tip { display: block; }
.pv-clock { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.pv-user { position: relative; }
.pv-av { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(180deg, #1C2B3B, #121D29); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--line); }
.pv-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 12px;
  background: rgba(14, 24, 36, .97); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -10px rgba(0, 0, 0, .8); }
.pv-menu.open { display: block; }
.pv-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--ink2); word-break: break-all; }
.pv-menu a { display: block; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--ink); }
.pv-menu a:hover { background: rgba(255, 255, 255, .06); }

.pv-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none;
  color: var(--ink); background: rgba(255, 255, 255, .05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(255, 255, 255, .08); }
.pv-btn:hover { background: rgba(255, 255, 255, .09); }
.pv-btn.primary { color: #04201E; font-weight: 600; background: linear-gradient(180deg, #4BE0D7, #26BDB4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px rgba(44, 211, 201, .55); }
.pv-btn.primary:hover { background: linear-gradient(180deg, #62E7DF, #2CCBC1); }
.pv-btn.icon { width: 38px; padding: 0; }
.pv-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- Hinweiszeilen ---------- */
.pv-note { margin-top: 14px; padding: 9px 16px; border-radius: 12px; font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; text-align: center;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.pv-note strong { color: var(--ink); font-weight: 500; }
.pv-note a { color: var(--ink2); }
.pv-note a:hover { color: var(--ink); }
.pv-demo { margin-top: 10px; padding: 12px 14px 12px 18px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(44, 211, 201, .12), rgba(44, 211, 201, .03)); box-shadow: inset 0 0 0 1px rgba(44, 211, 201, .22); font-size: 14px; color: var(--ink2); }
.pv-demo strong { color: var(--ink); font-weight: 600; }

/* ---------- Kopfbereich ---------- */
.pv-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 40px 0 26px; flex-wrap: wrap; }
.pv-hero h1 { margin: 10px 0 0; font-family: var(--display); font-weight: 600; font-size: 46px; line-height: 1.06; letter-spacing: -.035em; }
.pv-hero h1 span { color: var(--ink3); }
.pv-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.pv-seg button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 8px; font-size: 13px; color: var(--ink3); font-family: var(--mono); }
.pv-seg button:hover { color: var(--ink2); }
.pv-seg button[aria-pressed="true"] { background: var(--s3); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 3px rgba(0, 0, 0, .5); }
.pv-seg button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.pv-seg svg { opacity: .7; }
.pv-select { appearance: none; -webkit-appearance: none; cursor: pointer; min-height: 38px; padding: 0 34px 0 12px; border: 0; border-radius: 10px; font: 500 13px var(--font); color: var(--ink);
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237C8DA0' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  box-shadow: inset 0 0 0 1px var(--line); }
.pv-select option { background: #0E1824; color: var(--ink); }

/* ---------- Panels ---------- */
.pv-panel { position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 33, 48, .70) 0%, rgba(11, 19, 29, .80) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 255, 255, .055), 0 1px 2px rgba(0, 0, 0, .6), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.pv-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 14px; flex-wrap: wrap; }
.pv-ph h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.pv-ph .meta { font-size: 12px; color: var(--ink3); }
.pv-count { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: 8px; color: var(--acc); background: rgba(44, 211, 201, .12); }

.pv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.pv-kpi { position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px 20px 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.pv-kpi .k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.pv-kpi .v { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; margin-top: 6px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-kpi .spk { position: absolute; right: 18px; top: 16px; }
.pv-kpi.k1 { background: radial-gradient(140% 120% at 0% 0%, rgba(44, 211, 201, .20), transparent 60%), linear-gradient(180deg, rgba(18, 40, 48, .75), rgba(10, 22, 30, .8)); }
.pv-kpi.k2 { background: radial-gradient(140% 120% at 0% 0%, rgba(242, 153, 74, .20), transparent 60%), linear-gradient(180deg, rgba(44, 34, 30, .72), rgba(20, 20, 24, .8)); }
.pv-kpi.k3 { background: radial-gradient(140% 120% at 0% 0%, rgba(90, 169, 255, .20), transparent 60%), linear-gradient(180deg, rgba(20, 32, 52, .75), rgba(11, 19, 32, .8)); }
.pv-kpi.k4 { background: radial-gradient(140% 120% at 0% 0%, rgba(196, 98, 64, .22), transparent 60%), linear-gradient(180deg, rgba(42, 26, 26, .72), rgba(20, 16, 20, .8)); }

.pv-g2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.pv-g2 > .pv-panel { display: flex; flex-direction: column; max-height: 640px; }
.pv-scroll { overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #24364A transparent; }
.pv-scroll::-webkit-scrollbar { width: 6px; } .pv-scroll::-webkit-scrollbar-thumb { background: #24364A; border-radius: 3px; }

/* Alerts */
.pv-al { display: grid; grid-template-columns: 140px minmax(0, 1fr) 100px 156px; align-items: center; gap: 22px; padding: 16px 22px; border-top: 1px solid var(--line); }
.pv-pair { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-pair strong { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.pv-pair strong span { color: var(--ink3); font-weight: 500; }
.pv-st { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.over { color: var(--over); } .under { color: var(--under); }
.pv-big { font-family: var(--mono); font-size: 28px; letter-spacing: -.03em; line-height: 1.15; }
.pv-near { padding: 12px 22px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink3); }
.pv-near b { color: var(--ink); font-weight: 600; }
.pv-al.muted .pv-pair strong { color: var(--ink2); }
.pv-al.muted .pv-st { color: var(--ink3); letter-spacing: .06em; }
.pv-empty { padding: 40px 28px 46px; border-top: 1px solid var(--line); text-align: center; color: var(--ink3); }
.pv-empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 16px; font-weight: 600; }
.pv-empty p { margin: 0 auto; max-width: 380px; font-size: 13px; }

.pv-meter { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); margin: 9px 0 6px; }
.pv-meter::before, .pv-meter::after { content: ""; position: absolute; top: -3px; width: 1px; height: 10px; background: rgba(255, 255, 255, .18); }
.pv-meter::before { left: var(--lo, 20%); } .pv-meter::after { left: var(--hi, 80%); }
.pv-meter i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.pv-meter em { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ink); box-shadow: 0 0 0 3px #0E1824; transition: left .5s cubic-bezier(.2, .7, .2, 1); }

/* Zeitrahmen-Vergleich */
.pv-mx { padding: 0 22px 18px; }
.pv-mxr { display: grid; grid-template-columns: 84px repeat(6, minmax(0, 1fr)) 58px; gap: 5px; align-items: center; margin-top: 6px; }
.pv-mxr .s { font-size: 13px; font-weight: 600; white-space: nowrap; }
.pv-cell { height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; background: rgba(255, 255, 255, .035); color: var(--ink2); }
.pv-cell.o1 { background: rgba(242, 153, 74, .10); box-shadow: inset 0 0 0 1px rgba(242, 153, 74, .55); color: #F7B57A; font-weight: 500; }
.pv-cell.o2 { background: var(--over); color: #1A0E04; font-weight: 600; }
.pv-cell.u1 { background: rgba(90, 169, 255, .10); box-shadow: inset 0 0 0 1px rgba(90, 169, 255, .55); color: #8EC4FF; font-weight: 500; }
.pv-cell.u2 { background: var(--under); color: #04101E; font-weight: 600; }
.pv-cell.lock { color: var(--ink4); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 6px, rgba(255, 255, 255, .045) 6px 12px); }
.pv-agree { font-family: var(--mono); font-size: 11px; text-align: right; color: var(--ink4); white-space: nowrap; }
.pv-agree.soft { opacity: .7; }
.pv-legend { display: flex; gap: 16px; margin: 16px 22px 0; padding: 14px 0 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); flex-wrap: wrap; }
.pv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.pv-lockcta { margin: 14px 22px 0; padding: 12px 14px; border-radius: 10px; font-size: 13px; color: var(--ink2); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(44, 211, 201, .06); box-shadow: inset 0 0 0 1px rgba(44, 211, 201, .2); }

/* Market pulse */
.pv-pulse { position: relative; padding: 4px 22px 16px; }
.pv-pulse svg { display: block; width: 100%; height: auto; overflow: visible; }
.pv-pulse .tip { position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 9px; font-size: 11px; color: var(--ink3); white-space: nowrap; transform: translate(-50%, -100%);
  background: rgba(14, 24, 36, .94); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 20px -8px rgba(0, 0, 0, .8); display: none; }
.pv-pulse .tip b { display: block; font: 500 14px var(--mono); color: var(--ink); }

/* Tabelle */
.pv-tbl { width: 100%; border-collapse: collapse; }
.pv-tbl th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); font-weight: 500; text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(2, 8, 14, .25); }
.pv-tbl td { padding: 0 14px; height: 52px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.pv-tbl tr:last-child td { border-bottom: 0; }
.pv-tbl tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.pv-tbl th:first-child, .pv-tbl td:first-child { padding-left: 18px; width: 40px; }
.pv-tbl th:last-child, .pv-tbl td:last-child { padding-right: 22px; }
.pv-tbl .r { text-align: right; }
.pv-tbl .sym { font-weight: 600; }
.pv-tbl .sym small { margin-left: 8px; font-size: 10px; font-weight: 600; letter-spacing: .1em; padding: 2px 6px; border-radius: 5px; vertical-align: 1px; }
.pv-tbl .sym small.over { background: rgba(242, 153, 74, .12); }
.pv-tbl .sym small.under { background: rgba(90, 169, 255, .12); }
.pv-star { all: unset; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: rgba(255, 255, 255, .22); }
.pv-star:hover { color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.pv-star.on { color: #F2C94C; }
.pv-star:focus-visible { outline: 2px solid var(--acc); }
.pv-tblwrap { overflow-x: auto; }
.pv-foot-note { padding: 12px 22px 16px; font-size: 12px; color: var(--ink3); border-top: 1px solid var(--line); }

.pv-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }
.pv-footer p { margin: 0; max-width: 760px; }
.pv-footer nav { display: flex; gap: 18px; white-space: nowrap; }
.pv-footer a { text-decoration: none; } .pv-footer a:hover { color: var(--ink); }

/* Animation beim Laden */
@keyframes pvrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pvdraw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
.anim { animation: pvrise .7s cubic-bezier(.2, .7, .2, 1) both; }
.drawl { stroke-dasharray: 1200; animation: pvdraw 1.6s .3s cubic-bezier(.4, 0, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .anim, .drawl, .pv-dot { animation: none !important; } .pv-meter em { transition: none; } }
.pv-panel, .pv-kpi { contain: paint; }

/* ---------- Dialoge, Toasts ---------- */
.pv-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 10, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pv-modal.open { display: flex; }
.pv-dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 18px; animation: pvrise .35s cubic-bezier(.2, .7, .2, 1) both;
  background: linear-gradient(180deg, #13202F, #0C151F); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -20px rgba(0, 0, 0, .9); }
.pv-dialog h3 { margin: 0 0 6px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.pv-dialog p { margin: 0 0 14px; color: var(--ink2); line-height: 1.6; }
.pv-dialog .x { position: absolute; top: 14px; right: 14px; }
.pv-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.pv-field label { font-size: 13px; font-weight: 500; color: var(--ink2); }
.pv-field .row { display: flex; align-items: center; gap: 10px; }
.pv-field input { flex: 1; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; font: 500 15px var(--mono); color: var(--ink); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pv-field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 3px rgba(44, 211, 201, .15); }
.pv-field small { font-size: 12px; color: var(--ink3); }
.pv-actions { display: flex; gap: 10px; margin-top: 22px; }
.pv-actions .pv-btn { flex: 1; min-height: 44px; }
.pv-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink2); font-size: 14px; }
.pv-list li { display: flex; gap: 10px; align-items: flex-start; }
.pv-list svg { flex: none; margin-top: 2px; color: var(--acc); }
.pv-steps { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.pv-steps i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: width .3s; }
.pv-steps i.on { width: 22px; background: var(--acc); }
.pv-hl { position: absolute; z-index: 99; pointer-events: none; border-radius: 16px; box-shadow: 0 0 0 2px var(--acc), 0 0 0 9999px rgba(2, 6, 10, .55); transition: all .3s; }
.pv-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; max-width: min(400px, calc(100vw - 40px)); }
.pv-toast { padding: 14px 16px; border-radius: 12px; font-size: 13px; color: var(--ink2); animation: pvrise .35s both;
  background: rgba(14, 24, 36, .96); box-shadow: inset 3px 0 0 var(--acc), 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -10px rgba(0, 0, 0, .8); }
.pv-toast b { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 1180px) {
  .pv-sess { display: none; }
  .pv-g2 { grid-template-columns: 1fr; }
  .pv-g2 > .pv-panel { max-height: none; }
  #pv-mx-panel .pv-scroll { max-height: 440px; }
  .pv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pv-page { padding: 0 16px 32px; }
  .pv-top { flex-wrap: wrap; gap: 0 14px; padding: 10px 10px 0 14px; top: 8px; margin-top: 8px; }
  .pv-top-r { gap: 12px; }
  .pv-tabs { order: 3; width: 100%; height: 46px; gap: 22px; overflow-x: auto; scrollbar-width: none; margin-top: 4px; border-top: 1px solid var(--line); padding: 0 2px; }
  .pv-tabs::-webkit-scrollbar { display: none; }
  .pv-clock { display: none; }
  .pv-hero { padding: 28px 0 20px; }
  .pv-hero h1 { font-size: 32px; }
  .pv-al { grid-template-columns: minmax(0, 1fr) 84px 118px; gap: 8px 14px; padding: 14px 16px; }
  .pv-al .spark { grid-column: 1 / -1; order: 5; }
  .pv-pair strong { font-size: 18px; }
  .pv-big { font-size: 22px; }
  .pv-ph { padding: 16px 16px 12px; }
  .pv-mx { padding: 0 16px 16px; }
  .pv-legend, .pv-lockcta { margin-left: 16px; margin-right: 16px; }
  .pv-pulse { padding: 4px 12px 12px; }
  .pv-tbl .hide-m { display: none; }
  .pv-tbl th:first-child, .pv-tbl td:first-child { padding-left: 8px; }
  .pv-tbl th:last-child, .pv-tbl td:last-child { padding-right: 16px; }
}
@media (max-width: 560px) {
  .pv-status span:not(.pv-dot) { display: none; }
  .pv-kpis { gap: 12px; }
  .pv-kpi { min-height: 116px; padding: 14px 14px 12px; }
  .pv-kpi .v { font-size: 21px; }
  .pv-kpi .spk { display: none; }
  .pv-hero h1 { font-size: 28px; }
  .pv-ctrl { width: 100%; }
  .pv-ctrl .pv-select { flex: 1; }
  .pv-tbl .hide-s { display: none; }
  .pv-mxr { grid-template-columns: 58px repeat(6, minmax(0, 1fr)) 40px; gap: 3px; }
  .pv-mxr .s { font-size: 11px; }
  .pv-cell { font-size: 11px; height: 26px; border-radius: 5px; }
  .pv-seg button { padding: 7px 9px; font-size: 12px; }
  .pv-seg { flex-wrap: wrap; }
}

/* Vorschau in der Landingpage (iframe ?preview=landing) */
body.pv-preview { background: transparent; }
body.pv-preview .pv-top, body.pv-preview .pv-note, body.pv-preview .pv-demo, body.pv-preview .pv-footer, body.pv-preview .pv-ctrl, body.pv-preview #pv-pulse-panel { display: none !important; }
body.pv-preview .pv-page { padding: 0 12px 12px; }
body.pv-preview .pv-hero { padding: 14px 0 16px; }
