/* Modul 8.4 – Stakeholder: Unterstützung / Peer-Circle & Advisory */

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

.mod84-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;
}

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

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

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

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

/* Tabellen */

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

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

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

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

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

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

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

/* Inputs & Textareas */

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

.mod84-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;
}

/* Member Cards */

.mod84-member-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.mod84-member-card.expanded {
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139,92,246,0.1);
}

.mod84-member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f3f4f6;
}

.mod84-member-header:hover {
  background: #faf5ff;
  margin: -0.5rem;
  padding: 0.5rem;
  padding-bottom: 0.6rem;
  border-radius: 12px;
}

.mod84-member-id {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.mod84-member-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.mod84-member-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mod84-role-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.mod84-role-badge.mentor {
  background: #dbeafe;
  color: #1e40af;
}

.mod84-role-badge.peer {
  background: #d1fae5;
  color: #065f46;
}

.mod84-role-badge.buddy {
  background: #fef3c7;
  color: #92400e;
}

.mod84-role-badge.sponsor {
  background: #fce7f3;
  color: #9d174d;
}

.mod84-role-badge.specialist {
  background: #e0e7ff;
  color: #3730a3;
}

.mod84-expand-icon {
  font-size: 1.2rem;
  color: #9ca3af;
  transition: transform 0.2s;
}

.mod84-member-card.expanded .mod84-expand-icon {
  transform: rotate(180deg);
}

.mod84-member-body {
  display: none;
  padding-top: 1rem;
}

.mod84-member-card.expanded .mod84-member-body {
  display: block;
}

/* Format Cards */

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

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

.mod84-format-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.mod84-format-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: #ede9fe;
  color: #5b21b6;
}

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

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

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

/* Ground Rules */

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

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

.mod84-rule-item:last-child {
  margin-bottom: 0;
}

.mod84-rule-icon {
  color: #10b981;
  flex-shrink: 0;
}

/* MoU Cards */

.mod84-mou-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
}

.mod84-mou-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.mod84-mou-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}

.mod84-mou-label {
  font-weight: 500;
  color: #374151;
  min-width: 100px;
  flex-shrink: 0;
}

/* KPI Cards */

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

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

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

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

/* SINE Log */

.mod84-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;
}

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

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

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

/* Risk Items */

.mod84-risk-item {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
}

.mod84-risk-trigger {
  font-size: 0.8rem;
  font-weight: 500;
  color: #92400e;
  margin-bottom: 0.3rem;
}

.mod84-risk-action {
  font-size: 0.8rem;
  color: #166534;
}

/* Pills & Summary */

.mod84-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;
}

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

/* Actions */

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

/* DoD Checklist */

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

.mod84-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;
}

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

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

/* Invitation Script */

.mod84-invite-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 0.8rem;
}

.mod84-invite-step {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.mod84-invite-num {
  font-weight: 700;
  color: #c2410c;
  min-width: 1.2rem;
}

/* Responsive */

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

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

  .mod84-member-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mod84-format-meta {
    flex-direction: column;
  }
}
