.hidden {
  display: none !important;
}

/* Toolbar-Styling */
#toolbar {
    color: #fff;
   /*👉 background-color: #2ab769;👈*/ 
    position: fixed;
    left: 20px;            /* Abstand vom linken Rand */
    top: 50%;              /* Zentriert vertikal */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  
  /* Button-Grunddesign */
  .tool-button {
    width: 50px;
    height: 50px;
    background-color: #333;          
    border: 1px solid #444;          
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    position: relative;              /* Für das positionierte Tooltip */
    transition: background-color 0.1s ease, box-shadow 0.1s ease;
  }

  .tool-button.selected{
    background-color: rgb(53, 111, 181);
    border: 1px solid rgb(53, 111, 181);         
  }
  
  #toolbar button:first-child{
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
  }

  #toolbar button:last-child{
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
  }
  
  /* Hover-Effekt für den Button */
  .tool-button:hover:not(.selected) {
    background-color: #444;          /* Etwas helleres Grau beim Hover */
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); */
  }

  #toolButtonTweak{
    background-image: url('ToolBarButtonTweak.png'); 
    background-repeat: no-repeat; 
    background-position: center;
  }

  #toolButtonAddTile{
    background-image: url('AddTileIcon.png'); 
    background-repeat: no-repeat; 
    background-position: center;
  }

  #toolButtonAddMetatile{
    background-image: url('AddMetaTileIcon.png'); 
    background-repeat: no-repeat; 
    background-position: center;
  }

  #toolButtonSelectBox{
    background-image: url('BoxSelectionIcon.png'); 
    background-repeat: no-repeat; 
    background-position: center;
  }

  #toolButtonSelectLasso{
    background-image: url('LassoSelectionIcon.png'); 
    background-repeat: no-repeat; 
    background-position: center;
  }
  
  
  /* Tooltip-Element (wird dynamisch per JavaScript eingefügt) */
  .tooltip {
    position: absolute;
    left: 60px;                      /* Rechts neben dem Button (Breite + 10px Abstand) */
    top: 50%;
    transform: translateY(-50%);
    background-color: #111;          /* Sehr dunkler Hintergrund */
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;            /* Keine Maus-Interaktion nötig */
    opacity: 0;                      /* Unsichtbar zu Beginn */
    transition: opacity 0.2s ease;   /* Sanfter Fade-In-Effekt */
    z-index: 999;
    user-select: none;
  }
  
  /* Tooltip-Pfeil (optional) */
  .tooltip::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #111 transparent transparent;
    user-select: none;
  }
  
  /* Sichtbares Tooltip, sobald JavaScript es einblendet */
  .tooltip.show {
    opacity: 1;
  }
  