body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 20px;
  background-color: #f8f9fa;
  color: #212529;
}

h1 {
  max-width: 800px;
  margin: 0 auto 0.5em;
  font-size: 1rem;
  text-align: left;
}

label {
  font-weight: 600;
}

input[type=number], input[type=text] {
  width: 3ch;
  padding: 0.1em 0.1em;
  font-size: 0.9rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
  background-color: #ffEEb9;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

#p {
  width: 4ch;
  text-align: right;
}

#n {
  width: 4.5ch;
  text-align: right;
}

input[type=number]:focus, input[type=text]:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 5px rgba(13,110,253,.5);
}

/* Pfeile in number inputs ausblenden (alle Browser) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.form-row {
  margin-bottom: 1em;
}

.icon {
  cursor: pointer;
  margin-left: 0.2em;
}

.icon:hover {
  transform: scale(1.15);
}

.task-container {
  max-width: 800px;
  margin: 0 auto 2em;
  background: #fff;
  padding: 1.2em 1.5em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
}

.task-row {
  display: flex;
  align-items: center;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.inline-result {
  margin: 0 0 0 1em;
  font-family: Aptos, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e9ecef;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: 0.95em;
}

.inline-result.hidden {
  display: none;
}

@media (max-width: 600px) {
  .task-row {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}
