/* ════════════════════════════════════════════════════════════════
   Kampagnen-Vorschau — showcase shell
   Accent (--vp-accent) follows the selected company's brand colour.
   ════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sm-charcoal);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(19,0,255,.10), transparent 60%),
    radial-gradient(900px 460px at 98% 4%, rgba(198,250,2,.14), transparent 55%),
    linear-gradient(180deg, #FBFAF8 0%, var(--sm-stone) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
::selection { background: var(--sm-lime); color: var(--sm-charcoal); }

.vp-app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px 64px;
}

/* ───────── top bar ───────── */
.vp-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 4px; margin-bottom: 8px;
}
.vp-topbar::before {
  content: ""; position: absolute; inset: 0 -22px;
  background: rgba(251,250,248,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.05); z-index: -1;
}
.vp-brand { display: flex; align-items: center; gap: 11px; }
.vp-logo svg { width: 30px; height: 30px; display: block; border-radius: 8px;
  box-shadow: 0 3px 10px rgba(19,0,255,.28); }
.vp-brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.vp-brand-txt strong { font-family: var(--font-heading); font-weight: 800;
  font-size: 15.5px; letter-spacing: -.02em; }
.vp-brand-txt span { font-size: 11.5px; color: var(--sm-gray-500); margin-top: 2px; }
.vp-topbar-right { display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--sm-gray-500); }
.vp-livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--sm-success);
  box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: vp-pulse 2.2s infinite; }
@keyframes vp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ───────── hero ───────── */
.vp-hero { padding: 26px 4px 22px; max-width: 760px; }
.vp-hero h1 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(27px, 4.4vw, 42px); line-height: 1.08;
  letter-spacing: -.03em; margin: 0 0 12px; color: var(--sm-charcoal);
}
.vp-hl { position: relative; white-space: nowrap; color: var(--sm-blue); }
.vp-hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 9px;
  background: var(--sm-lime); z-index: -1; border-radius: 3px; opacity: .9;
  transform: rotate(-.6deg);
}
.vp-hero p { font-size: clamp(14px, 1.7vw, 16px); line-height: 1.6;
  color: var(--sm-gray-600); margin: 0; max-width: 60ch; }

/* ───────── section label ───────── */
.vp-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sm-gray-400); margin: 14px 4px 11px;
}

/* ───────── company switcher ───────── */
.vp-companies { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 22px; }
.vp-co {
  --co-color: var(--sm-blue);
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  background: rgba(255,255,255,.7); border: 1.5px solid var(--sm-stone-200);
  border-radius: 15px; padding: 9px 13px 9px 10px; min-width: 0;
  font-family: var(--font-body); text-align: left;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, border-color .18s, background .18s;
}
.vp-co:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.07);
  border-color: var(--sm-stone-400); background: #fff; }
.vp-co.is-active {
  background: #fff; border-color: var(--co-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-color) 16%, transparent),
              0 10px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.vp-co-badge {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  background: var(--co-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--co-color) 38%, transparent);
}
.vp-co-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.vp-co-name { font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  color: var(--sm-charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-co-ind { font-size: 11.5px; color: var(--sm-gray-500); margin-top: 1px; }
.vp-co-kbd {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--sm-gray-400);
  background: var(--sm-stone); border: 1px solid var(--sm-stone-200); margin-left: 4px;
}
.vp-co.is-active .vp-co-kbd { color: var(--co-color);
  border-color: color-mix(in srgb, var(--co-color) 35%, transparent);
  background: color-mix(in srgb, var(--co-color) 9%, #fff); }

/* ───────── channel switcher (segmented control) ───────── */
.vp-channels {
  position: relative; display: flex; gap: 4px; margin-bottom: 20px;
  background: rgba(255,255,255,.7); border: 1px solid var(--sm-stone-200);
  border-radius: 16px; padding: 5px;
  box-shadow: var(--shadow-sm); overflow-x: auto; scrollbar-width: none;
}
.vp-channels::-webkit-scrollbar { display: none; }
.vp-channel-pill {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px);
  border-radius: 12px; z-index: 0;
  background: color-mix(in srgb, var(--vp-accent) 13%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vp-accent) 30%, transparent);
  transition: transform .36s cubic-bezier(.4,0,.18,1), width .36s cubic-bezier(.4,0,.18,1),
              background .3s, box-shadow .3s;
  will-change: transform, width;
}
.vp-channel {
  position: relative; z-index: 1; flex: 1 0 auto; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 0; border-radius: 12px;
  padding: 11px 16px; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 600; font-size: 13.5px;
  color: var(--sm-gray-500); transition: color .25s, transform .15s;
}
.vp-channel:hover { color: var(--sm-charcoal); }
.vp-channel:active { transform: scale(.97); }
.vp-channel.is-active { color: color-mix(in srgb, var(--vp-accent) 78%, var(--sm-charcoal)); }
.vp-channel-ico { display: inline-flex; }
.vp-channel-ico svg { width: 17px; height: 17px; }
.vp-channel-lbl-sm { display: none; }

/* ───────── stage ───────── */
.vp-stage {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--sm-stone-200); border-radius: 22px;
  padding: 16px; box-shadow: 0 18px 50px rgba(20,16,40,.07);
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.04) 1px, transparent 0);
  background-size: 22px 22px;
}
.vp-stage-cap {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--sm-charcoal);
}
.vp-cap-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vp-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vp-accent) 16%, transparent); transition: background .3s; }
.vp-cap-sep { color: var(--sm-gray-300); }
#vpCapCompany { color: var(--sm-gray-500); font-weight: 600; }

.vp-canvas-wrap { position: relative; min-height: 360px;
  background: var(--sm-white); border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--sm-stone-200); }
.vp-canvas { padding: 26px 26px 28px; transition: opacity .28s ease, transform .28s ease; }
.vp-canvas.is-swapping { opacity: 0; transform: translateY(10px); }

/* skeleton */
.vp-skeleton { position: absolute; inset: 0; z-index: 2; background: var(--sm-white); }
.vp-shimmer { position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(19,0,255,.06) 40%, rgba(198,250,2,.10) 55%, transparent 75%);
  background-size: 220% 100%; animation: vp-shimmer 1.1s infinite; }
@keyframes vp-shimmer { from { background-position: 180% 0; } to { background-position: -60% 0; } }

/* ───────── footer ───────── */
.vp-foot { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 20px 6px 0; }
.vp-hint { font-size: 12px; color: var(--sm-gray-500); display: inline-flex; align-items: center; gap: 5px; }
.vp-hint kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--sm-gray-600);
  background: #fff; border: 1px solid var(--sm-stone-200); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.vp-hint-sep { color: var(--sm-gray-300); margin: 0 4px; }
.vp-foot-note { font-size: 11.5px; color: var(--sm-gray-400); }
.vp-err { padding: 40px; text-align: center; color: var(--sm-gray-400); }

/* ───────── responsive ───────── */
@media (max-width: 820px) {
  .vp-channel-lbl { display: none; }
  .vp-channel-lbl-sm { display: inline; font-size: 12.5px; }
  .vp-channel { flex: 1 0 auto; padding: 10px 12px; }
  .vp-co { flex: 1 1 calc(50% - 11px); }
  .vp-co-kbd { display: none; }
  .vp-canvas { padding: 16px 12px 18px; }
  .vp-foot-note { display: none; }
}
@media (max-width: 520px) {
  .vp-co { flex: 1 1 100%; }
  .vp-live-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
