/* Erasmus Radar — schlichtes, schnelles UI ohne Framework */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1c2733;
  --muted: #6b7a8a;
  --line: #e2e8f0;
  --accent: #0b5fff;
  --accent-ink: #ffffff;
  --ok: #1a8a4a;
  --warn: #b25d00;
  --fail: #c0392b;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.topbar-inner { display: flex; align-items: center; gap: 24px; padding: 10px 16px; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); }
.mainnav { display: flex; gap: 16px; flex: 1; }
.mainnav a { color: var(--muted); }
.mainnav a:hover { color: var(--accent); }
.userbox { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }

main.wrap { padding-bottom: 40px; }
.footer { color: var(--muted); padding: 20px 16px; border-top: 1px solid var(--line); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card .num { font-size: 30px; font-weight: 700; }
.card .lbl { color: var(--muted); font-size: 13px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel h2 { margin-top: 0; font-size: 17px; }
.panel h3 { font-size: 15px; }

table.list { width: 100%; border-collapse: collapse; background: var(--card); }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.list tr:hover td { background: #fafcff; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: #eef2f7; color: var(--ink); }
.badge.score-high { background: #e0f3e8; color: var(--ok); font-weight: 700; }
.badge.score-mid { background: #fdf1dc; color: var(--warn); font-weight: 700; }
.badge.score-low { background: #f3e2e0; color: var(--fail); }
.badge.status-new { background: #e3ecff; color: var(--accent); font-weight: 600; }

.flash { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; border: 1px solid; }
.flash-ok { background: #e8f6ee; border-color: #bfe4cd; color: var(--ok); }
.flash-warn { background: #fdf1dc; border-color: #f0d9ae; color: var(--warn); }
.flash-fail, .flash-error, .flash-err { background: #fbe9e7; border-color: #f2c1bb; color: var(--fail); }

form.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters .field { display: flex; flex-direction: column; gap: 4px; }
label { font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #bcd3ff; border-color: var(--accent); }
textarea { width: 100%; min-height: 70px; }

.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; font: inherit; cursor: pointer; }
.btn:hover { background: #f0f4fa; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #0a52dd; }
.btn-small { padding: 4px 10px; font-size: 13px; }
.btn-danger { color: var(--fail); }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist .help { color: var(--muted); font-size: 13px; margin-top: 4px; }
.icon-ok { color: var(--ok); font-weight: 700; }
.icon-warn { color: var(--warn); font-weight: 700; }
.icon-fail { color: var(--fail); font-weight: 700; }

.reasons { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.reasons li::before { content: "• "; color: var(--muted); }
.reasons li.ok::before { content: "✓ "; color: var(--ok); }
.reasons li.no::before { content: "✗ "; color: var(--fail); }
.match-reasons { display: flex; gap: 24px; flex-wrap: wrap; }
.reason-group { min-width: 200px; }
.reason-group strong { font-size: 13px; }

.map-placeholder { border: 1px dashed var(--line); border-radius: var(--radius); background: #f8f9fb; min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; }
.map-inner { padding: 16px; }
.panel iframe[title="Karte"] { width: 100%; height: 240px; border: 0; border-radius: var(--radius); display: block; }
.map-big { min-height: 320px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.import-progress { margin-top: 10px; }
.import-progress .track { height: 10px; border-radius: 5px; background: #e8ecf1; overflow: hidden; }
.import-progress .fill { height: 100%; width: 40%; border-radius: 5px;
  background: repeating-linear-gradient(45deg, #1a6dd9, #1a6dd9 12px, #4a90e2 12px, #4a90e2 24px);
  background-size: 34px 34px; animation: imp-stripes 1s linear infinite; }
.import-progress .fill.full { width: 100%; animation: none; background: var(--ok); }
.import-progress .fill.failed { width: 100%; animation: none; background: var(--fail); }
.import-progress .ptxt { font-size: 13px; margin-top: 6px; }
@keyframes imp-stripes { from { background-position: 0 0; } to { background-position: 34px 0; } }

.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 12px 0; padding: 8px 10px; background: #f3f6fa; border-radius: 6px; }
.bulk-bar select { padding: 4px 6px; }

.muted { color: var(--muted); }
.score { font-weight: 700; }
.steps { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.steps .step { padding: 6px 12px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-size: 13px; }
.steps .step.active { background: var(--accent); color: #fff; }
.steps .step.done { background: #d9ecdf; color: var(--ok); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.checkbox-grid label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; }

.login-box { max-width: 380px; margin: 8vh auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.login-box h1 { font-size: 20px; margin-top: 0; }
.login-box .field { margin-bottom: 14px; }
.login-box input { width: 100%; }

.logbox { background: #10202f; color: #c9d8e8; font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  border-radius: var(--radius); padding: 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; }
.pw-meter { height: 6px; border-radius: 4px; background: var(--line); margin-top: 6px; }
.pw-meter > div { height: 100%; border-radius: 4px; width: 0; transition: width .2s; }
