/* =============================================
   SINE Modul 11.1 - Retrospektive / Lessons Learned
   ============================================= */

.mod-11-1-retro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.mod-11-1-retro .module-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--sine-red, #c41e3a);
}

.mod-11-1-retro .module-header h1 {
  font-size: 2rem;
  color: var(--sine-red, #c41e3a);
  margin: 0 0 0.5rem 0;
}

.mod-11-1-retro .module-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Info Box */
.mod-11-1-retro .info-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
  border: 1px solid #a5d6a7;
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mod-11-1-retro .info-box h3 {
  margin: 0 0 1rem 0;
  color: #2e7d32;
}

.mod-11-1-retro .info-box ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.mod-11-1-retro .info-box li {
  margin-bottom: 0.5rem;
}

.mod-11-1-retro .time-estimate {
  font-size: 0.9rem;
  color: #666;
  background: #f8f8f8;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 0;
}

/* Timebox Bar */
.mod-11-1-retro .timebox-bar {
  display: flex;
  gap: 2px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.mod-11-1-retro .timebox-segment {
  flex: 1;
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
  border-right: 1px solid #e0e0e0;
}

.mod-11-1-retro .timebox-segment:last-child {
  border-right: none;
}

.mod-11-1-retro .timebox-segment:nth-child(1) { background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%); }
.mod-11-1-retro .timebox-segment:nth-child(2) { background: linear-gradient(135deg, #fff3e0 0%, #fff 100%); }
.mod-11-1-retro .timebox-segment:nth-child(3) { background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%); }
.mod-11-1-retro .timebox-segment:nth-child(4) { background: linear-gradient(135deg, #fce4ec 0%, #fff 100%); }
.mod-11-1-retro .timebox-segment:nth-child(5) { background: linear-gradient(135deg, #f3e5f5 0%, #fff 100%); }

.mod-11-1-retro .timebox-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
}

.mod-11-1-retro .timebox-minutes {
  font-size: 0.75rem;
  color: #666;
}

/* Worksheet Sections */
.mod-11-1-retro .worksheet-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mod-11-1-retro .worksheet-section h2 {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.mod-11-1-retro .section-intro {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 1.5rem 0;
}

/* Snapshot Grid */
.mod-11-1-retro .snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.mod-11-1-retro .snapshot-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mod-11-1-retro .snapshot-field.full-width {
  grid-column: 1 / -1;
}

.mod-11-1-retro .snapshot-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.mod-11-1-retro .snapshot-input,
.mod-11-1-retro .snapshot-field input[type="text"],
.mod-11-1-retro .snapshot-field input[type="number"],
.mod-11-1-retro .snapshot-field input[type="date"],
.mod-11-1-retro .snapshot-field textarea {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.mod-11-1-retro .date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-11-1-retro .date-range span {
  color: #666;
}

.mod-11-1-retro .metric-input {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mod-11-1-retro .metric-input input {
  width: 70px;
}

.mod-11-1-retro .metric-input span {
  color: #666;
  font-size: 0.9rem;
}

/* AAR Questions */
.mod-11-1-retro .aar-questions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mod-11-1-retro .aar-question {
  display: flex;
  gap: 1rem;
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e8e8e8;
}

.mod-11-1-retro .aar-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--sine-red, #c41e3a) 0%, #e57373 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mod-11-1-retro .aar-content {
  flex: 1;
}

.mod-11-1-retro .aar-content h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  color: #333;
}

.mod-11-1-retro .aar-hint {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.5rem 0;
}

.mod-11-1-retro .aar-content textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

/* Lessons Container */
.mod-11-1-retro .lessons-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mod-11-1-retro .lesson-card {
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
}

.mod-11-1-retro .lesson-card.filled {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
}

.mod-11-1-retro .lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mod-11-1-retro .lesson-number {
  background: var(--sine-red, #c41e3a);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.85rem;
}

.mod-11-1-retro .lesson-title-input {
  flex: 1;
  margin-left: 1rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.mod-11-1-retro .lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.mod-11-1-retro .lesson-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mod-11-1-retro .lesson-field.full-width {
  grid-column: 1 / -1;
}

.mod-11-1-retro .lesson-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.mod-11-1-retro .lesson-field input,
.mod-11-1-retro .lesson-field textarea,
.mod-11-1-retro .lesson-field select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
}

.mod-11-1-retro .lesson-field textarea {
  resize: vertical;
  font-family: inherit;
}

.mod-11-1-retro .entscheidung-select {
  background: #fff;
}

.mod-11-1-retro .confidence-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-11-1-retro .confidence-slider input[type="range"] {
  flex: 1;
}

.mod-11-1-retro .confidence-value {
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* Muster Table */
.mod-11-1-retro .muster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mod-11-1-retro .muster-table th,
.mod-11-1-retro .muster-table td {
  padding: 0.6rem 0.5rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.mod-11-1-retro .muster-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.mod-11-1-retro .muster-input {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Transfer Table */
.mod-11-1-retro .transfer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mod-11-1-retro .transfer-table th,
.mod-11-1-retro .transfer-table td {
  padding: 0.6rem 0.5rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.mod-11-1-retro .transfer-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.mod-11-1-retro .transfer-table input,
.mod-11-1-retro .transfer-table select {
  padding: 0.4rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.8rem;
  width: 100%;
}

/* Sign-off Section */
.mod-11-1-retro .signoff-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mod-11-1-retro .signoff-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
}

.mod-11-1-retro .signoff-item:hover {
  background: #f5f5f5;
  border-radius: 4px;
}

.mod-11-1-retro .signoff-check {
  width: 18px;
  height: 18px;
}

.mod-11-1-retro .signoff-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.mod-11-1-retro .signoff-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mod-11-1-retro .signoff-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.mod-11-1-retro .signoff-field input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* DoD Section */
.mod-11-1-retro .dod-section {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
  border: 2px solid #4caf50;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mod-11-1-retro .dod-section h2 {
  margin: 0 0 1rem 0;
  color: #2e7d32;
}

.mod-11-1-retro .dod-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mod-11-1-retro .dod-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
}

.mod-11-1-retro .dod-item:hover {
  background: rgba(76, 175, 80, 0.1);
  border-radius: 4px;
}

.mod-11-1-retro .dod-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.mod-11-1-retro .dod-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mod-11-1-retro .dod-progress-bar {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.mod-11-1-retro .dod-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
  width: 0%;
  transition: width 0.3s ease;
}

#dodProgressText {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

/* Bubble-Breaker */
.mod-11-1-retro .bubble-breaker-box {
  background: #f3e5f5;
  border: 1px solid #ce93d8;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.mod-11-1-retro .bubble-breaker-box h3 {
  margin: 0 0 1rem 0;
  color: #7b1fa2;
}

.mod-11-1-retro .bubble-breaker-box ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.mod-11-1-retro .bubble-breaker-box li {
  margin-bottom: 0.5rem;
}

.mod-11-1-retro .bubble-kriterium {
  background: rgba(255,255,255,0.7);
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0;
  font-size: 0.9rem;
}

/* Action Buttons */
.mod-11-1-retro .module-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.mod-11-1-retro .btn-primary {
  background: linear-gradient(135deg, var(--sine-red, #c41e3a) 0%, #e57373 100%);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mod-11-1-retro .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.mod-11-1-retro .btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.mod-11-1-retro .btn-secondary:hover {
  background: #e8e8e8;
}

.mod-11-1-retro .btn-add {
  background: none;
  border: 2px dashed #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  color: #666;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-top: 1rem;
}

.mod-11-1-retro .btn-add:hover {
  border-color: var(--sine-red, #c41e3a);
  color: var(--sine-red, #c41e3a);
}

/* Responsive */
@media (max-width: 768px) {
  .mod-11-1-retro {
    padding: 1rem;
  }

  .mod-11-1-retro .module-header h1 {
    font-size: 1.5rem;
  }

  .mod-11-1-retro .timebox-bar {
    flex-wrap: wrap;
  }

  .mod-11-1-retro .timebox-segment {
    flex: 1 1 45%;
  }

  .mod-11-1-retro .aar-question {
    flex-direction: column;
  }

  .mod-11-1-retro .lesson-grid {
    grid-template-columns: 1fr;
  }

  .mod-11-1-retro .snapshot-grid {
    grid-template-columns: 1fr;
  }
}
