/* REGAB Info-System (Admin-Modal) – an Einstellungen / Benutzer & Rechte / App-Design */

.modal-card.info-system-modal {
  width: min(1680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 22px 24px;
}

.modal-backdrop.info-system-backdrop {
  padding: 12px;
}

.info-system-panel {
  --is-blue: #3977ed;
  --is-line: #e2e8ef;
  --is-muted: #6d7b8b;
  --is-text: #172536;
  --is-surface: #f8fafc;
  --is-shadow: 0 12px 32px rgba(31, 48, 67, .07);
  gap: 18px;
}

.info-system-panel .compact-panel-head h2 {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Manrope, "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--is-text);
}

.info-system-panel .compact-panel-head h2 svg {
  width: 18px;
  height: 18px;
  color: var(--is-blue);
}

.info-system-panel .compact-panel-head p {
  margin: 0;
  color: var(--is-muted);
  font-size: 12px;
  line-height: 1.45;
}

.info-system-panel .panel-head .secondary-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* KPI-Zeile */
.info-system-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-system-stats span {
  min-height: 64px;
  padding: 14px 16px;
  gap: 10px;
  color: var(--is-text);
  background: #fff;
  border: 1px solid var(--is-line);
  border-radius: 14px;
  box-shadow: var(--is-shadow);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.info-system-stats svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--is-blue);
}

/* Layout & Karten */
.info-system-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px;
}

.info-system-card {
  padding: 18px;
  gap: 14px;
  background: var(--is-surface);
  border: 1px solid var(--is-line);
  border-radius: 13px;
  box-shadow: var(--is-shadow);
}

.info-system-card .document-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--is-muted);
  background: #fff;
  border: 1px dashed var(--is-line);
  border-radius: 12px;
}

.info-system-card .document-empty strong {
  display: block;
  margin-top: 8px;
  color: var(--is-text);
  font-size: 14px;
}

.info-system-card .document-empty span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

/* Feedback-Liste */
.info-system-panel .info-feedback-list,
.info-system-panel .info-news-list,
.info-system-panel .roadmap-items {
  gap: 10px;
}

.info-system-panel .info-feedback-item {
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--is-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.info-system-panel .info-feedback-item.type-bug {
  border-color: #f0c4ca;
  background: #fffafb;
}

.info-system-panel .info-feedback-main strong {
  color: var(--is-text);
  font-size: 14px;
  font-weight: 800;
}

.info-system-panel .info-feedback-main p {
  color: #536579;
  font-size: 13px;
  line-height: 1.5;
}

.info-system-panel .info-feedback-main small {
  color: var(--is-muted);
  font-size: 11px;
}

.info-system-panel .info-type-badge {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
}

.info-system-panel .feedback-attachment-link {
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
}

.info-system-panel .info-feedback-actions {
  gap: 6px;
}

.info-system-panel .info-feedback-actions .secondary-button,
.info-system-panel .info-feedback-actions select,
.info-system-panel .roadmap-item-actions select,
.info-system-panel .info-post-form select {
  min-height: 36px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.info-system-panel .info-feedback-actions .secondary-button {
  padding: 0 10px;
}

/* News / Archiv */
.info-system-panel .info-post-form {
  gap: 10px;
}

.info-system-panel .info-post-form input,
.info-system-panel .info-post-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--is-line);
  border-radius: 8px;
  font-size: 13px;
}

.info-system-panel .info-news-list article {
  padding: 12px;
  gap: 10px;
  border: 1px solid var(--is-line);
  border-radius: 12px;
  background: #fff;
}

.info-system-panel .info-news-list strong {
  font-size: 13px;
  font-weight: 800;
}

.info-system-panel .info-news-list span {
  font-size: 11px;
}

.info-system-panel .info-archive-list {
  gap: 8px;
}

.info-system-panel .info-archive-list article {
  padding: 11px 12px;
  border: 1px solid var(--is-line);
  border-radius: 10px;
  background: #fff;
}

.info-system-panel .info-archive-list strong {
  font-size: 13px;
  font-weight: 800;
}

.info-system-panel .info-archive-list small {
  font-size: 11px;
}

