/* Mobile-Optimierung */
@media (max-width: 768px) {
  .wrapper {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.5em;
    padding: 5px 8px;
    width: 100%; /* Flexibel für mobile Geräte */
    text-align: center;
  }

  .binary-container {
    gap: 3px; /* Weniger Abstand zwischen Bits */
  }

  .bit {
    width: 16px;
    height: 16px; /* Kleinere „Lämpchen“ für mobile Ansicht */
  }

  .toggle-decimal {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  /* Noch kleinere Anpassungen für sehr kleine Bildschirme */
  h1 {
    font-size: 1.2em;
  }

  .label {
    font-size: 12px;
  }

  .binary-container {
    grid-template-columns: repeat(6, 16px); /* Kleinere Spalten für Bits */
  }

  .total {
    font-size: 0.8em;
  }
}

@media (max-width: 320px) {
  .binary-container {
    grid-template-columns: repeat(6, 14px);
  }

  .bit {
    width: 14px;
    height: 14px;
  }

  h1 {
    font-size: 1em;
  }
}
