/* Root wie Zahlenstrahl-App: grauer Hintergrund, Montserrat, leichte Rundung */
.ipvt-app {
  padding: 0.8rem 1.0rem 1.0rem;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

/* Karte analog zu .zs-controls: weiße Box, dezente Schatten */
.ipvt-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 15px;
}

/* Header ähnlich .zs-header */
.ipvt-header {
  padding: 4px 2px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.ipvt-title {
  font-size: 32px;
  margin: 0;
  font-weight: 600;
  color: #1d3557;
  flex: 1;
}

.ipvt-subtitle {
  margin: 0;
  font-size: 10px;
  color: #555;
}

/* Controls – ähnlich wie .zs-controls-Layout */

.ipvt-controls {
    margin-bottom: 18px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    align-items: flex-end;
}

.ipvt-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.ipvt-control-label {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  min-width: 160px;
}




label {
    margin: 0;
}



.ipvt-control-label span {
  font-weight: 600;
}

.ipvt-control-label,
.ipvt-control-label label {
  font-weight: 600;
  color: #333;
}

/* Eingabefeld wie Zahlenstrahl-Input */

.ipvt-input {
  padding: 3px 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 12px;
  min-width: 0;
  color: #3a4f66 !important;
}

/* Buttons: orientiert an .btn, mit Farbvarianten wie bei Zahlenstrahl */

.ipvt-controls-row--buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ipvt-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: normal;
  white-space: nowrap;
}

.ipvt-btn:hover {
  filter: brightness(0.95);
}

/* Farben angelehnt an deine Zahlenstrahl-Buttons */

.ipvt-btn-random {
  background: #457b9d; /* wie .zs-apply-range */
  color: #fff;
}

.ipvt-btn-reset {
  background: #e63946; /* wie .zs-reset-marks */
  color: #fff;
}

.ipvt-btn-integers {
  background: #118ab2; /* wie .zs-apply-marks */
  color: #fff;
}

/* Toggles: pill-artige Labels, Farbakzent gelb wie .zs-toggle-decimals */

.ipvt-controls-row--toggles {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.ipvt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffb7031a; /* leichtes Gelb-Highlight */
  border: 1px solid #ffb70366;
  line-height: normal;
}

.ipvt-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

/* Tabellenbereich */

.ipvt-table-wrapper {
    margin-top: 30px;
    margin-left: -2px;
    margin-right: -2px;
    overflow-x: auto;
    padding-bottom: 30px;
}

.ipvt-table {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(70px, 1fr);
  gap: 4px;
  min-width: 100%;
}

.ipvt-table--decimals {
  grid-auto-columns: minmax(60px, 1fr);
}

/* Spalten im Stil einer „kleinen Karte“ */

.ipvt-place-col {
  border-radius: 10px;
  padding: 3.5px 3px 5px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #ddd;
}

/* Pastell-Farben pro Stelle – leicht, damit es zum Zahlenstrahl passt */

.ipvt-place-col-M  { background: #ffe5e5; }
.ipvt-place-col-HT { background: #ffeede; }
.ipvt-place-col-ZT { background: #fff6d5; }
.ipvt-place-col-T  { background: #e6f7e9; }
.ipvt-place-col-H  { background: #e5f0ff; }
.ipvt-place-col-Z  { background: #e8ecff; }
.ipvt-place-col-E  { background: #f3e9ff; }

.ipvt-place-col-Zt { background: #e3f3ff; }
.ipvt-place-col-Ht { background: #ddfbf5; }
.ipvt-place-col-Tt { background: #ffe5e5; }

.ipvt-place-header {
  text-align: center;
  margin-bottom: 3px;
}

.ipvt-place-short {
  font-weight: 700;
  font-size: 30px;
  color: #1d3557;
}

.ipvt-place-long {
  font-size: 15px;
  color: #555;
}

/* Zelle für Ziffer */

.ipvt-place-cell {
  flex: 1 1 auto;
  min-height: 55px;
  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ipvt-place-cell--dragover {
  border-style: solid;
  border-color: #457b9d;
  box-shadow: 0 0 0 1px rgba(69, 123, 157, 0.4);
  background: #f1faee;
}

/* Ziffer-Kachel */

.ipvt-digit-tile {
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 30px;
  cursor: grab;
  user-select: none;
}

.ipvt-digit-tile--dragging {
  opacity: 0.85;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Lehrermodus (Wertigkeit) */

.ipvt-teacher-value {
  margin-top: 2.5px;
  font-size: 7px;
  text-align: center;
  color: #666;
  visibility: hidden; /* per JS ein/aus */
}

/* Legende unter der Tafel */

.ipvt-legend {
  margin-top: 9px;
  padding: 5px 7px;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px dashed #ccc;
  font-size: 7.5px;
  color: #555;
  display: none;
}

.ipvt-legend-title {
  font-weight: 600;
  margin-bottom: 3.5px;
  color: #1d3557;
}

.ipvt-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
}

/* Ausgabe-Bereich */

.ipvt-output {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.ipvt-output-label {
  font-size: 20px;
  color: #555;
  margin-bottom: 2.5px;
}

.ipvt-output-number {
  font-size: 30px;
  font-weight: 700;
  color: #1d3557;
  letter-spacing: 0.5em;
  margin-bottom: 3px;
  word-break: break-word;
}

.ipvt-output-readout {
  font-size: 8px;
  color: #666;
  font-style: italic;
  line-height: 1.4;
  display: none; /* wird per JS ein-/ausgeblendet */
}

/* Responsive ähnlich wie Zahlenstrahl */

@media (max-width: 720px) {
  .ipvt-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ipvt-title {
    width: 100%;
  }

  .ipvt-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ipvt-control-label {
    min-width: 0;
  }

  .ipvt-controls-row--buttons {
    flex-wrap: wrap;
  }

  .ipvt-btn {
    width: auto;
  }
}




.ipvt-controls-row--toggles > label:nth-child(2) {
display: none;
}




.ipvt-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}





.ipvt-btn-spotlight {
  background: #1d3557; /* wie .zs-fullscreen-btn */
  color: #f1faee;
}


.ipvt-columns-toggles {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}


.ipvt-controls-row--columns {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffb7031a;
    border: 1px solid #ffb70366;
    line-height: normal;
}



div.ipvt-controls > div.ipvt-controls-row.ipvt-controls-row--toggles > label:nth-child(3) {
display: none;
}



.ipvt-btn.ipvt-btn-integers {
display: none;
}