/* Square-Dance Figuren – Layout & Farbcodierung */

* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; padding: 1rem; background: #f5f5f5; color: #222; }
main { max-width: 900px; margin: 0 auto; }

/* Login */
.page-login main { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.page-login label { display: block; margin-bottom: 1rem; }
.page-login input { width: 100%; max-width: 280px; padding: .5rem; }
.page-login button { padding: .5rem 1rem; cursor: pointer; }
.page-login .error { color: #c00; margin-bottom: 1rem; }

/* Header */
header { margin-bottom: 1.5rem; }
header h1 { margin: 0 0 .5rem 0; font-size: 1.5rem; }
.class-name { margin: 0 0 .5rem 0; color: #555; }
.class-switcher { margin-bottom: .5rem; }
.class-switcher select { padding: .35rem; }
nav { margin-top: .5rem; }
nav a { margin-right: 1rem; }

/* Figuren-Tabelle */
.figures-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.figures-table th, .figures-table td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid #eee; }
.figures-table th { background: #f0f0f0; font-weight: 600; }
.figures-table .figure-name { font-weight: 500; }
.teacher-actions { white-space: nowrap; }
.teacher-actions a { margin-right: .5rem; }
.btn-heute { font-weight: 600; }

/* Farbcodierung: ungelernt / 1–2× / 3× gelernt */
.figure-row--white { background: #fff; }
.figure-row--yellow { background: #fff9c4; }
.figure-row--green { background: #c8e6c9; }
.figure-row--group td { padding-left: 1rem; font-style: italic; }
/* Gruppenmitglieder deutlich einrücken */
.figures-table .figure-row--in-group .figure-name {
  padding-left: 2.5rem;
  border-left: 3px solid rgba(0, 0, 0, 0.15);
}
.col-select { width: 2.5rem; text-align: center; }
.bulk-actions { margin-top: 1rem; }
.bulk-actions .btn-heute { padding: .5rem 1rem; }
.figure-updated-info { color: #555; font-size: 0.95rem; margin-bottom: 1rem; }
.figure-link { font-size: 0.85em; margin-left: 0.25rem; text-decoration: none; }
.figure-link:hover { text-decoration: underline; }
.lesson-entered-by { color: #555; font-size: 0.9rem; margin: -0.5rem 0 1rem 0; }

/* Filter-Navigation */
.filter-nav { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-link { padding: 0.4rem 0.75rem; background: #f0f0f0; border-radius: 6px; text-decoration: none; color: #333; font-size: 0.95rem; }
.filter-link:hover { background: #e0e0e0; }
.filter-link--active { background: #333; color: #fff; font-weight: 600; }
.filter-link--active:hover { background: #222; color: #fff; }
.filter-empty { color: #555; margin-top: 1rem; }


/* Formulare allgemein */
form label { display: block; margin-bottom: .75rem; }
form input[type="text"], form input[type="password"], form input[type="date"] { padding: .4rem; width: 100%; max-width: 220px; }
button, .btn { padding: .5rem 1rem; cursor: pointer; }
.error { color: #c00; }
.success { color: #2e7d32; }

/* Kurse-Seite */
.class-list { list-style: none; padding: 0; }
.class-list li { background: #fff; padding: 1rem; margin-bottom: .5rem; border-radius: 4px; }
.class-list a { margin-right: 1rem; }

/* Mobile */
@media (max-width: 600px) {
  .figures-table { font-size: 0.9rem; }
  .figures-table th, .figures-table td { padding: .4rem .5rem; }
}
