html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--bs-body-bg), 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Responsive-Tabellen: auf schmalen Screens werden Zeilen zu gestapelten Karten
   statt horizontal zu scrollen — Spaltenüberschriften wandern per data-label vor
   den jeweiligen Wert. Gleiche <tr>/<td>-Struktur bleibt erhalten, damit JS
   (Sortieren/Filtern/Klick-Handler), das darauf zugreift, unverändert funktioniert. */
@media (max-width: 767.98px) {
  .table-mobile-cards {
    min-width: 0 !important;
  }
  .table-mobile-cards thead {
    display: none;
  }
  .table-mobile-cards, .table-mobile-cards tbody, .table-mobile-cards tr, .table-mobile-cards td {
    display: block;
    width: 100% !important;
  }
  .table-mobile-cards tr {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    margin: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  .table-mobile-cards td {
    border: none !important;
    padding: 0.15rem 0 !important;
    text-align: left !important;
    white-space: normal !important;
    max-width: none !important;
  }
  .table-mobile-cards td.table-mobile-hide {
    display: none;
  }
  .table-mobile-cards td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    display: block;
  }
}
/* Dark Mode: Markierte Tabellenzeilen haben einen hellen Hintergrund, das helle text-muted wäre darauf kaum lesbar. */
[data-bs-theme="dark"] .table-primary .text-muted,
[data-bs-theme="dark"] .table-warning .text-muted {
  color: var(--bs-table-color) !important;
}
