:root {
  --primary: #2c3e6b;
  --primary-light: #4a5d94;
  --bg: #f4f5f8;
  --card: #ffffff;
  --border: #dcdfe6;
  --text: #22242a;
  --muted: #6b7280;
  --danger: #b5333a;
  --ok: #2f7d4f;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.45;
}
header.topbar {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
header.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
header.topbar nav a { margin-left: 14px; font-weight: 400; opacity: 0.9; font-size: 0.92em; }
main { max-width: 900px; margin: 0 auto; padding: 18px 14px 60px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}
h1 { font-size: 1.4em; margin-top: 0; }
h2 { font-size: 1.15em; border-bottom: 2px solid var(--border); padding-bottom: 6px; margin-top: 0; }
h3 { font-size: 1em; color: var(--primary); margin-bottom: 6px; }
label { display: block; font-size: 0.85em; color: var(--muted); margin-bottom: 3px; margin-top: 10px; }
input[type=text], input[type=date], input[type=time], input[type=email], input[type=password], input[type=tel], textarea, select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  background: #fff;
}
textarea { resize: vertical; min-height: 50px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 140px; }
button, .btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.95em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
}
button:hover, .btn:hover { background: var(--primary-light); }
button.secondary, .btn.secondary { background: #6b7280; }
button.danger, .btn.danger { background: var(--danger); }
button.small, .btn.small { padding: 5px 10px; font-size: 0.85em; margin-top: 0; }
.rollen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.rollen label { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 0.9em; color: var(--text); }
.rollen input { width: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
table th, table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); font-size: 0.92em; }
.checkbox-inline { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.checkbox-inline input { width: auto; }
.meldung { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 0.92em; }
.meldung.ok { background: #e4f4ea; color: var(--ok); border: 1px solid var(--ok); }
.meldung.fehler { background: #fbe9e9; color: var(--danger); border: 1px solid var(--danger); }
.liste-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.liste-item:last-child { border-bottom: none; }
.liste-item a { color: var(--primary); text-decoration: none; font-weight: 600; }
.liste-item a.btn { color: #fff; }
.muted { color: var(--muted); font-size: 0.85em; }
.schritt-zeile { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; flex-wrap: wrap; }
.schritt-zeile textarea { flex: 1; min-width: 160px; }
.schritt-btns { display: flex; gap: 4px; margin-top: 0; }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
form.inline { display: inline; }
@media (max-width: 600px) {
  .row { flex-direction: column; }
  header.topbar nav a { margin-left: 0; margin-right: 12px; }
}
