/* SINE Modul 11.2 – 90-Tage-Plan */

.mod-11-2-90day {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

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

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

/* Info Box */
.mod-11-2-90day .info-box {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-left: 4px solid var(--sine-primary, #3b82f6);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.mod-11-2-90day .info-box h3 {
  margin: 0 0 1rem 0;
  color: var(--sine-primary, #3b82f6);
}

.mod-11-2-90day .info-box ul {
  margin: 0;
  padding-left: 1.5rem;
}

.mod-11-2-90day .info-box li {
  margin-bottom: 0.5rem;
}

.mod-11-2-90day .time-estimate {
  margin-top: 1rem;
  font-style: italic;
  color: var(--sine-muted, #6b7280);
}

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

.mod-11-2-90day .timebox-segment {
  flex: 1;
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: var(--sine-light, #f1f5f9);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.mod-11-2-90day .timebox-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

/* Worksheet Sections */
.mod-11-2-90day .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-2-90day .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 var(--sine-primary, #3b82f6);
}

.mod-11-2-90day .section-intro {
  color: var(--sine-muted, #6b7280);
  margin-bottom: 1.5rem;
}

/* Commitment Card */
.mod-11-2-90day .commitment-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
}

.mod-11-2-90day .commitment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mod-11-2-90day .commitment-icon {
  font-size: 2rem;
}

.mod-11-2-90day .commitment-header h3 {
  margin: 0;
  color: #b45309;
}

.mod-11-2-90day .commitment-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mod-11-2-90day .commitment-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-2-90day .commitment-field.full-width {
  grid-column: 1 / -1;
}

.mod-11-2-90day .commitment-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.mod-11-2-90day .commitment-field input,
.mod-11-2-90day .commitment-field textarea {
  padding: 0.5rem;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
}

.mod-11-2-90day .commitment-signature {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #fbbf24;
}

.mod-11-2-90day .signature-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-2-90day .signature-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.mod-11-2-90day .signature-field input {
  padding: 0.5rem;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  background: white;
}

/* Theta Goals */
.mod-11-2-90day .theta-goals-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mod-11-2-90day .theta-goal-card {
  background: var(--sine-light, #f8fafc);
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 10px;
  padding: 1.25rem;
}

.mod-11-2-90day .theta-goal-card[data-goal="1"] {
  border-left: 4px solid #3b82f6;
}

.mod-11-2-90day .theta-goal-card[data-goal="2"] {
  border-left: 4px solid #8b5cf6;
}

.mod-11-2-90day .theta-goal-card[data-goal="3"] {
  border-left: 4px solid #ec4899;
}

.mod-11-2-90day .theta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mod-11-2-90day .theta-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sine-primary, #3b82f6);
  min-width: 2.5rem;
}

.mod-11-2-90day .theta-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
}

.mod-11-2-90day .theta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mod-11-2-90day .theta-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-2-90day .theta-field.full-width {
  grid-column: 1 / -1;
}

.mod-11-2-90day .theta-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
}

.mod-11-2-90day .theta-field input,
.mod-11-2-90day .theta-field select,
.mod-11-2-90day .theta-field textarea {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

.mod-11-2-90day .sine-guard-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mod-11-2-90day .sine-guard-input input {
  width: 70px;
}

.mod-11-2-90day .sine-guard-input select {
  flex: 1;
  min-width: 100px;
}

/* Board */
.mod-11-2-90day .board-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mod-11-2-90day .board-info {
  font-size: 0.9rem;
  color: var(--sine-muted, #6b7280);
}

.mod-11-2-90day .board-container {
  overflow-x: auto;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 8px;
}

.mod-11-2-90day .board-header {
  display: flex;
  background: var(--sine-light, #f1f5f9);
  border-bottom: 2px solid var(--sine-border, #e2e8f0);
  position: sticky;
  top: 0;
}

.mod-11-2-90day .goal-col {
  width: 150px;
  min-width: 150px;
  padding: 0.75rem;
  font-weight: 600;
  border-right: 1px solid var(--sine-border, #e2e8f0);
}

.mod-11-2-90day .board-weeks {
  display: flex;
  flex: 1;
}

.mod-11-2-90day .week-col {
  min-width: 80px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  border-right: 1px solid var(--sine-border, #e2e8f0);
}

.mod-11-2-90day .week-col:last-child {
  border-right: none;
}

.mod-11-2-90day .week-number {
  font-weight: 600;
}

.mod-11-2-90day .week-dates {
  color: var(--sine-muted, #6b7280);
  font-size: 0.7rem;
}

.mod-11-2-90day .board-body {
  display: flex;
  flex-direction: column;
}

.mod-11-2-90day .board-row {
  display: flex;
  border-bottom: 1px solid var(--sine-border, #e2e8f0);
}

.mod-11-2-90day .board-row:last-child {
  border-bottom: none;
}

.mod-11-2-90day .board-row .goal-col {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  background: var(--sine-light, #f8fafc);
}

.mod-11-2-90day .board-cells {
  display: flex;
  flex: 1;
}

.mod-11-2-90day .board-cell {
  min-width: 80px;
  padding: 0.5rem;
  border-right: 1px solid var(--sine-border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-11-2-90day .board-cell:last-child {
  border-right: none;
}

.mod-11-2-90day .board-cell select {
  width: 100%;
  padding: 0.25rem;
  font-size: 0.75rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.mod-11-2-90day .board-cell select:hover {
  border-color: var(--sine-border, #e2e8f0);
  background: white;
}

.mod-11-2-90day .board-cell[data-status="green"] {
  background: #dcfce7;
}

.mod-11-2-90day .board-cell[data-status="amber"] {
  background: #fef3c7;
}

.mod-11-2-90day .board-cell[data-status="red"] {
  background: #fee2e2;
}

/* Milestones */
.mod-11-2-90day .milestones-section {
  margin-top: 2rem;
}

.mod-11-2-90day .milestones-section h3 {
  margin: 0 0 1rem 0;
  color: var(--sine-text, #1a1a2e);
}

.mod-11-2-90day .milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mod-11-2-90day .milestone-card {
  background: white;
  border: 2px solid var(--sine-border, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
}

.mod-11-2-90day .milestone-card[data-milestone="30"] {
  border-color: #86efac;
}

.mod-11-2-90day .milestone-card[data-milestone="60"] {
  border-color: #fbbf24;
}

.mod-11-2-90day .milestone-card[data-milestone="90"] {
  border-color: #3b82f6;
}

.mod-11-2-90day .milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mod-11-2-90day .milestone-day {
  font-weight: 700;
  font-size: 1.1rem;
}

.mod-11-2-90day .milestone-date {
  font-size: 0.85rem;
  color: var(--sine-muted, #6b7280);
}

.mod-11-2-90day .milestone-card textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  resize: vertical;
  font-size: 0.9rem;
}

/* Puls Cards */
.mod-11-2-90day .puls-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mod-11-2-90day .puls-card {
  background: white;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
}

.mod-11-2-90day .puls-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.mod-11-2-90day .puls-icon {
  font-size: 1.5rem;
}

.mod-11-2-90day .puls-header h3 {
  margin: 0;
  flex: 1;
  font-size: 1rem;
}

.mod-11-2-90day .puls-frequency {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.mod-11-2-90day .puls-content {
  padding: 1rem;
}

.mod-11-2-90day .puls-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mod-11-2-90day .puls-field label {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 70px;
}

.mod-11-2-90day .puls-field select,
.mod-11-2-90day .puls-field input {
  flex: 1;
  padding: 0.35rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 4px;
  font-size: 0.85rem;
}

.mod-11-2-90day .puls-duration {
  font-weight: 600;
  color: var(--sine-primary, #3b82f6);
}

.mod-11-2-90day .puls-checklist {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sine-border, #e2e8f0);
}

.mod-11-2-90day .puls-checklist p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
}

.mod-11-2-90day .puls-checklist ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: var(--sine-muted, #6b7280);
}

.mod-11-2-90day .puls-checklist li {
  margin-bottom: 0.25rem;
}

/* Eskalation */
.mod-11-2-90day .eskalation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mod-11-2-90day .eskalation-card {
  border-radius: 10px;
  overflow: hidden;
}

.mod-11-2-90day .eskalation-card.green {
  border: 2px solid #22c55e;
}

.mod-11-2-90day .eskalation-card.amber {
  border: 2px solid #f59e0b;
}

.mod-11-2-90day .eskalation-card.red {
  border: 2px solid #ef4444;
}

.mod-11-2-90day .eskalation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.mod-11-2-90day .eskalation-card.green .eskalation-header {
  background: #dcfce7;
}

.mod-11-2-90day .eskalation-card.amber .eskalation-header {
  background: #fef3c7;
}

.mod-11-2-90day .eskalation-card.red .eskalation-header {
  background: #fee2e2;
}

.mod-11-2-90day .eskalation-light {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.mod-11-2-90day .eskalation-light.green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.mod-11-2-90day .eskalation-light.amber {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.mod-11-2-90day .eskalation-light.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.mod-11-2-90day .eskalation-header h3 {
  margin: 0;
  font-size: 1rem;
}

.mod-11-2-90day .eskalation-content {
  padding: 1rem;
  background: white;
}

.mod-11-2-90day .eskalation-trigger,
.mod-11-2-90day .eskalation-action {
  margin-bottom: 1rem;
}

.mod-11-2-90day .eskalation-trigger:last-child,
.mod-11-2-90day .eskalation-action:last-child {
  margin-bottom: 0;
}

.mod-11-2-90day .eskalation-trigger label,
.mod-11-2-90day .eskalation-action label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
  margin-bottom: 0.5rem;
}

.mod-11-2-90day .eskalation-trigger ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

.mod-11-2-90day .eskalation-trigger textarea,
.mod-11-2-90day .eskalation-action textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.85rem;
  resize: vertical;
}

.mod-11-2-90day .eskalation-action p {
  margin: 0;
  font-size: 0.85rem;
}

/* Contacts */
.mod-11-2-90day .eskalation-contacts h3 {
  margin: 0 0 1rem 0;
}

.mod-11-2-90day .contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mod-11-2-90day .contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-2-90day .contact-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
}

.mod-11-2-90day .contact-field input {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
}

/* Log */
.mod-11-2-90day .log-controls {
  margin-bottom: 1rem;
}

.mod-11-2-90day .log-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mod-11-2-90day .log-entry {
  background: var(--sine-light, #f8fafc);
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
}

.mod-11-2-90day .log-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mod-11-2-90day .log-week {
  font-weight: 700;
  font-size: 1.1rem;
}

.mod-11-2-90day .log-date {
  font-size: 0.85rem;
  color: var(--sine-muted, #6b7280);
}

.mod-11-2-90day .log-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mod-11-2-90day .log-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mod-11-2-90day .log-field.full-width {
  grid-column: 1 / -1;
}

.mod-11-2-90day .log-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sine-muted, #6b7280);
}

.mod-11-2-90day .log-field input,
.mod-11-2-90day .log-field select,
.mod-11-2-90day .log-field textarea {
  padding: 0.5rem;
  border: 1px solid var(--sine-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.85rem;
}

.mod-11-2-90day .log-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-11-2-90day .log-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
}

.mod-11-2-90day .log-status-dot.green { background: #22c55e; }
.mod-11-2-90day .log-status-dot.amber { background: #f59e0b; }
.mod-11-2-90day .log-status-dot.red { background: #ef4444; }

.mod-11-2-90day .btn-remove-log {
  background: none;
  border: none;
  color: var(--sine-muted, #6b7280);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
}

.mod-11-2-90day .btn-remove-log:hover {
  color: #ef4444;
}

/* DoD */
.mod-11-2-90day .dod-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mod-11-2-90day .dod-section h2 {
  margin: 0 0 1rem 0;
  color: #166534;
}

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

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

.mod-11-2-90day .dod-check {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
}

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

.mod-11-2-90day .dod-progress-bar {
  flex: 1;
  height: 12px;
  background: #bbf7d0;
  border-radius: 6px;
  overflow: hidden;
}

.mod-11-2-90day .dod-progress-fill {
  height: 100%;
  background: #22c55e;
  width: 0;
  transition: width 0.3s ease;
}

#dodProgressText {
  font-weight: 600;
  color: #166534;
  white-space: nowrap;
}

/* Bubble Breaker */
.mod-11-2-90day .bubble-breaker-box {
  background: #fef3c7;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mod-11-2-90day .bubble-breaker-box h3 {
  margin: 0 0 1rem 0;
  color: #92400e;
}

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

.mod-11-2-90day .bubble-breaker-box li {
  margin-bottom: 0.5rem;
}

.mod-11-2-90day .bubble-kriterium {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #fcd34d;
  font-size: 0.9rem;
}

/* Action Buttons */
.mod-11-2-90day .module-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mod-11-2-90day .btn-primary {
  background: var(--sine-primary, #3b82f6);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.mod-11-2-90day .btn-primary:hover {
  background: #2563eb;
}

.mod-11-2-90day .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-2-90day .btn-secondary:hover {
  background: var(--sine-light, #f1f5f9);
  border-color: var(--sine-primary, #3b82f6);
}

/* Responsive */
@media (max-width: 1024px) {
  .mod-11-2-90day .milestones-grid,
  .mod-11-2-90day .puls-cards,
  .mod-11-2-90day .eskalation-grid,
  .mod-11-2-90day .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mod-11-2-90day {
    padding: 1rem;
  }

  .mod-11-2-90day .timebox-bar {
    flex-wrap: wrap;
  }

  .mod-11-2-90day .timebox-segment {
    min-width: calc(50% - 2px);
  }

  .mod-11-2-90day .commitment-fields,
  .mod-11-2-90day .theta-grid,
  .mod-11-2-90day .log-grid {
    grid-template-columns: 1fr;
  }

  .mod-11-2-90day .commitment-signature {
    grid-template-columns: 1fr;
  }
}

/* Print */
@media print {
  .mod-11-2-90day .module-actions,
  .mod-11-2-90day .board-controls,
  .mod-11-2-90day .log-controls,
  .mod-11-2-90day .btn-remove-log {
    display: none;
  }

  .mod-11-2-90day .worksheet-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
