* {
  box-sizing: border-box;
}

  body {
    font-family: Arial, sans-serif;
    background: #844;
    color: white;
    user-select: none;
    margin: 20px;
  }
  #scoreboard {
    margin: 12px 16px;
    font-size: 18px;
  }
  #grid {
    display: grid;
    grid-template-columns: repeat(8, 40px);
    grid-template-rows: repeat(8, 40px);
    gap: 0;
    border: 2px solid #ccc;
    background: #444;
    width: 320px;
    height: 320px;
		margin: 0 16px;
  }
  .cell {
    width: 40px;
    height: 40px;
    background-color: #eee;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
  }
	#grid_neu_nicht_getestet    {
  display: grid;
  grid-template-columns: repeat(8, 40px);
  grid-template-rows: repeat(8, 40px);
  gap: 3px; /* Abstand zwischen den Zellen */
  background: #444; /* "Linien"-Farbe */
  padding: 5px;
  border-radius: 8px;
}
.cell_neu_nicht_getestet {
  width: 40px;
  height: 40px;
  background: #f0f0f0; /* neutrale Grundfarbe */
  border-radius: 4px;
  transition: background 0.2s ease; /* sanfter Farbwechsel */
}

#restartBtn {
  margin: 16px;
  background: #ff9800;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
}
#restartBtn:hover {
  background: #e68a00;
}



  .cell.filled {
    background-color: steelblue;
		box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
  }
  .cell.highlight {
    background-color: yellow !important;
    animation: flash 0.5s ease;
  }
  #parts {
    margin-top: 20px;
    display: flex;
    gap: 20px;
  }
  .part {
	position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: transparent;
  border-radius: 8px;
  padding: 6px;
  }
 /* .part div {
    //background-color: steelblue;
    border-radius: 3px;
    border: 0px solid #555;
  }*/
	
	.part > div > div {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #333;
  box-sizing: border-box;
  /* KEIN background hier, Farbe setzt JS */
}
	
  /* Verschiedene Formen der Teile */
  .part.square div {
    width: 80px;
    height: 80px;
    display: grid;
    grid-template-columns: repeat(2, 40px);
    grid-template-rows: repeat(2, 40px);
  }
  .part.square div > div {
    background-color: crimson;
    border: 1px solid #800;
  }
  .part.long-horizontal div {
    width: 160px;
    height: 40px;
    display: grid;
    grid-template-columns: repeat(4, 40px);
    grid-template-rows: 40px;
  }
  .part.long-horizontal div > div {
    background-color: darkorange;
    border: 1px solid #b35000;
  }
  .part.long-vertical div {
    width: 40px;
    height: 160px;
    display: grid;
    grid-template-columns: 40px;
    grid-template-rows: repeat(4, 40px);
  }
  .part.long-vertical div > div {
    background-color: forestgreen;
    border: 1px solid #135013;
  }

  /* Einzelne Zellen in den Teilen */
  .part div > div {
    box-sizing: border-box;
  }

  /* Flash Animation */
  @keyframes flash {
    0% { background-color: yellow; }
    100% { background-color: steelblue; }
  }

#gameover {
  margin: 16px;
  font-size: 22px;
  color: #ff5252;
  font-weight: bold;
}