/* Lizenz-Schranke (06.10.2026): animierte Karte für nicht lizenzierte Module, gedimmte Menüeinträge/Reiter mit Schloss.
   Lila-Tokens der .wm-Bausteine; Dark Mode über html[data-workspace-theme="dark"]; prefers-reduced-motion schaltet die Bewegung ab. */
@media screen {
  .license-gate { display:grid; place-items:center; padding:28px 16px; min-width:0; }
  .license-gate.compact { padding:16px 0; }
  .license-gate-card { position:relative; width:min(560px, 100%); display:grid; justify-items:center; gap:10px; padding:36px 28px 30px; text-align:center;
    border:1px solid var(--wm-border,#dccfe4); border-radius:20px; background:linear-gradient(180deg, var(--wm-tint,#f2ecf6) 0%, var(--wm-surface,#fff) 58%);
    box-shadow:0 18px 44px rgba(100,49,130,.12); overflow:hidden; animation:license-gate-in .55s cubic-bezier(.2,.8,.2,1) both; }
  .license-gate-card::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg, var(--wm-accent,#643182), #b394cc); }
  .license-gate-lock { position:relative; width:92px; height:92px; display:grid; place-items:center; margin-bottom:6px; }
  .license-gate-ring { position:absolute; inset:0; border-radius:50%; border:2px solid rgba(179,148,204,.55); animation:license-gate-pulse 2.6s ease-out infinite; }
  .license-gate-ring.second { animation-delay:1.3s; }
  .license-gate-badge { position:relative; width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:var(--wm-accent,#643182); color:#fff; box-shadow:0 10px 24px rgba(100,49,130,.32); animation:license-gate-badge 3.2s ease-in-out infinite; }
  .license-gate-badge svg { width:30px; height:30px; stroke:currentColor; }
  .license-gate-title { margin:0; font:600 24px/1.2 Cardo, Georgia, serif; color:var(--wm-accent,#643182); }
  .license-gate-module { margin:0; font-size:15px; font-weight:600; color:var(--wm-text,#28212e); letter-spacing:.01em; }
  .license-gate-text { margin:0; max-width:46ch; font-size:13.5px; line-height:1.55; color:var(--wm-muted,#6e6576); }
  .license-gate-hint { margin:4px 0 0; max-width:48ch; font-size:13.5px; line-height:1.55; color:var(--wm-text,#28212e); }
  .license-gate-note { margin:0; font-size:12.5px; color:var(--wm-muted,#6e6576); }
  .license-gate-button { margin-top:8px; }
  .license-gate.compact .license-gate-card { padding:28px 20px 24px; gap:8px; }
  .license-gate.compact .license-gate-lock { width:72px; height:72px; }
  .license-gate.compact .license-gate-badge { width:50px; height:50px; }
  .license-gate.compact .license-gate-badge svg { width:24px; height:24px; }
  .license-gate.compact .license-gate-title { font-size:20px; }

  /* Menüeinträge, Einstellungs-Themen und Reiter nicht lizenzierter Module: gedimmt mit Schloss, bleiben anklickbar (zeigen die Karte) */
  .license-locked { opacity:.55; filter:saturate(.6); }
  .license-locked .license-lock-icon { display:inline-grid; place-items:center; margin-left:auto; padding-left:6px; }
  .license-locked .license-lock-icon svg { width:13px; height:13px; opacity:.9; }
  #nav .nav-button.license-locked .license-lock-icon { margin-left:auto; }
  .settings-hub-topic.license-locked .license-lock-icon { margin-left:0; }
  .case-tabs .tab.license-locked, .tabs .tab.license-locked { position:relative; }
  .case-tabs .tab.license-locked .license-lock-icon svg, .tabs .tab.license-locked .license-lock-icon svg { width:12px; height:12px; margin-left:4px; vertical-align:-1px; }

  html[data-workspace-theme="dark"] .license-gate-card { background:linear-gradient(180deg, rgba(100,49,130,.22) 0%, var(--wm-surface,#1f1a24) 58%); box-shadow:none; }
  html[data-workspace-theme="dark"] .license-gate-ring { border-color:rgba(179,148,204,.4); }

  @keyframes license-gate-in { from { opacity:0; transform:translateY(14px) scale(.98); } to { opacity:1; transform:none; } }
  @keyframes license-gate-pulse { 0% { transform:scale(.72); opacity:.9; } 70% { opacity:.15; } 100% { transform:scale(1.18); opacity:0; } }
  @keyframes license-gate-badge { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }

  @media (prefers-reduced-motion: reduce) {
    .license-gate-card, .license-gate-ring, .license-gate-badge { animation:none; }
    .license-gate-ring { opacity:.35; transform:scale(1.05); }
  }
  @media (max-width: 600px) {
    .license-gate { padding:18px 0; }
    .license-gate-card { padding:28px 18px 24px; border-radius:16px; }
    .license-gate-title { font-size:21px; }
  }
}
