:root { --bg-main: #f8f7f4; --bg-card: #ffffff; --bg-subtle: #f1efe9; --bg-accent: #18181b; --text-main: #18181b; --text-secondary: #52525b; --text-muted: #71717a; --border-color: #e4e2dd; --border-strong: #d4d1c8; /* German Gender Color System */ --der-color: #1d4ed8; --der-bg: #dbeafe; --der-border: #93c5fd; --die-color: #be123c; --die-bg: #ffe4e6; --die-border: #fda4af; --das-color: #047857; --das-bg: #d1fae5; --das-border: #6ee7b7; --pl-color: #b45309; --pl-bg: #fef3c7; --pl-border: #fcd34d; /* Brand & Action Colors */ --primary: #d97706; --primary-dark: #b45309; --primary-light: #fffbeb; --indigo: #4f46e5; --indigo-light: #eef2ff; --success: #059669; --success-bg: #ecfdf5; --danger: #dc2626; --danger-bg: #fef2f2; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --shadow-sm: 0 1px 3px rgba(24, 24, 27, 0.06); --shadow-md: 0 6px 20px -4px rgba(24, 24, 27, 0.08); --shadow-lg: 0 14px 32px -6px rgba(24, 24, 27, 0.14); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; } /* === TOP NAVIGATION === */ .top-header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; } .header-inner { max-width: 1220px; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .brand { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; } .brand-flag { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(180deg, #18181b 33%, #dc2626 33%, #dc2626 66%, #f59e0b 66%); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); flex-shrink: 0; } .brand-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; } .level-pill { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); border: 1px solid #fde68a; } .brand-subtitle { font-size: 0.76rem; color: var(--text-muted); } .nav-tabs { display: flex; gap: 0.35rem; background: var(--bg-subtle); padding: 0.3rem; border-radius: 12px; overflow-x: auto; } .nav-tab { border: none; background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 0.88rem; padding: 0.5rem 0.9rem; border-radius: 9px; cursor: pointer; display: flex; align-items: center; gap: 0.45rem; transition: all 0.15s ease; white-space: nowrap; } .nav-tab:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.5); } .nav-tab.active { background: var(--bg-card); color: var(--text-main); box-shadow: var(--shadow-sm); } .nav-badge { background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.08rem 0.42rem; border-radius: 999px; } .header-actions { display: flex; align-items: center; gap: 0.6rem; } .streak-chip { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 700; padding: 0.4rem 0.75rem; border-radius: 999px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; } .icon-btn { background: var(--bg-subtle); border: 1px solid var(--border-color); color: var(--text-main); width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: all 0.15s ease; } .icon-btn:hover { background: #e4e2dd; } /* === MAIN CONTAINER === */ .main-container { max-width: 1220px; width: 100%; margin: 0 auto; padding: 1.75rem 1.5rem 4rem; flex: 1; } .view-section { display: none; animation: fadeIn 0.2s ease; } .view-section.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } /* === GENDER BADGES & COLOR SYSTEM === */ .gender-badge { display: inline-flex; align-items: center; font-weight: 700; font-size: 0.78rem; padding: 0.15rem 0.55rem; border-radius: 6px; letter-spacing: 0.01em; } .gender-der { background: var(--der-bg); color: var(--der-color); border: 1px solid var(--der-border); } .gender-die { background: var(--die-bg); color: var(--die-color); border: 1px solid var(--die-border); } .gender-das { background: var(--das-bg); color: var(--das-color); border: 1px solid var(--das-border); } .gender-pl { background: var(--pl-bg); color: var(--pl-color); border: 1px solid var(--pl-border); } .gender-none { background: var(--bg-subtle); color: var(--text-secondary); border: 1px solid var(--border-color); } /* === DASHBOARD === */ .hero-banner { background: linear-gradient(135deg, #18181b 0%, #27272a 100%); color: #fff; border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow-md); } .hero-text h1 { font-size: 1.65rem; font-weight: 800; margin-bottom: 0.45rem; letter-spacing: -0.02em; } .hero-text p { color: #d4d4d8; max-width: 640px; font-size: 0.96rem; } .gender-legend-bar { display: flex; gap: 0.55rem; margin-top: 1rem; flex-wrap: wrap; } .hero-cta-group { display: flex; gap: 0.75rem; flex-wrap: wrap; } .btn { border: none; font-family: inherit; font-weight: 600; font-size: 0.92rem; padding: 0.68rem 1.2rem; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.15s ease; } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-dark); } .btn-secondary { background: var(--bg-subtle); color: var(--text-main); border: 1px solid var(--border-strong); } .btn-secondary:hover { background: #e4e2dd; } .btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); } .btn-light:hover { background: rgba(255, 255, 255, 0.2); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; } .stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); } .stat-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.35rem; } .stat-value { font-size: 1.85rem; font-weight: 800; color: var(--text-main); line-height: 1.2; } .stat-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; } .dashboard-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; } @media (max-width: 900px) { .dashboard-columns { grid-template-columns: 1fr; } } .panel-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-sm); } .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 0.5rem; } .panel-title { font-size: 1.1rem; font-weight: 700; } .module-launcher-list { display: flex; flex-direction: column; gap: 0.85rem; } .launcher-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.15rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-main); cursor: pointer; transition: all 0.15s ease; gap: 1rem; } .launcher-item:hover { border-color: var(--primary); background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); } .launcher-left { display: flex; align-items: center; gap: 0.9rem; } .launcher-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; } .launcher-title { font-weight: 700; font-size: 0.98rem; } .launcher-desc { font-size: 0.84rem; color: var(--text-secondary); } /* === ACTIVE RECALL SRS TRAINER === */ .trainer-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; } .mode-pills { display: flex; gap: 0.45rem; flex-wrap: wrap; } .mode-pill { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); font-weight: 600; font-size: 0.85rem; padding: 0.5rem 0.95rem; border-radius: 999px; cursor: pointer; transition: all 0.15s ease; } .mode-pill.active { background: var(--bg-accent); color: #fff; border-color: var(--bg-accent); } .srs-card-stage { max-width: 760px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-md); } .card-meta-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 0.5rem; flex-wrap: wrap; } .category-tag { font-size: 0.76rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--bg-subtle); color: var(--text-secondary); } .prompt-instruction { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; } .prompt-main { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.75rem; } .cloze-box { background: var(--bg-main); border-left: 4px solid var(--primary); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1.25rem; } .cloze-de { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; } .cloze-en { font-size: 0.9rem; color: var(--text-secondary); } .answer-input-row { display: flex; gap: 0.6rem; margin-bottom: 0.65rem; } .german-input { flex: 1; font-family: inherit; font-size: 1.08rem; font-weight: 500; padding: 0.75rem 1rem; border: 2px solid var(--border-strong); border-radius: 10px; outline: none; transition: border-color 0.15s ease; } .german-input:focus { border-color: var(--primary); } .umlaut-bar { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 1.25rem; flex-wrap: wrap; } .umlaut-label { font-size: 0.75rem; color: var(--text-muted); margin-right: 0.25rem; } .umlaut-key { background: var(--bg-subtle); border: 1px solid var(--border-strong); border-radius: 6px; padding: 0.2rem 0.55rem; font-weight: 700; font-size: 0.85rem; cursor: pointer; user-select: none; } .umlaut-key:hover { background: #e4e2dd; } .gender-choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1.25rem 0; } .gender-choice-btn { padding: 1rem; font-size: 1.1rem; font-weight: 800; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: transform 0.1s ease; } .gender-choice-btn:hover { transform: translateY(-2px); } .feedback-panel { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-main); } .feedback-panel.correct { background: var(--success-bg); border-color: #6ee7b7; } .feedback-panel.incorrect { background: var(--danger-bg); border-color: #fca5a5; } .word-reveal-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; } .word-reveal-title { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; } .word-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin: 0.85rem 0; font-size: 0.88rem; } .detail-item { background: rgba(255, 255, 255, 0.75); padding: 0.65rem 0.85rem; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.06); } .detail-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); display: block; } .srs-grade-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1.2rem; } .grade-btn { padding: 0.65rem 0.5rem; border-radius: 9px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; font-weight: 700; font-size: 0.84rem; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; transition: all 0.15s ease; } .grade-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } .grade-btn span.interval { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); } .grade-again { border-color: #fca5a5; color: #b91c1c; } .grade-hard { border-color: #fed7aa; color: #c2410c; } .grade-good { border-color: #86efac; color: #15803d; } .grade-easy { border-color: #93c5fd; color: #1d4ed8; } /* === INTERACTIVE READER (LESEECKE) === */ .reader-layout { display: grid; grid-template-columns: 310px 1fr; gap: 1.5rem; align-items: start; } @media (max-width: 940px) { .reader-layout { grid-template-columns: 1fr; } } .story-sidebar { display: flex; flex-direction: column; gap: 0.75rem; } .story-card-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem; cursor: pointer; transition: all 0.15s ease; } .story-card-item:hover { border-color: var(--border-strong); } .story-card-item.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15); } .story-card-meta { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.3rem; } .story-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; } .story-card-sub { font-size: 0.8rem; color: var(--text-secondary); } .reader-main { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); position: relative; } .reader-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); } .story-paragraph { margin-bottom: 1.35rem; } .story-de-line { font-size: 1.16rem; line-height: 1.85; color: var(--text-main); } .story-en-line { font-size: 0.94rem; color: var(--text-secondary); margin-top: 0.35rem; padding-left: 0.75rem; border-left: 3px solid var(--border-strong); } .word-token { cursor: pointer; padding: 0.08rem 0.16rem; border-radius: 4px; transition: background 0.12s ease; } .word-token:hover { background: #fef3c7; } .word-token.target-vocab { background: #fef3c7; border-bottom: 2px solid var(--primary); font-weight: 600; } .word-token.in-deck { border-bottom: 2px dotted var(--indigo); } .word-inspector-drawer { margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-md); } /* === CONVERSATION & WRITING PRACTICE (SPRACHPRAXIS) === */ .scenario-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; } @media (max-width: 940px) { .scenario-layout { grid-template-columns: 1fr; } } .target-words-box { background: var(--bg-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin-bottom: 1.25rem; } .target-chips-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; } .target-word-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-strong); font-size: 0.84rem; font-weight: 600; transition: all 0.2s ease; } .target-word-chip.used { background: var(--success-bg); border-color: #34d399; color: #065f46; } .chat-stream { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; max-height: 460px; overflow-y: auto; padding-right: 0.25rem; } .chat-bubble { max-width: 85%; padding: 1rem 1.2rem; border-radius: 14px; font-size: 0.96rem; } .chat-partner { align-self: flex-start; background: var(--bg-subtle); border: 1px solid var(--border-color); border-bottom-left-radius: 4px; } .chat-user { align-self: flex-end; background: var(--bg-accent); color: #fff; border-bottom-right-radius: 4px; } .chat-feedback { align-self: stretch; max-width: 100%; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 0.86rem; padding: 0.75rem 1rem; border-radius: 10px; } /* === VOCABULARY BANK TABLE === */ .vocab-filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; } .vocab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; } .vocab-item-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.15rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.65rem; } /* === MODAL === */ .modal-backdrop { position: fixed; inset: 0; background: rgba(24, 24, 27, 0.55); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; } .modal-backdrop.open { display: flex; } .modal-card { background: var(--bg-card); border-radius: var(--radius-lg); max-width: 540px; width: 100%; padding: 1.75rem; box-shadow: var(--shadow-lg); } .toast-notification { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--bg-accent); color: #fff; padding: 0.8rem 1.2rem; border-radius: 10px; font-size: 0.88rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 300; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.2s ease; } .toast-notification.show { opacity: 1; transform: translateY(0); } /* === HOVER-TO-TRANSLATE MODE & FLOATING TOOLTIP === */ .hover-toggle-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-family: inherit; font-size: 0.82rem; font-weight: 700; padding: 0.42rem 0.8rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--border-strong); background: var(--bg-subtle); color: var(--text-secondary); transition: all 0.15s ease; white-space: nowrap; } .hover-toggle-btn.active { background: var(--indigo-light); color: var(--indigo); border-color: #a5b4fc; } .hover-toggle-btn:hover { transform: translateY(-1px); } body.hover-translate-on .word-token { border-bottom: 1px dashed rgba(79, 70, 229, 0.35); } body.hover-translate-on .word-token:hover { background: #e0e7ff; color: #1e1b4b; } .hover-translate-tooltip { position: fixed; z-index: 9999; background: #18181b; color: #ffffff; padding: 0.55rem 0.85rem; border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28); pointer-events: none; opacity: 0; transform: translate(-50%, -100%) translateY(-8px); transition: opacity 0.12s ease; max-width: 310px; font-size: 0.84rem; line-height: 1.35; border: 1px solid rgba(255, 255, 255, 0.14); } .hover-translate-tooltip.visible { opacity: 1; } .hover-translate-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: #18181b transparent transparent transparent; } .hover-tt-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.18rem; font-weight: 700; color: #f4f4f5; } .hover-tt-en { color: #fde68a; font-weight: 700; font-size: 0.9rem; } .hover-tt-note { color: #a1a1aa; font-size: 0.74rem; margin-top: 0.15rem; } /* === WORTBAUKASTEN (COMPOUND & PREFIX LAB) === */ .compound-blocks-row { display: flex; align-items: stretch; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; } .compound-block { background: var(--bg-main); border: 2px solid var(--border-strong); border-radius: 12px; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 130px; } .compound-block.head-word { border-color: var(--primary); background: #fffbeb; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12); } .compound-plus { display: flex; align-items: center; font-weight: 800; font-size: 1.25rem; color: var(--text-muted); } .prefix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; margin-top: 1rem; } .prefix-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; } .sep-pill { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; } .sep-yes { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; } .sep-no { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; } /* === HÖRTRAINING (LISTENING DICTATION & SHADOWING) === */ .audio-hero-box { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); color: #fff; border-radius: var(--radius-md); padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; } .diff-word { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 6px; margin: 0.12rem; font-weight: 700; } .diff-ok { background: #d1fae5; color: #065f46; } .diff-miss { background: #fee2e2; color: #991b1b; text-decoration: underline wavy; } .mic-btn-recording { background: #dc2626 !important; color: #fff !important; animation: pulseMic 1.2s infinite; } @keyframes pulseMic { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } } /* === PREPOSITION & CASE TRAINER === */ .case-badge-akk { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; font-weight: 700; font-size: 0.76rem; padding: 0.15rem 0.55rem; border-radius: 6px; } .case-badge-dat { background: #ede9fe; color: #6d28d9; border: 1px solid #c4b5fd; font-weight: 700; font-size: 0.76rem; padding: 0.15rem 0.55rem; border-radius: 6px; } .prep-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1.25rem 0; } .dawo-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; margin: 1.25rem 0; } /* === MOBILE & TABLET RESPONSIVE CLEANUP === */ .nav-tabs::-webkit-scrollbar, .mode-pills::-webkit-scrollbar { display: none; } .nav-tabs, .mode-pills { scrollbar-width: none; -webkit-overflow-scrolling: touch; } @media (max-width: 940px) { .header-inner { padding: 0.6rem 0.9rem; gap: 0.55rem; } .brand { order: 1; } .header-actions { order: 2; margin-left: auto; gap: 0.35rem; } .nav-tabs { order: 3; width: 100%; padding: 0.25rem; gap: 0.25rem; } .nav-tab { padding: 0.42rem 0.7rem; font-size: 0.82rem; flex-shrink: 0; } /* Turn story and scenario lists into horizontal swipe strips on mobile/tablet so content is immediately visible */ #story-list-container, #scenario-list-container { flex-direction: row !important; overflow-x: auto; padding-bottom: 0.35rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; } #story-list-container .story-card-item, #scenario-list-container .story-card-item { min-width: 245px; max-width: 270px; flex-shrink: 0; scroll-snap-align: start; padding: 0.8rem 0.95rem; } } @media (max-width: 640px) { .brand-subtitle { display: none; } .brand-flag { width: 30px; height: 30px; border-radius: 8px; } .brand-title { font-size: 1.02rem; } .hover-toggle-btn .hover-label-text { display: none; } .hover-toggle-btn { padding: 0.36rem 0.6rem; font-size: 0.78rem; } .streak-chip { padding: 0.34rem 0.55rem; font-size: 0.76rem; } .streak-chip .streak-days-word { display: none; } .icon-btn { width: 34px; height: 34px; border-radius: 8px; font-size: 0.9rem; } .main-container { padding: 0.9rem 0.75rem 4.5rem; } .hero-banner { padding: 1.15rem; margin-bottom: 1rem; border-radius: var(--radius-md); gap: 1rem; } .hero-text h1 { font-size: 1.22rem; line-height: 1.3; } .hero-text p { font-size: 0.86rem; } .gender-legend-bar { gap: 0.35rem; margin-top: 0.75rem; } .gender-badge { font-size: 0.72rem; padding: 0.12rem 0.45rem; } .hero-cta-group { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; } .hero-cta-group .btn { justify-content: center; padding: 0.6rem 0.5rem; font-size: 0.82rem; } .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.1rem; } .stat-card { padding: 0.85rem 0.9rem; } .stat-label { font-size: 0.68rem; } .stat-value { font-size: 1.35rem; } .stat-sub { font-size: 0.72rem; } .panel-card, .srs-card-stage, .reader-main { padding: 1.1rem 0.95rem; border-radius: var(--radius-md); } .launcher-item { padding: 0.8rem 0.85rem; gap: 0.65rem; } .launcher-icon { width: 38px; height: 38px; font-size: 1.1rem; } .launcher-title { font-size: 0.9rem; } .launcher-desc { font-size: 0.78rem; line-height: 1.35; } /* Horizontal scrollable mode pills on mobile */ .trainer-controls { gap: 0.65rem; margin-bottom: 1rem; } .mode-pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 0.15rem; } .mode-pill { flex-shrink: 0; font-size: 0.8rem; padding: 0.45rem 0.8rem; } #trainer-category-select { width: 100%; } .prompt-main { font-size: 1.25rem; } .cloze-box { padding: 0.8rem 0.95rem; } .cloze-de { font-size: 1.02rem; } /* Stack input and buttons cleanly on mobile; 16px prevents iOS Safari auto-zoom */ .answer-input-row { flex-wrap: wrap; gap: 0.5rem; } .german-input { width: 100%; flex: 1 1 100%; font-size: 16px !important; padding: 0.68rem 0.85rem; } .answer-input-row .btn { flex: 1; justify-content: center; padding: 0.65rem 0.75rem; } .umlaut-bar { gap: 0.3rem; margin-bottom: 0.9rem; } .umlaut-key { min-width: 36px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.92rem; padding: 0; } /* 2x2 thumb-friendly grids on mobile */ .gender-choice-grid, .srs-grade-buttons { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } .gender-choice-btn { padding: 0.8rem; font-size: 1rem; } .prep-options-grid { grid-template-columns: 1fr; gap: 0.5rem; } .dawo-options-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } /* Compound blocks wrap cleanly on mobile */ .compound-blocks-row { flex-direction: column; gap: 0.35rem; } .compound-plus { justify-content: center; font-size: 1rem; line-height: 1; } .compound-block { width: 100%; padding: 0.6rem 0.8rem; } .story-de-line { font-size: 1.05rem; line-height: 1.75; } .chat-bubble { max-width: 94%; padding: 0.8rem 0.95rem; font-size: 0.9rem; } .vocab-filter-bar { flex-direction: column; gap: 0.5rem; } .vocab-filter-bar .german-input { max-width: 100% !important; } .vocab-grid, .prefix-grid { grid-template-columns: 1fr; } .modal-card { padding: 1.2rem; max-height: 90vh; overflow-y: auto; } .toast-notification { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; text-align: center; } }