/* Space Capture Staging — Dashboard.
   Gleiche Gestaltung wie share: heller Hintergrund in Blau, weiße Karten,
   grüne Knöpfe, Schrift „noka" über Adobe Fonts. */

:root {
  --primary-green: #dce4aa;
  --primary-green-light: #e5ecb7;
  --primary-green-dark: #d3dc9d;
  --primary-blue: #8CA6B1;
  --primary-blue-dark: #7a95a1;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow-light: rgba(0,0,0,0.04);
  --shadow-medium: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.06);
  --danger: #b4544a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: noka, Manrope, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
}
body.admin { background: var(--primary-blue); }
body.login-page {
  background: var(--primary-blue);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}

a { color: var(--primary-blue-dark); text-decoration: none; }
h1, h2, h3 { font-weight: 700; }
.muted { color: var(--text-light); }
.ok  { color: #4d7c3f; font-weight: 700; }
.bad { color: var(--danger); font-weight: 700; }

/* Kopfzeile */
.topbar { background: rgba(255,255,255,0.95); box-shadow: 0 2px 12px var(--shadow-medium); }
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand {
  font-weight: 700; font-size: 18px; color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary-green); color: var(--text-dark);
  font-size: 13px; letter-spacing: 0.02em;
}
.topbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--text-dark); font-weight: 700; }
.topbar .who { color: var(--text-light); }

.wrap { max-width: 1180px; margin: 32px auto; padding: 0 24px; }
.section-title { color: #fff; margin: 28px 0 16px; }

/* Karten */
.card {
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  padding: 32px;
  margin-bottom: 24px;
}
.card.login-card { width: 420px; max-width: 92vw; padding: 48px; text-align: center; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.empty-hint { text-align: center; color: var(--text-light); }

.notice {
  background: var(--primary-green-light);
  border-radius: 14px; padding: 14px 20px; margin-bottom: 20px;
  line-height: 1.55;
}

/* Knöpfe */
.btn {
  display: inline-block;
  background: var(--primary-green);
  color: var(--text-dark);
  font-family: inherit; font-weight: 700; font-size: 15px;
  border: none; border-radius: 12px; padding: 12px 24px;
  cursor: pointer; text-align: center;
  box-shadow: 0 4px 12px rgba(220,228,170,0.3);
  transition: background 0.15s;
}
.btn:hover { background: var(--primary-green-dark); }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-secondary { background: var(--bg-light); box-shadow: none; border: 2px solid var(--border-light); }
.btn-secondary:hover { background: #eceff1; }
.btn-danger { background: #f3d6d6; }
.btn-danger:hover { background: #ecc4c4; }
.btn-block { width: 100%; }

/* Formulare */
label { display: block; text-align: left; font-weight: 700; margin: 14px 0 6px; }
.input, select.input, textarea.input {
  width: 100%;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit; font-size: 15px; color: var(--text-dark);
}
.input:focus { outline: none; border-color: var(--primary-blue); }
.input-inline { width: 150px; padding: 7px 10px; font-size: 13px; }
.hint { color: var(--text-light); font-size: 13px; margin-top: 4px; text-align: left; }
.hint code, .notice code, td code { background: rgba(140,166,177,0.16); border-radius: 4px; padding: 1px 5px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 180px; }
.share-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-row .input { flex: 1; min-width: 240px; }

/* Projektkarten */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  box-shadow: 0 8px 24px var(--shadow-medium);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.18); }
.pc-thumb {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 130px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
}
.pc-thumb-label {
  font-family: ui-monospace, Menlo, monospace; font-size: 13px;
  color: rgba(44,62,80,0.75); background: rgba(255,255,255,0.6);
  padding: 4px 12px; border-radius: 8px;
}
.pc-badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.pc-lock {
  position: absolute; top: 10px; right: 12px;
  background: rgba(255,255,255,0.92); border-radius: 8px;
  padding: 2px 8px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pc-body { padding: 16px 18px 4px; }
.project-card h3 { margin: 0 0 2px; font-size: 19px; }
.project-card .meta { color: var(--text-light); font-size: 13px; }
.pc-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  color: var(--text-light); font-size: 13px; margin-top: 10px; font-weight: 700;
}
.pc-date { color: var(--text-light); font-size: 12px; margin-top: 8px; }
.project-card .actions {
  margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 18px 18px;
}

.badge { display: inline-block; border-radius: 8px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.badge.draft { background: var(--bg-light); color: var(--text-light); }
.badge.published { background: var(--primary-green); color: var(--text-dark); }

/* Tabellen */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
table.list th { color: var(--text-light); font-size: 13px; font-weight: 700; }
table.list tr:last-child td { border-bottom: none; }

.flash {
  background: var(--primary-green-light);
  border-radius: 12px; padding: 12px 18px; margin-bottom: 20px; font-weight: 700;
}
.error {
  background: #f3d6d6;
  border-radius: 12px; padding: 12px 18px; margin-bottom: 20px; font-weight: 700;
}

@media (max-width: 640px) {
  .card { padding: 22px; border-radius: 18px; }
  .wrap { margin: 20px auto; padding: 0 14px; }
}
