* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  background: #f4f6f8;
  color: #26303a;
}
a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #14181c;
  color: #fff;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; }
.topbar a.logout { color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }
.msg {
  background: #e9f6ee; border: 1px solid #b8e3c8; color: #1c6b3a;
  padding: 10px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px;
}
.msg.msg-error {
  background: #fdecec; border-color: #f0b8b8; color: #a12626;
}
.btn {
  display: inline-block; background: #e90c38; color: #fff; border: none;
  font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 999px;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: #c00a2f; }
.btn.secondary { background: #fff; color: #26303a; border: 1px solid #d6e0ea; }
.btn.secondary:hover { background: #eef2f6; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.danger { background: #fff; color: #c00a2f; border: 1px solid #f0c4cc; }
.btn.toggle-hide { background: #1c6b3a; }
.btn.toggle-hide:hover { background: #155029; }
.btn.toggle-show { background: #c00a2f; }
.btn.toggle-show:hover { background: #9c0826; }

.actions-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.actions-row .right { display: flex; gap: 10px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(20,30,45,.06); }
th, td { text-align: left; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #eef1f4; }
th { color: #6b7783; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tr:last-child td { border-bottom: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge.sichtbar { background: #e9f6ee; color: #1c6b3a; }
.badge.verborgen { background: #f1f2f4; color: #6b7783; }
.row-actions { display: flex; gap: 8px; }

.card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 8px 30px rgba(20,30,45,.06); }
label { display: block; font-size: 13px; font-weight: 600; color: #4a4a4a; margin: 18px 0 6px; }
label:first-child { margin-top: 0; }
input[type=text], input[type=date], textarea, select {
  width: 100%; padding: 10px 14px; border: 1px solid #d6e0ea; border-radius: 10px;
  font-family: inherit; font-size: 14px; background: #fff;
}
textarea { resize: vertical; }
.hint { font-size: 12px; color: #9aa7b2; margin-top: 4px; }
.qa-pair { background: #f1f2f4; border: 1px solid #e4e6e9; border-radius: 12px; padding: 16px; margin-bottom: 12px; position: relative; }
.qa-pair .remove-qa { position: absolute; top: 10px; right: 10px; }
.qa-pair textarea[name="frage"] { background: #e8f2fb; border-color: #cfe3f2; }
.form-actions { margin-top: 26px; display: flex; gap: 12px; align-items: center; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 18px 0; }
.checkbox-row input { width: auto; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; border-radius: 16px; padding: 40px; width: 320px; box-shadow: 0 20px 60px rgba(20,30,45,.12); }
.error { color: #c00a2f; font-size: 13px; margin-top: 10px; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #dce9f1; }
.login-card h1 { font-size: 18px; margin: 0 0 20px; }
