@charset "UTF-8";
/* Gemeinsame Grundlage von PP Hub: Portal, Clip-Studio und Gewinnspiele binden diese Datei als erste ein
   (/static/css/pphub.css). Hier stehen Schrift, Zahlen und die Bausteine, die überall gleich aussehen:
   Strg+K-Suche, Hinweise unten rechts und Ladeflächen. Eigene Farben tragen das Präfix --pp-. */
:root {
  --pp-font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --pp-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", -apple-system, system-ui, sans-serif;
  --pp-mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  --pp-bg: #1b1b1b; --pp-raised: #242424; --pp-line: #333333; --pp-ink: #efefef; --pp-muted: #969696;
  --pp-accent: #4ade80; --pp-red: #f87171; --pp-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  --pp-skel-a: #222222; --pp-skel-b: #2c2c2c; --pp-ease: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --pp-bg: #ffffff; --pp-raised: #f5f5f5; --pp-line: #e3e3e3; --pp-ink: #18181a; --pp-muted: #737373;
  --pp-accent: #15803d; --pp-red: #b42318; --pp-shadow: 0 24px 64px rgba(20, 20, 20, .18);
  --pp-skel-a: #eeeeee; --pp-skel-b: #f7f7f7; } }
:root[data-theme="light"] {
  --pp-bg: #ffffff; --pp-raised: #f5f5f5; --pp-line: #e3e3e3; --pp-ink: #18181a; --pp-muted: #737373;
  --pp-accent: #15803d; --pp-red: #b42318; --pp-shadow: 0 24px 64px rgba(20, 20, 20, .18);
  --pp-skel-a: #eeeeee; --pp-skel-b: #f7f7f7;
}

/* Schrift: Segoe UI Variable (unter Windows vorhanden, es wird nichts geladen); Überschriften in der Display-Variante */
html { font-family: var(--pp-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--pp-font); }
h1, h2, .kpi-value { font-family: var(--pp-display); }
h1 { letter-spacing: -.015em; }
/* Zahlen stehen untereinander sauber, wenn alle Ziffern gleich breit sind */
td, th, time, .num, .big, .kpi-value, .kpi-sub, .count-label, .heading-count, .tag { font-variant-numeric: tabular-nums; }
code, kbd, pre { font-family: var(--pp-mono); }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border: 1px solid var(--pp-line); border-bottom-width: 2px;
  border-radius: 5px; background: var(--pp-raised); color: var(--pp-muted); font-size: 11px; line-height: 16px; text-align: center; }

/* Strg+K: Suche nach Seiten und Befehlen */
.pp-palette { width: min(560px, calc(100vw - 32px)); max-height: min(480px, calc(100vh - 120px)); margin: 12vh auto auto;
  padding: 0; border: 1px solid var(--pp-line); border-radius: 14px; background: var(--pp-bg); color: var(--pp-ink);
  box-shadow: var(--pp-shadow); overflow: hidden; }
.pp-palette[open] { display: flex; flex-direction: column; animation: pp-pop 160ms var(--pp-ease); }
.pp-palette::backdrop { background: rgba(0, 0, 0, .35); backdrop-filter: blur(2px); }
.pp-palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--pp-line); }
.pp-palette-search svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--pp-muted); }
.pp-palette-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; box-shadow: none; }
.pp-palette .pp-palette-search input:focus, .pp-palette .pp-palette-search input:focus-visible { outline: 0; box-shadow: none; }
.pp-palette-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.pp-palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.pp-palette-item small { margin-left: auto; color: var(--pp-muted); font-size: 12px; }
.pp-palette-item[aria-selected="true"] { background: var(--pp-raised); }
.pp-palette-empty { padding: 20px 16px; color: var(--pp-muted); font-size: 13px; }
.pp-palette-foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--pp-line); color: var(--pp-muted); font-size: 11px; }
.pp-palette-hint { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 16px; padding: 8px 12px;
  border: 1px solid var(--pp-line); border-radius: 8px; background: transparent; color: var(--pp-muted); font: inherit; font-size: 13px; cursor: pointer; }
.pp-palette-hint:hover { color: var(--pp-ink); }
.pp-palette-hint svg { width: 16px; height: 16px; flex: 0 0 16px; }
.pp-palette-hint kbd { margin-left: auto; }

/* Hinweise unten rechts */
.pp-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.pp-toast { max-width: 380px; padding: 12px 16px; border: 1px solid var(--pp-line); border-left: 3px solid var(--pp-accent);
  border-radius: 10px; background: var(--pp-bg); color: var(--pp-ink); box-shadow: var(--pp-shadow); font-size: 13px;
  line-height: 1.45; white-space: pre-line; pointer-events: auto; animation: pp-in 220ms var(--pp-ease); }
.pp-toast.error { border-left-color: var(--pp-red); }
.pp-toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity 200ms, transform 200ms; }

/* Ladeflächen: graue, sanft schimmernde Platzhalter statt „Lädt …“ */
.pp-skeleton { display: grid; gap: 12px; }
.pp-skeleton span { display: block; height: 18px; border-radius: 8px;
  background: linear-gradient(90deg, var(--pp-skel-a) 25%, var(--pp-skel-b) 50%, var(--pp-skel-a) 75%);
  background-size: 300% 100%; animation: pp-shimmer 1.4s ease-in-out infinite; }
.pp-skeleton .tall { height: 120px; border-radius: 12px; }
.pp-skeleton .short { width: 40%; }

/* Leere Bereiche: ein Satz, was hier erscheint, statt einer leeren Fläche */
.pp-empty { padding: 32px 24px; border: 1px dashed var(--pp-line); border-radius: 12px; color: var(--pp-muted); text-align: center; font-size: 13px; }
.pp-empty strong { display: block; margin-bottom: 4px; color: var(--pp-ink); font-weight: 500; }

@keyframes pp-pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes pp-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pp-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pp-palette[open], .pp-toast, .pp-skeleton span { animation: none; } }
@media (max-width: 720px) { .pp-toasts { left: 16px; right: 16px; bottom: 16px; } .pp-toast { max-width: none; } .pp-palette { margin-top: 8vh; } }
