/* FITALITY App – main.css */

/* ----------- General ----------- */
body {
  background-color: #f3f6fa;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
}
.main-card {
  border-radius: 28px;
  box-shadow: 0 6px 32px 0 rgba(44,62,80,0.10);
  background: #fff;
  padding: 2.8rem 2.2rem 2.2rem 2.2rem;
  margin-bottom: 2.2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.2s;
}
.section-head {
  font-size: 1.13rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
  color: #1c262e;
  display: flex;
  align-items: center;
  gap: 0.55em;
}

/* ----------- Inputs & Forms ----------- */
.form-section {
  background: #f6f9fc;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 0.8rem 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}
.form-control, .form-select {
  border-radius: 12px !important;
  background: #f8fafd;
  border: 1px solid #e3e9f3;
  box-shadow: none;
  transition: border .15s;
}
.form-control:focus, .form-select:focus {
  border-color: #1572fa;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(21, 114, 250, .10);
}

/* ----------- Table Design ----------- */
.table-section {
  margin-bottom: 1.8rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(44,62,80,0.07);
  padding: 1.2rem 1rem 0.3rem 1rem;
}
.table thead th {
  background: #f3f6fa !important;
  font-weight: 500;
  text-align: center;
  font-size: 1.07rem;
  border-bottom: 2px solid #eaeaea !important;
  letter-spacing: 0.04em;
}
.table-striped tbody tr:nth-of-type(odd) {
  background: #fafbfc;
}
.table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}
.table td, .table th {
  vertical-align: middle !important;
  text-align: center;
  font-size: 1.04rem;
  transition: background .13s;
}
.table td button.btn {
  padding: .25rem .5rem;
  font-size: .96em;
}

/* ----------- Buttons ----------- */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
}
.btn-warning, .btn-warning:focus {
  color: #333;
  font-weight: 600;
  border: none;
  background: #ffe082;
  box-shadow: 0 2px 10px rgba(44,62,80,0.04);
}
.btn-warning:hover {
  background: #ffd54f;
  color: #222;
}
.btn-danger, .btn-danger:focus {
  font-weight: 600;
  background: #ff5252;
  border: none;
  color: #fff;
  box-shadow: 0 2px 10px rgba(244,67,54,0.08);
}
.btn-success, .btn-success:focus {
  font-weight: 600;
  background: #18a373;
  border: none;
  color: #fff;
  box-shadow: 0 2px 10px rgba(76,175,80,0.08);
}
.btn-success:hover { background: #129b6c; }
.btn-primary, .btn-primary:focus {
  background: #1572fa;
  border: none;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(33,150,243,0.09);
}
.btn-primary:hover { background: #0d56b3; }
.btn:active {
  filter: brightness(0.97);
}

/* ----------- Cards & Ergebnisse ----------- */
.card {
  border-radius: 1.4rem !important;
  box-shadow: 0 4px 18px rgba(30,50,100,0.10) !important;
  border: none;
  background: #f8fafc;
}
.result-card {
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(44,62,80,0.10);
  background: #fcfdfe;
  padding: 1.4rem 1.5rem;
  margin-bottom: 2.2rem;
  border: 1.5px solid #f2f2f2;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ----------- Gruppensummary Badge ----------- */
.gruppen-summary-badge {
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 16px;
  padding: .5rem 2.1rem;
  background: #f6f8fb;
  box-shadow: 0 2px 10px rgba(44,62,80,0.06);
  margin-bottom: 1.7rem;
  display: inline-block;
  letter-spacing: 0.05em;
}

/* ----------- Dark Mode ----------- */
.darkmode body { background: #181c23; color: #eceff3; }
.darkmode .main-card, .darkmode .form-section, .darkmode .table-section, .darkmode .result-card, .darkmode .card {
  background: #242934 !important;
  color: #e2e6ed;
  border-color: #333542 !important;
  box-shadow: 0 3px 16px rgba(20,23,30,0.21) !important;
}
.darkmode .form-control, .darkmode .form-select {
  background: #1b1e25;
  color: #eceff3;
  border-color: #353c49;
}
.darkmode .table thead th {
  background: #212733 !important;
  color: #a9adc2;
  border-bottom: 2px solid #232a3b !important;
}
.darkmode .table-striped tbody tr:nth-of-type(odd) {
  background: #232733;
}
.darkmode .table td, .darkmode .table th {
  color: #dde2f1;
}
.darkmode .gruppen-summary-badge {
  background: #202432;
  color: #9ae293;
}
.darkmode .btn-primary, .darkmode .btn-primary:focus {
  background: #3858a4;
}
.darkmode .btn-success, .darkmode .btn-success:focus {
  background: #209e74;
}
.darkmode .btn-warning, .darkmode .btn-warning:focus {
  background: #b09843;
  color: #eee;
}
.darkmode .btn-danger, .darkmode .btn-danger:focus {
  background: #ad2424;
}
.darkmode .result-card {
  background: #232733;
  border-color: #34384b;
}

/* ----------- Footer / Kleinkram ----------- */
footer {
  opacity: .8;
  font-size: .97em;
  letter-spacing: .03em;
  color: #888a93;
}

/* ----------- Responsive ----------- */
@media (max-width: 900px) {
  .main-card { padding: 1.4rem 0.5rem; }
  .form-section, .table-section, .result-card { padding-left: 0.5rem; padding-right: 0.5rem; }
  .card { padding-left: 0.4rem; padding-right: 0.4rem; }
}
@media (max-width: 650px) {
  .main-card { padding: .7rem .15rem; }
  .gruppen-summary-badge { padding: .4rem 1.1rem; }
  .result-card { padding: 1rem .7rem; }
}

