""" BreakPilot Studio - Unified Inbox Mail Modul Dieses Modul bietet: - Setup-Wizard fuer E-Mail-Konten (7 Schritte, extrem benutzerfreundlich) - Kontoverwaltung (hinzufuegen, bearbeiten, loeschen) - Passwort-Tresor (sichere Verwaltung der Zugangsdaten) - Unified Inbox (alle E-Mails an einem Ort) Zielgruppe: Lehrkraefte ohne technische Vorkenntnisse Design-Prinzip: Ein Feld pro Bildschirm, immer erklaeren WARUM """ class MailInboxModule: """Unified Inbox Modul mit benutzerfreundlichem Setup-Wizard.""" @staticmethod def get_css() -> str: """CSS fuer das Mail-Inbox-Modul.""" return """ /* ========================================== MAIL INBOX MODULE STYLES ========================================== */ /* Panel Layout */ .panel-mail { display: none; flex-direction: column; height: 100%; background: var(--bp-bg); overflow: hidden; } .panel-mail.active { display: flex; } /* Mail Header */ .mail-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; border-bottom: 1px solid var(--bp-border); background: var(--bp-surface); } .mail-title-section h1 { font-size: 24px; font-weight: 700; color: var(--bp-text); margin-bottom: 4px; } .mail-subtitle { font-size: 14px; color: var(--bp-text-muted); } .mail-header-actions { display: flex; gap: 12px; } /* Mail Content */ .mail-content { flex: 1; overflow-y: auto; padding: 32px; } /* Empty State - Kein Konto eingerichtet */ .mail-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; text-align: center; padding: 40px; } .mail-empty-icon { font-size: 80px; margin-bottom: 24px; opacity: 0.6; } .mail-empty-title { font-size: 24px; font-weight: 700; color: var(--bp-text); margin-bottom: 12px; } .mail-empty-description { font-size: 16px; color: var(--bp-text-muted); max-width: 480px; line-height: 1.6; margin-bottom: 32px; } /* ========================================== MAIL WIZARD MODAL ========================================== */ .mail-wizard-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 10000; justify-content: center; align-items: center; backdrop-filter: blur(4px); } .mail-wizard-modal.active { display: flex; } .mail-wizard-content { background: var(--bp-surface); border-radius: 24px; width: 95%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 25px 80px rgba(0,0,0,0.5); border: 1px solid var(--bp-border); overflow: hidden; animation: wizardSlideIn 0.3s ease; } @keyframes wizardSlideIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Wizard Header */ .wizard-header { padding: 24px 32px 20px; border-bottom: 1px solid var(--bp-border); background: var(--bp-surface-elevated); } .wizard-close-btn { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--bp-text-muted); font-size: 24px; cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.2s; } .wizard-close-btn:hover { background: var(--bp-surface); color: var(--bp-text); } /* Step Indicator */ .wizard-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; } .wizard-step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bp-border); transition: all 0.3s ease; } .wizard-step-dot.active { background: var(--bp-primary); transform: scale(1.3); box-shadow: 0 0 0 4px var(--bp-primary-soft); } .wizard-step-dot.completed { background: var(--bp-success); } .wizard-step-label { text-align: center; font-size: 12px; color: var(--bp-text-muted); margin-top: 8px; } /* Wizard Body */ .wizard-body { flex: 1; overflow-y: auto; padding: 32px; } /* Wizard Step Content */ .wizard-step { display: none; } .wizard-step.active { display: block; animation: stepFadeIn 0.3s ease; } @keyframes stepFadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } .wizard-step-title { font-size: 22px; font-weight: 700; color: var(--bp-text); margin-bottom: 12px; text-align: center; } .wizard-step-description { font-size: 15px; color: var(--bp-text-muted); text-align: center; line-height: 1.6; margin-bottom: 32px; } /* Welcome Step Illustration */ .wizard-illustration { text-align: center; margin-bottom: 24px; } .wizard-illustration-icon { font-size: 72px; margin-bottom: 16px; } /* Info Box (Warum brauchen wir das?) */ .wizard-info-box { background: var(--bp-surface-elevated); border: 1px solid var(--bp-border); border-radius: 12px; padding: 16px 20px; margin-top: 24px; } .wizard-info-box-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; color: var(--bp-text); font-size: 14px; } .wizard-info-box-icon { font-size: 18px; } .wizard-info-box-content { font-size: 13px; color: var(--bp-text-muted); line-height: 1.6; } /* Security Info Box */ .wizard-info-box.security { border-color: var(--bp-success); background: rgba(34, 197, 94, 0.05); } .wizard-info-box.security .wizard-info-box-header { color: var(--bp-success); } /* Warning Info Box */ .wizard-info-box.warning { border-color: var(--bp-warning); background: rgba(245, 158, 11, 0.05); } .wizard-info-box.warning .wizard-info-box-header { color: var(--bp-warning); } /* Form Fields */ .wizard-field { margin-bottom: 20px; } .wizard-field-label { display: block; font-size: 14px; font-weight: 600; color: var(--bp-text); margin-bottom: 8px; } .wizard-input-wrapper { position: relative; display: flex; align-items: center; } .wizard-input-icon { position: absolute; left: 16px; font-size: 20px; color: var(--bp-text-muted); } .wizard-input { width: 100%; padding: 16px 16px 16px 52px; background: var(--bp-bg); border: 2px solid var(--bp-border); border-radius: 12px; font-size: 16px; color: var(--bp-text); transition: all 0.2s; } .wizard-input:focus { outline: none; border-color: var(--bp-primary); box-shadow: 0 0 0 4px var(--bp-primary-soft); } .wizard-input::placeholder { color: var(--bp-text-muted); } .wizard-input-hint { font-size: 12px; color: var(--bp-text-muted); margin-top: 8px; } /* Password Toggle */ .wizard-password-toggle { position: absolute; right: 16px; background: none; border: none; color: var(--bp-text-muted); cursor: pointer; padding: 8px; font-size: 18px; } .wizard-password-toggle:hover { color: var(--bp-text); } /* Provider Grid */ .provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; } .provider-card { display: flex; flex-direction: column; align-items: center; padding: 20px 12px; background: var(--bp-bg); border: 2px solid var(--bp-border); border-radius: 12px; cursor: pointer; transition: all 0.2s; } .provider-card:hover { border-color: var(--bp-primary); background: var(--bp-primary-soft); } .provider-card.selected { border-color: var(--bp-primary); background: var(--bp-primary-soft); box-shadow: 0 0 0 4px var(--bp-primary-soft); } .provider-card-icon { font-size: 32px; margin-bottom: 8px; } .provider-card-name { font-size: 12px; font-weight: 600; color: var(--bp-text); text-align: center; } /* Provider Detected Banner */ .provider-detected { display: flex; align-items: center; gap: 16px; padding: 20px; background: rgba(34, 197, 94, 0.1); border: 2px solid var(--bp-success); border-radius: 12px; margin-bottom: 24px; } .provider-detected-icon { font-size: 48px; } .provider-detected-info h3 { font-size: 18px; font-weight: 700; color: var(--bp-text); margin-bottom: 4px; } .provider-detected-info p { font-size: 13px; color: var(--bp-text-muted); } .provider-detected-checkmarks { margin-top: 8px; } .provider-detected-checkmarks span { display: block; font-size: 13px; color: var(--bp-success); margin-bottom: 4px; } /* Quick Select Buttons */ .quick-select-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .quick-select-btn { padding: 10px 16px; background: var(--bp-bg); border: 2px solid var(--bp-border); border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--bp-text); cursor: pointer; transition: all 0.2s; } .quick-select-btn:hover { border-color: var(--bp-primary); background: var(--bp-primary-soft); } .quick-select-btn.selected { border-color: var(--bp-primary); background: var(--bp-primary); color: white; } /* Connection Test */ .connection-test { padding: 24px; background: var(--bp-bg); border-radius: 12px; text-align: center; } .connection-test-animation { font-size: 64px; margin-bottom: 16px; animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } } .connection-test-status { margin-top: 24px; } .connection-test-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; font-size: 14px; color: var(--bp-text-muted); } .connection-test-item.success { color: var(--bp-success); } .connection-test-item.error { color: var(--bp-danger); } .connection-test-item.pending { color: var(--bp-text-muted); } /* Success Screen */ .wizard-success { text-align: center; padding: 20px; } .wizard-success-icon { font-size: 80px; margin-bottom: 24px; } .wizard-success-title { font-size: 24px; font-weight: 700; color: var(--bp-text); margin-bottom: 16px; } .wizard-success-card { background: var(--bp-bg); border: 2px solid var(--bp-success); border-radius: 12px; padding: 20px; margin: 24px 0; text-align: left; } .wizard-success-card-header { display: flex; align-items: center; gap: 12px; } .wizard-success-card-icon { font-size: 32px; } .wizard-success-card-name { font-size: 16px; font-weight: 600; color: var(--bp-text); } .wizard-success-card-email { font-size: 13px; color: var(--bp-text-muted); } .wizard-success-card-stats { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bp-border); font-size: 12px; color: var(--bp-text-muted); } /* Wizard Footer */ .wizard-footer { display: flex; justify-content: space-between; padding: 20px 32px; border-top: 1px solid var(--bp-border); background: var(--bp-surface); } .wizard-btn { padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; } .wizard-btn-back { background: transparent; border: 2px solid var(--bp-border); color: var(--bp-text-muted); } .wizard-btn-back:hover { border-color: var(--bp-text-muted); color: var(--bp-text); } .wizard-btn-next { background: var(--bp-primary); border: none; color: white; } .wizard-btn-next:hover { background: var(--bp-primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(108, 27, 27, 0.3); } .wizard-btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } /* Error Banner */ .wizard-error-banner { display: none; background: rgba(239, 68, 68, 0.1); border: 1px solid var(--bp-danger); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; } .wizard-error-banner.active { display: block; } .wizard-error-banner-header { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bp-danger); margin-bottom: 8px; } .wizard-error-banner-content { font-size: 13px; color: var(--bp-text-muted); line-height: 1.6; } .wizard-error-banner-solutions { margin-top: 12px; padding-left: 20px; } .wizard-error-banner-solutions li { font-size: 13px; color: var(--bp-text-muted); margin-bottom: 8px; } /* ========================================== ACCOUNT MANAGEMENT ========================================== */ .mail-accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; } .mail-account-card { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: 16px; padding: 24px; transition: all 0.2s; } .mail-account-card:hover { border-color: var(--bp-primary); box-shadow: 0 4px 20px rgba(0,0,0,0.1); } .mail-account-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; } .mail-account-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bp-primary-soft); display: flex; align-items: center; justify-content: center; font-size: 24px; } .mail-account-info h3 { font-size: 16px; font-weight: 600; color: var(--bp-text); margin-bottom: 4px; } .mail-account-info p { font-size: 13px; color: var(--bp-text-muted); } .mail-account-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 16px; } .mail-account-status.connected { background: rgba(34, 197, 94, 0.1); color: var(--bp-success); } .mail-account-status.error { background: rgba(239, 68, 68, 0.1); color: var(--bp-danger); } .mail-account-stats { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--bp-border); } .mail-account-stat { flex: 1; } .mail-account-stat-value { font-size: 20px; font-weight: 700; color: var(--bp-text); } .mail-account-stat-label { font-size: 11px; color: var(--bp-text-muted); } .mail-account-actions { display: flex; gap: 8px; margin-top: 16px; } .mail-account-btn { flex: 1; padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-align: center; } .mail-account-btn-sync { background: var(--bp-primary-soft); border: 1px solid var(--bp-primary); color: var(--bp-primary); } .mail-account-btn-sync:hover { background: var(--bp-primary); color: white; } .mail-account-btn-settings { background: var(--bp-surface-elevated); border: 1px solid var(--bp-border); color: var(--bp-text-muted); } .mail-account-btn-settings:hover { border-color: var(--bp-text-muted); color: var(--bp-text); } /* Add Account Card */ .mail-add-account-card { background: var(--bp-bg); border: 2px dashed var(--bp-border); border-radius: 16px; padding: 40px 24px; text-align: center; cursor: pointer; transition: all 0.2s; } .mail-add-account-card:hover { border-color: var(--bp-primary); background: var(--bp-primary-soft); } .mail-add-account-icon { font-size: 40px; color: var(--bp-text-muted); margin-bottom: 12px; } .mail-add-account-text { font-size: 14px; font-weight: 600; color: var(--bp-text-muted); } /* ========================================== PASSWORD VAULT ========================================== */ .password-vault-section { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: 16px; padding: 24px; margin-top: 32px; } .password-vault-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; } .password-vault-icon { font-size: 28px; } .password-vault-title { font-size: 18px; font-weight: 600; color: var(--bp-text); } .password-vault-list { display: flex; flex-direction: column; gap: 12px; } .password-vault-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--bp-bg); border-radius: 12px; } .password-vault-item-info { display: flex; align-items: center; gap: 12px; } .password-vault-item-icon { font-size: 24px; } .password-vault-item-name { font-weight: 600; color: var(--bp-text); font-size: 14px; } .password-vault-item-email { font-size: 12px; color: var(--bp-text-muted); } .password-vault-item-password { font-family: monospace; font-size: 14px; color: var(--bp-text-muted); letter-spacing: 2px; } .password-vault-item-actions { display: flex; gap: 8px; } .password-vault-btn { padding: 6px 12px; border-radius: 6px; font-size: 11px; cursor: pointer; transition: all 0.2s; background: var(--bp-surface-elevated); border: 1px solid var(--bp-border); color: var(--bp-text-muted); } .password-vault-btn:hover { border-color: var(--bp-primary); color: var(--bp-primary); } """ @staticmethod def get_html() -> str: """HTML fuer das Mail-Inbox-Modul.""" return """
Alle E-Mails an einem Ort
Stellen Sie sich vor: Schulleitung, Verwaltung, Regierungspraesidium - alles in EINER Ansicht. Keine 4 verschiedenen Programme mehr oeffnen.
Geben Sie die E-Mail-Adresse ein, die Sie hinzufuegen moechten.
Geben Sie Ihre vollstaendige E-Mail-Adresse ein
Wir haben Ihren E-Mail-Anbieter erkannt
Geben Sie diesem Konto einen Namen, damit Sie es leicht wiedererkennen.
Geben Sie das Passwort fuer Ihr E-Mail-Konto ein.
(Damit Sie es nicht jedes Mal eingeben muessen)
Wir pruefen jetzt, ob alles funktioniert...
Ihr Konto wurde erfolgreich eingerichtet!
${account.email}
Noch keine Konten gespeichert
'; return; } list.innerHTML = mailAccounts.map(account => `