/* Design-Studie Uhrenpass (pass-demo.html) – ergänzt site.css */
.pd .demo-tag { font-size: .8rem; color: var(--gold); padding: 6px 14px; border: 1px solid rgba(226,176,74,.35); border-radius: 999px; }
.pd-main { max-width: 1180px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 40px) 40px; display: grid; gap: 22px; }
.verify { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.verify .v-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(126,226,168,.15); color: var(--ok); border: 1px solid rgba(126,226,168,.35); font-weight: 700; }
.verify b { display: block; }
.verify span { color: var(--muted); font-size: .9rem; }
.view-switch { margin-left: auto; display: flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); }
.view-switch button { font: inherit; font-size: .88rem; color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.view-switch button.on { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205; font-weight: 600; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.pd-card-col { position: sticky; top: 100px; display: grid; gap: 16px; justify-items: center; perspective: 1600px; min-width: 0; }
.pd-card-col > .pd-pass { justify-self: stretch; margin: 0 auto; }
.pd-pass { all: unset; cursor: pointer; display: block; position: relative; width: min(480px, 100%); aspect-ratio: 1.586; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(calc(var(--ry, -8deg) + var(--flip, 0deg))); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.pd-pass:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 24px; }
.pd-pass.flipped { --flip: 180deg; }
.pd-pass .face { display: block; }
.pd-pass .f-head, .pd-pass .f-foot { display: flex; }
.pd-pass .f-body { display: grid; }
.pd-pass .f-meta { display: grid; }
.pd-pass .row2 { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed rgba(255,255,255,.14); padding-bottom: 5px; }
.pd-pass .row2 span { color: var(--faint); }
.pd-pass .row2 b { font-weight: 500; text-align: right; }
.mini-tl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 18px; font-size: .8rem; }
.mini-tl span { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.mini-tl time { color: var(--gold); margin-right: 8px; font-variant-numeric: tabular-nums; }
.wallet-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wallet-btn { font: inherit; font-size: .9rem; color: #fff; background: #000; border: 1px solid #333; border-radius: 12px; padding: 11px 18px; display: inline-flex; gap: 8px; align-items: center; opacity: .85; }
.wallet-btn.g { background: #fff; color: #222; border-color: #ddd; }
.center { text-align: center; margin: 0; }
.pd-info { display: grid; gap: 18px; }
.pd-box { padding: 24px 26px; }
.pd-box h2 { font-size: 1.35rem; margin-bottom: 14px; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.07); padding-bottom: 9px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; text-align: right; }
.pd-tl { list-style: none; margin: 0 0 14px; padding: 0 0 0 22px; position: relative; display: grid; gap: 16px; }
.pd-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), rgba(226,176,74,.08)); }
.pd-tl li { position: relative; display: grid; gap: 2px; }
.pd-tl li::before { content: ""; position: absolute; left: -22px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(226,176,74,.18); }
.pd-tl time { color: var(--gold); font-size: .82rem; font-variant-numeric: tabular-nums; }
.pd-tl span { color: var(--muted); font-size: .93rem; }
.pd-tl i { font-style: normal; font-size: .8rem; color: var(--faint); }
.code-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.code { font-variant-numeric: tabular-nums; letter-spacing: .25em; font-size: 1.3rem; padding: 10px 16px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px dashed rgba(226,176,74,.45); color: var(--gold); }
.code-row input { max-width: 220px; }
body.view-public .owner-only, body.view-owner .public-only { display: none !important; }
@media (max-width: 960px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-card-col { position: static; }
  .view-switch { margin-left: 0; }
}
.seal-on { --seal: 1; }
/* Marktwert (Histogramm + Verlauf) */
.pd-markt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pd-markt-kopf h2 { margin-bottom: 0; }
.pd-markt .demo-tag { font-size: .75rem; color: var(--gold); padding: 4px 12px; border: 1px solid rgba(226,176,74,.35); border-radius: 999px; }
.pd-kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.pd-kennzahlen div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 2px; }
.pd-kennzahlen span { font-size: .76rem; color: var(--faint); }
.pd-kennzahlen b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pd-h3 { font-size: .95rem; font-weight: 500; color: var(--muted); margin: 6px 0 8px; }
.pd-chart { margin-bottom: 14px; }
.pd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pd-bar { fill: rgba(226,176,74,.55); }
.pd-band { fill: rgba(255,244,222,.05); }
.pd-band2 { fill: rgba(226,176,74,.10); }
.pd-marke { stroke: #f3efe8; stroke-width: 1.5; stroke-dasharray: 4 4; }
.pd-marke-t { fill: #f3efe8; font-size: 12px; font-weight: 600; }
.pd-achse { fill: var(--faint); font-size: 11px; }
.pd-linie { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linejoin: round; }
.pd-punkt { fill: var(--gold-2); stroke: #0e0d0c; stroke-width: 2; }
@media (max-width: 560px) { .pd-kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Hover: Fangfläche, Hinweisschild, Führungslinie */
.pd-chart { position: relative; touch-action: pan-y; }
.pd-fang { fill: transparent; cursor: crosshair; }
.pd-bar { transition: fill .15s; }
.pd-bar.an { fill: var(--gold-2); }
.pd-fuehrung { stroke: rgba(243,239,232,.45); stroke-width: 1; stroke-dasharray: 3 3; }
.pd-tip { position: absolute; left: var(--x, 0); top: var(--y, 0); transform: translate(12px, -110%); pointer-events: none; z-index: 3;
  display: grid; gap: 2px; min-width: 150px; padding: 8px 12px; border-radius: 12px; font-size: .8rem; white-space: nowrap;
  background: rgba(24,22,19,.94); border: 1px solid rgba(255,244,222,.16); box-shadow: 0 14px 30px -14px rgba(0,0,0,.9); }
.pd-tip.mitte { transform: translate(-50%, calc(-100% - 12px)); }
.pd-tip.links { transform: translate(calc(-100% - 12px), -110%); }
.pd-tip b { font-weight: 600; color: var(--gold-2); }
.pd-tip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-tip[hidden] { display: none; }
/* Barrierefreiheit: Tastaturfokus der Diagramme, verborgene Tabellen, Tippflächen */
.pd-chart:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 6px; border-radius: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.view-switch button { min-height: 44px; }
.wallet-hinweis { max-width: 360px; }
/* Gold-Budget (Apple HIG): Gold nur für Zustand (gewählte Ansicht, überfahrener Balken), Kurve und Passkarte */
.pd .demo-tag, .pd-markt .demo-tag { color: var(--muted); border-color: var(--glass-line); }
.pd-tl::before { background: linear-gradient(rgba(243,239,232,.5), rgba(243,239,232,.06)); }
.pd-tl li::before { background: var(--text); box-shadow: 0 0 0 4px rgba(243,239,232,.12); }
.pd-tl time, .mini-tl time { color: var(--muted); }
.pd-bar { fill: rgba(243,239,232,.32); }
.pd-band2 { fill: rgba(243,239,232,.07); }

/* Ausgewählt/aktiv = goldene Umrandung mit sanftem Schein statt Füllung, Schrift so dünn wie sonst (Füllung nur für die Hauptaktion) */
.view-switch button.on { background: rgba(226,176,74,.08) !important; color: #f0c873 !important; border-color: transparent !important; font-weight: inherit !important; box-shadow: inset 0 0 0 1.5px #e2b04a, 0 0 16px -2px rgba(226,176,74,.45), inset 0 0 12px -4px rgba(226,176,74,.35) !important; text-shadow: 0 0 10px rgba(240,200,115,.55); }
