/* Modul 9.2 – Umsetzung & Lernen: Weekly Review */

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

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

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

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

/* Timebox Display */

.mod92-timebox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.mod92-timebox-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 0.75rem;
}

.mod92-time {
  font-weight: 700;
  color: #111;
}

/* Grid */

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

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

/* Inputs */

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

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

/* Tables */

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

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

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

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

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

/* Snapshot Cards */

.mod92-snapshot-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
}

.mod92-snapshot-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
}

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

.mod92-snapshot-target {
  font-size: 0.65rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

/* Trend Indicators */

.mod92-trend {
  font-size: 1rem;
  margin-left: 0.3rem;
}

.mod92-trend.up { color: #10b981; }
.mod92-trend.flat { color: #f59e0b; }
.mod92-trend.down { color: #ef4444; }

/* Success Cards */

.mod92-success-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 0.8rem;
}

.mod92-success-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 0.5rem;
}

.mod92-success-icon {
  font-size: 1rem;
}

/* Commit Item Cards */

.mod92-commit-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}

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

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

.mod92-commit-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}

/* Status Badges */

.mod92-status-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.mod92-status-badge.done {
  background: #d1fae5;
  color: #065f46;
}

.mod92-status-badge.doing {
  background: #fef3c7;
  color: #92400e;
}

.mod92-status-badge.blocked {
  background: #fee2e2;
  color: #991b1b;
}

.mod92-status-badge.carryover {
  background: #e0e7ff;
  color: #3730a3;
}

/* Decision Badges */

.mod92-decision-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 500;
}

.mod92-decision-badge.keep { background: #d1fae5; color: #065f46; }
.mod92-decision-badge.split { background: #dbeafe; color: #1e40af; }
.mod92-decision-badge.kill { background: #fee2e2; color: #991b1b; }
.mod92-decision-badge.swap { background: #fef3c7; color: #92400e; }

/* Blocker Cards */

.mod92-blocker-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}

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

.mod92-blocker-type {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 500;
  background: #fee2e2;
  color: #991b1b;
}

/* RAG Indicators */

.mod92-rag {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

.mod92-rag.green { background: #10b981; }
.mod92-rag.amber { background: #f59e0b; }
.mod92-rag.red { background: #ef4444; }

/* Re-Plan Cards */

.mod92-replan-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}

.mod92-replan-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e40af;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* Learning Card */

.mod92-learning-card {
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 1rem;
}

.mod92-learning-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5b21b6;
  margin-bottom: 0.6rem;
}

/* Experiment Card */

.mod92-experiment-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 1rem;
}

.mod92-experiment-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c2410c;
  margin-bottom: 0.6rem;
}

/* Stakeholder Ping */

.mod92-ping-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.8rem;
}

.mod92-ping-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: #166534;
  margin-bottom: 0.5rem;
}

/* Week Selector */

.mod92-week-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mod92-week-nav {
  padding: 0.3rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.mod92-week-nav:hover {
  background: #f3f4f6;
}

.mod92-week-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  min-width: 150px;
  text-align: center;
}

/* Progress Bar */

.mod92-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.mod92-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s;
}

.mod92-progress-fill.green { background: #10b981; }
.mod92-progress-fill.amber { background: #f59e0b; }
.mod92-progress-fill.red { background: #ef4444; }

/* DoD Checklist */

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

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

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

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

/* History */

.mod92-history-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
}

.mod92-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.mod92-history-week {
  font-weight: 600;
  color: #111;
}

.mod92-history-stats {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Actions */

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

/* Bubble Breaker */

.mod92-bubble-card {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  border-radius: 16px;
  padding: 1rem;
}

.mod92-bubble-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.6rem;
}

.mod92-bubble-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.3rem 0;
}

.mod92-bubble-num {
  font-weight: 700;
  color: #92400e;
  min-width: 1.2rem;
}

/* Responsive */

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

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

  .mod92-timebox {
    flex-direction: column;
  }

  .mod92-snapshot-card {
    padding: 0.5rem;
  }

  .mod92-snapshot-value {
    font-size: 1.3rem;
  }
}
