:root{
  --navy:#141e46;
  --gelb:#ffd400;
  --rot:#d11a1a;
  --grau:#f4f5f7;
  --border:#dcdfe6;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Segoe UI",Arial,sans-serif;background:var(--grau);color:#222}

.topbar{
  background:var(--navy);color:#fff;padding:16px 24px;
  display:flex;align-items:center;gap:20px;
  border-bottom:4px solid var(--gelb);
}
.topbar h1{margin:0;font-size:20px}
.topbar .back{color:var(--gelb);text-decoration:none;font-weight:600}
.topbar .back:hover{text-decoration:underline}

.form-wrap{max-width:900px;margin:24px auto;padding:0 16px 60px}
.hinweis{color:#555;margin-bottom:16px}
.fehlerbox{background:#fde8e8;border:1px solid var(--rot);color:#7a1010;padding:10px 14px;border-radius:6px;margin-bottom:16px}

fieldset{
  background:#fff;border:1px solid var(--border);border-radius:8px;
  padding:16px 20px;margin-bottom:18px;
}
legend{
  font-weight:700;color:var(--navy);padding:0 8px;font-size:15px;
}
.row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.row3{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.row label,.row3 label{flex:1;min-width:220px}
label{display:flex;flex-direction:column;font-size:13px;font-weight:600;color:#333;gap:4px}
label.full{width:100%;margin-bottom:10px}
input,select,textarea{
  font-family:inherit;font-size:14px;padding:8px 10px;
  border:1px solid var(--border);border-radius:5px;background:#fff;
}
input:focus,select:focus,textarea:focus{outline:2px solid var(--navy)}

label.checkbox{flex-direction:row;align-items:center;gap:8px;font-weight:600;margin:6px 0}
label.checkbox input{width:auto}

.checkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 16px}
.taskforce{border-top:1px dashed var(--border);margin-top:12px;padding-top:12px}
.unterfeld{margin:8px 0 4px 26px;display:none}
.mini-hinweis{font-size:12px;color:#777;font-weight:400;margin:2px 0 8px}

.veroeffentlichung{background:#fffbe6;border-color:var(--gelb)}

.actions{text-align:right;margin-top:20px}
.btn-primary{
  background:var(--rot);color:#fff;border:none;border-radius:6px;
  padding:12px 28px;font-size:15px;font-weight:700;cursor:pointer;
}
.btn-primary:hover{background:#a91414}

@media (max-width:640px){
  .row,.row3{flex-direction:column}
}

/* --- Login-Seite --- */
.login-body{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:var(--navy);
}
.login-box{
  background:#fff;border-radius:10px;padding:36px 32px;width:340px;
  text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.3);
}
.login-logo{width:80px;height:80px;border-radius:50%;margin-bottom:12px}
.login-box h1{font-size:20px;color:var(--navy);margin:0 0 4px}
.login-box form{display:flex;flex-direction:column;gap:14px;margin-top:18px;text-align:left}
.login-box label{font-size:13px;font-weight:600;color:#333;display:flex;flex-direction:column;gap:4px}
.full-width{width:100%}

/* --- Dashboard --- */
.topbar-logo{width:40px;height:40px;border-radius:50%}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:16px;font-size:13px}
.logout-link{color:var(--gelb);text-decoration:none;font-weight:600}
.logout-link:hover{text-decoration:underline}

.erfolgsbox{background:#e6f7e6;border:1px solid #2e7d32;color:#1b5e20;padding:14px 18px;border-radius:6px;margin-bottom:20px}

.kachel-reihe{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:28px}
.kachel{
  flex:1;min-width:160px;background:#fff;border:1px solid var(--border);border-radius:8px;
  padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  text-align:center;
}
.kachel-aktion{
  background:var(--rot);color:#fff;text-decoration:none;font-weight:700;font-size:15px;
}
.kachel-aktion:hover{background:#a91414}
.kachel-icon{font-size:32px;line-height:1}
.kachel-stat{color:var(--navy)}
.kachel-zahl{font-size:32px;font-weight:800}

.einsatz-tabelle{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden}
.einsatz-tabelle th,.einsatz-tabelle td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--border);font-size:13px}
.einsatz-tabelle th{background:var(--navy);color:#fff;font-weight:600}
.einsatz-tabelle tbody tr:hover{background:#f6f7fa}

.status{padding:2px 8px;border-radius:12px;font-size:12px;font-weight:700}
.status-offen{background:#fff3cd;color:#8a6300}
.status-abgeschlossen{background:#d4edda;color:#1b5e20}
.status-abgebrochen{background:#f8d7da;color:#7a1010}

