/* responsive.css für Dashboard-Seiten */

/* Für kleine Bildschirme (bis 600px) */
@media (max-width: 600px) {
  /* Header anpassen: vertikal zentrieren */
  header {
    flex-direction: column;
    text-align: center;
  }
  header nav a {
    margin: 5px 0;
  }
  /* Container: Ränder etwas verkleinern */
  .container {
    padding: 0 10px;
  }
  /* Filterformular: Elemente untereinander anordnen */
  .filter-form {
    flex-direction: column;
    align-items: center;
  }
  .filter-form label,
  .filter-form select,
  .filter-form input[type="date"],
  .filter-form input[type="submit"] {
    width: 100%;
    max-width: none;
  }
  /* Filterzeile: Elemente in Spalte, alle gleich breit */
  .filter-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .filter-bar input,
  .filter-bar button {
    width: 100%;
    max-width: 300px;
  }
  /* Tabellen: Schriftgröße und Abstände etwas reduzieren */
  table th, table td {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* Für mittlere Bildschirme (zwischen 600px und 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  header {
    flex-direction: row;
    justify-content: center;
  }
  .container {
    padding: 0 20px;
  }
  .filter-form {
    flex-wrap: wrap;
    justify-content: center;
  }
  .filter-form label,
  .filter-form select,
  .filter-form input[type="date"],
  .filter-form input[type="submit"] {
    width: 100%;
    max-width: 400px;
  }
  .filter-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .filter-bar input,
  .filter-bar button {
    width: 100%;
    max-width: 250px;
  }
  table th, table td {
    font-size: 13px;
  }
  .content-wrapper {
    overflow-x: auto;
  }
}
