"""Companion Dashboard - CSS Styles.""" def get_companion_css() -> str: """CSS für das Companion Dashboard.""" return """ /* Companion Dashboard Styles */ .companion-container { max-width: 900px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } /* Kontext-Info Zeile (minimalistisch) */ .context-info { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; margin-bottom: 16px; font-size: 13px; color: #6b7280; background: #f9fafb; border-radius: 8px; } .context-info span { display: flex; align-items: center; gap: 4px; } .context-info .material-icons { font-size: 14px; } .context-info .separator { color: #d1d5db; } /* Onboarding Modal */ .onboarding-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); display: none; align-items: center; justify-content: center; z-index: 3000; } .onboarding-modal-overlay.active { display: flex; } .onboarding-modal { background: white; border-radius: 16px; width: 90%; max-width: 420px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; } .onboarding-header { background: linear-gradient(135deg, #6C1B1B, #8B2525); color: white; padding: 24px; text-align: center; } .onboarding-header h2 { margin: 0 0 8px 0; font-size: 22px; } .onboarding-header p { margin: 0; opacity: 0.9; font-size: 14px; } .onboarding-body { padding: 24px; } .onboarding-step { display: none; } .onboarding-step.active { display: block; } .onboarding-label { font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 8px; } .onboarding-select { width: 100%; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 15px; background: white; margin-bottom: 16px; } .onboarding-select:focus { outline: none; border-color: #6C1B1B; } .onboarding-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; } .onboarding-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; } .onboarding-dot.active { background: #6C1B1B; } .onboarding-dot.done { background: #10b981; } .onboarding-buttons { display: flex; gap: 12px; margin-top: 16px; } .onboarding-btn { flex: 1; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 6px; } .onboarding-btn-secondary { background: #f3f4f6; color: #374151; } .onboarding-btn-primary { background: linear-gradient(135deg, #6C1B1B, #8B2525); color: white; } .onboarding-btn:hover { opacity: 0.9; } .companion-header { text-align: center; margin-bottom: 30px; } .companion-header h1 { font-size: 28px; color: inherit; margin-bottom: 8px; } .companion-header .phase-badge { display: inline-block; background: linear-gradient(135deg, #6C1B1B, #8B2525); color: white; padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; } /* Phase Indicator */ .phase-indicator { background: #f8f9fa; border-radius: 12px; padding: 20px; margin-bottom: 24px; } .phase-timeline { display: flex; justify-content: space-between; align-items: center; position: relative; padding: 0 10px; } .phase-timeline::before { content: ''; position: absolute; top: 15px; left: 30px; right: 30px; height: 3px; background: #e0e0e0; z-index: 0; } .phase-step { display: flex; flex-direction: column; align-items: center; z-index: 1; cursor: pointer; } .phase-dot { width: 30px; height: 30px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; transition: all 0.3s ease; } .phase-dot.completed { background: #22c55e; } .phase-dot.current { background: #6C1B1B; box-shadow: 0 0 0 4px rgba(108, 27, 27, 0.2); } .phase-dot .material-icons { font-size: 16px; color: white; } .phase-label { font-size: 11px; color: #666; text-align: center; max-width: 70px; } .phase-label.current { color: #6C1B1B; font-weight: 600; } /* Suggestions List */ .suggestions-section { margin-bottom: 24px; } .section-title { font-size: 18px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; } .suggestion-card { display: flex; align-items: center; background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 12px; transition: all 0.2s ease; cursor: pointer; } .suggestion-card:hover { border-color: #6C1B1B; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); } .priority-bar { width: 4px; height: 50px; border-radius: 2px; margin-right: 16px; flex-shrink: 0; } .priority-bar.urgent { background: #ef4444; } .priority-bar.high { background: #f97316; } .priority-bar.medium { background: #3b82f6; } .priority-bar.low { background: #9ca3af; } .suggestion-icon { width: 40px; height: 40px; border-radius: 10px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; margin-right: 16px; flex-shrink: 0; } .suggestion-icon .material-icons { color: #6C1B1B; } .suggestion-content { flex: 1; } .suggestion-title { font-weight: 600; color: #1a1a2e; margin-bottom: 4px; } .suggestion-description { font-size: 13px; color: #6b7280; } .suggestion-action { color: #6C1B1B; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; } .suggestion-time { font-size: 12px; color: #9ca3af; margin-top: 4px; } /* Empty State */ .empty-state { text-align: center; padding: 40px 20px; background: #f0fdf4; border-radius: 12px; } .empty-state .material-icons { font-size: 48px; color: #22c55e; margin-bottom: 12px; } .empty-state h3 { color: #166534; margin-bottom: 8px; } .empty-state p { color: #6b7280; } /* Stats Cards */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; } .stat-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; text-align: center; } .stat-value { font-size: 28px; font-weight: 700; color: #6C1B1B; } .stat-label { font-size: 12px; color: #6b7280; margin-top: 4px; } /* Progress Card */ .progress-card { background: #eff6ff; border-radius: 12px; padding: 20px; margin-bottom: 24px; } .progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .progress-title { font-weight: 600; color: #1e40af; } .progress-percentage { font-weight: 700; color: #1e40af; } .progress-bar-container { background: #dbeafe; border-radius: 10px; height: 10px; overflow: hidden; } .progress-bar-fill { background: linear-gradient(90deg, #3b82f6, #1d4ed8); height: 100%; border-radius: 10px; transition: width 0.5s ease; } .progress-milestones { margin-top: 12px; font-size: 13px; color: #4b5563; } /* Events Card */ .events-card { background: #fefce8; border-radius: 12px; padding: 20px; } .event-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #fef08a; } .event-item:last-child { border-bottom: none; } .event-icon { width: 36px; height: 36px; border-radius: 8px; background: white; display: flex; align-items: center; justify-content: center; margin-right: 12px; } .event-icon .material-icons { color: #ca8a04; font-size: 20px; } .event-info { flex: 1; } .event-title { font-weight: 500; color: #1a1a2e; } .event-date { font-size: 12px; color: #6b7280; } .event-badge { font-size: 12px; font-weight: 600; color: #ca8a04; background: white; padding: 4px 10px; border-radius: 12px; } /* Mode Toggle */ .mode-toggle { display: flex; background: #f3f4f6; border-radius: 8px; padding: 4px; margin-bottom: 20px; } .mode-btn { flex: 1; padding: 10px 16px; border: none; background: transparent; border-radius: 6px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .mode-btn.active { background: #6C1B1B; color: white; } .mode-btn:not(.active):hover { background: #e5e7eb; } /* Responsive */ @media (max-width: 600px) { .phase-timeline { overflow-x: auto; padding-bottom: 10px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .suggestion-card { flex-wrap: wrap; } } /* ============================================ */ /* LESSON MODE - Unterrichtsstunden-Steuerung */ /* ============================================ */ .lesson-container { display: none; } .lesson-container.active { display: block; } /* ==================== VISUAL PIE TIMER (Feature f21) ==================== */ .visual-timer-container { display: flex; flex-direction: column; align-items: center; margin: 10px 0; } .visual-timer-svg { width: 140px; height: 140px; transform: rotate(-90deg); } .visual-timer-bg { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 10; } .visual-timer-progress { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.5s ease, stroke 0.5s ease; } /* Timer Farben basierend auf verbleibender Zeit */ .visual-timer-progress.time-plenty { stroke: #22c55e; /* Gruen - viel Zeit */ } .visual-timer-progress.time-warning { stroke: #f59e0b; /* Gelb/Orange - 5 Min oder weniger */ } .visual-timer-progress.time-critical { stroke: #ef4444; /* Rot - 2 Min oder weniger */ } .visual-timer-progress.time-overtime { stroke: #dc2626; animation: pulse-overtime 1s infinite; } @keyframes pulse-overtime { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.5; } } .visual-timer-center { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; } .visual-timer-time { font-size: 28px; font-weight: 700; font-family: 'Courier New', monospace; color: white; } .visual-timer-phase { font-size: 12px; opacity: 0.9; margin-top: 2px; } .visual-timer-wrapper { position: relative; display: flex; align-items: center; justify-content: center; width: 140px; height: 140px; } /* ==================== PHASEN-FARBSCHEMA (Feature f25) ==================== */ /* Forschungsbasierte Farben fuer jede Unterrichtsphase */ /* Einstieg: Warmes Blau - ruhig, einladend */ .lesson-header.phase-einstieg { background: linear-gradient(135deg, #4A90E2, #5BA3F5); } .lesson-phase-dot.phase-einstieg { background: #4A90E2; } .lesson-timeline-connector.phase-einstieg { background: #4A90E2; } /* Erarbeitung: Orange - energetisch, aktiv */ .lesson-header.phase-erarbeitung { background: linear-gradient(135deg, #F5A623, #F7B84C); } .lesson-phase-dot.phase-erarbeitung { background: #F5A623; } .lesson-timeline-connector.phase-erarbeitung { background: #F5A623; } /* Sicherung: Gruen - stabil, bestaetigt */ .lesson-header.phase-sicherung { background: linear-gradient(135deg, #7ED321, #8FE040); } .lesson-phase-dot.phase-sicherung { background: #7ED321; } .lesson-timeline-connector.phase-sicherung { background: #7ED321; } /* Transfer: Lila - kreativ, neue Kontexte */ .lesson-header.phase-transfer { background: linear-gradient(135deg, #9013FE, #A33FFF); } .lesson-phase-dot.phase-transfer { background: #9013FE; } .lesson-timeline-connector.phase-transfer { background: #9013FE; } /* Reflexion: Sanftes Grau - ruhig, introspektiv */ .lesson-header.phase-reflexion { background: linear-gradient(135deg, #6B7280, #8B949E); } .lesson-phase-dot.phase-reflexion { background: #6B7280; } .lesson-timeline-connector.phase-reflexion { background: #6B7280; } /* Fallback/Default */ .lesson-header.phase-not_started, .lesson-header.phase-ended { background: linear-gradient(135deg, #6C1B1B, #8B2525); } /* Lesson Header mit Timer */ .lesson-header { background: linear-gradient(135deg, #6C1B1B, #8B2525); color: white; border-radius: 16px; padding: 24px; margin-bottom: 20px; text-align: center; transition: background 0.5s ease; } .lesson-header h2 { margin: 0 0 8px 0; font-size: 20px; opacity: 0.9; } .lesson-timer-display { font-size: 64px; font-weight: 700; font-family: 'Courier New', monospace; letter-spacing: 4px; } .lesson-timer-display.warning { animation: pulse-warning 1s infinite; } .lesson-timer-display.overtime { color: #fca5a5; } @keyframes pulse-warning { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } .lesson-phase-label { font-size: 18px; margin-top: 12px; font-weight: 600; } .lesson-overtime-badge { display: inline-block; background: #fca5a5; color: #7f1d1d; padding: 4px 12px; border-radius: 12px; font-size: 12px; margin-top: 8px; } /* ==================== WebSocket Connection Status (Phase 6) ==================== */ .ws-connection-status { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; background: rgba(255, 255, 255, 0.9); padding: 4px 8px; border-radius: 12px; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .ws-connection-status .material-icons { font-size: 14px; margin-right: 4px; } .ws-connection-status.connected { color: #22c55e; } .ws-connection-status.reconnecting { color: #f59e0b; } .ws-connection-status.polling { color: #6b7280; } .ws-connection-status.error { color: #ef4444; } /* ==================== Teacher Feedback (Phase 7) ==================== */ .feedback-fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 28px; background: linear-gradient(135deg, #6C1B1B, #8B2525); color: white; border: none; box-shadow: 0 4px 12px rgba(108, 27, 27, 0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1000; transition: transform 0.2s, box-shadow 0.2s; } .feedback-fab:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(108, 27, 27, 0.5); } .feedback-fab .material-icons { font-size: 24px; } .feedback-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 2000; } .feedback-modal-overlay.active { display: flex; } .feedback-modal { background: white; border-radius: 16px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); } .feedback-modal-header { padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; } .feedback-modal-header h3 { margin: 0; font-size: 18px; color: #1f2937; } .feedback-modal-close { background: none; border: none; cursor: pointer; color: #6b7280; padding: 4px; } .feedback-modal-close:hover { color: #1f2937; } .feedback-modal-body { padding: 24px; } .feedback-form-group { margin-bottom: 16px; } .feedback-form-group label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 6px; } .feedback-form-group input, .feedback-form-group textarea, .feedback-form-group select { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; } .feedback-form-group input:focus, .feedback-form-group textarea:focus, .feedback-form-group select:focus { outline: none; border-color: #6C1B1B; box-shadow: 0 0 0 3px rgba(108, 27, 27, 0.1); } .feedback-form-group textarea { resize: vertical; min-height: 100px; } .feedback-type-selector { display: flex; gap: 8px; flex-wrap: wrap; } .feedback-type-btn { padding: 8px 16px; border: 1px solid #d1d5db; border-radius: 20px; background: white; font-size: 13px; cursor: pointer; transition: all 0.2s; } .feedback-type-btn:hover { border-color: #6C1B1B; } .feedback-type-btn.active { background: #6C1B1B; color: white; border-color: #6C1B1B; } .feedback-submit-btn { width: 100%; padding: 14px 24px; background: linear-gradient(135deg, #6C1B1B, #8B2525); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 8px; transition: opacity 0.2s; } .feedback-submit-btn:hover { opacity: 0.9; } .feedback-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; } .feedback-success { text-align: center; padding: 40px 24px; } .feedback-success .material-icons { font-size: 64px; color: #22c55e; margin-bottom: 16px; } .feedback-success h3 { margin: 0 0 8px 0; color: #1f2937; } .feedback-success p { color: #6b7280; margin: 0; } /* ==================== Settings Button & Modal (Feature f16) ==================== */ .settings-fab { position: fixed; bottom: 90px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #4b5563, #374151); color: white; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; z-index: 1000; transition: transform 0.2s, box-shadow 0.2s; } .settings-fab:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); } .settings-fab .material-icons { font-size: 22px; } .settings-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 2000; } .settings-modal-overlay.active { display: flex; } .settings-modal { background: white; border-radius: 16px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); } .settings-modal-header { padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; } .settings-modal-header h3 { margin: 0; font-size: 18px; color: #1f2937; } .settings-modal-close { background: none; border: none; cursor: pointer; color: #6b7280; padding: 4px; } .settings-modal-close:hover { color: #1f2937; } .settings-modal-body { padding: 24px; } .settings-section { margin-bottom: 24px; } .settings-section:last-child { margin-bottom: 0; } .settings-section h4 { margin: 0 0 16px 0; font-size: 15px; color: #374151; display: flex; align-items: center; gap: 8px; } .settings-section h4 .material-icons { font-size: 20px; color: #6C1B1B; } .phase-duration-grid { display: grid; gap: 12px; } .phase-duration-row { display: flex; align-items: center; gap: 12px; } .phase-duration-row label { flex: 1; font-size: 14px; color: #4b5563; } .phase-duration-row input[type="number"] { width: 70px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; text-align: center; } .phase-duration-row input[type="number"]:focus { outline: none; border-color: #6C1B1B; box-shadow: 0 0 0 3px rgba(108, 27, 27, 0.1); } .phase-duration-row span { font-size: 13px; color: #9ca3af; } .settings-save-btn { width: 100%; padding: 14px 24px; background: linear-gradient(135deg, #6C1B1B, #8B2525); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 16px; transition: opacity 0.2s; } .settings-save-btn:hover { opacity: 0.9; } .settings-save-btn:disabled { opacity: 0.5; cursor: not-allowed; } .settings-reset-btn { width: 100%; padding: 10px 20px; background: transparent; color: #6b7280; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; cursor: pointer; margin-top: 8px; transition: background 0.2s; } .settings-reset-btn:hover { background: #f3f4f6; } .settings-saved-toast { position: fixed; bottom: 150px; left: 50%; transform: translateX(-50%); background: #22c55e; color: white; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); display: none; z-index: 3000; } .settings-saved-toast.show { display: block; animation: toastFadeInOut 2s ease; } @keyframes toastFadeInOut { 0% { opacity: 0; transform: translateX(-50%) translateY(20px); } 15% { opacity: 1; transform: translateX(-50%) translateY(0); } 85% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px); } } /* ==================== Quick Actions Bar (Feature f26) ==================== */ .quick-actions-bar { display: flex; justify-content: center; gap: 12px; margin: 16px 0 20px 0; padding: 0 12px; } .quick-action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 80px; min-height: 56px; padding: 8px 16px; border: none; border-radius: 12px; background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; } .quick-action-btn:hover { background: #e5e7eb; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .quick-action-btn:active { transform: translateY(0); box-shadow: none; } .quick-action-btn .material-icons { font-size: 24px; margin-bottom: 2px; } /* +5 Min Button - Blau */ .quick-action-btn.extend-btn { background: #dbeafe; color: #1d4ed8; } .quick-action-btn.extend-btn:hover { background: #bfdbfe; } /* Pause Button - Orange */ .quick-action-btn.pause-btn { background: #fef3c7; color: #d97706; } .quick-action-btn.pause-btn:hover { background: #fde68a; } .quick-action-btn.pause-btn.paused { background: #d97706; color: white; } .quick-action-btn.pause-btn.paused:hover { background: #b45309; } /* Skip Button - Grau */ .quick-action-btn.skip-btn { background: #f3f4f6; color: #6b7280; } .quick-action-btn.skip-btn:hover { background: #e5e7eb; } /* Responsive: Tablet-First */ @media (max-width: 600px) { .quick-actions-bar { flex-wrap: wrap; } .quick-action-btn { flex: 1; min-width: 70px; } } /* Lesson Timeline (horizontal) */ .lesson-timeline { display: flex; justify-content: space-between; align-items: flex-start; background: #f8f9fa; border-radius: 12px; padding: 20px; margin-bottom: 20px; position: relative; } .lesson-timeline::before { content: ''; position: absolute; top: 35px; left: 50px; right: 50px; height: 4px; background: #e5e7eb; z-index: 0; } .lesson-phase-step { display: flex; flex-direction: column; align-items: center; z-index: 1; flex: 1; cursor: default; } .lesson-phase-dot { width: 36px; height: 36px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; transition: all 0.3s ease; } .lesson-phase-dot .material-icons { font-size: 18px; color: #9ca3af; } .lesson-phase-dot.completed { background: #22c55e; } .lesson-phase-dot.completed .material-icons { color: white; } .lesson-phase-dot.current { background: #6C1B1B; box-shadow: 0 0 0 6px rgba(108, 27, 27, 0.2); transform: scale(1.1); } .lesson-phase-dot.current .material-icons { color: white; } .lesson-phase-name { font-size: 12px; font-weight: 600; color: #6b7280; text-align: center; } .lesson-phase-name.current { color: #6C1B1B; } .lesson-phase-duration { font-size: 11px; color: #9ca3af; margin-top: 2px; } /* Lesson Progress Bar */ .lesson-progress-container { background: #f3f4f6; border-radius: 8px; height: 8px; margin-bottom: 20px; overflow: hidden; } .lesson-progress-bar { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width 0.5s ease; } .lesson-progress-bar.warning { background: linear-gradient(90deg, #f59e0b, #d97706); } .lesson-progress-bar.overtime { background: linear-gradient(90deg, #ef4444, #dc2626); } /* Lesson Control Buttons */ .lesson-controls { display: flex; gap: 12px; margin-bottom: 20px; } .lesson-btn { flex: 1; padding: 14px 20px; border: none; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease; min-height: 48px; /* Feature f32: Large Touch Targets */ touch-action: manipulation; -webkit-tap-highlight-color: transparent; } .lesson-btn-primary { background: #6C1B1B; color: white; } .lesson-btn-primary:hover { background: #8B2525; transform: translateY(-1px); } .lesson-btn-secondary { background: #f3f4f6; color: #374151; } .lesson-btn-secondary:hover { background: #e5e7eb; } .lesson-btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; } .lesson-btn-danger:hover { background: #fee2e2; } .lesson-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* Lesson Suggestions */ .lesson-suggestions { background: #fffbeb; border-radius: 12px; padding: 20px; margin-bottom: 20px; } .lesson-suggestions-title { font-weight: 600; color: #92400e; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; } .lesson-suggestion-item { background: white; border: 1px solid #fde68a; border-radius: 10px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s ease; } .lesson-suggestion-item:hover { border-color: #f59e0b; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } .lesson-suggestion-item:last-child { margin-bottom: 0; } .lesson-suggestion-icon { width: 40px; height: 40px; border-radius: 10px; background: #fef3c7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .lesson-suggestion-icon .material-icons { color: #d97706; } .lesson-suggestion-content { flex: 1; } .lesson-suggestion-title { font-weight: 600; color: #1a1a2e; font-size: 14px; } .lesson-suggestion-desc { font-size: 12px; color: #6b7280; margin-top: 2px; } .lesson-suggestion-time { font-size: 11px; color: #9ca3af; background: #f3f4f6; padding: 4px 8px; border-radius: 4px; } /* Subject Badge (Feature f18) */ .subject-badge { font-size: 10px; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); color: white; padding: 2px 6px; border-radius: 10px; margin-left: 6px; font-weight: 500; vertical-align: middle; } .lesson-suggestion-item.subject-specific { border-left: 3px solid #3b82f6; background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%); } /* Lesson Start Form */ .lesson-start-form { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; } .lesson-form-title { font-size: 18px; font-weight: 600; color: #1a1a2e; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; } .lesson-form-group { margin-bottom: 16px; } .lesson-form-label { display: block; font-weight: 500; color: #374151; margin-bottom: 6px; font-size: 14px; } .lesson-form-input, .lesson-form-select { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; transition: border-color 0.2s ease; } .lesson-form-input:focus, .lesson-form-select:focus { outline: none; border-color: #6C1B1B; box-shadow: 0 0 0 3px rgba(108, 27, 27, 0.1); } /* Template-Auswahl Styling (Feature f37) */ .template-info { margin-top: 6px; padding: 8px 12px; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-radius: 6px; font-size: 13px; color: #0369a1; display: flex; align-items: center; gap: 8px; } .template-duration { font-weight: 600; } /* Phasendauern-Preview (Feature f37) */ .phase-durations-preview { margin-top: 12px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; } .preview-title { font-size: 12px; color: #64748b; margin-bottom: 8px; font-weight: 500; } .preview-phases { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .preview-phase { padding: 4px 8px; background: white; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 12px; font-weight: 500; color: #475569; } .preview-phase[data-phase="einstieg"] { border-left: 3px solid #4A90E2; } .preview-phase[data-phase="erarbeitung"] { border-left: 3px solid #F5A623; } .preview-phase[data-phase="sicherung"] { border-left: 3px solid #7ED321; } .preview-phase[data-phase="transfer"] { border-left: 3px solid #9013FE; } .preview-phase[data-phase="reflexion"] { border-left: 3px solid #9B9B9B; } .preview-total { font-size: 13px; font-weight: 600; color: #334155; } /* Template optgroup styling */ #lessonTemplate optgroup { font-weight: 600; font-style: normal; } #lessonTemplate option { font-weight: normal; padding: 8px; } /* Lesson Ended State */ .lesson-ended { text-align: center; padding: 40px 20px; background: #f0fdf4; border-radius: 12px; margin-bottom: 20px; } .lesson-ended .material-icons { font-size: 64px; color: #22c55e; margin-bottom: 16px; } .lesson-ended h3 { color: #166534; margin-bottom: 8px; font-size: 20px; } .lesson-ended p { color: #6b7280; margin-bottom: 20px; } .lesson-summary { background: white; border-radius: 10px; padding: 16px; text-align: left; display: inline-block; min-width: 200px; } .lesson-summary-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e7eb; } .lesson-summary-item:last-child { border-bottom: none; } .lesson-summary-label { color: #6b7280; font-size: 13px; } .lesson-summary-value { font-weight: 600; color: #1a1a2e; font-size: 13px; } /* Homework Section (Feature f20) */ .homework-section { background: white; border-radius: 12px; padding: 16px; margin-top: 16px; text-align: left; } .homework-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #1a1a2e; font-weight: 600; } .homework-input-group { display: flex; gap: 8px; margin-bottom: 12px; } .homework-input { flex: 1; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; } .homework-input:focus { outline: none; border-color: #3b82f6; } .homework-add-btn { padding: 10px 16px; background: #3b82f6; color: white; border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 4px; } .homework-add-btn:hover { background: #2563eb; } .homework-list { margin-top: 12px; } .homework-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f9fafb; border-radius: 8px; margin-bottom: 8px; } .homework-item-checkbox { width: 18px; height: 18px; cursor: pointer; } .homework-item-title { flex: 1; font-size: 14px; } .homework-item.completed .homework-item-title { text-decoration: line-through; color: #9ca3af; } .homework-item-due { font-size: 12px; color: #6b7280; } .homework-item-due.overdue { color: #dc2626; font-weight: 500; } .homework-item-delete { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 4px; } .homework-item-delete:hover { color: #dc2626; } /* Materials Section (Feature f19) */ .materials-section { background: white; border-radius: 12px; padding: 16px; margin-top: 16px; text-align: left; } .materials-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .materials-section-title { display: flex; align-items: center; gap: 8px; color: #1a1a2e; font-weight: 600; } .materials-add-btn { padding: 6px 12px; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 4px; } .materials-add-btn:hover { background: #e5e7eb; } .materials-list { display: grid; gap: 8px; } .material-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f9fafb; border-radius: 8px; text-decoration: none; color: inherit; transition: background 0.2s; } .material-item:hover { background: #e5e7eb; } .material-item-icon { width: 32px; height: 32px; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; } .material-item-icon .material-icons { font-size: 18px; } .material-item-content { flex: 1; min-width: 0; } .material-item-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .material-item-meta { font-size: 12px; color: #6b7280; } .material-item-actions { display: flex; gap: 4px; } .material-item-action { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 4px; } .material-item-action:hover { color: #374151; } /* Material Type Icons */ .material-type-document { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); } .material-type-video { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); } .material-type-link { background: linear-gradient(135deg, #10b981 0%, #059669 100%); } .material-type-image { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); } .material-type-worksheet { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); } .material-type-presentation { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); } /* Homework Item Styling (Feature f20) */ .homework-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: #3b82f6; } .homework-content { flex: 1; min-width: 0; } .homework-title { font-size: 14px; font-weight: 500; } .homework-due { font-size: 12px; color: #6b7280; margin-top: 2px; } .homework-item.completed .homework-title { text-decoration: line-through; color: #9ca3af; } .homework-delete-btn { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 4px; border-radius: 4px; } .homework-delete-btn:hover { color: #dc2626; background: #fee2e2; } .homework-empty { text-align: center; color: #6b7280; font-size: 13px; padding: 20px; } /* Material Item Styling (Feature f19) */ .material-type-icon { color: #3b82f6; font-size: 20px; } .material-content { flex: 1; min-width: 0; } .material-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .material-phase { font-size: 12px; color: #6b7280; margin-top: 2px; } .material-link-btn { background: none; border: none; color: #3b82f6; cursor: pointer; padding: 6px; border-radius: 4px; display: flex; align-items: center; text-decoration: none; } .material-link-btn:hover { background: #eff6ff; } .material-delete-btn { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 4px; border-radius: 4px; } .material-delete-btn:hover { color: #dc2626; background: #fee2e2; } .materials-empty { text-align: center; color: #6b7280; font-size: 13px; padding: 20px; } /* Analytics Section (Phase 5) */ .analytics-section { background: white; border-radius: 12px; padding: 16px; margin-top: 16px; text-align: left; } .analytics-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #1a1a2e; font-weight: 600; } .analytics-grid { display: grid; grid-template-columns: 1fr 120px; gap: 16px; } .analytics-card { background: #f9fafb; border-radius: 8px; padding: 12px; } .analytics-card-title { font-size: 12px; color: #6b7280; margin-bottom: 8px; text-transform: uppercase; } .analytics-phase-bars { display: flex; flex-direction: column; gap: 8px; } .analytics-phase-bar { display: flex; align-items: center; gap: 8px; } .analytics-phase-label { width: 70px; font-size: 12px; color: #374151; } .analytics-bar-container { flex: 1; height: 16px; background: #e5e7eb; border-radius: 4px; overflow: hidden; position: relative; } .analytics-bar-planned { position: absolute; height: 100%; background: #d1d5db; border-radius: 4px; } .analytics-bar-actual { position: absolute; height: 100%; border-radius: 4px; } .analytics-bar-actual.under-time { background: #10b981; } .analytics-bar-actual.on-time { background: #3b82f6; } .analytics-bar-actual.over-time { background: #f59e0b; } .analytics-bar-actual.way-over { background: #ef4444; } .analytics-phase-time { width: 50px; font-size: 11px; color: #6b7280; text-align: right; } .analytics-overtime-value { font-size: 28px; font-weight: 600; color: #f59e0b; text-align: center; } .analytics-overtime-phases { font-size: 12px; color: #6b7280; text-align: center; } /* Reflection Section (Phase 5) */ .reflection-section { background: white; border-radius: 12px; padding: 16px; margin-top: 16px; text-align: left; } .reflection-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #1a1a2e; font-weight: 600; } .reflection-form { display: flex; flex-direction: column; gap: 12px; } .reflection-rating { display: flex; align-items: center; gap: 12px; } .reflection-label { font-size: 13px; color: #374151; } .rating-stars { display: flex; gap: 4px; } .star-btn { background: none; border: none; font-size: 24px; color: #d1d5db; cursor: pointer; padding: 0; transition: color 0.2s; } .star-btn:hover, .star-btn.active { color: #f59e0b; } .reflection-textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; resize: vertical; font-family: inherit; } .reflection-textarea:focus { outline: none; border-color: #3b82f6; } .reflection-input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; } .reflection-input:focus { outline: none; border-color: #3b82f6; } .reflection-save-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background: #10b981; color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; } .reflection-save-btn:hover { background: #059669; } .reflection-save-btn:disabled { background: #9ca3af; cursor: not-allowed; } /* Responsive Lesson Mode */ @media (max-width: 600px) { .lesson-timer-display { font-size: 48px; } .lesson-timeline { overflow-x: auto; padding-bottom: 10px; } .lesson-controls { flex-direction: column; } .lesson-phase-name { font-size: 10px; } } /* ==================== High Contrast Mode (Feature f39) ==================== */ /* Aktiviert durch Klasse .high-contrast auf .companion-container */ .companion-container.high-contrast .lesson-header { background: #000 !important; border: 3px solid #fff; } .companion-container.high-contrast .lesson-header h2, .companion-container.high-contrast .visual-timer-time, .companion-container.high-contrast .visual-timer-phase { color: #fff !important; text-shadow: 1px 1px 2px #000; } .companion-container.high-contrast .visual-timer-progress { stroke-width: 10 !important; } .companion-container.high-contrast .visual-timer-progress.time-plenty { stroke: #00ff00 !important; } .companion-container.high-contrast .visual-timer-progress.time-warning { stroke: #ffff00 !important; } .companion-container.high-contrast .visual-timer-progress.time-critical { stroke: #ff0000 !important; } .companion-container.high-contrast .quick-action-btn { border: 2px solid #000; font-weight: 700; } .companion-container.high-contrast .lesson-btn { border: 2px solid #000; font-weight: 700; } /* Keyboard Shortcut Indicator (Feature f34) */ .keyboard-hint { position: fixed; bottom: 20px; right: 20px; background: rgba(0, 0, 0, 0.8); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 12px; z-index: 1000; display: none; } .keyboard-hint.visible { display: block; } .keyboard-hint kbd { display: inline-block; background: #444; padding: 2px 6px; border-radius: 4px; margin: 0 2px; font-family: monospace; } /* ==================== Tablet-First Responsive (Feature f24 + f31) ==================== */ /* Mobile Breakpoints: 600px (Phone), 900px (Tablet Portrait), 1200px (Tablet Landscape/Desktop) */ /* Base: Optimiert fuer Tablet (900-1200px) */ .lesson-container { max-width: 100%; padding: 16px; } .lesson-header { padding: 20px; } .visual-timer-svg { width: 160px; height: 160px; } .visual-timer-time { font-size: 28px; } /* Large Desktop (1200px+) */ @media (min-width: 1200px) { .lesson-container { max-width: 900px; margin: 0 auto; padding: 24px; } .lesson-header { padding: 32px; } .visual-timer-svg { width: 180px; height: 180px; } .visual-timer-time { font-size: 32px; } .quick-actions-bar { gap: 16px; } .quick-action-btn { min-width: 100px; min-height: 64px; font-size: 14px; } } /* Tablet Portrait (600-900px) */ @media (max-width: 900px) { .lesson-header h2 { font-size: 18px; } .visual-timer-svg { width: 140px; height: 140px; } .visual-timer-time { font-size: 24px; } .lesson-timeline { gap: 8px; } .lesson-phase-dot { width: 36px; height: 36px; } .lesson-phase-name { font-size: 10px; } .lesson-controls { gap: 10px; } } /* Phone (< 600px) */ @media (max-width: 600px) { .lesson-container { padding: 12px; } .lesson-header { padding: 16px; border-radius: 12px; } .lesson-header h2 { font-size: 16px; margin-bottom: 12px; } .visual-timer-svg { width: 120px; height: 120px; } .visual-timer-time { font-size: 20px; } .visual-timer-phase { font-size: 12px; } .quick-actions-bar { gap: 8px; margin: 12px 0 16px 0; } .quick-action-btn { min-width: 60px; min-height: 52px; padding: 6px 10px; font-size: 11px; } .quick-action-btn .material-icons { font-size: 20px; } .lesson-timeline { flex-wrap: nowrap; overflow-x: auto; padding: 8px 0; gap: 4px; -webkit-overflow-scrolling: touch; } .lesson-phase-step { min-width: 60px; flex-shrink: 0; } .lesson-phase-dot { width: 32px; height: 32px; } .lesson-phase-name { font-size: 9px; max-width: 55px; } .lesson-controls { flex-direction: column; gap: 8px; } .lesson-btn { width: 100%; padding: 12px 16px; } .lesson-suggestions { padding: 16px; } .lesson-suggestions-title { font-size: 14px; } } /* Touch-Optimierung fuer alle Tablets/Phones */ @media (hover: none) and (pointer: coarse) { .quick-action-btn, .lesson-btn, .mode-btn { /* Groessere Touch-Targets auf Touch-Geraeten */ min-height: 52px; } .quick-action-btn:active, .lesson-btn:active { transform: scale(0.98); opacity: 0.9; } } """