/* ============================================================
   🌤️  Helles, modernes Grundlayout (bereinigt & kompakt)
   ============================================================ */

body {
  font-family: "Inter", "Rubik", "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f9fafb;
  margin: 0;
  padding: 0;
}

/* Karten */
.card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
}

/* Haupt-Layout */
.app-wrapper {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.app-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

/* Eingabefelder */
.form-input {
  border: 1px solid #d1d5db;      /* gray-300 */
  border-radius: 0.4rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.95rem;
  color: #111827;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;          /* indigo-500 */
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  background-color: #ffffff;
  color: #374151;                /* gray-700 */
}

.btn:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

/* Tabellen */
.dash-table-container th {
  background-color: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
}

/* Utility-Klassen */
.text-muted { color: #6b7280; }   /* gray-500 */
.text-sm { font-size: 0.9rem; }
/* ============================================================
   📱 Responsive Design – Header und Eingabebereich
   ============================================================ */

/* Eingabefeld-Container (parent div um beide Felder) */
@media (max-width: 768px) {
  /* auf kleineren Bildschirmen: Felder untereinander anordnen */
  .flex-wrap.justify-center {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  /* Eingabefeld-Breite anpassen */
  .form-input {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center;
  }

  /* Labels etwas kompakter */
  label {
    text-align: center;
    font-size: 0.9rem;
  }

  /* Überschrift leicht verkleinern */
  h1 {
    font-size: 1.75rem !important;
  }

  /* Untertitel etwas schmaler */
  p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }

  /* Kartenrand anpassen */
  .card {
    padding: 1rem !important;
  }
}

/* Für ganz kleine Bildschirme (z. B. Smartphones im Portrait-Modus) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem !important;
  }
  p {
    font-size: 0.95rem;
  }
}
/* ============================================================
   ⚙️  Responsive Button-Leiste unter der Vertragstabelle
   ============================================================ */

.button-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb; /* gray-200 */
}

/* Alle Buttons gleich hoch & minimal größer */
.button-bar .btn {
  min-width: 130px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.5rem;
}

/* Responsive Verhalten */
@media (max-width: 768px) {
  .button-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}

/* Hover-Farben (dezent abgestuft) */
.btn-neutral {
  background-color: #eef2ff; /* indigo-50 */
  color: #4338ca;
  border-color: #a5b4fc;
}
.btn-neutral:hover {
  background-color: #e0e7ff;
}

.btn-delete {
  background-color: #fff1f2;
  color: #be123c;
  border-color: #fda4af;
}
.btn-delete:hover {
  background-color: #ffe4e6;
}

.btn-primary {
  background-color: #10b981; /* emerald-500 */
  color: #fff;
  border-color: #059669;
}
.btn-primary:hover {
  background-color: #059669;
}
