/* Austausch-Hub – schlichtes, eigenständiges Layout */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  background: #f3f4f6;
  line-height: 1.5;
}
.hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.2rem;
  background: #1e3a8a;
  color: #fff;
}
.hub-brand { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.hub-nav a { color: #dbeafe; text-decoration: none; margin-left: 1rem; }
.hub-nav a:hover { color: #fff; text-decoration: underline; }
/* Zähler-Badge hinter „Nachrichten" */
.msg-badge {
  display: inline-block; min-width: 1.5em; padding: 0 .45em;
  border-radius: 999px; font-size: .78rem; font-weight: 700;
  line-height: 1.55; text-align: center; color: #fff; vertical-align: middle;
}
.msg-badge--gruen { background: #16a34a; }
.msg-badge--rot   { background: #dc2626; }
.hub-main { max-width: 900px; margin: 1.5rem auto; padding: 0 1.2rem; }
.hub-foot { max-width: 900px; margin: 2rem auto; padding: 1rem 1.2rem; color: #6b7280; }
h1 { font-size: 1.6rem; margin: .2rem 0 1rem; }
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}
.form label { display: block; margin: .8rem 0 .3rem; font-weight: 600; }
.form input[type=email],
.form input[type=password],
.form input[type=text],
.form select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}
.btn {
  display: inline-block;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin: 0;
  padding: .6rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  vertical-align: middle;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #1d4ed8; }
.flash { padding: .7rem 1rem; border-radius: 8px; margin: 1rem 0; }
.flash-ok { background: #dcfce7; color: #166534; }
.flash-err { background: #fee2e2; color: #991b1b; }
.hint { color: #6b7280; font-size: .9rem; }
.stat-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.3rem; min-width: 140px; }
.stat b { display: block; font-size: 1.8rem; color: #1e3a8a; }

/* Dashboard: 4-Spalten-Raster (2 Kacheln + 2 Buttons je Zeile) */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: .5rem;
}
.dash-grid h2 { grid-column: 1 / -1; margin: 1rem 0 0; font-size: 1.1rem; }
.dash-grid .stat { min-width: 0; margin: 0; }
.dash-grid .btn {
  width: 100%; box-sizing: border-box; text-align: center;
  align-self: center;   /* normale Button-Höhe behalten, nicht auf Kachelhöhe dehnen */
}
@media (max-width: 720px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
}

/* Filterleiste – Aussehen wie auf der Lernplattform */
.filter-bar { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-bar label { display: block; margin: 0; font-weight: 600; font-size: .9rem; }
.filter-bar select {
  width: 100%; padding: .6rem .7rem; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: 1rem; background: #fff;
}
.filter-bar .btn-small {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: end; box-sizing: border-box; min-width: 9rem; text-align: center;
  padding: .6rem 1.1rem; font-size: 1rem; line-height: 1.25;
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  text-decoration: none; background: #1e3a8a; color: #fff;
}
.filter-bar .btn-small:hover { background: #1d4ed8; }
.filter-bar .btn-ghost { background: transparent; color: #1e3a8a; border: 1px solid #1e3a8a; }
.filter-bar .btn-ghost:hover { background: #eaf1f9; }
