/* Farben, die auf der ganzen Seite verwendet werden. */
:root {
  --red: #c94e46;
  --line: #dededb;
  --muted: #666;
}
* {
  box-sizing: border-box;
}
/* Grundaussehen der Seite. */
body {
  margin: 0;
  background: #fafafa;
  color: #303030;
  font:
    16px Arial,
    sans-serif;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header > div,
main {
  width: min(100% - 32px, 860px);
  margin: auto;
}
header > div {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}
header b {
  color: #d8261c;
  font-size: 25px;
  letter-spacing: -2px;
}
header span {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
}
main {
  padding: 42px 0 64px;
}
h1 {
  margin: 0;
  font-size: 30px;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
p {
  color: var(--muted);
  line-height: 1.5;
}
/* Weisse Karten für Formulare, Einträge und Auswertungen. */
.box,
/* Hinweis zur Weiterbildungsvorgabe eines Mitglieds. */
.status {
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdf7f6;
  border-color: #ecd7d4;
}
.status.done {
  background: #f4f8f2;
  border-color: #cfe0ca;
}
.status p {
  font-size: 14px;
  margin: 5px 0 0;
}
.title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.title p {
  margin: 6px 0 0;
}
.plain {
  background: transparent;
  color: #555;
  border: 1px solid #cfcfcb;
  margin-left: 5px;
}
.plain:hover {
  background: #f0f0ee;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: bold;
}
input {
  height: 42px;
  border: 1px solid #cfcfcb;
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}
button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: white;
  padding: 9px 16px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
/* Anordnung der drei Eingabefelder für eine Weiterbildung. */
.grid {
  grid-template-columns: 150px 1fr 140px auto;
  align-items: end;
}
.msg {
  min-height: 18px;
  margin: 0;
  color: #b53f37;
  font-size: 14px;
}
.success {
  color: #397139;
}
/* Eine Zeile in der Liste der Weiterbildungen oder in der Auswertung. */
.row {
  display: grid;
  grid-template-columns: 125px 1fr 75px 105px;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #ececea;
  padding: 14px 0;
  font-size: 14px;
}
.row:first-child {
  border: 0;
}
.muted {
  color: var(--muted);
}
.actions {
  text-align: right;
}
.actions button {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 13px;
}
dialog {
  width: min(100% - 32px, 420px);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
}
dialog::backdrop {
  background: #0006;
}
/* JavaScript blendet Bereiche mit dieser Klasse aus. */
.hide {
  display: none !important;
}
/* Anpassungen für schmale Bildschirme wie Mobiltelefone. */
@media (max-width: 680px) {
  main {
    padding-top: 28px;
  }
  .title,
  .status {
    display: block;
  }
  .title > div + div {
    margin-top: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 1fr auto;
  }
  .row > :nth-child(2) {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .row > :nth-child(3) {
    grid-row: 3;
  }
  .actions {
    grid-column: 2;
    grid-row: 1;
  }
}
