.io-crystal-scene {
    width: 300px;
    height: 300px;
    perspective: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .io-crystal-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(0deg); 
    animation: io-cube-spin 25s infinite linear;
  }

  .io-cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    transition: all 0.4s ease-in-out; 
  }

  .face-front  { transform: translateZ(125px); }
  .face-back   { transform: rotateY(180deg) translateZ(125px); border-color: rgba(250, 204, 21, 0.05); }
  .face-right  { transform: rotateY(90deg)  translateZ(125px); }
  .face-left   { transform: rotateY(-90deg) translateZ(125px); }
  .face-top    { transform: rotateX(90deg)  translateZ(125px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(125px); border-color: rgba(14, 165, 233, 0.05); }

  /* Das Herzstück: Die Medaille im Zentrum */
  .io-badge-core-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
    transform: translateZ(0px);
    pointer-events: none;
    transform-style: preserve-3d; 
    transition: transform 0.4s ease-in-out;
  }

  /* Gemeinsame Stile für Vorder- und Rückseite */
  .io-badge-front, .io-badge-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
  }

  /* Vorderseite */
  .io-badge-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) drop-shadow(0 0 15px rgba(250, 204, 21, 0.15));
    transition: filter 0.4s ease-in-out;
  }

  /* Rückseite */
  .io-badge-back {
    transform: rotateY(180deg);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #facc15; 
    box-sizing: border-box;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) drop-shadow(0 0 15px rgba(250, 204, 21, 0.15));
    transition: filter 0.4s ease-in-out;
  }

  @keyframes io-cube-spin {
    from { transform: rotateX(-15deg) rotateY(0deg); }
    to   { transform: rotateX(-15deg) rotateY(360deg); }
  }
  
  /* --- HOVER-EFFEKTE --- */
  
  .io-crystal-scene:hover .io-cube-face {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.05); 
  }

  .io-crystal-scene:hover .face-back {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.15), inset 0 0 20px rgba(250, 204, 21, 0.1);
  }
  .io-crystal-scene:hover .face-bottom {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15), inset 0 0 20px rgba(14, 165, 233, 0.1);
  }

  .io-crystal-scene:hover .io-badge-core-center {
    transform: translateZ(0px) scale(1.02); 
  }
  
  .io-crystal-scene:hover .io-badge-front img,
  .io-crystal-scene:hover .io-badge-back {
    filter: drop-shadow(0 25px 45px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(250, 204, 21, 0.4));
  }

  /* --- Styles für den QR-Code UNTER dem Würfel --- */
  .io-qr-display-bottom {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .io-qr-display-bottom:hover {
    opacity: 1;
  }

  .io-qr-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 500;
  }

  .io-qr-display-bottom canvas {
    background-color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(250, 204, 21, 0.3);
  }

  /* --- NEU: AUDIO VISUALIZER (Positioniert & Versteckt) --- */
  .io-audio-visualizer {
    margin-top: 90px; /* Weiter nach unten geschoben, aus dem Würfel heraus */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Klicks ignorieren, wenn unsichtbar */
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .io-audio-visualizer.is-active {
    opacity: 1;
    visibility: visible;
  }

  .io-audio-status {
    color: rgba(250, 204, 21, 0.9);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-family: monospace;
    animation: io-pulse-text 1.5s infinite ease-in-out;
  }

  #io-audio-canvas {
    width: 200px;
    height: 40px;
    background: transparent;
  }

  @keyframes io-pulse-text {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
  }
