/* ================================================= */
/* 1. BASIS-STILE                                   */
/* ================================================= */

.circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

svg#molecule {
  width: 500px;
  height: 500px;
  overflow: visible;
  transform-origin: center;
}

.tool-icon {
  cursor: pointer;
  transform: scale(0);
  transition: transform 1.5s ease-in-out;
}

#tools text,
text {
  font-family: Arial, sans-serif;
  font-weight: bold;
  fill: white;
  text-anchor: middle;
  font-size: 12px;
  pointer-events: none;
  transition: transform 1s ease-in-out;
}

.tool-circle:hover {
  transform: scale(1.02);
}

.line {
  stroke: #999;
  stroke-width: 2;
  transition: x2 1s ease-in-out, y2 1s ease-in-out;
}


/* ================================================= */
/* 2. RESPONSIVE                                    */
/* ================================================= */

@media (max-width: 768px) {
  .circle-container {
    padding: 2rem 0;
  }

  svg#molecule {
    transform: scale(0.6);
  }
}

/* ================================================= */
/* NEUE STILE: Icon-Wechsel für Dark Mode            */
/* ================================================= */

/* Alle zentralen Icons erhalten einen weichen Übergang */
.center-icon-light,
.center-icon-dark {
    /* Optional: Fügt einen weichen Übergang beim Ein-/Ausblenden hinzu */
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

/* Standard (Light Mode): Zeige das helle Icon, verstecke das dunkle Icon */
.center-icon-light {
    opacity: 1;         /* Voll sichtbar */
    visibility: visible;
}

.center-icon-dark {
    opacity: 0;         /* Unsichtbar */
    visibility: hidden; /* Vom Layout entfernen (wichtig im SVG-Kontext) */
}

/* Dark Mode: Wenn der Body die Klasse "dark-mode" hat */
body.dark-mode .center-icon-light {
    opacity: 0;         /* Helles Icon ausblenden */
    visibility: hidden;
}

body.dark-mode .center-icon-dark {
    opacity: 1;         /* Dunkles Icon einblenden */
    visibility: visible;
}