
.gridnumber {
  width: 23%;
  border: 1px solid whitesmoke;
  padding: 0.65em;
  display: flex;
  flex-direction: column;
  
}

.gridnumber input {
  width: auto;
  padding: 0.1em;
  background-color: whitesmoke;
}

.size-control{
  border: 1px solid whitesmoke;
  width: 95%;
  margin-bottom: 0.5rem;
}

.size-controls {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  padding: 0.5rem;
}


.composer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.view-toggle {
  margin: 20px 0;
}

.view-toggle button {
  margin-right: 10px;
  padding: 6px 12px;
}

.view-toggle button.active {
  background-color: #444;
  color: white;
}

.preview-wrapper {
  border: 1px solid #9e99999e;
  margin-top: 16px;
  overflow-x: auto;
}

.preview-wrapper.desktop {
  width: 100%;
  max-width: 1200px;
}

.preview-wrapper.tablet {
  width: 100%;
  max-width: 800px;
}

.preview-wrapper.mobile {
  width: 100%;
  max-width: 400px;
}

.preview-grid {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
}

.preview-grid div {
  background: #dcdcdc;
  text-align: center;
  padding: 20px;
  border: none !important;
}

/* Composer*/

.composer-grid {
  display: grid;
  margin-top: 20px;
  gap: 2px;
  border: 1px dotted #999;
  max-width: 95%;
  user-select: none;
  background: #f0f0f0;
}

.composer-cell {
  background: #eee;
  
  min-height: 50px;
  cursor: pointer;
  user-select: none;
}

.composer-cell.selected {
  background: #4caf50;
  color: white;
}

.cell {
  border: 1px solid #ccc !important;
  min-height: 60px;
  background: #f0f0f0;
  touch-action: none;
  user-select: none;

}

.cell.preview {
  background: rgba(0, 150, 255, 0.4);
}

.container-box {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.container-label {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  opacity: 0.7;
  border: 1px solid darkblue;
  pointer-events: none;
  z-index: 10;
}

/*popup*/
.class-prompt {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px;
  border: 2px solid #444;
  z-index: 1000;
}

.class-prompt.hidden {
  display: none;
}


/*neu*/

.size-controls {
  margin-bottom: 15px;
}

.size-controls input {
  width: 120px;
  margin: 4px 0;
}

.size-controls label {
  display: block;
  font-size: 0.9em;
}

/* Container für Spalten- & Zeilen-Eingaben */
#columnSizes,
#rowSizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px 12px;
  margin-top: 6px;
}

/* Einzelnes Label */
#columnSizes label,
#rowSizes label {
  display: flex;
  flex-direction: column;
  font-size: 0.85em;
}

/* Input selbst */
#columnSizes input,
#rowSizes input {
  width: 100%;
}

#copyStatus {
  font-size: 0.9em;
  color: lightgreen;
}

#composerGrid {
  touch-action: none;
  user-select: none;
}

#classPrompt {
  background-color:whitesmoke;
  color: black;
  padding: 0.65rem;
  border-radius: 10px;
}

#classPrompt input {
  background-color: lightblue;
  color: black;
  padding: 0.2rem;
  margin: 0.3rem;
}

.intro {
  padding: 0.65rem;
  margin: 0 0 0.4rem 0;

}