#u1-berechnung {
  width: 100%;
  overflow-x: auto;
  padding: 0px;
}

#u1-berechnung table {
  min-width: 800px; /* Mindestbreite, damit Inhalte nicht zu schmal werden */
  border-collapse: collapse;
  width: 100%;
}

#u1-tabelle th,
#u1-tabelle td {
  border: 1px solid #ccc;
  padding: 4px 6px;
  text-align: center;
  font-size: 0.9em;
}

#u1-tabelle td:first-child,
#u1-tabelle th:first-child {
  max-width: 130px;       
  white-space: normal;    
  word-wrap: break-word;  
  text-align: left;
}

#u1-tabelle thead {
  background-color: #f9f9f9;
  position: sticky;
  top: 0;
  z-index: 1;
}

#u1-tabelle input[type="number"] {
  width: 60px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px;
}

#u1-tabelle tfoot {
  background: #f1f9ff;
  font-weight: bold;
}

#u1-berechnung button {
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  #u1-tabelle input[type="number"] {
    width: 45px;
    font-size: 0.85em;
  }

  #u1-tabelle th,
  #u1-tabelle td {
    padding: 3px;
    font-size: 0.8em;
  }
}
