        /* --- MOBILE RESPONSIVENESS --- */
        /* ============ RESPONSIVE DESIGN - MOBILE FIRST ============ */
        
        /* ===== TABLET (768px - 1024px) ===== */
        @media (min-width: 768px) and (max-width: 1023px) {
            .sidebar {
                width: var(--sidebar-width);
                position: fixed;
                transform: translateX(0);
                box-shadow: 2px 0 10px rgba(0,0,0,0.5);
                z-index: 200;
            }

            #mobileMenuToggle {
                display: block;
            }
            /* AI-Bot Responsive für Tablet */
            #view-aibot > div:nth-child(2) {
                grid-template-columns: 1fr !important;
            }
            .kpi-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            .charts-row {
                grid-template-columns: 1fr;
            }
            .modal-box {
                width: 90vw !important;
                max-width: 600px !important;
                max-height: 90vh !important;
            }
            .page-title {
                font-size: 1.5rem;
            }
            .quick-actions {
                gap: 3px;
                padding: 4px;
            }
            .quick-actions button {
                padding: 7px 10px;
                font-size: 0.78rem;
            }
            .cmd-kbd { display: none; }
        }

        /* ===== MOBILE (< 768px) ===== */
        @media (max-width: 767px) {
            /* ===== LAYOUT ===== */
            body {
                font-size: 14px;
            }
            
            .sidebar {
                width: 100%;
                max-width: 290px;
                position: fixed;
                left: 0;
                top: 0;
                height: 100vh;
                transform: translateX(-100%);
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 200;
                padding: 0;
                overflow: hidden;
            }
            
            .sidebar.active {
                transform: translateX(0);
                box-shadow: 4px 0 30px rgba(0,0,0,0.5);
            }
            
            .sidebar-overlay {
                display: none;
            }
            
            .sidebar-overlay.active {
                display: block !important;
            }

            /* ===== NAV ITEMS FÜR MOBILE ===== */
            .sidebar-ambient { display: none; }
            .sidebar-hover-beam { display: none; }
            .nav-item {
                padding: 10px 12px !important;
                margin: 2px 6px !important;
                font-size: 0.88rem !important;
                animation: none !important;
            }

            .nav-section {
                padding: 6px 12px !important;
                margin-top: 14px !important;
                margin-bottom: 2px !important;
                font-size: 0.65rem !important;
            }

            .sidebar-header {
                padding: 16px 14px 8px 14px !important;
            }
            .sidebar-search {
                margin: 4px 10px 10px 10px !important;
            }
            .brand {
                font-size: 1rem !important;
            }
            .sidebar-header-btn { opacity: 0.5 !important; }
            

            
            .main .header {
                padding-left: 60px;
                margin-bottom: 1.5rem;
            }
            
            #mobileMenuToggle {
                display: block;
                position: fixed;
                top: 16px;
                left: 12px;
                z-index: 201;
                padding: 10px 12px;
                font-size: 1.1rem;
            }
            
            /* ===== TYPOGRAPHY ===== */
            .page-title {
                font-size: 1.25rem;
                letter-spacing: 0;
            }
            
            .greeting {
                font-size: 0.7rem;
            }
            
            h1 { font-size: 1.5rem; }
            h2 { font-size: 1.25rem; }
            h3 { font-size: 1.1rem; }
            h4 { font-size: 0.95rem; }
            
            small { font-size: 0.75rem; }
            
            /* ===== DASHBOARD GRID ===== */
            .kpi-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
                margin-bottom: 1rem;
            }
            
            .kpi-card {
                padding: 1.25rem 0.75rem;
            }
            
            .dashboard-grid {
                gap: 1.25rem;
            }
            
            .dashboard-item {
                width: 100%;
            }
            
            /* ===== QUICK ACTIONS ===== */
            .quick-actions {
                flex-wrap: wrap;
                gap: 4px;
                margin-bottom: 1rem;
            }
            
            .quick-actions button {
                padding: 10px 14px;
                font-size: 0.82rem;
                min-height: 44px;
                touch-action: manipulation;
            }
            .cmd-sep { display: none; }
            .cmd-kbd { display: none; }
            
            /* ===== AUDIT GRID ===== */
            .audit-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
            
            .audit-card {
                padding: 1rem;
            }

            /* ===== SCHOOL / BERUFSSCHULE RESPONSIVE ===== */
            .school-hero { padding:1.25rem; }
            .school-hero-icon { width:48px;height:48px;font-size:1.4rem;border-radius:14px; }
            .school-hero-content h2 { font-size:1.2rem; }
            .school-kpi-dashboard { grid-template-columns:1fr;gap:1rem; }
            .school-ring-card { padding:1.5rem; }
            .school-progress-ring { width:120px;height:120px; }
            .school-overall-note { font-size:2.2rem; }
            .school-kpi-cards { grid-template-columns:1fr; }
            .school-kpi-card { padding:1rem; }
            .school-kpi-icon { font-size:1.4rem;width:40px; }
            .school-kpi-value { font-size:1.2rem; }
            .school-section-header { flex-direction:column;align-items:flex-start; }
            .school-add-btn { width:100%; justify-content:center; }
            .school-tips-grid { grid-template-columns:1fr; }

            #schoolGradesInputGrid {
                grid-template-columns: 1fr !important;
            }

            #schoolGradesInputGrid > div {
                grid-column: 1 / -1 !important;
            }

            #schoolGradesInputGrid button {
                width: 100% !important;
            }

            #schoolGradesList {
                grid-template-columns: 1fr !important;
            }

            /* ===== IHK / KARRIERE RESPONSIVE ===== */
            .ihk-hero { padding:1.25rem;margin-bottom:1.5rem; }
            .ihk-hero-icon { font-size:1.8rem; }
            .ihk-hero-content h2 { font-size:1.1rem;line-height:1.3; }
            .ihk-hero-content p { font-size:0.75rem; }
            .ihk-kpi-dashboard { grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem; }
            .ihk-ring-card { padding:1.25rem; }
            .ihk-progress-ring { width:120px;height:120px; }
            .ihk-progress-value { font-size:2.2rem; }
            .ihk-kpi-cards { grid-template-columns:1fr;gap:1rem; }
            .ihk-kpi-card { padding:1rem;gap:0.75rem; }
            .ihk-kpi-icon { font-size:1.4rem; }
            .ihk-kpi-value { font-size:1.2rem; }

            .ihk-secondary-kpi {
                padding: 0.75rem !important;
                border-left-width: 2px !important;
                background: rgba(255,255,255,0.04) !important;
            }

            .ihk-secondary-kpi .ihk-metric-value {
                font-size: 1.3rem !important;
            }

            .ihk-secondary-kpi .ihk-metric-label {
                font-size: 0.6rem !important;
                white-space: normal;
            }

            .ihk-note-group {
                grid-template-columns: 1fr !important;
                gap: 1rem !important;
            }

            .ihk-note-card {
                padding:1.25rem;
            }

            .ihk-note-value {
                font-size:1.4rem;
            }

            .ihk-input-group {
                grid-template-columns:1fr;
                gap:1rem;
            }

            .glass-input,
            .glass-select {
                width: 100%;
                font-size: 16px !important;
            }

            .kpi-grid {
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }

            /* ===== PERFORMANCE RESPONSIVE ===== */
            .kpi-large {
                padding: 1.25rem 0.75rem !important;
                text-align: center;
            }

            .kpi-large-value {
                font-size: 2rem !important;
                margin: 8px 0;
            }

            .kpi-large-label {
                font-size: 0.65rem !important;
                letter-spacing: 0.3px;
                line-height: 1.2;
            }

            .kpi-large > div:nth-child(3) {
                font-size: 0.7rem !important;
            }
            
            /* ===== CHARTS ===== */
            .charts-row {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .chart-deep-row {
                grid-template-columns: 1fr;
            }
            
            .chart-deep-row > div {
                border-right: none !important;
                border-bottom: 1px solid var(--border);
                padding-bottom: 1.5rem !important;
                padding-right: 0 !important;
                padding-left: 0 !important;
            }
            
            .chart-deep-row > div > div:first-child {
                padding-right: 0 !important;
            }

            .chart-header {
                flex-direction: column;
                gap: 10px;
                margin-bottom: 1rem;
            }

            .donut-container {
                display: flex;
                justify-content: center;
                padding: 0.75rem 0;
                height: auto;
            }
            
            .donut-legend {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.5rem;
                font-size: 0.75rem;
            }

            .chart-title {
                font-size: 0.95rem !important;
            }

            .chart-sub {
                font-size: 0.7rem !important;
            }

            /* Enhanced Trend Responsive */
            .trend-stats-bar {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 6px !important;
            }
            .trend-period-selector {
                gap: 1px;
            }
            .trend-period-btn {
                padding: 2px 5px; font-size: 0.58rem;
            }
            .trend-y-axis {
                width: 36px !important; min-width: 36px !important; font-size: 0.52rem !important;
            }
            .trend-x-axis {
                padding-left: 42px !important; font-size: 0.5rem !important;
            }
            .trend-tooltip {
                min-width: 150px !important; font-size: 0.7rem !important;
            }

            .stacked-bar-chart {
                max-height: 250px !important;
            }

            .horizontal-bar-container {
                max-height: auto !important;
            }

            /* Responsive Audit Grid */
            .audit-grid {
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }
            
            /* ===== HEATMAP ===== */
            .heatmap-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 6px;
            }
            
            .heatmap-grid > span:nth-child(n+5) {
                display: none;
            }
            
            /* ===== INPUT WRAPPER (FORM) ===== */
            .input-wrapper {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .glass-input,
            .glass-select {
                width: 100%;
                padding: 14px 12px;
                font-size: 16px;
                border-radius: 10px;
                min-height: 48px;
            }
            
            .input-wrapper input[type="date"],
            .input-wrapper input[type="time"],
            .input-wrapper input[type="number"],
            .input-wrapper input[type="text"],
            .input-wrapper select {
                font-size: 16px !important;
            }
            
            .timer-box {
                grid-column: 1;
            }
            
            /* ===== MODALS ===== */
            .modal {
                padding: 1rem;
            }
            
            .modal-box {
                width: 100vw !important;
                max-width: calc(100vw - 2rem) !important;
                height: auto;
                max-height: 90vh !important;
                border-radius: 16px 16px 0 0;
                overflow-y: auto !important;
            }
            
            .modal-box {
                animation: slideUp 0.3s ease !important;
            }
            
            @keyframes slideUp {
                from { transform: translateY(100%); opacity: 0; }
                to { transform: translateY(0); opacity: 1; }
            }
        }
            
            @media (max-width: 480px) {
                .modal {
                    padding: 0.5rem;
                    align-items: flex-end;
                }
                
                .modal-box {
                    max-width: calc(100vw - 1rem) !important;
                    border-radius: 16px 16px 0 0;
                    padding: 20px !important;
                }
                
                #privacyModal .modal-box {
                    padding: 16px !important;
                }
                
                #privacyModal h2 {
                    font-size: 1.3rem !important;
                }
                
                #privacyModal ul {
                    font-size: 0.85rem !important;
                }
            }
            
            /* ===== SETTINGS TABS ===== */
            .settings-tab {
                padding: 7px 10px !important;
                font-size: 0.75rem;
                white-space: nowrap;
            }
            
            .settings-tab.active {
                background: rgba(255,255,255,0.08) !important;
            }
            
            .settings-tab-content {
                padding: 0.75rem !important;
            }
            
            .settings-section {
                padding: 1rem;
            }
            
            .settings-nav {
                padding: 8px 10px;
            }
            
            .settings-header {
                padding: 1rem 1.25rem;
            }
            
            /* ===== BUTTONS ===== */
            .btn {
                padding: 12px 16px;
                min-height: 44px;
                font-size: 0.9rem;
                border-radius: 10px;
                touch-action: manipulation;
            }
            
            .btn-icon-row {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }
            
            /* ===== CARDS ===== */
            .card {
                padding: 1rem;
                border-radius: 12px;
            }
            
            /* ===== LIST ===== */
            .entry-item {
                padding: 1rem;
                margin-bottom: 0.75rem;
            }
            
            /* ===== HISTORY/TABLES ===== */
            .list-item {
                padding: 1rem;
                margin-bottom: 0.75rem;
            }
            
            /* ===== ANIMATIONS ===== */
            @keyframes slideInRight {
                from { opacity: 0; transform: translateX(100%); }
                to { opacity: 1; transform: translateX(0); }
            }
            
            /* ===== SIDEBAR BRAND ===== */
            .brand {
                font-size: 1rem;
            }
            
            .sidebar-nav {
                gap: 0.5rem;
            }
            
            .sidebar-nav button {
                padding: 12px;
                font-size: 0.85rem;
                justify-content: flex-start;
                gap: 10px;
            }

            /* ===== AI-BOT RESPONSIVE ===== */
            #view-aibot > div:nth-child(2) {
                grid-template-columns: 1fr !important;
            }

            #view-aibot .view-section > div:nth-child(2) {
                max-width: 100%;
            }
            
            /* ===== DATE BADGE ===== */
            .date-badge {
                padding: 8px 12px;
                font-size: 0.8rem;
                border-radius: 20px;
            }
            
            /* ===== SCROLLABLE CONTAINERS ===== */
            .sidebar::-webkit-scrollbar {
                width: 6px;
            }
            
            .modal-box::-webkit-scrollbar {
                width: 6px;
            }
            
            /* ===== PREVENT ZOOM ON INPUT ===== */
            input[type="text"],
            input[type="date"],
            input[type="time"],
            input[type="number"],
            select,
            textarea {
                font-size: 16px !important;
            }
            
            /* ===== FOOTER & SPACING ===== */
            .onboarding-footer {
                padding: 1rem;
                gap: 0.75rem;
            }
            
            /* ===== COLOR DOTS ===== */
            .color-dot {
                min-width: 36px;
                min-height: 36px;
            }
        
        /* ===== LANDSCAPE MOBILE (< 768px & landscape) ===== */
        @media (max-height: 600px) and (min-width: 600px) {
            .sidebar {
                transform: translateX(-100%);
            }
            
            .main {
                margin-left: 0;
            }
            
            .page-title {
                font-size: 1.1rem;
                margin-bottom: 0.75rem;
            }
            
            .modal-box {
                max-height: 95vh;
            }
        }
        
        /* ===== SMALL PHONES (< 360px) ===== */
        @media (max-width: 359px) {
            .sidebar {
                max-width: 240px;
            }
            
            .page-title {
                font-size: 1.1rem;
            }
            
            .kpi-grid {
                gap: 0.5rem;
            }
            
            .quick-actions button {
                padding: 12px;
                font-size: 0.8rem;
            }
            
            .btn {
                padding: 10px 12px;
                font-size: 0.8rem;
            }
        }
        
        /* Mobile Overlay für Sidebar */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 199;
        }
        .sidebar-overlay.active {
            display: block;
        }


        /* --- Mobile Bottom Navigation Bar --- */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: rgba(10, 10, 12, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255,255,255,0.06);
            z-index: 150;
            padding: 0 8px;
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }
        .mobile-bottom-nav-inner {
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 100%;
            max-width: 500px;
            margin: 0 auto;
        }
        .mob-nav-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 6px 12px;
            border-radius: 10px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            font-family: var(--font-main);
            -webkit-tap-highlight-color: transparent;
        }
        .mob-nav-btn.active {
            color: var(--primary);
        }
        .mob-nav-btn.active .mob-nav-icon {
            background: var(--primary-dim);
        }
        .mob-nav-icon {
            font-size: 1.2rem;
            padding: 4px 12px;
            border-radius: 12px;
            transition: background 0.2s;
        }
        .mob-nav-label {
            font-size: 0.6rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        @media (max-width: 767px) {
            .mobile-bottom-nav {
                display: block;
            }
            /* Add bottom padding to main content so it doesn't hide behind bottom nav */
            .main {
                padding-bottom: 75px !important;
            }
        }
