/* SINE Modul 11.4 – Wuerdigung / Feier & Closure */

.mod-11-4-closure {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.mod-11-4-closure .module-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mod-11-4-closure .module-header h1 {
  font-size: 2rem;
  color: var(--sine-text, #1a1a2e);
  margin-bottom: 0.5rem;
}

.mod-11-4-closure .module-subtitle {
  color: var(--sine-muted, #6b7280);
  font-size: 1.1rem;
}

/* Info Box */
.mod-11-4-closure .info-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border-left: 4px solid #f59e0b;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.mod-11-4-closure .info-box h3 {
  margin: 0 0 1rem 0;
  color: #b45309;
}

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

.mod-11-4-closure .info-box li {
  margin-bottom: 0.5rem;
}

.mod-11-4-closure .time-estimate {
  font-style: italic;
  color: var(--sine-muted, #6b7280);
}

.mod-11-4-closure .sine-kern {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #fcd34d;
  font-size: 0.95rem;
}

/* Timebox Bar */
.mod-11-4-closure .timebox-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.mod-11-4-closure .timebox-segment {
  flex: 1;
  padding: 0.75rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-4-closure .timebox-segment:nth-child(1) { background: #fef3c7; }
.mod-11-4-closure .timebox-segment:nth-child(2) { background: #fce7f3; }
.mod-11-4-closure .timebox-segment:nth-child(3) { background: #e0e7ff; }
.mod-11-4-closure .timebox-segment:nth-child(4) { background: #d1fae5; }
.mod-11-4-closure .timebox-segment:nth-child(5) { background: #f1f5f9; }

.mod-11-4-closure .timebox-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.mod-11-4-closure .timebox-minutes {
  font-size: 0.9rem;
  color: var(--sine-muted, #6b7280);
}

/* Worksheet Sections */
.mod-11-4-closure .worksheet-section {
  background: white;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mod-11-4-closure .worksheet-section h2 {
  font-size: 1.3rem;
  color: var(--sine-text, #1a1a2e);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f59e0b;
}

.mod-11-4-closure .section-intro {
  color: var(--sine-muted, #6b7280);
  margin-bottom: 1rem;
}

.mod-11-4-closure .regel-hint {
  background: #fef3c7;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Ankommen */
.mod-11-4-closure .ankommen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mod-11-4-closure .ankommen-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-4-closure .ankommen-field.full-width {
  grid-column: 1 / -1;
}

.mod-11-4-closure .ankommen-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
}

.mod-11-4-closure .ankommen-field input[type="range"] {
  width: 100%;
}

.mod-11-4-closure .ankommen-field input[type="text"],
.mod-11-4-closure .ankommen-field textarea {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

.mod-11-4-closure .sine-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f59e0b;
  text-align: center;
}

/* Wuerdigung */
.mod-11-4-closure .wuerdigung-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mod-11-4-closure .wuerdigung-card {
  background: var(--sine-light, #f8fafc);
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
}

.mod-11-4-closure .wuerdigung-card.optional {
  border-style: dashed;
}

.mod-11-4-closure .wuerdigung-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border-bottom: 1px solid var(--sine-border, #e2e8f0);
}

.mod-11-4-closure .wuerdigung-icon {
  font-size: 1.5rem;
}

.mod-11-4-closure .wuerdigung-header h3 {
  margin: 0;
  flex: 1;
  font-size: 1rem;
}

.mod-11-4-closure .toggle-optional {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.mod-11-4-closure .wuerdigung-grid {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mod-11-4-closure .wuerdigung-grid.hidden {
  display: none;
}

.mod-11-4-closure .wuerdigung-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-4-closure .wuerdigung-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
}

.mod-11-4-closure .wuerdigung-field textarea {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Beispiele */
.mod-11-4-closure .beispiele-section h4 {
  margin: 0 0 0.75rem 0;
}

.mod-11-4-closure .beispiele-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mod-11-4-closure .beispiel-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.mod-11-4-closure .beispiel-number {
  width: 28px;
  height: 28px;
  background: #f59e0b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mod-11-4-closure .beispiel-item textarea {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Szenen */
.mod-11-4-closure .szenen-container h3 {
  margin: 0 0 1rem 0;
}

.mod-11-4-closure .szenen-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mod-11-4-closure .szene-card {
  background: var(--sine-light, #f8fafc);
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
}

.mod-11-4-closure .szene-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border-bottom: 1px solid var(--sine-border, #e2e8f0);
}

.mod-11-4-closure .szene-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.mod-11-4-closure .szene-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
}

.mod-11-4-closure .szene-title:focus {
  border-color: var(--sine-border, #e2e8f0);
  background: white;
}

.mod-11-4-closure .szene-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mod-11-4-closure .szene-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-4-closure .szene-field.full-width {
  grid-column: 1 / -1;
}

.mod-11-4-closure .szene-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
}

.mod-11-4-closure .szene-field input,
.mod-11-4-closure .szene-field textarea {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

.mod-11-4-closure .delta-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-11-4-closure .delta-input input {
  width: 60px;
  text-align: center;
}

/* Zahlen */
.mod-11-4-closure .zahlen-container h3 {
  margin: 0 0 1rem 0;
}

.mod-11-4-closure .zahlen-table {
  width: 100%;
  border-collapse: collapse;
}

.mod-11-4-closure .zahlen-table th,
.mod-11-4-closure .zahlen-table td {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  text-align: left;
}

.mod-11-4-closure .zahlen-table th {
  background: var(--sine-light, #f1f5f9);
  font-weight: 600;
  font-size: 0.85rem;
}

.mod-11-4-closure .zahlen-table input {
  width: 100%;
  padding: 0.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.85rem;
  background: transparent;
}

.mod-11-4-closure .zahlen-table input:focus {
  border-color: var(--sine-border, #e2e8f0);
  background: white;
}

/* Ritual Cards */
.mod-11-4-closure .ritual-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mod-11-4-closure .ritual-card {
  cursor: pointer;
}

.mod-11-4-closure .ritual-card input {
  display: none;
}

.mod-11-4-closure .ritual-content {
  background: var(--sine-light, #f8fafc);
  border: 2px solid var(--sine-border, #e2e8f0);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  height: 100%;
}

.mod-11-4-closure .ritual-card input:checked + .ritual-content {
  border-color: #f59e0b;
  background: #fffbeb;
}

.mod-11-4-closure .ritual-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.mod-11-4-closure .ritual-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.mod-11-4-closure .ritual-content p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sine-muted, #6b7280);
}

/* Ritual Details */
.mod-11-4-closure .ritual-detail {
  display: none;
  padding: 1rem;
  background: var(--sine-light, #f8fafc);
  border-radius: 8px;
}

.mod-11-4-closure .ritual-detail.active {
  display: block;
}

.mod-11-4-closure .ritual-321-grid,
.mod-11-4-closure .ritual-token-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mod-11-4-closure .ritual-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-4-closure .ritual-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
}

.mod-11-4-closure .ritual-field input,
.mod-11-4-closure .ritual-field textarea {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

.mod-11-4-closure .tuer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mod-11-4-closure .tuer-column {
  background: white;
  border-radius: 8px;
  padding: 1rem;
}

.mod-11-4-closure .tuer-column h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
}

.mod-11-4-closure .tuer-column.stop { border-top: 3px solid #ef4444; }
.mod-11-4-closure .tuer-column.sustain { border-top: 3px solid #22c55e; }
.mod-11-4-closure .tuer-column.park { border-top: 3px solid #3b82f6; }

.mod-11-4-closure .tuer-column textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

.mod-11-4-closure .ritual-hint {
  color: var(--sine-muted, #6b7280);
  font-style: italic;
}

/* Notiz */
.mod-11-4-closure .notiz-container {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
}

.mod-11-4-closure .notiz-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #fcd34d;
}

.mod-11-4-closure .notiz-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.mod-11-4-closure .notiz-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.mod-11-4-closure .notiz-field input,
.mod-11-4-closure .notiz-field textarea {
  padding: 0.5rem;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
}

.mod-11-4-closure .zeitraum-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-11-4-closure .word-count {
  font-size: 0.75rem;
  color: var(--sine-muted, #6b7280);
  text-align: right;
}

.mod-11-4-closure .notiz-signoff {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #fcd34d;
}

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

.mod-11-4-closure .signoff-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.mod-11-4-closure .signoff-field input {
  padding: 0.5rem;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  background: white;
}

/* Offboarding */
.mod-11-4-closure .offboarding-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mod-11-4-closure .offboarding-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--sine-light, #f8fafc);
  border-radius: 8px;
}

.mod-11-4-closure .offboarding-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
}

.mod-11-4-closure .offboard-check {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
}

.mod-11-4-closure .offboard-notiz {
  width: 200px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 4px;
  font-size: 0.85rem;
}

.mod-11-4-closure .closure-score {
  background: white;
  border: 2px solid var(--sine-border, #e2e8f0);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.mod-11-4-closure .closure-score h4 {
  margin: 0 0 0.75rem 0;
}

.mod-11-4-closure .score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.mod-11-4-closure .score-value {
  font-size: 3rem;
  font-weight: 700;
  color: #22c55e;
}

.mod-11-4-closure .score-value.warning { color: #f59e0b; }
.mod-11-4-closure .score-value.danger { color: #ef4444; }

.mod-11-4-closure .score-label {
  font-size: 1rem;
  color: var(--sine-muted, #6b7280);
}

.mod-11-4-closure .score-hint {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: var(--sine-muted, #6b7280);
}

/* Ethik */
.mod-11-4-closure .ethik-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #22c55e;
}

.mod-11-4-closure .ethik-section h2 {
  border-bottom-color: #22c55e;
}

.mod-11-4-closure .ethik-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mod-11-4-closure .ethik-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.mod-11-4-closure .ethik-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.mod-11-4-closure .ethik-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.mod-11-4-closure .ethik-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sine-muted, #6b7280);
}

/* Mess-Table */
.mod-11-4-closure .mess-table {
  width: 100%;
  border-collapse: collapse;
}

.mod-11-4-closure .mess-table th,
.mod-11-4-closure .mess-table td {
  padding: 0.75rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  text-align: left;
}

.mod-11-4-closure .mess-table th {
  background: var(--sine-light, #f1f5f9);
  font-weight: 600;
}

.mod-11-4-closure .mess-table input {
  width: 80px;
  padding: 0.35rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 4px;
  font-size: 0.9rem;
}

/* DoD */
.mod-11-4-closure .dod-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mod-11-4-closure .dod-section h2 {
  margin: 0 0 1rem 0;
  color: #92400e;
  border-bottom: none;
}

.mod-11-4-closure .dod-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mod-11-4-closure .dod-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.mod-11-4-closure .dod-check {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

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

.mod-11-4-closure .dod-progress-bar {
  flex: 1;
  height: 12px;
  background: #fef3c7;
  border-radius: 6px;
  overflow: hidden;
}

.mod-11-4-closure .dod-progress-fill {
  height: 100%;
  background: #f59e0b;
  width: 0;
  transition: width 0.3s ease;
}

.mod-11-4-closure #dodProgressText {
  font-weight: 600;
  color: #92400e;
  white-space: nowrap;
}

/* Bubble Breaker */
.mod-11-4-closure .bubble-breaker-box {
  background: #e0f2fe;
  border: 2px dashed #0ea5e9;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mod-11-4-closure .bubble-breaker-box h3 {
  margin: 0 0 0.75rem 0;
  color: #0369a1;
}

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

.mod-11-4-closure .bubble-breaker-box li {
  margin-bottom: 0.35rem;
}

.mod-11-4-closure .bubble-kriterium {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #7dd3fc;
  font-size: 0.9rem;
}

/* Final Message */
.mod-11-4-closure .final-message {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #e0e7ff 100%);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.mod-11-4-closure .confetti-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.mod-11-4-closure .final-message h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  color: var(--sine-text, #1a1a2e);
}

.mod-11-4-closure .final-message p {
  margin: 0;
  color: var(--sine-muted, #6b7280);
}

/* Buttons */
.mod-11-4-closure .btn-add {
  background: white;
  color: #f59e0b;
  border: 1px dashed #f59e0b;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.mod-11-4-closure .btn-add:hover {
  background: #fffbeb;
}

.mod-11-4-closure .module-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mod-11-4-closure .btn-primary {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.mod-11-4-closure .btn-primary:hover {
  background: #d97706;
}

.mod-11-4-closure .btn-secondary {
  background: white;
  color: var(--sine-text, #1a1a2e);
  border: 1px solid var(--sine-border, #e2e8f0);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mod-11-4-closure .btn-secondary:hover {
  background: var(--sine-light, #f1f5f9);
  border-color: #f59e0b;
}

/* Responsive */
@media (max-width: 1024px) {
  .mod-11-4-closure .ritual-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .mod-11-4-closure .tuer-grid,
  .mod-11-4-closure .ethik-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mod-11-4-closure {
    padding: 1rem;
  }

  .mod-11-4-closure .ankommen-grid,
  .mod-11-4-closure .szene-grid,
  .mod-11-4-closure .notiz-header,
  .mod-11-4-closure .notiz-signoff {
    grid-template-columns: 1fr;
  }

  .mod-11-4-closure .ritual-cards {
    grid-template-columns: 1fr;
  }

  .mod-11-4-closure .offboarding-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .mod-11-4-closure .offboard-notiz {
    width: 100%;
  }
}

/* Print */
@media print {
  .mod-11-4-closure .module-actions,
  .mod-11-4-closure .btn-add {
    display: none;
  }

  .mod-11-4-closure .worksheet-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .mod-11-4-closure .notiz-container {
    border: 2px solid #000;
  }
}