/* Roadmap-Board */
.info-system-panel .roadmap-admin-card {
  overflow: hidden;
}

.info-system-panel .roadmap-board {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 10px;
  padding-bottom: 2px;
}

.info-system-panel .roadmap-column {
  min-height: 240px;
  padding: 10px;
  gap: 8px;
  border: 1px solid var(--is-line);
  border-radius: 12px;
  background: #fff;
}

.info-system-panel .roadmap-column.status-planned {
  background: #f7fbff;
  border-color: #cfe2ff;
}

.info-system-panel .roadmap-column.status-in_progress {
  background: #fffaf0;
  border-color: #f8ddb0;
}

.info-system-panel .roadmap-column.status-done {
  background: #f2fbf6;
  border-color: #ccebd9;
}

.info-system-panel .roadmap-column-head strong {
  font-size: 13px;
  font-weight: 800;
}

.info-system-panel .roadmap-column-head span {
  min-width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 800;
  background: #eef2f6;
  color: var(--is-muted);
}

.info-system-panel .roadmap-column-head small {
  font-size: 11px;
  line-height: 1.35;
}

.info-system-panel .roadmap-item {
  padding: 10px;
  gap: 6px;
  border: 1px solid var(--is-line);
  border-radius: 10px;
  box-shadow: none;
  background: #fff;
}

.info-system-panel .roadmap-item strong {
  font-size: 12px;
  font-weight: 800;
}

.info-system-panel .roadmap-item p {
  font-size: 11px;
  line-height: 1.45;
}

.info-system-panel .roadmap-item small {
  font-size: 10px;
}

.info-system-panel .roadmap-empty {
  min-height: 64px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Dark Mode */
body.theme-dark .info-system-panel {
  --is-line: #244f7a;
  --is-muted: #a8b8ca;
  --is-text: #eaf2ff;
  --is-surface: #10243a;
  --is-shadow: none;
}

body.theme-dark .modal-card.info-system-modal {
  background: #0b1a2a;
  border-color: #244f7a;
}

body.theme-dark .info-system-stats span,
body.theme-dark .info-system-card,
body.theme-dark .info-system-panel .info-feedback-item,
body.theme-dark .info-system-panel .info-news-list article,
body.theme-dark .info-system-panel .info-archive-list article,
body.theme-dark .info-system-panel .roadmap-column,
body.theme-dark .info-system-panel .roadmap-item,
body.theme-dark .info-system-card .document-empty {
  background: #10243a !important;
  border-color: #244f7a !important;
  box-shadow: none !important;
}

body.theme-dark .info-system-panel .info-feedback-item.type-bug {
  background: #241018 !important;
  border-color: #6b3040 !important;
}

body.theme-dark .info-system-stats svg,
body.theme-dark .info-system-panel .compact-panel-head h2 svg {
  color: #bfdbfe !important;
}

body.theme-dark .info-system-panel .info-post-form input,
body.theme-dark .info-system-panel .info-post-form textarea,
body.theme-dark .info-system-panel .info-feedback-actions select,
body.theme-dark .info-system-panel .roadmap-item-actions select {
  color: #eaf2ff !important;
  background: #0d2136 !important;
  border-color: #244f7a !important;
}

body.theme-dark .info-system-panel .info-type-badge,
body.theme-dark .info-system-panel .feedback-attachment-link {
  color: #bfdbfe !important;
  background: #15385e !important;
  border-color: #244f7a !important;
}

body.theme-dark .info-system-panel .roadmap-column.status-planned,
body.theme-dark .info-system-panel .roadmap-column.status-in_progress,
body.theme-dark .info-system-panel .roadmap-column.status-done {
  background: #10243a !important;
}

/* Responsive */
@media (max-width: 1180px) {
  .info-system-layout {
    grid-template-columns: 1fr;
  }

  .info-system-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .modal-card.info-system-modal {
    width: calc(100vw - 12px);
    padding: 16px;
  }

  .info-system-stats {
    grid-template-columns: 1fr;
  }

  .info-system-panel .info-feedback-item {
    grid-template-columns: 1fr;
  }

  .info-system-panel .info-feedback-actions {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
  }

  .info-system-panel .roadmap-board {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}
