/* Modul 8.3 – Stakeholder: Feedback-Loops */

.mod83-shell {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.mod83-section {
  padding: 1.3rem 1.5rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 32px rgba(0,0,0,0.04);
  margin-top: 0.5rem;
}

.mod83-section h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.mod83-section p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.8rem;
}

.mod83-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .mod83-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mod83-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mod83-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tabellen */

.mod83-table-wrap {
  margin-top: 0.6rem;
  overflow-x: auto;
}

.mod83-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mod83-table th,
.mod83-table td {
  border: 1px solid #e5e7eb;
  padding: 0.3rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.mod83-table th {
  background: #f3f4f6;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mod83-table td {
  background: #fff;
}

.mod83-table input,
.mod83-table select,
.mod83-table textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  font: inherit;
  font-size: 0.8rem;
}

.mod83-table textarea {
  min-height: 50px;
  resize: vertical;
}

/* Inputs & Textareas */

.mod83-input,
.mod83-select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
}

.mod83-textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

/* Quadrant Cards */

.mod83-quadrant-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
}

.mod83-quadrant-card.key-players {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(to right, #fffbeb, #fff);
}

.mod83-quadrant-card.keep-satisfied {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(to right, #eff6ff, #fff);
}

.mod83-quadrant-card.keep-informed {
  border-left: 4px solid #10b981;
  background: linear-gradient(to right, #ecfdf5, #fff);
}

.mod83-quadrant-card.monitor {
  border-left: 4px solid #6b7280;
  background: linear-gradient(to right, #f9fafb, #fff);
}

.mod83-quadrant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mod83-quadrant-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.mod83-quadrant-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

/* Format Cards */

.mod83-format-card {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
}

.mod83-format-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 0.4rem;
}

.mod83-format-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mod83-format-steps li {
  display: flex;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.2rem 0;
}

.mod83-format-steps .step-num {
  font-weight: 700;
  color: #7c3aed;
  min-width: 1.2rem;
}

/* Question Bank */

.mod83-question-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.mod83-question-item:last-child {
  border-bottom: none;
}

.mod83-question-check {
  margin-top: 0.2rem;
  accent-color: #7c3aed;
}

.mod83-question-text {
  flex: 1;
  font-size: 0.85rem;
}

.mod83-question-category {
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
  text-transform: uppercase;
}

/* RAG Triggers */

.mod83-rag-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.mod83-rag-row.green {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.mod83-rag-row.amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.mod83-rag-row.red {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.mod83-rag-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.mod83-rag-indicator.green {
  background: #10b981;
  color: #fff;
}

.mod83-rag-indicator.amber {
  background: #f59e0b;
  color: #fff;
}

.mod83-rag-indicator.red {
  background: #ef4444;
  color: #fff;
}

.mod83-rag-content {
  flex: 1;
}

.mod83-rag-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Mess-Set KPIs */

.mod83-kpi-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem;
  text-align: center;
}

.mod83-kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}

.mod83-kpi-label {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mod83-kpi-target {
  font-size: 0.75rem;
  color: #10b981;
  margin-top: 0.2rem;
}

/* SINE Log */

.mod83-energy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.mod83-energy-badge.positive {
  background: #d1fae5;
  color: #065f46;
}

.mod83-energy-badge.negative {
  background: #fee2e2;
  color: #991b1b;
}

.mod83-energy-badge.neutral {
  background: #f3f4f6;
  color: #6b7280;
}

/* Safety Script */

.mod83-safety-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 0.8rem;
}

.mod83-safety-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.mod83-safety-item:last-child {
  margin-bottom: 0;
}

.mod83-safety-icon {
  color: #10b981;
  flex-shrink: 0;
}

/* Pills & Summary */

.mod83-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #f9fafb;
  color: #6b7280;
}

.mod83-summary-block {
  margin-top: 0.6rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

/* Actions */

.mod83-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* DoD Checklist */

.mod83-dod-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.mod83-dod-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.mod83-dod-list li:last-child {
  border-bottom: none;
}

.mod83-dod-list input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #111;
}

/* Loop Type Badges */

.mod83-loop-type {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.mod83-loop-type.one-on-one {
  background: #dbeafe;
  color: #1e40af;
}

.mod83-loop-type.review {
  background: #fef3c7;
  color: #92400e;
}

.mod83-loop-type.pulse {
  background: #d1fae5;
  color: #065f46;
}

.mod83-loop-type.digest {
  background: #f3f4f6;
  color: #374151;
}

/* Responsive */

@media (max-width: 640px) {
  .mod83-section {
    padding: 1rem;
  }

  .mod83-table {
    font-size: 0.75rem;
  }

  .mod83-rag-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
