/* Modul 9.1 – Exekution: Sprint-Planung */

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

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

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

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

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

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

/* Tabellen */

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

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

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

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

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

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

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

/* Inputs & Textareas */

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

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

/* FBU Cards */

.mod91-fbu-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
}

.mod91-fbu-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
}

.mod91-fbu-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mod91-fbu-hint {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

/* Backlog Item Card */

.mod91-backlog-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);
}

.mod91-backlog-card.expanded {
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16,185,129,0.1);
}

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

.mod91-backlog-header:hover {
  background: #f0fdf4;
  margin: -0.5rem;
  padding: 0.5rem;
  padding-bottom: 0.6rem;
  border-radius: 12px;
}

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

.mod91-backlog-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.mod91-backlog-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

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

.mod91-size-badge.xs {
  background: #d1fae5;
  color: #065f46;
}

.mod91-size-badge.s {
  background: #dbeafe;
  color: #1e40af;
}

.mod91-size-badge.m {
  background: #fef3c7;
  color: #92400e;
}

.mod91-size-badge.l {
  background: #fee2e2;
  color: #991b1b;
}

.mod91-size-badge.xl {
  background: #fce7f3;
  color: #9d174d;
}

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

.mod91-status-badge.backlog {
  background: #f3f4f6;
  color: #6b7280;
}

.mod91-status-badge.sprint {
  background: #dbeafe;
  color: #1e40af;
}

.mod91-status-badge.in-progress {
  background: #fef3c7;
  color: #92400e;
}

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

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

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

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

.mod91-backlog-body {
  display: none;
  padding-top: 1rem;
}

.mod91-backlog-card.expanded .mod91-backlog-body {
  display: block;
}

/* Sprint Goal */

.mod91-goal-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  border-radius: 16px;
  padding: 1rem;
}

.mod91-goal-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.mod91-goal-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

/* Capacity Bar */

.mod91-capacity-bar {
  height: 24px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.mod91-capacity-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.3s;
}

.mod91-capacity-fill.green {
  background: linear-gradient(90deg, #10b981, #059669);
}

.mod91-capacity-fill.yellow {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.mod91-capacity-fill.red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.mod91-capacity-text {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

/* WIP Display */

.mod91-wip-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

.mod91-wip-value {
  font-size: 2rem;
  font-weight: 700;
  color: #92400e;
}

.mod91-wip-info {
  flex: 1;
}

.mod91-wip-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.mod91-wip-hint {
  font-size: 0.75rem;
  color: #b45309;
}

/* DoR / DoD Cards */

.mod91-dor-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.8rem;
}

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

.mod91-criteria-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mod91-dor-card .mod91-criteria-title {
  color: #1e40af;
}

.mod91-dod-card .mod91-criteria-title {
  color: #166534;
}

.mod91-criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mod91-criteria-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}

.mod91-criteria-list li input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: #111;
}

/* Sprint Board Columns */

.mod91-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

@media (max-width: 900px) {
  .mod91-board {
    grid-template-columns: 1fr;
  }
}

.mod91-board-column {
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.6rem;
  min-height: 200px;
}

.mod91-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0.5rem;
}

.mod91-board-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mod91-board-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: #e5e7eb;
  color: #374151;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.mod91-board-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  cursor: move;
}

.mod91-board-item:hover {
  border-color: #10b981;
}

/* Blockers */

.mod91-blocker-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
}

.mod91-blocker-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 0.3rem;
}

.mod91-blocker-action {
  font-size: 0.8rem;
  color: #166534;
}

/* Daily Stand-up */

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

.mod91-standup-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c2410c;
  margin-bottom: 0.5rem;
}

.mod91-standup-question {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

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

/* Retro Cards */

.mod91-retro-column {
  border-radius: 12px;
  padding: 0.8rem;
}

.mod91-retro-column.keep {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.mod91-retro-column.improve {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.mod91-retro-column.try {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.mod91-retro-header {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mod91-retro-column.keep .mod91-retro-header {
  color: #065f46;
}

.mod91-retro-column.improve .mod91-retro-header {
  color: #92400e;
}

.mod91-retro-column.try .mod91-retro-header {
  color: #1e40af;
}

.mod91-retro-item {
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}

/* Pills & Summary */

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

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

/* Sprint Stats */

.mod91-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .mod91-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

/* Module DoD */

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

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

.mod91-module-dod li:last-child {
  border-bottom: none;
}

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

/* Actions */

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

/* Velocity Chart placeholder */

.mod91-velocity-chart {
  height: 120px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Responsive */

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

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

  .mod91-backlog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mod91-board {
    grid-template-columns: 1fr;
  }
}
