/* ==========================================================================
   Smartphone (bis 600 px). Teil 3: Verwaltung und Helferstunden.
   ========================================================================== */
@media (max-width: 600px) {
  .page-title { font-size: 19px; }
  .panehead { flex-direction: column; align-items: stretch; }
  .paneactions { flex-direction: column; align-items: stretch; }
  .paneactions input[type=search], .paneactions button { width: 100%; min-width: 0; }
  .filterbar { flex-direction: column; align-items: stretch; padding: 10px; }
  .filterbar .fgroup { flex-direction: column; align-items: stretch; }
  .filterbar label.inl { justify-content: space-between; }
  .filterbar button, .filterbar select { width: 100%; }
  .overview, .reportcols { grid-template-columns: 1fr; }
  .tile .tv { font-size: 24px; }
  .redtabs { gap: 4px; }
  .redtabs button { flex: 1 1 100%; padding: 13px 12px; }
  #masterTabs button { flex: 1 1 calc(50% - 4px); }
  .subtabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .subtabs button { flex: 0 0 auto; white-space: nowrap; padding: 12px 14px; }
  .entryform { flex-direction: column; align-items: stretch; }
  .entryform label, .entryform .grow { min-width: 0; width: 100%; }
  .entryform .entry-actions button { flex: 1; padding: 12px 8px; }
  .formrow { flex-direction: column; align-items: stretch; }
  .formrow label { flex: 1 1 auto; }
  .formrow button { width: 100%; padding: 12px 8px; }
  .mitem { grid-template-columns: 1fr; gap: 2px; padding: 10px; }
  .mlist .mdate, .mlist .mtitle, .mlist .mwho, .mlist .mgo { grid-column: 1; }
  .mlist .mdate { font-size: 12px; color: var(--grey); }
  .mlist .mtitle { font-size: 14px; font-weight: bold; }

  /* Tabellen der Verwaltung als Karten: jede Zeile ein Block mit Beschriftung */
  .atable thead { display: none; }
  .atable, .atable tbody, .atable tr, .atable td { display: block; width: 100%; }
  .atable tr { padding: 8px 4px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff !important; }
  .atable td { border: none; padding: 4px 8px; text-align: left !important; white-space: normal !important; }
  .atable td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: bold; text-transform: uppercase; color: var(--grey); letter-spacing: .3px; }
  .atable td:last-child { padding-top: 8px; border-top: 1px solid #eee; margin-top: 4px; }
  .atable td.n .linkbtn { display: inline-block; padding: 10px 12px; }

  /* Stundentabellen bleiben Tabellen und dürfen seitlich wischen */
  .reportcols .card, #hMatrixCard, #hpane-entries { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
