:root {
  --svd-bg: #f5f7fa;
  --svd-dark: #111827;
  --svd-muted: #6b7280;
  --svd-card: #ffffff;
}

body { background: var(--svd-bg); color: var(--svd-dark); }
.navbar-brand { font-weight: 800; letter-spacing: .02em; }
.hero {
  background: linear-gradient(135deg, #111827, #26344c);
  color: white;
  border-radius: 1.5rem;
  overflow: hidden;
}
.hero .eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; opacity: .75; }
.card { border: 0; border-radius: 1.25rem; box-shadow: 0 .35rem 1.4rem rgba(17,24,39,.06); }
.form-section { scroll-margin-top: 6rem; }
.form-section .section-number {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: inline-grid; place-items: center; font-weight: 800;
  background: #111827; color: #fff;
}
.required::after { content: ' *'; color: #dc3545; }
.drop-zone {
  border: 2px dashed #cbd5e1; border-radius: 1rem; padding: 1.25rem;
  background: #f8fafc; transition: .2s ease;
}
.drop-zone.dragover { border-color: #111827; background: #eef2ff; }
.file-chip { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: .75rem; background: #fff; border: 1px solid #e5e7eb; }
.progress-sticky { position: sticky; top: .5rem; z-index: 1020; }
.badge-soft { background: #eef2ff; color: #3730a3; }
.status-dot { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; margin-right: .4rem; }
.status-Neu { background:#2563eb; }
.status-In-Prüfung, .status-Rückfrage, .status-Zur-Abstimmung { background:#d97706; }
.status-Genehmigt, .status-Erledigt { background:#16a34a; }
.status-Abgelehnt { background:#dc2626; }
.status-In-Umsetzung { background:#7c3aed; }
.preview-text { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background:#0f172a; color:#e2e8f0; padding:1rem; border-radius:.85rem; }
.admin-shell { min-height: 100vh; }
.metric { font-size: 1.8rem; font-weight: 800; }
.table > :not(caption) > * > * { vertical-align: middle; }
.attachment-thumb { max-width: 100%; max-height: 280px; object-fit: contain; border-radius: .75rem; border:1px solid #e5e7eb; }
@media (max-width: 767px) {
  .hero { border-radius: 1rem; }
  .card { border-radius: 1rem; }
  .progress-sticky { position: static; }
}

/* Vorstand-Abstimmung */
.vote-metric {
  border: 1px solid #e5e7eb;
  border-radius: .9rem;
  padding: .7rem .35rem;
  background: #fff;
}
.vote-metric strong { display:block; font-size:1.35rem; line-height:1.1; }
.vote-metric span { display:block; font-size:.72rem; color:#6b7280; margin-top:.2rem; }
.vote-metric.vote-yes { background:#f0fdf4; border-color:#bbf7d0; }
.vote-metric.vote-no { background:#fef2f2; border-color:#fecaca; }
.vote-row {
  border: 1px solid #e5e7eb;
  border-radius: .9rem;
  padding: .85rem;
  background: #fff;
}
.vote-row-yes { border-color:#bbf7d0; background:#f0fdf4; }
.vote-row-no { border-color:#fecaca; background:#fef2f2; }
.vote-row-mine { box-shadow: inset 0 0 0 2px #111827; }

/* Version 1.2 – vereinfachter 3-Schritte-Assistent */
.wizard-shell { max-width: 1060px; }
.wizard-progress { position: sticky; top: 4.3rem; z-index: 1010; }
.wizard-steps { display:flex; align-items:center; gap:.65rem; }
.wizard-step { border:0; background:transparent; display:flex; align-items:center; gap:.55rem; padding:.2rem; color:#6b7280; text-align:left; }
.wizard-step span { width:2rem; height:2rem; border-radius:50%; display:grid; place-items:center; border:2px solid #cbd5e1; background:#fff; font-weight:800; flex:0 0 auto; }
.wizard-step strong { font-size:.9rem; white-space:nowrap; }
.wizard-step.active { color:#111827; }
.wizard-step.active span { border-color:#111827; background:#111827; color:#fff; }
.wizard-step.done span { border-color:#16a34a; background:#16a34a; color:#fff; }
.wizard-line { height:2px; background:#e5e7eb; flex:1; min-width:1rem; }

.category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem; }
.category-choice { position:relative; border:2px solid #e5e7eb; border-radius:1rem; padding:1rem 2.6rem 1rem 1rem; background:#fff; cursor:pointer; transition:.15s ease; min-height:92px; display:flex; flex-direction:column; justify-content:center; }
.category-choice:hover { border-color:#94a3b8; transform:translateY(-1px); }
.category-choice strong { display:block; font-size:1rem; }
.category-choice small { color:#6b7280; margin-top:.2rem; line-height:1.3; }
.category-choice .category-check { position:absolute; right:.85rem; top:.85rem; width:1.55rem; height:1.55rem; border-radius:50%; display:grid; place-items:center; background:#e5e7eb; color:transparent; font-size:.8rem; font-weight:900; }
.category-choice:has(input:checked) { border-color:#111827; background:#f8fafc; box-shadow:inset 0 0 0 1px #111827; }
.category-choice:has(input:checked) .category-check { background:#111827; color:#fff; }
.category-grid-invalid .category-choice { border-color:#fecaca; }

.idea-input { font-size:1.05rem; line-height:1.55; min-height:190px; }
.upload-card { border:1px solid #e5e7eb; border-radius:1rem; padding:1rem; background:#fafafa; }
.optional-accordion { border:1px solid #e5e7eb !important; border-radius:1rem !important; overflow:hidden; }
.optional-accordion .accordion-button { font-weight:700; box-shadow:none !important; }
.optional-accordion .accordion-button:not(.collapsed) { background:#f8fafc; color:#111827; }
.preview-paper { background:#fff; border:1px solid #e5e7eb; border-radius:1rem; padding:1.25rem; }
.preview-meta { display:flex; flex-wrap:wrap; gap:.45rem; }
.preview-meta span { background:#f1f5f9; border-radius:999px; padding:.35rem .65rem; font-size:.8rem; }

/* Version 1.2 – Abstimmungslogik */
.vote-metric.vote-abstain { background:#f8fafc; border-color:#cbd5e1; }
.vote-row-abstain { border-color:#cbd5e1; background:#f8fafc; }
.vote-result { border-radius:.9rem; padding:1rem; border:1px solid #e5e7eb; }
.vote-result-accepted { background:#f0fdf4; border-color:#bbf7d0; }
.vote-result-rejected { background:#fef2f2; border-color:#fecaca; }
.vote-result-pending { background:#fffbeb; border-color:#fde68a; }
.rule-option { display:flex; align-items:flex-start; gap:.75rem; border:1px solid #e5e7eb; border-radius:1rem; padding:1rem; cursor:pointer; transition:.15s ease; }
.rule-option:hover { border-color:#94a3b8; }
.rule-option:has(input:checked) { border-color:#111827; background:#f8fafc; box-shadow:inset 0 0 0 1px #111827; }
.rule-option span { display:block; }
.rule-option strong { display:block; }
.rule-option small { display:block; color:#6b7280; margin-top:.15rem; }

@media (max-width: 767px) {
  .wizard-progress { position:static; }
  .wizard-step strong { display:none; }
  .wizard-step span { width:2.15rem; height:2.15rem; }
  .category-grid { grid-template-columns:1fr; }
  .category-choice { min-height:80px; }
}
