/* ==========================
   --- Cursor-Grunddesign ---
   ========================== */

/* Cursor-01 (bleibt unverändert, falls du es nutzt) */
.cursor-01-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 1.0);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease;
}

.cursor-01-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(0, 0, 255, 0.3);
  background-color: rgba(0, 0, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, border-radius 0.2s ease;
}

body.cursor-hover .cursor-01-ring {
  transform: translate(-50%, -50%) scale(1.3);
  border-color: #00ffff;
  background-color: rgba(0, 255, 255, 0.25);
  border-radius: 4px;
  animation: pulse 1s infinite ease-in-out, hueShift 3s infinite alternate;
}

body.cursor-hover .cursor-01-dot {
  background-color: rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.9; }
}

@keyframes hueShift {
  0% { border-color: #00ffff; }
  50% { border-color: rgba(255, 210, 0, 0.8); }
  100% { border-color: #00ffff; }
}

/* ==========================
   --- Cursor-02 (dot) -----
   ========================== */

.cursor-02-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(to right, rgba(135,206,235,0.8), rgba(0, 68, 255, 0.50));
  transform: translate(-50%, -50%) scale(1);
  z-index: 10000;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, opacity 0.2s ease;
  opacity: 1;
}

/* Hover-Effekt für cursor-02 */
body.cursor-02-hover .cursor-02-dot {
  transform: translate(-50%, -50%) scale(2.0);
  background: linear-gradient(to right, rgba(0, 68, 255, 0.50), rgba(194, 234, 250, 0.5));
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.7);
  z-index: 11;
}

/* ==========================
   --- Explosion Styles -----
   ========================== */

/* Partikel-Basis */
.cursor-explosion-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001; /* über dem dot */
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,1), rgba(255,255,255,0.7));
  will-change: transform, opacity;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 700ms cubic-bezier(.18,.9,.3,1), opacity 700ms linear;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Optional: elegante kurze Skalierung des Dots beim Explodieren */
.cursor-02-dot.exploding {
  transform: translate(-50%, -50%) scale(0.2) !important;
  opacity: 0 !important;
  transition: transform 350ms ease-out, opacity 350ms ease-out;
}


/* ==========================
   --- Mobilgeräte ausschließen ---
   ========================== */

/* Alle Cursor-Elemente auf Mobilgeräten ausblenden */
@media (hover: none) and (pointer: coarse) {
  .cursor-01-dot,
  .cursor-01-ring,
  .cursor-02-dot,
  .cursor-explosion-particle {
    display: none !important;
  }
}