        :root {
            --beige-50: #FAF8F5;
            --beige-100: #F5F1EB;
            --beige-200: #EBE4DA;
            --brown-400: #9E8C7D;
            --brown-600: #6B5E54;
            --brown-700: #5C5149;
            --brown-800: #4D443E;
        }
        body { background: var(--beige-50); color: var(--brown-800); font-family: system-ui, -apple-system, sans-serif; }
        .bg-beige-50 { background: var(--beige-50); }
        .bg-beige-100 { background: var(--beige-100); }
        .bg-beige-200 { background: var(--beige-200); }
        .bg-brown-400 { background: var(--brown-400); }
        .bg-brown-600 { background: var(--brown-600); }
        .text-brown-400 { color: var(--brown-400); }
        .text-brown-600 { color: var(--brown-600); }
        .text-brown-800 { color: var(--brown-800); }
        .border-beige-200 { border-color: var(--beige-200); }
        .border-brown-400 { border-color: var(--brown-400); }
        .hover\:bg-brown-700:hover { background: var(--brown-700); }
        .hover\:bg-beige-200:hover { background: var(--beige-200); }
        .focus\:ring-brown-400:focus { --tw-ring-color: var(--brown-400); }
        .btn-primary {
            background: var(--brown-600);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-weight: 500;
            transition: background 0.2s;
            cursor: pointer;
        }
        .btn-primary:hover { background: var(--brown-700); }
        .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
        .btn-secondary {
            background: var(--beige-200);
            color: var(--brown-600);
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-weight: 500;
            cursor: pointer;
        }
        .btn-secondary:hover { background: var(--beige-100); }
        .btn-danger {
            background: #EF4444;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-weight: 500;
            cursor: pointer;
        }
        .btn-danger:hover { background: #DC2626; }
        .input {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--beige-200);
            border-radius: 0.5rem;
            background: white;
        }
        .input:focus {
            outline: none;
            border-color: var(--brown-400);
            box-shadow: 0 0 0 3px rgba(158, 140, 125, 0.2);
        }
        textarea.input { resize: vertical; min-height: 100px; }
        select.input { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; padding-right: 2.5rem; }
        .card {
            background: white;
            border-radius: 0.75rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            padding: 1.5rem;
        }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
            color: var(--brown-600);
            transition: all 0.2s;
            cursor: pointer;
        }
        .nav-link:hover { background: var(--beige-200); }
        .nav-link.active {
            background: var(--brown-600);
            color: white;
        }
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 50;
            padding: 1rem;
        }
        .modal-content {
            background: white;
            border-radius: 1rem;
            max-height: 90vh;
            overflow-y: auto;
            width: 100%;
        }
        .tab-btn {
            padding: 0.75rem 1.5rem;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .tab-btn:hover { background: var(--beige-100); }
        .tab-btn.active {
            border-bottom-color: var(--brown-600);
            color: var(--brown-800);
            font-weight: 500;
        }
        [x-cloak] { display: none !important; }
        .toast {
            position: fixed;
            bottom: 1rem;
            right: 1rem;
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            z-index: 100;
            animation: slideIn 0.3s ease;
        }
        .toast.success { background: #10B981; color: white; }
        .toast.error { background: #EF4444; color: white; }
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* === MOBILE RESPONSIVE === */
        /* Mobile Header */
        .mobile-header {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: white;
            border-bottom: 1px solid var(--beige-200);
            z-index: 40;
            padding: 0 1rem;
            align-items: center;
            justify-content: space-between;
        }

        /* Mobile Menu Overlay */
        .mobile-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 45;
        }
        .mobile-overlay.active { display: block; }

        /* Sidebar Verhalten */
        .app-sidebar {
            transition: transform 0.3s ease;
        }

        /* Hamburger Button */
        .hamburger {
            width: 24px;
            height: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            cursor: pointer;
        }
        .hamburger span {
            display: block;
            width: 100%;
            height: 3px;
            background: var(--brown-600);
            border-radius: 2px;
        }

        /* Touch-friendly buttons */
        @media (max-width: 768px) {
            .mobile-header { display: flex; }

            .app-sidebar {
                transform: translateX(-100%);
            }
            .app-sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0 !important;
                padding: 1rem !important;
                padding-top: 76px !important;
            }

            .card { padding: 1rem; }

            .btn-primary, .btn-secondary, .btn-danger {
                padding: 0.75rem 1rem;
                font-size: 1rem;
                min-height: 44px;
            }

            .input {
                padding: 0.75rem;
                font-size: 16px; /* Prevents zoom on iOS */
                min-height: 44px;
            }

            select.input {
                font-size: 16px;
            }

            .tab-btn {
                padding: 0.75rem 1rem;
                font-size: 0.875rem;
            }

            .modal {
                padding: 0;
                align-items: flex-end;
            }

            .modal-content {
                border-radius: 1rem 1rem 0 0;
                max-height: 95vh;
            }

            /* Tabellen responsive */
            .table-responsive {
                display: block;
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            table {
                min-width: 600px;
            }

            /* Verstecke auf Mobile */
            .hide-mobile { display: none !important; }

            /* Zeige auf Mobile */
            .show-mobile { display: block !important; }

            /* Filter-Leiste: Suchfeld und Select gleich groß */
            .card .flex.flex-col input.input,
            .card .flex.flex-col select.input {
                width: 100% !important;
                flex: none !important;
            }

            /* Kleinere Überschriften */
            h1 { font-size: 1.5rem !important; }
            h2 { font-size: 1.25rem !important; }

            /* Stat Cards */
            .stat-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 0.75rem !important;
            }

            .stat-grid .card {
                padding: 0.75rem !important;
            }

            .stat-grid .text-2xl {
                font-size: 1.25rem !important;
            }

            /* Toast */
            .toast {
                left: 1rem;
                right: 1rem;
                bottom: 1rem;
            }
        }

        /* Tablet */
        @media (min-width: 769px) and (max-width: 1024px) {
            .app-sidebar {
                width: 200px;
            }
            .main-content {
                margin-left: 200px !important;
            }
        }
