/* KFA-Tracker – ergänzende Styles zu Tailwind */

* { -webkit-tap-highlight-color: transparent; }

body { touch-action: manipulation; }

/* Große, gut bedienbare Zahlen-Eingabefelder */
.fold-input {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  background: #1e293b;
  border: 2px solid #334155;
  color: #f8fafc;
  transition: border-color .15s ease, background .15s ease;
}
.fold-input:focus {
  outline: none;
  border-color: #38bdf8;
  background: #0f172a;
}
.fold-input.has-value {
  border-color: #22c55e;
}

/* Kein Spinner bei number inputs */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(150%);
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 100;
  transition: transform .25s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: #ef4444; }
.toast.success { border-color: #22c55e; }

.card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
}

.btn-primary {
  background: #0ea5e9;
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  transition: background .15s ease, transform .1s ease;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:hover { background: #0284c7; }

.btn-secondary {
  background: #1e293b;
  color: #e2e8f0;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #334155;
}
.btn-secondary:active { transform: scale(0.97); }

.btn-danger {
  background: transparent;
  color: #f87171;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid #7f1d1d;
}

.stat-pill {
  background: #1e293b;
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
}
.modal-panel {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 1.25rem 1.25rem 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .modal-panel { border-radius: 1.25rem; margin: 1rem; }
}

.skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #263449 37%, #1e293b 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 0.5rem;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
