.catch/* === Global Reset & Fonts === */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #e9ecef; /* heller, neutraler Grauton */
  color: #333;
  line-height: 1.6;
  padding: 1rem;
}

/* === Header === */
h1, h2, h3, h4 {
  color: #28a745;
  font-weight: 600;
}

.lead {
  color: #6c757d;
}

/* === Alerts === */
.alert {
  border-radius: .5rem;
  padding: .75rem 1rem;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* === Buttons === */
.btn-primary, .btn-success {
  background-color: #28a745;
  border: none;
  color: #fff;
  transition: background-color .2s ease-in-out;
  border-radius: .4rem;
}

.btn-primary:hover, .btn-success:hover {
  background-color: #218838;
}

/* === Forms === */
form {
  background-color: #fff;
  border-radius: .5rem;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-label {
  font-weight: 500;
}

.form-control, .form-select {
  border-radius: .3rem;
  border: 1px solid #ced4da;
  transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 .2rem rgba(40,167,69,0.25);
}

/* === Tables === */
.table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
}

.table th {
  background-color: #28a745;
  color: #fff;
  text-align: left;
  padding: .75rem;
}

.table td {
  padding: .75rem;
  border-bottom: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
  background-color: #f1f9f3;
}

/* Editable cell hover */
.editable:hover {
  background-color: #e8f5e9 !important;
  cursor: pointer;
}

/* === Budget summary === */
.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

hr {
  border-top: 1px solid #dee2e6;
  margin: 2rem 0;
}

/* === Download Icon Hover === */
a.text-success:hover {
  color: #218838 !important;
}

/* === File input spacing === */
input[type="file"] {
  border: none;
  padding: .3rem 0;
}

.nav-link {
  color: #28a745;
}