/* Modul 8.1 – Stakeholder: Mapping / Landschaft */

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

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

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

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

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

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

/* Tabellen */

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

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

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

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

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

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

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

.mod81-table .num-input {
  width: 50px;
  text-align: center;
}

/* Inputs & Textareas */

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

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

/* Power-Interest Grid */

.mod81-pi-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  grid-template-rows: auto 1fr 1fr;
  gap: 0;
  margin-top: 0.8rem;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
}

.mod81-pi-label {
  background: #f3f4f6;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod81-pi-label.y-axis {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.mod81-pi-cell {
  min-height: 120px;
  padding: 0.6rem;
  border: 1px solid #e5e7eb;
}

.mod81-pi-cell.high-high {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}
.mod81-pi-cell.high-low {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.mod81-pi-cell.low-high {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.mod81-pi-cell.low-low {
  background: #f9fafb;
}

.mod81-pi-cell-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: #374151;
}

.mod81-pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.mod81-pi-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255,255,255,0.7);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* Stakeholder Cards */

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

.mod81-stakeholder-card.top5 {
  border-left: 4px solid #f59e0b;
}

.mod81-stakeholder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mod81-stakeholder-id {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.mod81-stakeholder-scores {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.mod81-score-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #e5e7eb;
  color: #374151;
}

.mod81-score-badge.high {
  background: #fecaca;
  color: #991b1b;
}

.mod81-score-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

/* Network Visualization */

.mod81-network-wrap {
  background: #fafafa;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  min-height: 200px;
  padding: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* SINE Energy Log */

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

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

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

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

/* Pills & Summary */

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

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

/* Quadrant Legend */

.mod81-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.mod81-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mod81-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

.mod81-legend-color.high-high { background: #fde68a; }
.mod81-legend-color.high-low { background: #bfdbfe; }
.mod81-legend-color.low-high { background: #a7f3d0; }
.mod81-legend-color.low-low { background: #e5e7eb; }

/* Actions */

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

/* DoD Checklist */

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

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

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

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

/* Responsive */

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

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

  .mod81-pi-grid {
    grid-template-columns: auto 1fr;
  }
}
